@cryptofi/core-ui 0.38.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14,5 +14,5 @@ var hr={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */"production"===process.env.NODE_ENV?So.exports=function(){if(xo)return jo;xo=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case l:case u:case n:case o:case i:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case d:case h:case a:return t;default:return p}}case r:return p}}}function w(t){return b(t)===u}return jo.AsyncMode=l,jo.ConcurrentMode=u,jo.ContextConsumer=c,jo.ContextProvider=a,jo.Element=e,jo.ForwardRef=s,jo.Fragment=n,jo.Lazy=d,jo.Memo=h,jo.Portal=r,jo.Profiler=o,jo.StrictMode=i,jo.Suspense=f,jo.isAsyncMode=function(t){return w(t)||b(t)===l},jo.isConcurrentMode=w,jo.isContextConsumer=function(t){return b(t)===c},jo.isContextProvider=function(t){return b(t)===a},jo.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},jo.isForwardRef=function(t){return b(t)===s},jo.isFragment=function(t){return b(t)===n},jo.isLazy=function(t){return b(t)===d},jo.isMemo=function(t){return b(t)===h},jo.isPortal=function(t){return b(t)===r},jo.isProfiler=function(t){return b(t)===o},jo.isStrictMode=function(t){return b(t)===i},jo.isSuspense=function(t){return b(t)===f},jo.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===u||t===o||t===i||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===g||t.$$typeof===y)},jo.typeOf=b,jo}():So.exports=(Ao||(Ao=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var y=t.type;switch(y){case l:case u:case n:case o:case i:case f:return y;default:var v=y&&y.$$typeof;switch(v){case c:case s:case d:case h:case a:return v;default:return p}}case r:return p}}}var w=l,x=u,O=c,S=a,j=e,A=s,P=n,M=d,E=h,k=r,_=o,T=i,C=f,D=!1;function I(t){return b(t)===u}Po.AsyncMode=w,Po.ConcurrentMode=x,Po.ContextConsumer=O,Po.ContextProvider=S,Po.Element=j,Po.ForwardRef=A,Po.Fragment=P,Po.Lazy=M,Po.Memo=E,Po.Portal=k,Po.Profiler=_,Po.StrictMode=T,Po.Suspense=C,Po.isAsyncMode=function(t){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(t)||b(t)===l},Po.isConcurrentMode=I,Po.isContextConsumer=function(t){return b(t)===c},Po.isContextProvider=function(t){return b(t)===a},Po.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Po.isForwardRef=function(t){return b(t)===s},Po.isFragment=function(t){return b(t)===n},Po.isLazy=function(t){return b(t)===d},Po.isMemo=function(t){return b(t)===h},Po.isPortal=function(t){return b(t)===r},Po.isProfiler=function(t){return b(t)===o},Po.isStrictMode=function(t){return b(t)===i},Po.isSuspense=function(t){return b(t)===f},Po.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===u||t===o||t===i||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===g||t.$$typeof===y)},Po.typeOf=b}()),Po);var Mo=So.exports,Eo=cn,ko=ln;var _o=function(t){return"number"==typeof t||ko(t)&&"[object Number]"==Eo(t)},To=nr(_o),Co=_o;var Do=nr((function(t){return Co(t)&&t!=+t})),Io=function(t){return 0===t?0:t>0?1:-1},No=function(t){return Oo(t)&&t.indexOf("%")===t.length-1},Bo=function(t){return To(t)&&!Do(t)},Lo=function(t){return Bo(t)||Oo(t)},Ro=0,$o=function(t){var e=++Ro;return"".concat(t||"").concat(e)},zo=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Bo(t)&&!Oo(t))return n;if(No(t)){var o=t.indexOf("%");r=e*parseFloat(t.slice(0,o))/100}else r=+t;return Do(r)&&(r=n),i&&r>e&&(r=e),r},Ho=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},Vo=function(t,e){return Bo(t)&&Bo(e)?function(r){return t+r*(e-t)}:function(){return e}};function Uo(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):vo(t,e))===r})):null}function Fo(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 Wo(t){return Wo="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},Wo(t)}var qo=["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"],Xo=["points","pathLength"],Yo={svg:["viewBox","children"],polygon:Xo,polyline:Xo},Ko=["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"],Go=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(G(t)&&(r=t.props),!gn(r))return null;var n={};return Object.keys(r).forEach((function(t){Ko.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},Zo=function(t,e,r){if(!gn(t)||"object"!==Wo(t))return null;var n=null;return Object.keys(t).forEach((function(i){var o=t[i];Ko.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(t,e,r){return function(n){return t(e,r,n),null}}(o,e,r))})),n},Jo=["children"],Qo=["children"];function ta(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function ea(t){return ea="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},ea(t)}var ra={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},na=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},ia=null,oa=null,aa=function t(e){if(e===ia&&Array.isArray(oa))return oa;var r=[];return Z.forEach(e,(function(e){mo(e)||(Mo.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))})),oa=r,ia=e,r};function ca(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return na(t)})):[na(e)],aa(t).forEach((function(t){var e=vo(t,"type.displayName")||vo(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function la(t,e){var r=ca(t,e);return r&&r[0]}var ua=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!Bo(r)||r<=0||!Bo(n)||n<=0)},sa=["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"],fa=function(t){return t&&"object"===ea(t)&&"cx"in t&&"cy"in t&&"r"in t},pa=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(G(t)&&(n=t.props),!gn(n))return null;var i={};return Object.keys(n).forEach((function(t){var o;(function(t,e,r,n){var i,o=null!==(i=null==Yo?void 0:Yo[n])&&void 0!==i?i:[];return!Sn(t)&&(n&&o.includes(e)||qo.includes(e))||r&&Ko.includes(e)})(null===(o=n)||void 0===o?void 0:o[t],t,e,r)&&(i[t]=n[t])})),i},ha=function t(e,r){if(e===r)return!0;var n=Z.count(e);if(n!==Z.count(r))return!1;if(0===n)return!0;if(1===n)return da(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=e[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!da(o,a))return!1}return!0},da=function(t,e){if(mo(t)&&mo(e))return!0;if(!mo(t)&&!mo(e)){var r=t.props||{},n=r.children,i=ta(r,Jo),o=e.props||{},a=o.children,c=ta(o,Qo);return n&&a?Fo(i,c)&&ha(n,a):!n&&!a&&Fo(i,c)}return!1},ya=function(t,e){var r=[],n={};return aa(t).forEach((function(t,i){if(function(t){return t&&t.type&&Oo(t.type)&&sa.indexOf(t.type)>=0}(t))r.push(t);else if(t){var o=na(t.type),a=e[o]||{},c=a.handler,l=a.once;if(c&&(!l||!n[o])){var u=c(t,o,i);r.push(u),n[o]=!0}}})),r},va=["children","width","height","viewBox","className","style","title","desc"];function ma(){return ma=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},ma.apply(this,arguments)}function ga(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function ba(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,o=t.className,a=t.style,c=t.title,l=t.desc,u=ga(t,va),s=i||{width:r,height:n,x:0,y:0},f=Ur("recharts-surface",o);return K.createElement("svg",ma({},pa(u,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),K.createElement("title",null,c),K.createElement("desc",null,l),e)}var wa=["children","className"];function xa(){return xa=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},xa.apply(this,arguments)}function Oa(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var Sa=K.forwardRef((function(t,e){var r=t.children,n=t.className,i=Oa(t,wa),o=Ur("recharts-layer",n);return K.createElement("g",xa({className:o},pa(i,!0),{ref:e}),r)})),ja="production"!==process.env.NODE_ENV,Aa=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(ja&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(e.replace(/%s/g,(function(){return n[o++]})))}};var Pa=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o},Ma=Pa;var Ea=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Ma(t,e,r)},ka=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var _a=function(t){return ka.test(t)};var Ta=function(t){return t.split("")},Ca="\\ud800-\\udfff",Da="["+Ca+"]",Ia="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Na="\\ud83c[\\udffb-\\udfff]",Ba="[^"+Ca+"]",La="(?:\\ud83c[\\udde6-\\uddff]){2}",Ra="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="(?:"+Ia+"|"+Na+")"+"?",za="[\\ufe0e\\ufe0f]?",Ha=za+$a+("(?:\\u200d(?:"+[Ba,La,Ra].join("|")+")"+za+$a+")*"),Va="(?:"+[Ba+Ia+"?",Ia,La,Ra,Da].join("|")+")",Ua=RegExp(Na+"(?="+Na+")|"+Va+Ha,"g");var Fa=function(t){return t.match(Ua)||[]},Wa=Ta,qa=_a,Xa=Fa;var Ya=function(t){return qa(t)?Xa(t):Wa(t)},Ka=Ea,Ga=_a,Za=Ya,Ja=ro;var Qa=function(t){return function(e){e=Ja(e);var r=Ga(e)?Za(e):void 0,n=r?r[0]:e.charAt(0),i=r?Ka(r,1).join(""):e.slice(1);return n[t]()+i}},tc=nr(Qa("toUpperCase"));function ec(t){return function(){return t}}const rc=Math.cos,nc=Math.sin,ic=Math.sqrt,oc=Math.PI,ac=2*oc,cc=Math.PI,lc=2*cc,uc=1e-6,sc=lc-uc;function fc(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class pc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?fc:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return fc;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,i,o){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,r,n,i){if(t=+t,e=+e,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,c=r-t,l=n-e,u=o-t,s=a-e,f=u*u+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>uc)if(Math.abs(s*c-l*u)>uc&&i){let p=r-o,h=n-a,d=c*c+l*l,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=i*Math.tan((cc-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,w=g/v;Math.abs(b-1)>uc&&this._append`L${t+b*u},${e+b*s}`,this._append`A${i},${i},0,0,${+(s*p>u*h)},${this._x1=t+w*c},${this._y1=e+w*l}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,i,o){if(t=+t,e=+e,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),l=t+a,u=e+c,s=1^o,f=o?n-i:i-n;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>uc||Math.abs(this._y1-u)>uc)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%lc+lc),f>sc?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=l},${this._y1=u}`:f>uc&&this._append`A${r},${r},0,${+(f>=cc)},${s},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}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 hc(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 pc(e)}function dc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function yc(t){this._context=t}function vc(t){return new yc(t)}function mc(t){return t[0]}function gc(t){return t[1]}function bc(t,e){var r=ec(!0),n=null,i=vc,o=null,a=hc(c);function c(c){var l,u,s,f=(c=dc(c)).length,p=!1;for(null==n&&(o=i(s=a())),l=0;l<=f;++l)!(l<f&&r(u=c[l],l,c))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+t(u,l,c),+e(u,l,c));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?mc:ec(t),e="function"==typeof e?e:void 0===e?gc:ec(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:ec(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:ec(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:ec(!!t),c):r},c.curve=function(t){return arguments.length?(i=t,null!=n&&(o=i(n)),c):i},c.context=function(t){return arguments.length?(null==t?n=o=null:o=i(n=t),c):n},c}function wc(t,e,r){var n=null,i=ec(!0),o=null,a=vc,c=null,l=hc(u);function u(u){var s,f,p,h,d,y=(u=dc(u)).length,v=!1,m=new Array(y),g=new Array(y);for(null==o&&(c=a(d=l())),s=0;s<=y;++s){if(!(s<y&&i(h=u[s],s,u))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],g[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,u),g[s]=+e(h,s,u),c.point(n?+n(h,s,u):m[s],r?+r(h,s,u):g[s]))}if(d)return c=null,d+""||null}function s(){return bc().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?mc:ec(+t),e="function"==typeof e?e:ec(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?gc:ec(+r),u.x=function(e){return arguments.length?(t="function"==typeof e?e:ec(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:ec(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:ec(+t),u):n},u.y=function(t){return arguments.length?(e="function"==typeof t?t:ec(+t),r=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:ec(+t),u):e},u.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:ec(+t),u):r},u.lineX0=u.lineY0=function(){return s().x(t).y(e)},u.lineY1=function(){return s().x(t).y(r)},u.lineX1=function(){return s().x(n).y(e)},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:ec(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),u):o},u}yc.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 xc{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}}var Oc={draw(t,e){const r=ic(e/oc);t.moveTo(r,0),t.arc(0,0,r,0,ac)}},Sc={draw(t,e){const r=ic(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()}};const jc=ic(1/3),Ac=2*jc;var Pc={draw(t,e){const r=ic(e/Ac),n=r*jc;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Mc={draw(t,e){const r=ic(e),n=-r/2;t.rect(n,n,r,r)}};const Ec=nc(oc/10)/nc(7*oc/10),kc=nc(ac/10)*Ec,_c=-rc(ac/10)*Ec;var Tc={draw(t,e){const r=ic(.8908130915292852*e),n=kc*r,i=_c*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){const o=ac*e/5,a=rc(o),c=nc(o);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*i,c*n+a*i)}t.closePath()}};const Cc=ic(3);var Dc={draw(t,e){const r=-ic(e/(3*Cc));t.moveTo(0,2*r),t.lineTo(-Cc*r,-r),t.lineTo(Cc*r,-r),t.closePath()}};const Ic=-.5,Nc=ic(3)/2,Bc=1/ic(12),Lc=3*(Bc/2+1);var Rc={draw(t,e){const r=ic(e/Lc),n=r/2,i=r*Bc,o=n,a=r*Bc+r,c=-o,l=a;t.moveTo(n,i),t.lineTo(o,a),t.lineTo(c,l),t.lineTo(Ic*n-Nc*i,Nc*n+Ic*i),t.lineTo(Ic*o-Nc*a,Nc*o+Ic*a),t.lineTo(Ic*c-Nc*l,Nc*c+Ic*l),t.lineTo(Ic*n+Nc*i,Ic*i-Nc*n),t.lineTo(Ic*o+Nc*a,Ic*a-Nc*o),t.lineTo(Ic*c+Nc*l,Ic*l-Nc*c),t.closePath()}};function $c(){}function zc(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 Hc(t){this._context=t}function Vc(t){this._context=t}function Uc(t){this._context=t}function Fc(t){this._context=t}function Wc(t){return t<0?-1:1}function qc(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0),c=(o*i+a*n)/(n+i);return(Wc(o)+Wc(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function Xc(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Yc(t,e,r){var n=t._x0,i=t._y0,o=t._x1,a=t._y1,c=(o-n)/3;t._context.bezierCurveTo(n+c,i+c*e,o-c,a-c*r,o,a)}function Kc(t){this._context=t}function Gc(t){this._context=new Zc(t)}function Zc(t){this._context=t}function Jc(t){this._context=t}function Qc(t){var e,r,n=t.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function tl(t,e){this._context=t,this._t=e}function el(t,e){if((i=t.length)>1)for(var r,n,i,o=1,a=t[e[0]],c=a.length;o<i;++o)for(n=a,a=t[e[o]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function rl(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function nl(t,e){return t[e]}function il(t){const e=[];return e.key=t,e}function ol(t){return ol="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},ol(t)}Hc.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:zc(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:zc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Vc.prototype={areaStart:$c,areaEnd:$c,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:zc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Uc.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:zc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Fc.prototype={areaStart:$c,areaEnd:$c,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))}},Kc.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:Yc(this,this._t0,Xc(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,Yc(this,Xc(this,r=qc(this,t,e)),r);break;default:Yc(this,this._t0,r=qc(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Gc.prototype=Object.create(Kc.prototype)).point=function(t,e){Kc.prototype.point.call(this,e,t)},Zc.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,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},Jc.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=Qc(t),i=Qc(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],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)}},tl.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 al=["type","size","sizeType"];function cl(){return cl=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},cl.apply(this,arguments)}function ll(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?ll(Object(r),!0).forEach((function(e){sl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ll(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sl(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ol(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ol(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fl(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var pl={symbolCircle:Oc,symbolCross:Sc,symbolDiamond:Pc,symbolSquare:Mc,symbolStar:Tc,symbolTriangle:Dc,symbolWye:Rc},hl=Math.PI/180,dl=function(t){var e,r,n=t.type,i=void 0===n?"circle":n,o=t.size,a=void 0===o?64:o,c=t.sizeType,l=void 0===c?"area":c,u=ul(ul({},fl(t,al)),{},{type:i,size:a,sizeType:l}),s=u.className,f=u.cx,p=u.cy,h=pa(u,!0);return f===+f&&p===+p&&a===+a?K.createElement("path",cl({},h,{className:Ur("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(p,")"),d:(e=function(t){var e="symbol".concat(tc(t));return pl[e]||Oc}(i),r=function(t,e){let r=null,n=hc(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:ec(t||Oc),e="function"==typeof e?e:ec(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:ec(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:ec(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i}().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*hl;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}}(a,l,i)),r())})):null};function yl(t){return yl="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},yl(t)}function vl(){return vl=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},vl.apply(this,arguments)}function ml(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 gl(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,jl(n.key),n)}}function bl(t,e,r){return e=xl(e),function(t,e){if(e&&("object"===yl(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,wl()?Reflect.construct(e,r||[],xl(t).constructor):e.apply(t,r))}function wl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wl=function(){return!!t})()}function xl(t){return xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xl(t)}function Ol(t,e){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ol(t,e)}function Sl(t,e,r){return(e=jl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jl(t){var e=function(t,e){if("object"!=yl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yl(e)?e:String(e)}dl.registerSymbol=function(t,e){pl["symbol".concat(tc(t))]=e};var Al=32,Pl=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),bl(this,e,arguments)}var r,n,i;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&&Ol(t,e)}(e,J),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=Al/6,i=Al/3,o=t.inactive?e:t.color;if("plainline"===t.type)return K.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:Al,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return K.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Al,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return K.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(Al,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(K.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ml(Object(r),!0).forEach((function(e){Sl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ml(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,K.cloneElement(t.legendIcon,a)}return K.createElement(dl,{fill:o,cx:r,cy:r,size:Al,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,c={x:0,y:0,width:Al,height:Al},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var i=e.formatter||o,s=Ur(Sl(Sl({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=Sn(e.value)?null:e.value;Aa(!Sn(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 p=e.inactive?a:e.color;return K.createElement("li",vl({className:s,style:l,key:"legend-item-".concat(r)},Zo(t.props,e,r)),K.createElement(ba,{width:n,height:n,viewBox:c,style:u},t.renderIcon(e)),K.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(f,e,r):f))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return K.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&gl(r.prototype,n),i&&gl(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Sl(Pl,"displayName","Legend"),Sl(Pl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Ml=xi;var El=xi,kl=Oi,_l=Ri;var Tl=xi,Cl=function(){this.__data__=new Ml,this.size=0},Dl=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Il=function(t){return this.__data__.get(t)},Nl=function(t){return this.__data__.has(t)},Bl=function(t,e){var r=this.__data__;if(r instanceof El){var n=r.__data__;if(!kl||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new _l(n)}return r.set(t,e),this.size=r.size,this};function Ll(t){var e=this.__data__=new Tl(t);this.size=e.size}Ll.prototype.clear=Cl,Ll.prototype.delete=Dl,Ll.prototype.get=Il,Ll.prototype.has=Nl,Ll.prototype.set=Bl;var Rl=Ll;var $l=Ri,zl=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Hl=function(t){return this.__data__.has(t)};function Vl(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new $l;++e<r;)this.add(t[e])}Vl.prototype.add=Vl.prototype.push=zl,Vl.prototype.has=Hl;var Ul=Vl;var Fl=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 Wl=function(t,e){return t.has(e)},ql=Ul,Xl=Fl,Yl=Wl;var Kl=function(t,e,r,n,i,o){var a=1&r,c=t.length,l=e.length;if(c!=l&&!(a&&l>c))return!1;var u=o.get(t),s=o.get(e);if(u&&s)return u==e&&s==t;var f=-1,p=!0,h=2&r?new ql:void 0;for(o.set(t,e),o.set(e,t);++f<c;){var d=t[f],y=e[f];if(n)var v=a?n(y,d,f,e,t,o):n(d,y,f,t,e,o);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!Xl(e,(function(t,e){if(!Yl(h,e)&&(d===t||i(d,t,r,n,o)))return h.push(e)}))){p=!1;break}}else if(d!==y&&!i(d,y,r,n,o)){p=!1;break}}return o.delete(t),o.delete(e),p};var Gl=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var Zl=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},Jl=Yr.Uint8Array,Ql=ci,tu=Kl,eu=Gl,ru=Zl,nu=Kr?Kr.prototype:void 0,iu=nu?nu.valueOf:void 0;var ou=function(t,e,r,n,i,o,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||!o(new Jl(t),new Jl(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ql(+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 c=eu;case"[object Set]":var l=1&n;if(c||(c=ru),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;n|=2,a.set(t,e);var s=tu(c(t),c(e),n,i,o,a);return a.delete(t),s;case"[object Symbol]":if(iu)return iu.call(t)==iu.call(e)}return!1};var au=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},cu=au,lu=Fr;var uu=function(t,e,r){var n=e(t);return lu(t)?n:cu(n,r(t))};var su=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o};var fu=su,pu=function(){return[]},hu=Object.prototype.propertyIsEnumerable,du=Object.getOwnPropertySymbols,yu=du?function(t){return null==t?[]:(t=Object(t),fu(du(t),(function(e){return hu.call(t,e)})))}:pu,vu=yu;var mu=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},gu=cn,bu=ln;var wu=function(t){return bu(t)&&"[object Arguments]"==gu(t)},xu=ln,Ou=Object.prototype,Su=Ou.hasOwnProperty,ju=Ou.propertyIsEnumerable,Au=wu(function(){return arguments}())?wu:function(t){return xu(t)&&Su.call(t,"callee")&&!ju.call(t,"callee")},Pu={exports:{}};var Mu=function(){return!1};!function(t,e){var r=Yr,n=Mu,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(Pu,Pu.exports);var Eu=Pu.exports,ku=/^(?:0|[1-9]\d*)$/;var _u=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&ku.test(t))&&t>-1&&t%1==0&&t<e};var Tu=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Cu=cn,Du=Tu,Iu=ln,Nu={};Nu["[object Float32Array]"]=Nu["[object Float64Array]"]=Nu["[object Int8Array]"]=Nu["[object Int16Array]"]=Nu["[object Int32Array]"]=Nu["[object Uint8Array]"]=Nu["[object Uint8ClampedArray]"]=Nu["[object Uint16Array]"]=Nu["[object Uint32Array]"]=!0,Nu["[object Arguments]"]=Nu["[object Array]"]=Nu["[object ArrayBuffer]"]=Nu["[object Boolean]"]=Nu["[object DataView]"]=Nu["[object Date]"]=Nu["[object Error]"]=Nu["[object Function]"]=Nu["[object Map]"]=Nu["[object Number]"]=Nu["[object Object]"]=Nu["[object RegExp]"]=Nu["[object Set]"]=Nu["[object String]"]=Nu["[object WeakMap]"]=!1;var Bu=function(t){return Iu(t)&&Du(t.length)&&!!Nu[Cu(t)]};var Lu=function(t){return function(e){return t(e)}},Ru={exports:{}};!function(t,e){var r=Wr,n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(Ru,Ru.exports);var $u=Ru.exports,zu=Bu,Hu=Lu,Vu=$u&&$u.isTypedArray,Uu=Vu?Hu(Vu):zu,Fu=mu,Wu=Au,qu=Fr,Xu=Eu,Yu=_u,Ku=Uu,Gu=Object.prototype.hasOwnProperty;var Zu=function(t,e){var r=qu(t),n=!r&&Wu(t),i=!r&&!n&&Xu(t),o=!r&&!n&&!i&&Ku(t),a=r||n||i||o,c=a?Fu(t.length,String):[],l=c.length;for(var u in t)!e&&!Gu.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Yu(u,l))||c.push(u);return c},Ju=Object.prototype;var Qu=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ju)};var ts=function(t,e){return function(r){return t(e(r))}},es=ts(Object.keys,Object),rs=Qu,ns=es,is=Object.prototype.hasOwnProperty;var os=function(t){if(!rs(t))return ns(t);var e=[];for(var r in Object(t))is.call(t,r)&&"constructor"!=r&&e.push(r);return e},as=On,cs=Tu;var ls=function(t){return null!=t&&cs(t.length)&&!as(t)},us=Zu,ss=os,fs=ls;var ps=function(t){return fs(t)?us(t):ss(t)},hs=uu,ds=vu,ys=ps;var vs=function(t){return hs(t,ys,ds)},ms=vs,gs=Object.prototype.hasOwnProperty;var bs=function(t,e,r,n,i,o){var a=1&r,c=ms(t),l=c.length;if(l!=ms(e).length&&!a)return!1;for(var u=l;u--;){var s=c[u];if(!(a?s in e:gs.call(e,s)))return!1}var f=o.get(t),p=o.get(e);if(f&&p)return f==e&&p==t;var h=!0;o.set(t,e),o.set(e,t);for(var d=a;++u<l;){var y=t[s=c[u]],v=e[s];if(n)var m=a?n(v,y,s,e,t,o):n(y,v,s,t,e,o);if(!(void 0===m?y===v||i(y,v,r,n,o):m)){h=!1;break}d||(d="constructor"==s)}if(h&&!d){var g=t.constructor,b=e.constructor;g==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(h=!1)}return o.delete(t),o.delete(e),h},ws=Vn(Yr,"DataView"),xs=Vn(Yr,"Promise"),Os=Vn(Yr,"Set"),Ss=ws,js=Oi,As=xs,Ps=Os,Ms=Vn(Yr,"WeakMap"),Es=cn,ks=En,_s="[object Map]",Ts="[object Promise]",Cs="[object Set]",Ds="[object WeakMap]",Is="[object DataView]",Ns=ks(Ss),Bs=ks(js),Ls=ks(As),Rs=ks(Ps),$s=ks(Ms),zs=Es;(Ss&&zs(new Ss(new ArrayBuffer(1)))!=Is||js&&zs(new js)!=_s||As&&zs(As.resolve())!=Ts||Ps&&zs(new Ps)!=Cs||Ms&&zs(new Ms)!=Ds)&&(zs=function(t){var e=Es(t),r="[object Object]"==e?t.constructor:void 0,n=r?ks(r):"";if(n)switch(n){case Ns:return Is;case Bs:return _s;case Ls:return Ts;case Rs:return Cs;case $s:return Ds}return e});var Hs=Rl,Vs=Kl,Us=ou,Fs=bs,Ws=zs,qs=Fr,Xs=Eu,Ys=Uu,Ks="[object Arguments]",Gs="[object Array]",Zs="[object Object]",Js=Object.prototype.hasOwnProperty;var Qs=function(t,e,r,n,i,o){var a=qs(t),c=qs(e),l=a?Gs:Ws(t),u=c?Gs:Ws(e),s=(l=l==Ks?Zs:l)==Zs,f=(u=u==Ks?Zs:u)==Zs,p=l==u;if(p&&Xs(t)){if(!Xs(e))return!1;a=!0,s=!1}if(p&&!s)return o||(o=new Hs),a||Ys(t)?Vs(t,e,r,n,i,o):Us(t,e,l,r,n,i,o);if(!(1&r)){var h=s&&Js.call(t,"__wrapped__"),d=f&&Js.call(e,"__wrapped__");if(h||d){var y=h?t.value():t,v=d?e.value():e;return o||(o=new Hs),i(y,v,r,n,o)}}return!!p&&(o||(o=new Hs),Fs(t,e,r,n,i,o))},tf=Qs,ef=ln;var rf=function t(e,r,n,i,o){return e===r||(null==e||null==r||!ef(e)&&!ef(r)?e!=e&&r!=r:tf(e,r,n,i,t,o))},nf=Rl,of=rf;var af=function(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=Object(t);i--;){var c=r[i];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<o;){var l=(c=r[i])[0],u=t[l],s=c[1];if(a&&c[2]){if(void 0===u&&!(l in t))return!1}else{var f=new nf;if(n)var p=n(u,s,l,t,e,f);if(!(void 0===p?of(s,u,3,n,f):p))return!1}}return!0},cf=mn;var lf=function(t){return t==t&&!cf(t)},uf=lf,sf=ps;var ff=function(t){for(var e=sf(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,uf(i)]}return e};var pf=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},hf=af,df=ff,yf=pf;var vf=function(t){var e=df(t);return 1==e.length&&e[0][2]?yf(e[0][0],e[0][1]):function(r){return r===t||hf(r,t,e)}};var mf=function(t,e){return null!=t&&e in Object(t)},gf=co,bf=Au,wf=Fr,xf=_u,Of=Tu,Sf=uo;var jf=function(t,e,r){for(var n=-1,i=(e=gf(e,t)).length,o=!1;++n<i;){var a=Sf(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Of(i)&&xf(a,i)&&(wf(t)||bf(t))},Af=mf,Pf=jf;var Mf=function(t,e){return null!=t&&Pf(t,e,Af)},Ef=rf,kf=yo,_f=Mf,Tf=vn,Cf=lf,Df=pf,If=uo;var Nf=function(t,e){return Tf(t)&&Cf(e)?Df(If(t),e):function(r){var n=kf(r,t);return void 0===n&&n===e?_f(r,t):Ef(e,n,3)}};var Bf=function(t){return t};var Lf=function(t){return function(e){return null==e?void 0:e[t]}},Rf=po;var $f=function(t){return function(e){return Rf(e,t)}},zf=Lf,Hf=$f,Vf=vn,Uf=uo;var Ff=vf,Wf=Nf,qf=Bf,Xf=Fr,Yf=function(t){return Vf(t)?zf(Uf(t)):Hf(t)};var Kf=function(t){return"function"==typeof t?t:null==t?qf:"object"==typeof t?Xf(t)?Wf(t[0],t[1]):Ff(t):Yf(t)};var Gf=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1};var Zf=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1},Jf=Gf,Qf=function(t){return t!=t},tp=Zf;var ep=function(t,e,r){return e==e?tp(t,e,r):Jf(t,Qf,r)},rp=ep;var np=function(t,e){return!!(null==t?0:t.length)&&rp(t,e,0)>-1};var ip=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1};var op=Os,ap=function(){},cp=op&&1/Zl(new op([,-0]))[1]==1/0?function(t){return new op(t)}:ap,lp=Ul,up=np,sp=ip,fp=Wl,pp=cp,hp=Zl;var dp=function(t,e,r){var n=-1,i=up,o=t.length,a=!0,c=[],l=c;if(r)a=!1,i=sp;else if(o>=200){var u=e?null:pp(t);if(u)return hp(u);a=!1,i=fp,l=new lp}else l=e?[]:c;t:for(;++n<o;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue t;e&&l.push(f),c.push(s)}else i(l,f,r)||(l!==c&&l.push(f),c.push(s))}return c},yp=Kf,vp=dp;var mp=function(t,e){return t&&t.length?vp(t,yp(e)):[]},gp=nr(mp);function bp(t,e,r){return!0===e?gp(t,r):Sn(e)?gp(t,e):t}function wp(t){return wp="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},wp(t)}var xp=["ref"];function Op(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 Sp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Op(Object(r),!0).forEach((function(e){_p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Op(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jp(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,Tp(n.key),n)}}function Ap(t,e,r){return e=Mp(e),function(t,e){if(e&&("object"===wp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ep(t)}(t,Pp()?Reflect.construct(e,r||[],Mp(t).constructor):e.apply(t,r))}function Pp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Pp=function(){return!!t})()}function Mp(t){return Mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mp(t)}function Ep(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kp(t,e){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kp(t,e)}function _p(t,e,r){return(e=Tp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tp(t){var e=function(t,e){if("object"!=wp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=wp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==wp(e)?e:String(e)}function Cp(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Dp(t){return t.value}var Ip=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return _p(Ep(t=Ap(this,e,[].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}var r,n,i;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&&kp(t,e)}(e,J),r=e,i=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&Bo(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(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))}else-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?Sp({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,c=n.margin,l=n.chartWidth,u=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((u||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Sp(Sp({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,l=Sp(Sp({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return K.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(K.isValidElement(t))return K.cloneElement(t,e);if("function"==typeof t)return K.createElement(t,e);e.ref;var r=Cp(e,xp);return K.createElement(Pl,r)}(r,Sp(Sp({},this.props),{},{payload:bp(c,a,Dp)})))}}])&&jp(r.prototype,n),i&&jp(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();_p(Ip,"displayName","Legend"),_p(Ip,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Np=Au,Bp=Fr,Lp=Kr?Kr.isConcatSpreadable:void 0;var Rp=au,$p=function(t){return Bp(t)||Np(t)||!!(Lp&&t&&t[Lp])};var zp=function t(e,r,n,i,o){var a=-1,c=e.length;for(n||(n=$p),o||(o=[]);++a<c;){var l=e[a];r>0&&n(l)?r>1?t(l,r-1,n,i,o):Rp(o,l):i||(o[o.length]=l)}return o};var Hp=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),c=a.length;c--;){var l=a[t?c:++i];if(!1===r(o[l],l,o))break}return e}},Vp=Hp(),Up=ps;var Fp=function(t,e){return t&&Vp(t,e,Up)},Wp=ls;var qp=function(t,e){return function(r,n){if(null==r)return r;if(!Wp(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=Object(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}(Fp),Xp=qp,Yp=ls;var Kp=function(t,e){var r=-1,n=Yp(t)?Array(t.length):[];return Xp(t,(function(t,i,o){n[++r]=e(t,i,o)})),n};var Gp=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},Zp=fn;var Jp=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=Zp(t),a=void 0!==e,c=null===e,l=e==e,u=Zp(e);if(!c&&!u&&!o&&t>e||o&&a&&l&&!c&&!u||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!u&&t<e||u&&r&&i&&!n&&!o||c&&r&&i||!a&&i||!l)return-1}return 0};var Qp=function(t,e,r){for(var n=-1,i=t.criteria,o=e.criteria,a=i.length,c=r.length;++n<a;){var l=Jp(i[n],o[n]);if(l)return n>=c?l:l*("desc"==r[n]?-1:1)}return t.index-e.index},th=Yi,eh=po,rh=Kf,nh=Kp,ih=Gp,oh=Lu,ah=Qp,ch=Bf,lh=Fr;var uh=function(t,e,r){e=e.length?th(e,(function(t){return lh(t)?function(e){return eh(e,1===t.length?t[0]:t)}:t})):[ch];var n=-1;e=th(e,oh(rh));var i=nh(t,(function(t,r,i){return{criteria:th(e,(function(e){return e(t)})),index:++n,value:t}}));return ih(i,(function(t,e){return ah(t,e,r)}))};var sh=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)},fh=Math.max;var ph=function(t,e,r){return e=fh(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=fh(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=n[i];return c[e]=r(a),sh(t,this,c)}};var hh=function(t){return function(){return t}},dh=Vn,yh=function(){try{var t=dh(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),vh=hh,mh=yh,gh=mh?function(t,e){return mh(t,"toString",{configurable:!0,enumerable:!1,value:vh(e),writable:!0})}:Bf,bh=gh,wh=Date.now;var xh=function(t){var e=0,r=0;return function(){var n=wh(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(bh),Oh=Bf,Sh=ph,jh=xh;var Ah=ci,Ph=ls,Mh=_u,Eh=mn;var kh=function(t,e,r){if(!Eh(r))return!1;var n=typeof e;return!!("number"==n?Ph(r)&&Mh(e,r.length):"string"==n&&e in r)&&Ah(r[e],t)},_h=zp,Th=uh,Ch=kh,Dh=nr(function(t,e){return jh(Sh(t,e,Oh),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&Ch(t,e[0],e[1])?e=[]:r>2&&Ch(e[0],e[1],e[2])&&(e=[e[0]]),Th(t,_h(e,1),[])})));function Ih(t){return Ih="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},Ih(t)}function Nh(){return Nh=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},Nh.apply(this,arguments)}function Bh(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Lh(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 Lh(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 Lh(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 Rh(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 $h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rh(Object(r),!0).forEach((function(e){zh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zh(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Ih(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ih(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ih(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hh(t){return Array.isArray(t)&&Lo(t[0])&&Lo(t[1])?t.join(" ~ "):t}var Vh=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,i=void 0===n?{}:n,o=t.itemStyle,a=void 0===o?{}:o,c=t.labelStyle,l=void 0===c?{}:c,u=t.payload,s=t.formatter,f=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,d=t.label,y=t.labelFormatter,v=t.accessibilityLayer,m=void 0!==v&&v,g=$h({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),b=$h({margin:0},l),w=!mo(d),x=w?d:"",O=Ur("recharts-default-tooltip",p),S=Ur("recharts-tooltip-label",h);w&&y&&null!=u&&(x=y(d,u));var j=m?{role:"status","aria-live":"assertive"}:{};return K.createElement("div",Nh({className:O,style:g},j),K.createElement("p",{className:S,style:b},K.isValidElement(x)?x:"".concat(x)),function(){if(u&&u.length){var t=(f?Dh(u,f):u).map((function(t,e){if("none"===t.type)return null;var n=$h({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||Hh,o=t.value,c=t.name,l=o,f=c;if(i&&null!=l&&null!=f){var p=i(o,c,t,e,u);if(Array.isArray(p)){var h=Bh(p,2);l=h[0],f=h[1]}else l=p}return K.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},Lo(f)?K.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Lo(f)?K.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,K.createElement("span",{className:"recharts-tooltip-item-value"},l),K.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return K.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Uh(t){return Uh="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},Uh(t)}function Fh(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Uh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Uh(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wh="recharts-tooltip-wrapper",qh={visibility:"hidden"};function Xh(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return Ur(Wh,Fh(Fh(Fh(Fh({},"".concat(Wh,"-right"),Bo(r)&&e&&Bo(e.x)&&r>=e.x),"".concat(Wh,"-left"),Bo(r)&&e&&Bo(e.x)&&r<e.x),"".concat(Wh,"-bottom"),Bo(n)&&e&&Bo(e.y)&&n>=e.y),"".concat(Wh,"-top"),Bo(n)&&e&&Bo(e.y)&&n<e.y))}function Yh(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,c=t.tooltipDimension,l=t.viewBox,u=t.viewBoxDimension;if(o&&Bo(o[n]))return o[n];var s=r[n]-c-i,f=r[n]+i;return e[n]?a[n]?s:f:a[n]?s<l[n]?Math.max(f,l[n]):Math.max(s,l[n]):f+c>l[n]+u?Math.max(s,l[n]):Math.max(f,l[n])}function Kh(t){return Kh="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},Kh(t)}function Gh(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 Zh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gh(Object(r),!0).forEach((function(e){id(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jh(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,od(n.key),n)}}function Qh(t,e,r){return e=ed(e),function(t,e){if(e&&("object"===Kh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rd(t)}(t,td()?Reflect.construct(e,r||[],ed(t).constructor):e.apply(t,r))}function td(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(td=function(){return!!t})()}function ed(t){return ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ed(t)}function rd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nd(t,e){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nd(t,e)}function id(t,e,r){return(e=od(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function od(t){var e=function(t,e){if("object"!=Kh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Kh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kh(e)?e:String(e)}var ad=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return id(rd(t=Qh(this,e,[].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),id(rd(t),"lastBoundingBox",{width:-1,height:-1}),id(rd(t),"handleKeyDown",(function(e){var r,n,i,o;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null===(o=t.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),t}var r,n,i;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&&nd(t,e)}(e,J),r=e,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.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,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.children,c=e.coordinate,l=e.hasPayload,u=e.isAnimationActive,s=e.offset,f=e.position,p=e.reverseDirection,h=e.useTranslate3d,d=e.viewBox,y=e.wrapperStyle,v=function(t){var e,r,n=t.allowEscapeViewBox,i=t.coordinate,o=t.offsetTopLeft,a=t.position,c=t.reverseDirection,l=t.tooltipBox,u=t.useTranslate3d,s=t.viewBox;return{cssProperties:l.height>0&&l.width>0&&i?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=Yh({allowEscapeViewBox:n,coordinate:i,key:"x",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:l.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=Yh({allowEscapeViewBox:n,coordinate:i,key:"y",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:l.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:u}):qh,cssClasses:Xh({translateX:e,translateY:r,coordinate:i})}}({allowEscapeViewBox:n,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:p,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:h,viewBox:d}),m=v.cssClasses,g=v.cssProperties,b=Zh(Zh({transition:u&&r?"transform ".concat(i,"ms ").concat(o):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},y);return K.createElement("div",{tabIndex:-1,className:m,style:b,ref:function(e){t.wrapperNode=e}},a)}}])&&Jh(r.prototype,n),i&&Jh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}(),cd={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return cd[t]},set:function(t,e){if("string"==typeof t)cd[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){cd[e]=t[e]}))}}};function ld(t){return ld="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},ld(t)}function ud(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 sd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ud(Object(r),!0).forEach((function(e){vd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ud(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fd(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,md(n.key),n)}}function pd(t,e,r){return e=dd(e),function(t,e){if(e&&("object"===ld(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,hd()?Reflect.construct(e,r||[],dd(t).constructor):e.apply(t,r))}function hd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hd=function(){return!!t})()}function dd(t){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dd(t)}function yd(t,e){return yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yd(t,e)}function vd(t,e,r){return(e=md(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function md(t){var e=function(t,e){if("object"!=ld(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ld(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ld(e)?e:String(e)}function gd(t){return t.dataKey}var bd=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),pd(this,e,arguments)}var r,n,i;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&&yd(t,e)}(e,J),r=e,(n=[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.content,c=e.coordinate,l=e.filterNull,u=e.isAnimationActive,s=e.offset,f=e.payload,p=e.payloadUniqBy,h=e.position,d=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,m=e.wrapperStyle,g=null!=f?f:[];l&&g.length&&(g=bp(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),p,gd));var b=g.length>0;return K.createElement(ad,{allowEscapeViewBox:n,animationDuration:i,animationEasing:o,isAnimationActive:u,active:r,coordinate:c,hasPayload:b,offset:s,position:h,reverseDirection:d,useTranslate3d:y,viewBox:v,wrapperStyle:m},function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):"function"==typeof t?K.createElement(t,e):K.createElement(Vh,e)}(a,sd(sd({},this.props),{},{payload:g})))}}])&&fd(r.prototype,n),i&&fd(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();vd(bd,"displayName","Tooltip"),vd(bd,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!cd.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 wd=Yr,xd=/\s/;var Od=function(t){for(var e=t.length;e--&&xd.test(t.charAt(e)););return e},Sd=Od,jd=/^\s+/;var Ad=function(t){return t?t.slice(0,Sd(t)+1).replace(jd,""):t},Pd=Ad,Md=mn,Ed=fn,kd=/^[-+]0x[0-9a-f]+$/i,_d=/^0b[01]+$/i,Td=/^0o[0-7]+$/i,Cd=parseInt;var Dd=function(t){if("number"==typeof t)return t;if(Ed(t))return NaN;if(Md(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Md(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Pd(t);var r=_d.test(t);return r||Td.test(t)?Cd(t.slice(2),r?2:8):kd.test(t)?NaN:+t},Id=mn,Nd=function(){return wd.Date.now()},Bd=Dd,Ld=Math.max,Rd=Math.min;var $d=function(t,e,r){var n,i,o,a,c,l,u=0,s=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var r=n,o=i;return n=i=void 0,u=e,a=t.apply(o,r)}function d(t){var r=t-l;return void 0===l||r>=e||r<0||f&&t-u>=o}function y(){var t=Nd();if(d(t))return v(t);c=setTimeout(y,function(t){var r=e-(t-l);return f?Rd(r,o-(t-u)):r}(t))}function v(t){return c=void 0,p&&n?h(t):(n=i=void 0,a)}function m(){var t=Nd(),r=d(t);if(n=arguments,i=this,l=t,r){if(void 0===c)return function(t){return u=t,c=setTimeout(y,e),s?h(t):a}(l);if(f)return clearTimeout(c),c=setTimeout(y,e),h(l)}return void 0===c&&(c=setTimeout(y,e)),a}return e=Bd(e)||0,Id(r)&&(s=!!r.leading,o=(f="maxWait"in r)?Ld(Bd(r.maxWait)||0,e):o,p="trailing"in r?!!r.trailing:p),m.cancel=function(){void 0!==c&&clearTimeout(c),u=0,n=l=i=c=void 0},m.flush=function(){return void 0===c?a:v(Nd())},m},zd=$d,Hd=mn;var Vd=nr((function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Hd(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),zd(t,e,{leading:n,maxWait:e,trailing:i})}));function Ud(t){return Ud="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},Ud(t)}function Fd(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 Wd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fd(Object(r),!0).forEach((function(e){qd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qd(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Ud(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ud(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ud(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xd(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Yd(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 Yd(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 Yd(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 Kd=Q((function(t,e){var r=t.aspect,n=t.initialDimension,i=void 0===n?{width:-1,height:-1}:n,o=t.width,a=void 0===o?"100%":o,c=t.height,l=void 0===c?"100%":c,u=t.minWidth,s=void 0===u?0:u,f=t.minHeight,p=t.maxHeight,h=t.children,d=t.debounce,y=void 0===d?0:d,v=t.id,m=t.className,g=t.onResize,b=t.style,w=void 0===b?{}:b,x=tt(null),O=tt();O.current=g,et(e,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var S=Xd(rt({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],P=nt((function(t,e){A((function(r){var n=Math.round(t),i=Math.round(e);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}}))}),[]);it((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,i=r.height;P(n,i),null===(e=O.current)||void 0===e||e.call(O,n,i)};y>0&&(t=Vd(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,i=r.height;return P(n,i),e.observe(x.current),function(){e.disconnect()}}),[P,y]);var M=ot((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;Aa(No(a)||No(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,l),Aa(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=No(a)?t:a,i=No(l)?e:l;r&&r>0&&(n?i=n/r:i&&(n=i*r),p&&i>p&&(i=p)),Aa(n>0||i>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.",n,i,a,l,s,f,r);var o=!Array.isArray(h)&&Mo.isElement(h)&&na(h.type).endsWith("Chart");return K.Children.map(h,(function(t){return Mo.isElement(t)?at(t,Wd({width:n,height:i},o?{style:Wd({height:"100%",width:"100%",maxHeight:i,maxWidth:n},t.props.style)}:{})):t}))}),[r,h,l,p,f,s,j,a]);return K.createElement("div",{id:v?"".concat(v):void 0,className:Ur("recharts-responsive-container",m),style:Wd(Wd({},w),{},{width:a,height:l,minWidth:s,minHeight:f,maxHeight:p}),ref:x},M)})),Gd=function(t){return null};function Zd(t){return Zd="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},Zd(t)}function Jd(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 Qd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jd(Object(r),!0).forEach((function(e){ty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ty(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Zd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zd(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Gd.displayName="Cell";var ey={widthCache:{},cacheCount:0},ry={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ny="recharts_measurement_span";var iy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||cd.isSsr)return{width:0,height:0};var r,n=(r=Qd({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),i=JSON.stringify({text:t,copyStyle:n});if(ey.widthCache[i])return ey.widthCache[i];try{var o=document.getElementById(ny);o||((o=document.createElement("span")).setAttribute("id",ny),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Qd(Qd({},ry),n);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),l={width:c.width,height:c.height};return ey.widthCache[i]=l,++ey.cacheCount>2e3&&(ey.cacheCount=0,ey.widthCache={}),l}catch(t){return{width:0,height:0}}};function oy(t){return oy="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},oy(t)}function ay(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return cy(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 cy(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 cy(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 ly(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,uy(n.key),n)}}function uy(t){var e=function(t,e){if("object"!=oy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=oy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==oy(e)?e:String(e)}var sy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,py=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,hy=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,dy={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},yy=Object.keys(dy),vy="NaN";var my=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||py.test(r)||(this.num=NaN,this.unit=""),yy.includes(r)&&(this.num=function(t,e){return t*dy[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=ay(null!==(r=hy.exec(e))&&void 0!==r?r:[],3),i=n[1],o=n[2];return new t(parseFloat(i),null!=o?o:"")}}],(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)}}])&&ly(e.prototype,r),n&&ly(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function gy(t){if(t.includes(vy))return vy;for(var e=t;e.includes("*")||e.includes("/");){var r,n=ay(null!==(r=sy.exec(e))&&void 0!==r?r:[],4),i=n[1],o=n[2],a=n[3],c=my.parse(null!=i?i:""),l=my.parse(null!=a?a:""),u="*"===o?c.multiply(l):c.divide(l);if(u.isNaN())return vy;e=e.replace(sy,u.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=ay(null!==(s=fy.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=my.parse(null!=p?p:""),v=my.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return vy;e=e.replace(fy,m.toString())}return e}var by=/\(([^()]*)\)/;function wy(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=ay(by.exec(e),2)[1];e=e.replace(by,gy(r))}return e}(e),e=gy(e)}function xy(t){var e=function(t){try{return wy(t)}catch(t){return vy}}(t.slice(5,-1));return e===vy?"":e}var Oy=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Sy=["dx","dy","angle","className","breakAll"];function jy(){return jy=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},jy.apply(this,arguments)}function Ay(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Py(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return My(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 My(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 My(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 Ey=/[ \f\n\r\t\v\u2028\u2029]+/,ky=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var i=[];return mo(e)||(i=r?e.toString().split(""):e.toString().split(Ey)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:iy(t,n).width}})),spaceWidth:r?0:iy(" ",n).width}}catch(t){return null}},_y=function(t){return[{words:mo(t)?[]:t.toString().split(Ey)}]},Ty=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||r)&&!cd.isSsr){var c=ky({breakAll:o,children:n,style:i});return c?function(t,e,r,n,i){var o=t.maxLines,a=t.children,c=t.style,l=t.breakAll,u=Bo(o),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||i||c.width+a+r<Number(n)))c.words.push(o),c.width+=a+r;else{var l={words:[o],width:a};t.push(l)}return t}),[])},p=f(e);if(!u)return p;for(var h,d=function(t){var e=s.slice(0,t),r=ky({breakAll:l,style:c,children:e+"…"}).wordsWithComputedWidth,i=f(r),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(n);return[a,i]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var g=Math.floor((y+v)/2),b=Py(d(g-1),2),w=b[0],x=b[1],O=Py(d(g),1)[0];if(w||O||(y=g+1),w&&O&&(v=g-1),!w&&O){h=x;break}m++}return h||p}({breakAll:o,children:n,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,r):_y(n)}return _y(n)},Cy="#808080",Dy=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.lineHeight,a=void 0===o?"1em":o,c=t.capHeight,l=void 0===c?"0.71em":c,u=t.scaleToFit,s=void 0!==u&&u,f=t.textAnchor,p=void 0===f?"start":f,h=t.verticalAnchor,d=void 0===h?"end":h,y=t.fill,v=void 0===y?Cy:y,m=Ay(t,Oy),g=ot((function(){return Ty({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),b=m.dx,w=m.dy,x=m.angle,O=m.className,S=m.breakAll,j=Ay(m,Sy);if(!Lo(r)||!Lo(i))return null;var A,P=r+(Bo(b)?b:0),M=i+(Bo(w)?w:0);switch(d){case"start":A=xy("calc(".concat(l,")"));break;case"middle":A=xy("calc(".concat((g.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:A=xy("calc(".concat(g.length-1," * -").concat(a,")"))}var E=[];if(s){var k=g[0].width,_=m.width;E.push("scale(".concat((Bo(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(P,", ").concat(M,")")),E.length&&(j.transform=E.join(" ")),K.createElement("text",jy({},pa(j,!0),{x:P,y:M,className:Ur("recharts-text",O),textAnchor:p,fill:v.includes("url")?Cy:v}),g.map((function(t,e){var r=t.words.join(S?"":" ");return K.createElement("tspan",{x:P,dy:0===e?A:a,key:r},r)})))};function Iy(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ny(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function By(t){let e,r,n;function i(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Iy,r=(e,r)=>Iy(t(e),r),n=(e,r)=>t(e)-r):(e=t===Iy||t===Ny?t:Ly,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){const a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<=0?i=e+1:o=e}while(i<o)}return i}}}function Ly(){return 0}function Ry(t){return null===t?NaN:+t}const $y=By(Iy).right;By(Ry).center;class zy extends Map{constructor(t,e=Vy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(Hy(this,t))}has(t){return super.has(Hy(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 Hy({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function Vy(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Uy(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const Fy=Math.sqrt(50),Wy=Math.sqrt(10),qy=Math.sqrt(2);function Xy(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=Fy?10:o>=Wy?5:o>=qy?2:1;let c,l,u;return i<0?(u=Math.pow(10,-i)/a,c=Math.round(t*u),l=Math.round(e*u),c/u<t&&++c,l/u>e&&--l,u=-u):(u=Math.pow(10,i)*a,c=Math.round(t/u),l=Math.round(e/u),c*u<t&&++c,l*u>e&&--l),l<c&&.5<=r&&r<2?Xy(t,e,2*r):[c,l,u]}function Yy(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[i,o,a]=n?Xy(e,t,r):Xy(t,e,r);if(!(o>=i))return[];const c=o-i+1,l=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)l[t]=(o-t)/-a;else for(let t=0;t<c;++t)l[t]=(o-t)*a;else if(a<0)for(let t=0;t<c;++t)l[t]=(i+t)/-a;else for(let t=0;t<c;++t)l[t]=(i+t)*a;return l}function Ky(t,e,r){return Xy(t=+t,e=+e,r=+r)[2]}function Gy(t,e,r){r=+r;const n=(e=+e)<(t=+t),i=n?Ky(e,t,r):Ky(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function Zy(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function Jy(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function Qy(t,e,r=0,n=1/0,i){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(i=void 0===i?Uy:function(t=Iy){if(t===Iy)return Uy;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))}}(i);n>r;){if(n-r>600){const o=n-r+1,a=e-r+1,c=Math.log(o),l=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*l*(o-l)/o)*(a-o/2<0?-1:1);Qy(t,e,Math.max(r,Math.floor(e-a*l/o+u)),Math.min(n,Math.floor(e+(o-a)*l/o+u)),i)}const o=t[e];let a=r,c=n;for(tv(t,r,e),i(t[n],o)>0&&tv(t,r,n);a<c;){for(tv(t,a,c),++a,--c;i(t[a],o)<0;)++a;for(;i(t[c],o)>0;)--c}0===i(t[r],o)?tv(t,r,c):(++c,tv(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function tv(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ev(t,e,r=Ry){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,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(+r(t[o+1],o+1,t)-a)*(i-o)}}function rv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function nv(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 iv=Symbol("implicit");function ov(){var t=new zy,e=[],r=[],n=iv;function i(i){let o=t.get(i);if(void 0===o){if(n!==iv)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new zy;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return ov(e,r).unknown(n)},rv.apply(i,arguments),i}function av(){var t,e,r=ov().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,c=!1,l=0,u=0,s=.5;function f(){var r=n().length,f=a<o,p=f?a:o,h=f?o:a;t=(h-p)/Math.max(1,r-l+2*u),c&&(t=Math.floor(t)),p+=(h-p-t*(r-l))*s,e=t*(1-l),c&&(p=Math.round(p),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),o=new Array(i);++n<i;)o[n]=t+n*r;return o}(r).map((function(e){return p+t*e}));return i(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?([o,a]=t,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(l=Math.min(1,u=+t),f()):l},r.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),f()):l},r.paddingOuter=function(t){return arguments.length?(u=+t,f()):u},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return av(n(),[o,a]).round(c).paddingInner(l).paddingOuter(u).align(s)},rv.apply(f(),arguments)}function cv(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return cv(e())},t}function lv(){return cv(av.apply(null,arguments).paddingInner(1))}function uv(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function sv(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function fv(){}var pv=.7,hv=1/pv,dv="\\s*([+-]?\\d+)\\s*",yv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mv=/^#([0-9a-f]{3,8})$/,gv=new RegExp(`^rgb\\(${dv},${dv},${dv}\\)$`),bv=new RegExp(`^rgb\\(${vv},${vv},${vv}\\)$`),wv=new RegExp(`^rgba\\(${dv},${dv},${dv},${yv}\\)$`),xv=new RegExp(`^rgba\\(${vv},${vv},${vv},${yv}\\)$`),Ov=new RegExp(`^hsl\\(${yv},${vv},${vv}\\)$`),Sv=new RegExp(`^hsla\\(${yv},${vv},${vv},${yv}\\)$`),jv={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 Av(){return this.rgb().formatHex()}function Pv(){return this.rgb().formatRgb()}function Mv(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=mv.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Ev(e):3===r?new Tv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?kv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?kv(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=gv.exec(t))?new Tv(e[1],e[2],e[3],1):(e=bv.exec(t))?new Tv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=wv.exec(t))?kv(e[1],e[2],e[3],e[4]):(e=xv.exec(t))?kv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ov.exec(t))?Lv(e[1],e[2]/100,e[3]/100,1):(e=Sv.exec(t))?Lv(e[1],e[2]/100,e[3]/100,e[4]):jv.hasOwnProperty(t)?Ev(jv[t]):"transparent"===t?new Tv(NaN,NaN,NaN,0):null}function Ev(t){return new Tv(t>>16&255,t>>8&255,255&t,1)}function kv(t,e,r,n){return n<=0&&(t=e=r=NaN),new Tv(t,e,r,n)}function _v(t,e,r,n){return 1===arguments.length?((i=t)instanceof fv||(i=Mv(i)),i?new Tv((i=i.rgb()).r,i.g,i.b,i.opacity):new Tv):new Tv(t,e,r,null==n?1:n);var i}function Tv(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Cv(){return`#${Bv(this.r)}${Bv(this.g)}${Bv(this.b)}`}function Dv(){const t=Iv(this.opacity);return`${1===t?"rgb(":"rgba("}${Nv(this.r)}, ${Nv(this.g)}, ${Nv(this.b)}${1===t?")":`, ${t})`}`}function Iv(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Nv(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Bv(t){return((t=Nv(t))<16?"0":"")+t.toString(16)}function Lv(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new $v(t,e,r,n)}function Rv(t){if(t instanceof $v)return new $v(t.h,t.s,t.l,t.opacity);if(t instanceof fv||(t=Mv(t)),!t)return new $v;if(t instanceof $v)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),a=NaN,c=o-i,l=(o+i)/2;return c?(a=e===o?(r-n)/c+6*(r<n):r===o?(n-e)/c+2:(e-r)/c+4,c/=l<.5?o+i:2-o-i,a*=60):c=l>0&&l<1?0:a,new $v(a,c,l,t.opacity)}function $v(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function zv(t){return(t=(t||0)%360)<0?t+360:t}function Hv(t){return Math.max(0,Math.min(1,t||0))}function Vv(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}uv(fv,Mv,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Av,formatHex:Av,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Rv(this).formatHsl()},formatRgb:Pv,toString:Pv}),uv(Tv,_v,sv(fv,{brighter(t){return t=null==t?hv:Math.pow(hv,t),new Tv(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?pv:Math.pow(pv,t),new Tv(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Tv(Nv(this.r),Nv(this.g),Nv(this.b),Iv(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:Cv,formatHex:Cv,formatHex8:function(){return`#${Bv(this.r)}${Bv(this.g)}${Bv(this.b)}${Bv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Dv,toString:Dv})),uv($v,(function(t,e,r,n){return 1===arguments.length?Rv(t):new $v(t,e,r,null==n?1:n)}),sv(fv,{brighter(t){return t=null==t?hv:Math.pow(hv,t),new $v(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?pv:Math.pow(pv,t),new $v(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,i=2*r-n;return new Tv(Vv(t>=240?t-240:t+120,i,n),Vv(t,i,n),Vv(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new $v(zv(this.h),Hv(this.s),Hv(this.l),Iv(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=Iv(this.opacity);return`${1===t?"hsl(":"hsla("}${zv(this.h)}, ${100*Hv(this.s)}%, ${100*Hv(this.l)}%${1===t?")":`, ${t})`}`}}));var Uv=t=>()=>t;function Fv(t){return 1==(t=+t)?Wv: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):Uv(isNaN(e)?r:e)}}function Wv(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):Uv(isNaN(t)?e:t)}var qv=function t(e){var r=Fv(e);function n(t,e){var n=r((t=_v(t)).r,(e=_v(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=Wv(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Xv(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function Yv(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=em(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<i;++r)a[r]=o[r](t);return a}}function Kv(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Gv(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Zv(t,e){var r,n={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=em(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var Jv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qv=new RegExp(Jv.source,"g");function tm(t,e){var r,n,i,o=Jv.lastIndex=Qv.lastIndex=0,a=-1,c=[],l=[];for(t+="",e+="";(r=Jv.exec(t))&&(n=Qv.exec(e));)(i=n.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,l.push({i:a,x:Gv(r,n)})),o=Qv.lastIndex;return o<e.length&&(i=e.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n<e;++n)c[(r=l[n]).i]=r.x(t);return c.join("")})}function em(t,e){var r,n=typeof e;return null==e||"boolean"===n?Uv(e):("number"===n?Gv:"string"===n?(r=Mv(e))?(e=r,qv):tm:e instanceof Mv?qv:e instanceof Date?Kv:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Xv:Array.isArray(e)?Yv:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Zv:Gv)(t,e)}function rm(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function nm(t,e){void 0===e&&(e=t,t=em);for(var r=0,n=e.length-1,i=e[0],o=new Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return o[e](t-e)}}function im(t){return+t}var om=[0,1];function am(t){return t}function cm(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function lm(t,e,r){var n=t[0],i=t[1],o=e[0],a=e[1];return i<n?(n=cm(i,n),o=r(a,o)):(n=cm(n,i),o=r(o,a)),function(t){return o(n(t))}}function um(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),o=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=cm(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=$y(t,e,1,n)-1;return o[r](i[r](e))}}function sm(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function fm(){var t,e,r,n,i,o,a=om,c=om,l=em,u=am;function s(){var t=Math.min(a.length,c.length);return u!==am&&(u=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?um:lm,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?r:(i||(i=n(a.map(t),c,l)))(t(u(e)))}return f.invert=function(r){return u(e((o||(o=n(c,a.map(t),Gv)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,im),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),l=rm,s()},f.clamp=function(t){return arguments.length?(u=!!t||am,s()):u!==am},f.interpolate=function(t){return arguments.length?(l=t,s()):l},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function pm(){return fm()(am,am)}function hm(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 dm(t){return(t=hm(Math.abs(t)))?t[1]:NaN}var ym,vm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mm(t){if(!(e=vm.exec(t)))throw new Error("invalid format: "+t);var e;return new gm({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 gm(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 bm(t,e){var r=hm(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}mm.prototype=gm.prototype,gm.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};var wm={"%":(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)=>bm(100*t,e),r:bm,s:function(t,e){var r=hm(t,e);if(!r)return t+"";var n=r[0],i=r[1],o=i-(ym=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+hm(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function xm(t){return t}var Om,Sm,jm,Am=Array.prototype.map,Pm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mm(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?xm:(e=Am.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,o=[],a=0,c=e[0],l=0;i>0&&c>0&&(l+c+1>n&&(c=Math.max(1,n-l)),o.push(t.substring(i-=c,i+c)),!((l+=c+1)>n));)c=e[a=(a+1)%e.length];return o.reverse().join(r)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?xm:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Am.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=mm(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,g=t.type;"n"===g?(y=!0,g="g"):wm[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===p?o:/[%p]/.test(g)?l:"",x=wm[g],O=/[defgprs%]/.test(g);function S(t){var i,o,l,p=b,S=w;if("c"===g)S=x(t)+S,t="";else{var j=(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,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:u:"-"===f||"("===f?"":f)+p,S=("s"===g?Pm[8+ym/3]:"")+S+(j&&"("===f?")":""),O)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){S=(46===l?a+t.slice(i+1):t.slice(i))+S,t=t.slice(0,i);break}}y&&!h&&(t=n(t,1/0));var A=p.length+t.length+S.length,P=A<d?new Array(d-A+1).join(e):"";switch(y&&h&&(t=n(P+t,P.length?d-S.length:1/0),P=""),r){case"<":t=p+t+S+P;break;case"=":t=p+P+t+S;break;case"^":t=P.slice(0,A=P.length>>1)+p+t+S+P.slice(A);break;default:t=P+p+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=mm(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(dm(e)/3))),i=Math.pow(10,-n),o=Pm[8+n/3];return function(t){return r(i*t)+o}}}}function Em(t,e,r,n){var i,o=Gy(t,e,r);switch((n=mm(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(dm(e)/3)))-dm(Math.abs(t)))}(o,a))||(n.precision=i),jm(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,dm(e)-dm(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(t){return Math.max(0,-dm(Math.abs(t)))}(o))||(n.precision=i-2*("%"===n.type))}return Sm(n)}function km(t){var e=t.domain;return t.ticks=function(t){var r=e();return Yy(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Em(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,o=e(),a=0,c=o.length-1,l=o[a],u=o[c],s=10;for(u<l&&(i=l,l=u,u=i,i=a,a=c,c=i);s-- >0;){if((i=Ky(l,u,r))===n)return o[a]=l,o[c]=u,e(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}n=i}return t},t}function _m(){var t=pm();return t.copy=function(){return sm(t,_m())},rv.apply(t,arguments),km(t)}function Tm(t,e){var r,n=0,i=(t=t.slice()).length-1,o=t[n],a=t[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),t[n]=e.floor(o),t[i]=e.ceil(a),t}function Cm(t){return Math.log(t)}function Dm(t){return Math.exp(t)}function Im(t){return-Math.log(-t)}function Nm(t){return-Math.exp(-t)}function Bm(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Lm(t){return(e,r)=>-t(-e,r)}function Rm(t){const e=t(Cm,Dm),r=e.domain;let n,i,o=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)}(o),i=function(t){return 10===t?Bm:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),r()[0]<0?(n=Lm(n),i=Lm(i),t(Im,Nm)):t(Cm,Dm),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const l=c<a;l&&([a,c]=[c,a]);let u,s,f=n(a),p=n(c);const h=null==t?10:+t;let d=[];if(!(o%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(u=1;u<o;++u)if(s=f<0?u/i(-f):u*i(f),!(s<a)){if(s>c)break;d.push(s)}}else for(;f<=p;++f)for(u=o-1;u>=1;--u)if(s=f>0?u/i(-f):u*i(f),!(s<a)){if(s>c)break;d.push(s)}2*d.length<h&&(d=Yy(a,c,h))}else d=Yy(f,p,Math.min(p-f,h)).map(i);return l?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=mm(r)).precision||(r.trim=!0),r=Sm(r)),t===1/0)return r;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(n(t)));return e*o<o-.5&&(e*=o),e<=a?r(t):""}},e.nice=()=>r(Tm(r(),{floor:t=>i(Math.floor(n(t))),ceil:t=>i(Math.ceil(n(t)))})),e}function $m(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function zm(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Hm(t){var e=1,r=t($m(e),zm(e));return r.constant=function(r){return arguments.length?t($m(e=+r),zm(e)):e},km(r)}function Vm(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Um(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Fm(t){return t<0?-t*t:t*t}function Wm(t){var e=t(am,am),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(am,am):.5===r?t(Um,Fm):t(Vm(r),Vm(1/r)):r},km(e)}function qm(){var t=Wm(fm());return t.copy=function(){return sm(t,qm()).exponent(t.exponent())},rv.apply(t,arguments),t}function Xm(t){return Math.sign(t)*t*t}Om=Mm({thousands:",",grouping:[3],currency:["$",""]}),Sm=Om.format,jm=Om.formatPrefix;const Ym=new Date,Km=new Date;function Gm(t,e,r,n){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{const e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{const a=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return a;let c;do{a.push(c=new Date(+r)),e(r,o),t(r)}while(c<r&&r<n);return a},i.filter=r=>Gm((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&&(i.count=(e,n)=>(Ym.setTime(+e),Km.setTime(+n),t(Ym),t(Km),Math.floor(r(Ym,Km))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Zm=Gm((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Zm.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Gm((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):Zm:null),Zm.range;const Jm=1e3,Qm=6e4,tg=36e5,eg=864e5,rg=6048e5,ng=2592e6,ig=31536e6,og=Gm((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Jm)}),((t,e)=>(e-t)/Jm),(t=>t.getUTCSeconds()));og.range;const ag=Gm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jm)}),((t,e)=>{t.setTime(+t+e*Qm)}),((t,e)=>(e-t)/Qm),(t=>t.getMinutes()));ag.range;const cg=Gm((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Qm)}),((t,e)=>(e-t)/Qm),(t=>t.getUTCMinutes()));cg.range;const lg=Gm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jm-t.getMinutes()*Qm)}),((t,e)=>{t.setTime(+t+e*tg)}),((t,e)=>(e-t)/tg),(t=>t.getHours()));lg.range;const ug=Gm((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*tg)}),((t,e)=>(e-t)/tg),(t=>t.getUTCHours()));ug.range;const sg=Gm((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Qm)/eg),(t=>t.getDate()-1));sg.range;const fg=Gm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/eg),(t=>t.getUTCDate()-1));fg.range;const pg=Gm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/eg),(t=>Math.floor(t/eg)));function hg(t){return Gm((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())*Qm)/rg))}pg.range;const dg=hg(0),yg=hg(1),vg=hg(2),mg=hg(3),gg=hg(4),bg=hg(5),wg=hg(6);function xg(t){return Gm((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)/rg))}dg.range,yg.range,vg.range,mg.range,gg.range,bg.range,wg.range;const Og=xg(0),Sg=xg(1),jg=xg(2),Ag=xg(3),Pg=xg(4),Mg=xg(5),Eg=xg(6);Og.range,Sg.range,jg.range,Ag.range,Pg.range,Mg.range,Eg.range;const kg=Gm((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()));kg.range;const _g=Gm((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()));_g.range;const Tg=Gm((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()));Tg.every=t=>isFinite(t=Math.floor(t))&&t>0?Gm((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,Tg.range;const Cg=Gm((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 Dg(t,e,r,n,i,o){const a=[[og,1,Jm],[og,5,5e3],[og,15,15e3],[og,30,3e4],[o,1,Qm],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,tg],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,eg],[n,2,1728e5],[r,1,rg],[e,1,ng],[e,3,7776e6],[t,1,ig]];function c(e,r,n){const i=Math.abs(r-e)/n,o=By((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Gy(e/ig,r/ig,n));if(0===o)return Zm.every(Math.max(Gy(e,r,n),1));const[c,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(l)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const i=r&&"function"==typeof r.range?r:c(t,e,r),o=i?i.range(t,+e+1):[];return n?o.reverse():o},c]}Cg.every=t=>isFinite(t=Math.floor(t))&&t>0?Gm((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,Cg.range;const[Ig,Ng]=Dg(Cg,_g,Og,pg,ug,cg),[Bg,Lg]=Dg(Tg,kg,dg,sg,lg,ag);function Rg(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 $g(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 zg(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Hg,Vg,Ug,Fg={"-":"",_:" ",0:"0"},Wg=/^\s*\d+/,qg=/^%/,Xg=/[\\^$*+?|[\]().{}]/g;function Yg(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(e)+i:i)}function Kg(t){return t.replace(Xg,"\\$&")}function Gg(t){return new RegExp("^(?:"+t.map(Kg).join("|")+")","i")}function Zg(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Jg(t,e,r){var n=Wg.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Qg(t,e,r){var n=Wg.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function tb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function rb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function nb(t,e,r){var n=Wg.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function ib(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function ob(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 ab(t,e,r){var n=Wg.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function cb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function lb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ub(t,e,r){var n=Wg.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function sb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function fb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function pb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function hb(t,e,r){var n=Wg.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function db(t,e,r){var n=Wg.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function yb(t,e,r){var n=qg.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function vb(t,e,r){var n=Wg.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function mb(t,e,r){var n=Wg.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function gb(t,e){return Yg(t.getDate(),e,2)}function bb(t,e){return Yg(t.getHours(),e,2)}function wb(t,e){return Yg(t.getHours()%12||12,e,2)}function xb(t,e){return Yg(1+sg.count(Tg(t),t),e,3)}function Ob(t,e){return Yg(t.getMilliseconds(),e,3)}function Sb(t,e){return Ob(t,e)+"000"}function jb(t,e){return Yg(t.getMonth()+1,e,2)}function Ab(t,e){return Yg(t.getMinutes(),e,2)}function Pb(t,e){return Yg(t.getSeconds(),e,2)}function Mb(t){var e=t.getDay();return 0===e?7:e}function Eb(t,e){return Yg(dg.count(Tg(t)-1,t),e,2)}function kb(t){var e=t.getDay();return e>=4||0===e?gg(t):gg.ceil(t)}function _b(t,e){return t=kb(t),Yg(gg.count(Tg(t),t)+(4===Tg(t).getDay()),e,2)}function Tb(t){return t.getDay()}function Cb(t,e){return Yg(yg.count(Tg(t)-1,t),e,2)}function Db(t,e){return Yg(t.getFullYear()%100,e,2)}function Ib(t,e){return Yg((t=kb(t)).getFullYear()%100,e,2)}function Nb(t,e){return Yg(t.getFullYear()%1e4,e,4)}function Bb(t,e){var r=t.getDay();return Yg((t=r>=4||0===r?gg(t):gg.ceil(t)).getFullYear()%1e4,e,4)}function Lb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Yg(e/60|0,"0",2)+Yg(e%60,"0",2)}function Rb(t,e){return Yg(t.getUTCDate(),e,2)}function $b(t,e){return Yg(t.getUTCHours(),e,2)}function zb(t,e){return Yg(t.getUTCHours()%12||12,e,2)}function Hb(t,e){return Yg(1+fg.count(Cg(t),t),e,3)}function Vb(t,e){return Yg(t.getUTCMilliseconds(),e,3)}function Ub(t,e){return Vb(t,e)+"000"}function Fb(t,e){return Yg(t.getUTCMonth()+1,e,2)}function Wb(t,e){return Yg(t.getUTCMinutes(),e,2)}function qb(t,e){return Yg(t.getUTCSeconds(),e,2)}function Xb(t){var e=t.getUTCDay();return 0===e?7:e}function Yb(t,e){return Yg(Og.count(Cg(t)-1,t),e,2)}function Kb(t){var e=t.getUTCDay();return e>=4||0===e?Pg(t):Pg.ceil(t)}function Gb(t,e){return t=Kb(t),Yg(Pg.count(Cg(t),t)+(4===Cg(t).getUTCDay()),e,2)}function Zb(t){return t.getUTCDay()}function Jb(t,e){return Yg(Sg.count(Cg(t)-1,t),e,2)}function Qb(t,e){return Yg(t.getUTCFullYear()%100,e,2)}function tw(t,e){return Yg((t=Kb(t)).getUTCFullYear()%100,e,2)}function ew(t,e){return Yg(t.getUTCFullYear()%1e4,e,4)}function rw(t,e){var r=t.getUTCDay();return Yg((t=r>=4||0===r?Pg(t):Pg.ceil(t)).getUTCFullYear()%1e4,e,4)}function nw(){return"+0000"}function iw(){return"%"}function ow(t){return+t}function aw(t){return Math.floor(+t/1e3)}function cw(t){return new Date(t)}function lw(t){return t instanceof Date?+t:+new Date(+t)}function uw(t,e,r,n,i,o,a,c,l,u){var s=pm(),f=s.invert,p=s.domain,h=u(".%L"),d=u(":%S"),y=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),g=u("%b %d"),b=u("%B"),w=u("%Y");function x(t){return(l(t)<t?h:c(t)<t?d:a(t)<t?y:o(t)<t?v:n(t)<t?i(t)<t?m:g:r(t)<t?b:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,lw)):p().map(cw)},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:u(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(Tm(r,t)):s},s.copy=function(){return sm(s,uw(t,e,r,n,i,o,a,c,l,u))},s}function sw(){var t,e,r,n,i,o=0,a=1,c=am,l=!1;function u(e){return null==e||isNaN(e=+e)?i:c(0===r?.5:(e=(n(e)-t)*r,l?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),u):[c(0),c(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,t=n(o=+o),e=n(a=+a),r=t===e?0:1/(e-t),u):[o,a]},u.clamp=function(t){return arguments.length?(l=!!t,u):l},u.interpolator=function(t){return arguments.length?(c=t,u):c},u.range=s(em),u.rangeRound=s(rm),u.unknown=function(t){return arguments.length?(i=t,u):i},function(i){return n=i,t=i(o),e=i(a),r=t===e?0:1/(e-t),u}}function fw(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function pw(){var t=Wm(sw());return t.copy=function(){return fw(t,pw()).exponent(t.exponent())},nv.apply(t,arguments)}function hw(){var t,e,r,n,i,o,a,c=0,l=.5,u=1,s=1,f=am,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?n:i),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=nm(t,[r,n,i]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,l,u]=a,t=o(c=+c),e=o(l=+l),r=o(u=+u),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,l,u]},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(em),h.rangeRound=d(rm),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return o=a,t=a(c),e=a(l),r=a(u),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function dw(){var t=Wm(hw());return t.copy=function(){return fw(t,dw()).exponent(t.exponent())},nv.apply(t,arguments)}!function(t){Hg=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,l=t.shortMonths,u=Gg(i),s=Zg(i),f=Gg(o),p=Zg(o),h=Gg(a),d=Zg(a),y=Gg(c),v=Zg(c),m=Gg(l),g=Zg(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:gb,e:gb,f:Sb,g:Ib,G:Bb,H:bb,I:wb,j:xb,L:Ob,m:jb,M:Ab,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ow,s:aw,S:Pb,u:Mb,U:Eb,V:_b,w:Tb,W:Cb,x:null,X:null,y:Db,Y:Nb,Z:Lb,"%":iw},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:Rb,e:Rb,f:Ub,g:tw,G:rw,H:$b,I:zb,j:Hb,L:Vb,m:Fb,M:Wb,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ow,s:aw,S:qb,u:Xb,U:Yb,V:Gb,w:Zb,W:Jb,x:null,X:null,y:Qb,Y:ew,Z:nw,"%":iw},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=g.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 j(t,e,r,n)},d:lb,e:lb,f:db,g:ib,G:nb,H:sb,I:sb,j:ub,L:hb,m:cb,M:fb,p:function(t,e,r){var n=u.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:ab,Q:vb,s:mb,S:pb,u:Qg,U:tb,V:eb,w:Jg,W:rb,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:ib,Y:nb,Z:ob,"%":yb};function O(t,e){return function(r){var n,i,o,a=[],c=-1,l=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++c<u;)37===t.charCodeAt(c)&&(a.push(t.slice(l,c)),null!=(i=Fg[n=t.charAt(++c)])?n=t.charAt(++c):i="e"===n?" ":"0",(o=e[n])&&(n=o(r,i)),a.push(n),l=c+1);return a.push(t.slice(l,c)),a.join("")}}function S(t,e){return function(r){var n,i,o=zg(1900,void 0,1);if(j(o,t,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=$g(zg(o.y,0,1))).getUTCDay(),n=i>4||0===i?Sg.ceil(n):Sg(n),n=fg.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=Rg(zg(o.y,0,1))).getDay(),n=i>4||0===i?yg.ceil(n):yg(n),n=sg.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?$g(zg(o.y,0,1)).getUTCDay():Rg(zg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,$g(o)):Rg(o)}}function j(t,e,r,n){for(var i,o,a=0,c=e.length,l=r.length;a<c;){if(n>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in Fg?e.charAt(a++):i])||(n=o(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(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=S(t+="",!0);return e.toString=function(){return t},e}}}(t),Vg=Hg.format,Hg.parse,Ug=Hg.utcFormat,Hg.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"]});var yw=Object.freeze({__proto__:null,scaleBand:av,scaleDiverging:function t(){var e=km(hw()(am));return e.copy=function(){return fw(e,t())},nv.apply(e,arguments)},scaleDivergingLog:function t(){var e=Rm(hw()).domain([.1,1,10]);return e.copy=function(){return fw(e,t()).base(e.base())},nv.apply(e,arguments)},scaleDivergingPow:dw,scaleDivergingSqrt:function(){return dw.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=Hm(hw());return e.copy=function(){return fw(e,t()).constant(e.constant())},nv.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,im),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,im):[0,1],km(n)},scaleImplicit:iv,scaleLinear:_m,scaleLog:function t(){const e=Rm(fm()).domain([1,10]);return e.copy=()=>sm(e,t()).base(e.base()),rv.apply(e,arguments),e},scaleOrdinal:ov,scalePoint:lv,scalePow:qm,scaleQuantile:function t(){var e,r=[],n=[],i=[];function o(){var t=0,e=Math.max(1,n.length);for(i=new Array(e-1);++t<e;)i[t-1]=ev(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[$y(i,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[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(Iy),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},rv.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,i=1,o=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[$y(o,t,0,i)]:e}function l(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*n-(t-i)*r)/(i+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,l()):[r,n]},c.range=function(t){return arguments.length?(i=(a=Array.from(t)).length-1,l()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,o[0]]:e>=i?[o[i-1],n]:[o[e-1],o[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},rv.apply(km(c),arguments)},scaleRadial:function t(){var e,r=pm(),n=[0,1],i=!1;function o(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:i?Math.round(n):n}return o.invert=function(t){return r.invert(Xm(t))},o.domain=function(t){return arguments.length?(r.domain(t),o):r.domain()},o.range=function(t){return arguments.length?(r.range((n=Array.from(t,im)).map(Xm)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(r.clamp(t),o):r.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(r.domain(),n).round(i).clamp(r.clamp()).unknown(e)},rv.apply(o,arguments),km(o)},scaleSequential:function t(){var e=km(sw()(am));return e.copy=function(){return fw(e,t())},nv.apply(e,arguments)},scaleSequentialLog:function t(){var e=Rm(sw()).domain([1,10]);return e.copy=function(){return fw(e,t()).base(e.base())},nv.apply(e,arguments)},scaleSequentialPow:pw,scaleSequentialQuantile:function t(){var e=[],r=am;function n(t){if(null!=t&&!isNaN(t=+t))return r(($y(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(Iy),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 e of t)null!=e&&(e=+e)>=e&&(yield e);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 Jy(t);if(e>=1)return Zy(t);var n,i=(n-1)*e,o=Math.floor(i),a=Zy(Qy(t,o).subarray(0,o+1));return a+(Jy(t.subarray(o+1))-a)*(i-o)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},nv.apply(n,arguments)},scaleSequentialSqrt:function(){return pw.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=Hm(sw());return e.copy=function(){return fw(e,t()).constant(e.constant())},nv.apply(e,arguments)},scaleSqrt:function(){return qm.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=Hm(fm());return e.copy=function(){return sm(e,t()).constant(e.constant())},rv.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],i=1;function o(t){return null!=t&&t<=t?n[$y(r,t,0,i)]:e}return o.domain=function(t){return arguments.length?(r=Array.from(t),i=Math.min(r.length,n.length-1),o):r.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(r).range(n).unknown(e)},rv.apply(o,arguments)},scaleTime:function(){return rv.apply(uw(Bg,Lg,Tg,kg,dg,sg,lg,ag,og,Vg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return rv.apply(uw(Ig,Ng,Cg,_g,Og,fg,ug,cg,og,Ug).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Em}),vw=fn;var mw=function(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===c?a==a&&!vw(a):r(a,c)))var c=a,l=o}return l};var gw=mw,bw=function(t,e){return t>e},ww=Bf;var xw=function(t){return t&&t.length?gw(t,ww,bw):void 0},Ow=nr(xw);var Sw=mw,jw=function(t,e){return t<e},Aw=Bf;var Pw=function(t){return t&&t.length?Sw(t,Aw,jw):void 0},Mw=nr(Pw),Ew=Yi,kw=Kf,_w=Kp,Tw=Fr;var Cw=zp,Dw=function(t,e){return(Tw(t)?Ew:_w)(t,kw(e))};var Iw=nr((function(t,e){return Cw(Dw(t,e),1)})),Nw=rf;var Bw,Lw=nr((function(t,e){return Nw(t,e)})),Rw=1e9,$w=!0,zw="[DecimalError] ",Hw=zw+"Invalid argument: ",Vw=zw+"Exponent out of range: ",Uw=Math.floor,Fw=Math.pow,Ww=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qw=1e7,Xw=7,Yw=9007199254740991,Kw=Uw(Yw/Xw),Gw={};function Zw(t,e){var r,n,i,o,a,c,l,u,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),$w?cx(e,f):e;if(l=t.d,u=e.d,a=t.e,i=e.e,l=l.slice(),o=a-i){for(o<0?(n=l,o=-o,c=u.length):(n=u,i=a,c=l.length),o>(c=(a=Math.ceil(f/Xw))>c?a+1:c+1)&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((c=l.length)-(o=u.length)<0&&(o=c,n=u,u=l,l=n),r=0;o;)r=(l[--o]=l[o]+u[o]+r)/qw|0,l[o]%=qw;for(r&&(l.unshift(r),++i),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=i,$w?cx(e,f):e}function Jw(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Hw+t)}function Qw(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=Xw-n.length)&&(o+=ix(r)),o+=n;a=t[e],(r=Xw-(n=a+"").length)&&(o+=ix(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}Gw.absoluteValue=Gw.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},Gw.comparedTo=Gw.cmp=function(t){var e,r,n,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,r=(n=o.d.length)<(i=t.d.length)?n:i;e<r;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},Gw.decimalPlaces=Gw.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*Xw;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},Gw.dividedBy=Gw.div=function(t){return tx(this,new this.constructor(t))},Gw.dividedToIntegerBy=Gw.idiv=function(t){var e=this.constructor;return cx(tx(this,new e(t),0,1),e.precision)},Gw.equals=Gw.eq=function(t){return!this.cmp(t)},Gw.exponent=function(){return rx(this)},Gw.greaterThan=Gw.gt=function(t){return this.cmp(t)>0},Gw.greaterThanOrEqualTo=Gw.gte=function(t){return this.cmp(t)>=0},Gw.isInteger=Gw.isint=function(){return this.e>this.d.length-2},Gw.isNegative=Gw.isneg=function(){return this.s<0},Gw.isPositive=Gw.ispos=function(){return this.s>0},Gw.isZero=function(){return 0===this.s},Gw.lessThan=Gw.lt=function(t){return this.cmp(t)<0},Gw.lessThanOrEqualTo=Gw.lte=function(t){return this.cmp(t)<1},Gw.logarithm=Gw.log=function(t){var e,r=this,n=r.constructor,i=n.precision,o=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(Bw))throw Error(zw+"NaN");if(r.s<1)throw Error(zw+(r.s?"NaN":"-Infinity"));return r.eq(Bw)?new n(0):($w=!1,e=tx(ox(r,o),ox(t,o),o),$w=!0,cx(e,i))},Gw.minus=Gw.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?lx(e,t):Zw(e,(t.s=-t.s,t))},Gw.modulo=Gw.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(!(t=new n(t)).s)throw Error(zw+"NaN");return r.s?($w=!1,e=tx(r,t,0,1).times(t),$w=!0,r.minus(e)):cx(new n(r),i)},Gw.naturalExponential=Gw.exp=function(){return ex(this)},Gw.naturalLogarithm=Gw.ln=function(){return ox(this)},Gw.negated=Gw.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},Gw.plus=Gw.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Zw(e,t):lx(e,(t.s=-t.s,t))},Gw.precision=Gw.sd=function(t){var e,r,n,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Hw+t);if(e=rx(i)+1,r=(n=i.d.length-1)*Xw+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},Gw.squareRoot=Gw.sqrt=function(){var t,e,r,n,i,o,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(zw+"NaN")}for(t=rx(c),$w=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=Qw(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=Uw((t+1)/2)-(t<0||t%2),n=new l(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new l(i.toString()),i=a=(r=l.precision)+3;;)if(n=(o=n).plus(tx(c,o,a+2)).times(.5),Qw(o.d).slice(0,a)===(e=Qw(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(cx(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if("9999"!=e)break;a+=4}return $w=!0,cx(n,r)},Gw.times=Gw.mul=function(t){var e,r,n,i,o,a,c,l,u,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,(l=p.length)<(u=h.length)&&(o=p,p=h,h=o,a=l,l=u,u=a),o=[],n=a=l+u;n--;)o.push(0);for(n=u;--n>=0;){for(e=0,i=l+n;i>n;)c=o[i]+h[n]*p[i-n-1]+e,o[i--]=c%qw|0,e=c/qw|0;o[i]=(o[i]+e)%qw|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,$w?cx(t,f.precision):t},Gw.toDecimalPlaces=Gw.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(Jw(t,0,Rw),void 0===e?e=n.rounding:Jw(e,0,8),cx(r,t+rx(r)+1,e))},Gw.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=ux(n,!0):(Jw(t,0,Rw),void 0===e?e=i.rounding:Jw(e,0,8),r=ux(n=cx(new i(n),t+1,e),!0,t+1)),r},Gw.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?ux(i):(Jw(t,0,Rw),void 0===e?e=o.rounding:Jw(e,0,8),r=ux((n=cx(new o(i),t+rx(i)+1,e)).abs(),!1,t+rx(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},Gw.toInteger=Gw.toint=function(){var t=this,e=t.constructor;return cx(new e(t),rx(t)+1,e.rounding)},Gw.toNumber=function(){return+this},Gw.toPower=Gw.pow=function(t){var e,r,n,i,o,a,c=this,l=c.constructor,u=+(t=new l(t));if(!t.s)return new l(Bw);if(!(c=new l(c)).s){if(t.s<1)throw Error(zw+"Infinity");return c}if(c.eq(Bw))return c;if(n=l.precision,t.eq(Bw))return cx(c,n);if(a=(e=t.e)>=(r=t.d.length-1),o=c.s,a){if((r=u<0?-u:u)<=Yw){for(i=new l(Bw),e=Math.ceil(n/Xw+4),$w=!1;r%2&&sx((i=i.times(c)).d,e),0!==(r=Uw(r/2));)sx((c=c.times(c)).d,e);return $w=!0,t.s<0?new l(Bw).div(i):cx(i,n)}}else if(o<0)throw Error(zw+"NaN");return o=o<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,$w=!1,i=t.times(ox(c,n+12)),$w=!0,(i=ex(i)).s=o,i},Gw.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?n=ux(i,(r=rx(i))<=o.toExpNeg||r>=o.toExpPos):(Jw(t,1,Rw),void 0===e?e=o.rounding:Jw(e,0,8),n=ux(i=cx(new o(i),t,e),t<=(r=rx(i))||r<=o.toExpNeg,t)),n},Gw.toSignificantDigits=Gw.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(Jw(t,1,Rw),void 0===e?e=r.rounding:Jw(e,0,8)),cx(new r(this),t,e)},Gw.toString=Gw.valueOf=Gw.val=Gw.toJSON=Gw[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=rx(t),r=t.constructor;return ux(t,e<=r.toExpNeg||e>=r.toExpPos)};var tx=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%qw|0,n=r/qw|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*qw+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a){var c,l,u,s,f,p,h,d,y,v,m,g,b,w,x,O,S,j,A=n.constructor,P=n.s==i.s?1:-1,M=n.d,E=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(zw+"Division by zero");for(l=n.e-i.e,S=E.length,x=M.length,d=(h=new A(P)).d=[],u=0;E[u]==(M[u]||0);)++u;if(E[u]>(M[u]||0)&&--l,(g=null==o?o=A.precision:a?o+(rx(n)-rx(i))+1:o)<0)return new A(0);if(g=g/Xw+2|0,u=0,1==S)for(s=0,E=E[0],g++;(u<x||s)&&g--;u++)b=s*qw+(M[u]||0),d[u]=b/E|0,s=b%E|0;else{for((s=qw/(E[0]+1)|0)>1&&(E=t(E,s),M=t(M,s),S=E.length,x=M.length),w=S,v=(y=M.slice(0,S)).length;v<S;)y[v++]=0;(j=E.slice()).unshift(0),O=E[0],E[1]>=qw/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(m=y[0],S!=v&&(m=m*qw+(y[1]||0)),(s=m/O|0)>1?(s>=qw&&(s=qw-1),1==(c=e(f=t(E,s),y,p=f.length,v=y.length))&&(s--,r(f,S<p?j:E,p))):(0==s&&(c=s=1),f=E.slice()),(p=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=e(E,y,S,v=y.length))<1&&(s++,r(y,S<v?j:E,v)),v=y.length):0===c&&(s++,y=[0]),d[u++]=s,c&&y[0]?y[v++]=M[w]||0:(y=[M[w]],v=1)}while((w++<x||void 0!==y[0])&&g--)}return d[0]||d.shift(),h.e=l,cx(h,a?o+rx(h)+1:o)}}();function ex(t,e){var r,n,i,o,a,c=0,l=0,u=t.constructor,s=u.precision;if(rx(t)>16)throw Error(Vw+rx(t));if(!t.s)return new u(Bw);for(null==e?($w=!1,a=s):a=e,o=new u(.03125);t.abs().gte(.1);)t=t.times(o),l+=5;for(a+=Math.log(Fw(2,l))/Math.LN10*2+5|0,r=n=i=new u(Bw),u.precision=a;;){if(n=cx(n.times(t),a),r=r.times(++c),Qw((o=i.plus(tx(n,r,a))).d).slice(0,a)===Qw(i.d).slice(0,a)){for(;l--;)i=cx(i.times(i),a);return u.precision=s,null==e?($w=!0,cx(i,s)):i}i=o}}function rx(t){for(var e=t.e*Xw,r=t.d[0];r>=10;r/=10)e++;return e}function nx(t,e,r){if(e>t.LN10.sd())throw $w=!0,r&&(t.precision=r),Error(zw+"LN10 precision limit exceeded");return cx(new t(t.LN10),e)}function ix(t){for(var e="";t--;)e+="0";return e}function ox(t,e){var r,n,i,o,a,c,l,u,s,f=1,p=t,h=p.d,d=p.constructor,y=d.precision;if(p.s<1)throw Error(zw+(p.s?"NaN":"-Infinity"));if(p.eq(Bw))return new d(0);if(null==e?($w=!1,u=y):u=e,p.eq(10))return null==e&&($w=!0),nx(d,u);if(u+=10,d.precision=u,n=(r=Qw(h)).charAt(0),o=rx(p),!(Math.abs(o)<15e14))return l=nx(d,u+2,y).times(o+""),p=ox(new d(n+"."+r.slice(1)),u-10).plus(l),d.precision=y,null==e?($w=!0,cx(p,y)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Qw((p=p.times(t)).d)).charAt(0),f++;for(o=rx(p),n>1?(p=new d("0."+r),o++):p=new d(n+"."+r.slice(1)),c=a=p=tx(p.minus(Bw),p.plus(Bw),u),s=cx(p.times(p),u),i=3;;){if(a=cx(a.times(s),u),Qw((l=c.plus(tx(a,new d(i),u))).d).slice(0,u)===Qw(c.d).slice(0,u))return c=c.times(2),0!==o&&(c=c.plus(nx(d,u+2,y).times(o+""))),c=tx(c,new d(f),u),d.precision=y,null==e?($w=!0,cx(c,y)):c;c=l,i+=2}}function ax(t,e){var r,n,i;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(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,r=r-n-1,t.e=Uw(r/Xw),t.d=[],n=(r+1)%Xw,r<0&&(n+=Xw),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=Xw;n<i;)t.d.push(+e.slice(n,n+=Xw));e=e.slice(n),n=Xw-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),$w&&(t.e>Kw||t.e<-Kw))throw Error(Vw+r)}else t.s=0,t.e=0,t.d=[0];return t}function cx(t,e,r){var n,i,o,a,c,l,u,s,f=t.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((n=e-a)<0)n+=Xw,i=e,u=f[s=0];else{if((s=Math.ceil((n+1)/Xw))>=(o=f.length))return t;for(u=o=f[s],a=1;o>=10;o/=10)a++;i=(n%=Xw)-Xw+a}if(void 0!==r&&(c=u/(o=Fw(10,a-i-1))%10|0,l=e<0||void 0!==f[s+1]||u%o,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?i>0?u/Fw(10,a-i):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return l?(o=rx(t),f.length=1,e=e-o-1,f[0]=Fw(10,(Xw-e%Xw)%Xw),t.e=Uw(-e/Xw)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,o=1,s--):(f.length=s+1,o=Fw(10,Xw-n),f[s]=i>0?(u/Fw(10,a-i)%Fw(10,i)|0)*o:0),l)for(;;){if(0==s){(f[0]+=o)==qw&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=qw)break;f[s--]=0,o=1}for(n=f.length;0===f[--n];)f.pop();if($w&&(t.e>Kw||t.e<-Kw))throw Error(Vw+rx(t));return t}function lx(t,e){var r,n,i,o,a,c,l,u,s,f,p=t.constructor,h=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),$w?cx(e,h):e;if(l=t.d,f=e.d,n=e.e,u=t.e,l=l.slice(),a=u-n){for((s=a<0)?(r=l,a=-a,c=f.length):(r=f,n=u,c=l.length),a>(i=Math.max(Math.ceil(h/Xw),c)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((s=(i=l.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(l[i]!=f[i]){s=l[i]<f[i];break}a=0}for(s&&(r=l,l=f,f=r,e.s=-e.s),c=l.length,i=f.length-c;i>0;--i)l[c++]=0;for(i=f.length;i>a;){if(l[--i]<f[i]){for(o=i;o&&0===l[--o];)l[o]=qw-1;--l[o],l[i]+=qw}l[i]-=f[i]}for(;0===l[--c];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=n,$w?cx(e,h):e):new p(0)}function ux(t,e,r){var n,i=rx(t),o=Qw(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+ix(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ix(-i-1)+o,r&&(n=r-a)>0&&(o+=ix(n))):i>=a?(o+=ix(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+ix(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=ix(n))),t.s<0?"-"+o:o}function sx(t,e){if(t.length>e)return t.length=e,!0}function fx(t){if(!t||"object"!=typeof t)throw Error(zw+"Object expected");var e,r,n,i=["precision",1,Rw,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]])){if(!(Uw(n)===n&&n>=i[e+1]&&n<=i[e+2]))throw Error(Hw+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(Hw+r+": "+n);this[r]=new this(n)}return this}var px=function t(e){var r,n,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)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(Hw+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])):ax(e,t.toString())}if("string"!=typeof t)throw Error(Hw+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!Ww.test(t))throw Error(Hw+t);ax(e,t)}if(o.prototype=Gw,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=fx,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Bw=new px(1);var hx=px;function dx(t){return function(t){if(Array.isArray(t))return yx(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 yx(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 yx(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 yx(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 vx=function(t){return t},mx={"@@functional/placeholder":!0},gx=function(t){return t===mx},bx=function(t){return function e(){return 0===arguments.length||1===arguments.length&&gx(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},wx=function t(e,r){return 1===e?r:bx((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==mx})).length;return a>=e?r.apply(void 0,i):t(e-a,bx((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=i.map((function(t){return gx(t)?e.shift():t}));return r.apply(void 0,dx(o).concat(e))})))}))},xx=function(t){return wx(t.length,t)},Ox=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},Sx=xx((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),jx=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return vx;var n=e.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},Ax=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Px=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e&&i.every((function(t,r){return t===e[r]}))?r:(e=i,r=t.apply(void 0,i))}};var Mx=xx((function(t,e,r){var n=+t;return n+r*(+e-n)})),Ex=xx((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),kx=xx((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),_x={rangeStep:function(t,e,r){for(var n=new hx(t),i=0,o=[];n.lt(e)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new hx(t).abs().log(10).toNumber())+1},interpolateNumber:Mx,uninterpolateNumber:Ex,uninterpolateTruncation:kx};function Tx(t){return function(t){if(Array.isArray(t))return Ix(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Dx(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 Cx(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,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(t,e)||Dx(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 Dx(t,e){if(t){if("string"==typeof t)return Ix(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)?Ix(t,e):void 0}}function Ix(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 Nx(t){var e=Cx(t,2),r=e[0],n=e[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function Bx(t,e,r){if(t.lte(0))return new hx(0);var n=_x.getDigitCount(t.toNumber()),i=new hx(10).pow(n),o=t.div(i),a=1!==n?.05:.1,c=new hx(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?c:new hx(Math.ceil(c))}function Lx(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new hx(0),tickMin:new hx(0),tickMax:new hx(0)};var o,a=Bx(new hx(e).sub(t).div(r-1),n,i);o=t<=0&&e>=0?new hx(0):(o=new hx(t).add(e).div(2)).sub(new hx(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),l=Math.ceil(new hx(e).sub(o).div(a).toNumber()),u=c+l+1;return u>r?Lx(t,e,r,n,i+1):(u<r&&(l=e>0?l+(r-u):l,c=e>0?c:c+(r-u)),{step:a,tickMin:o.sub(new hx(c).mul(a)),tickMax:o.add(new hx(l).mul(a))})}var Rx=Px((function(t){var e=Cx(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=Cx(Nx([r,n]),2),l=c[0],u=c[1];if(l===-1/0||u===1/0){var s=u===1/0?[l].concat(Tx(Ox(0,i-1).map((function(){return 1/0})))):[].concat(Tx(Ox(0,i-1).map((function(){return-1/0}))),[u]);return r>n?Ax(s):s}if(l===u)return function(t,e,r){var n=1,i=new hx(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new hx(10).pow(_x.getDigitCount(t)-1),i=new hx(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new hx(Math.floor(t)))}else 0===t?i=new hx(Math.floor((e-1)/2)):r||(i=new hx(Math.floor(t)));var a=Math.floor((e-1)/2);return jx(Sx((function(t){return i.add(new hx(t-a).mul(n)).toNumber()})),Ox)(0,e)}(l,i,o);var f=Lx(l,u,a,o),p=f.step,h=f.tickMin,d=f.tickMax,y=_x.rangeStep(h,d.add(new hx(.1).mul(p)),p);return r>n?Ax(y):y})),$x=Px((function(t,e){var r=Cx(t,2),n=r[0],i=r[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Cx(Nx([n,i]),2),c=a[0],l=a[1];if(c===-1/0||l===1/0)return[n,i];if(c===l)return[c];var u=Math.max(e,2),s=Bx(new hx(l).sub(c).div(u-1),o,0),f=[].concat(Tx(_x.rangeStep(new hx(c),new hx(l).sub(new hx(.99).mul(s)),s)),[l]);return n>i?Ax(f):f})),zx="production"===process.env.NODE_ENV,Hx="Invariant failed";function Vx(t,e){if(!t){if(zx)throw new Error(Hx);var r="function"==typeof e?e():e,n=r?"".concat(Hx,": ").concat(r):Hx;throw new Error(n)}}var Ux=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Fx(){return Fx=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},Fx.apply(this,arguments)}function Wx(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return qx(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 qx(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 qx(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 Xx(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Yx(t){var e=t.offset,r=t.layout,n=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,c=t.xAxis,l=t.yAxis,u=Xx(t,Ux),s=pa(u,!1);"x"===t.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?Vx(!1,'ErrorBar requires Axis type property to be "number".'):Vx(!1));var f=o.map((function(t){var o=a(t,i),u=o.x,f=o.y,p=o.value,h=o.errorVal;if(!h)return null;var d,y,v=[];if(Array.isArray(h)){var m=Wx(h,2);d=m[0],y=m[1]}else d=y=h;if("vertical"===r){var g=c.scale,b=f+e,w=b+n,x=b-n,O=g(p-d),S=g(p+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var j=l.scale,A=u+e,P=A-n,M=A+n,E=j(p-d),k=j(p+y);v.push({x1:P,y1:k,x2:M,y2:k}),v.push({x1:A,y1:E,x2:A,y2:k}),v.push({x1:P,y1:E,x2:M,y2:E})}return K.createElement(Sa,Fx({className:"recharts-errorBar",key:"bar-".concat(v.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},s),v.map((function(t){return K.createElement("line",Fx({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return K.createElement(Sa,{className:"recharts-errorBars"},f)}function Kx(t){return Kx="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},Kx(t)}function Gx(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 Zx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gx(Object(r),!0).forEach((function(e){Jx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jx(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Kx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Kx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kx(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Yx.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Yx.displayName="ErrorBar";var Qx=function(t){var e,r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=la(r,Ip);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,i=r.name,o=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||o||"square",color:lO(e),value:i||n,payload:e.props}})),Zx(Zx(Zx({},a.props),Ip.getWithHeight(a,i)),{},{payload:e,item:a})):null};function tO(t){return tO="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},tO(t)}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){nO(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,r){return e=function(t){var e=function(t,e){if("object"!=tO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tO(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iO(t){return function(t){if(Array.isArray(t))return oO(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 oO(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 oO(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 oO(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 aO(t,e,r){return mo(t)||mo(e)?r:Lo(e)?vo(t,e,r):Sn(e)?e(t):r}function cO(t,e,r,n){var i=Iw(t,(function(t){return aO(t,e)}));if("number"===r){var o=i.filter((function(t){return Bo(t)||parseFloat(t)}));return o.length?[Mw(o),Ow(o)]:[1/0,-1/0]}return(n?i.filter((function(t){return!mo(t)})):i).map((function(t){return Lo(t)||t instanceof Date?t:""}))}var lO=function(t){var e,r=t.type.displayName,n=t.props,i=n.stroke,o=n.fill;switch(r){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},uO=function(t,e,r,n,i){var o=ca(e.props.children,Yx).filter((function(t){return function(t,e,r){return!!mo(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,i,t.props.direction)}));if(o&&o.length){var a=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=aO(e,r,0),i=Array.isArray(n)?[Mw(n),Ow(n)]:[n,n],o=a.reduce((function(t,r){var n=aO(e,r,0),o=i[0]-Math.abs(Array.isArray(n)?n[0]:n),a=i[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},sO=function(t,e,r,n,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===r&&o&&uO(t,e,o,n)||cO(t,o,r,i)}));if("number"===r)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return o.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}),[])},fO=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},pO=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,l=(e||r)&&"category"===o&&n.bandwidth?n.bandwidth()/c:0;return l="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*Io(a[0]-a[1])*l:l,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=i?i.indexOf(t):t;return{coordinate:n(e)+l,value:t,offset:l}})).filter((function(t){return!Do(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+l,value:t,index:e,offset:l}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+l,value:t,offset:l}})):n.domain().map((function(t,e){return{coordinate:n(t)+l,value:i?i[t]:t,index:e,offset:l}}))},hO=new WeakMap,dO=function(t,e){if("function"!=typeof e)return t;hO.has(t)||hO.set(t,new WeakMap);var r=hO.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},yO=1e-4,vO={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0,a=0;a<e;++a){var c=Do(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,o=0,a=t[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=t[r][o][1]||0;if(i)for(r=0;r<n;++r)t[r][o][1]/=i}el(t,e)}},none:el,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n<o;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}el(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var c=0,l=0,u=0;c<i;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}l+=f,u+=p*f}r[a-1][1]+=r[a-1][0]=o,l&&(o-=u/l)}r[a-1][1]+=r[a-1][0]=o,el(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 i=0,o=0;o<e;++o){var a=Do(t[o][r][1])?t[o][r][0]:t[o][r][1];a>=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},mO=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),i=vO[r],o=function(){var t=ec([]),e=rl,r=el,n=nl;function i(i){var o,a,c=Array.from(t.apply(this,arguments),il),l=c.length,u=-1;for(const t of i)for(o=0,++u;o<l;++o)(c[o][u]=[0,+n(t,c[o].key,u,i)]).data=t;for(o=0,a=dc(e(c));o<l;++o)c[a[o]].index=o;return r(c,a),c}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:ec(Array.from(e)),i):t},i.value=function(t){return arguments.length?(n="function"==typeof t?t:ec(+t),i):n},i.order=function(t){return arguments.length?(e=null==t?rl:"function"==typeof t?t:ec(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(r=null==t?el:t,i):r},i}().keys(n).value((function(t,e){return+aO(t,e,0)})).order(rl).offset(i);return o(t)};function gO(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!mo(i[e.dataKey])){var c=Uo(r,"value",i[e.dataKey]);if(c)return c.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var l=aO(i,mo(a)?e.dataKey:a);return mo(l)?null:e.scale(l)}var bO=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=aO(o,e.dataKey,e.domain[a]);return mo(c)?null:e.scale(c)-i/2+n},wO=function(t,e,r){return Object.keys(t).reduce((function(n,i){var o=t[i].stackedData.reduce((function(t,n){var i=n.slice(e,r+1).reduce((function(t,e){return[Mw(e.concat([t[0]]).filter(Bo)),Ow(e.concat([t[1]]).filter(Bo))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},xO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,OO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,SO=function(t,e,r){if(Sn(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(Bo(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(xO.test(t[0])){var i=+xO.exec(t[0])[1];n[0]=e[0]-i}else Sn(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(Bo(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(OO.test(t[1])){var o=+OO.exec(t[1])[1];n[1]=e[1]+o}else Sn(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},jO=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 i=Dh(e,(function(t){return t.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var l=i[a],u=i[a-1];o=Math.min((l.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},AO=function(t,e,r){return t&&t.length?Lw(t,vo(r,"type.defaultProps.domain"))?e:t:e},PO=function(t,e){var r=t.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,c=r.tooltipType,l=r.chartType,u=r.hide;return rO(rO({},pa(t,!1)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:lO(t),value:aO(e,n),type:c,payload:e,chartType:l,hide:u})};function MO(t){return MO="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},MO(t)}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 kO(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){_O(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 _O(t,e,r){return e=function(t){var e=function(t,e){if("object"!=MO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=MO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==MO(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var TO=Math.PI/180,CO=function(t){return 180*t/Math.PI},DO=function(t,e,r,n){return{x:t+Math.cos(-TO*n)*r,y:e+Math.sin(-TO*n)*r}},IO=function(t,e){var r=t.x,n=t.y,i=e.cx,o=e.cy,a=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(n-o,2))}({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var c=(r-i)/a,l=Math.acos(c);return n>o&&(l=2*Math.PI-l),{radius:a,angle:CO(l),angleInRadian:l}},NO=function(t,e){var r=e.startAngle,n=e.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return t+360*Math.min(i,o)},BO=function(t,e){var r=t.x,n=t.y,i=IO({x:r,y:n},e),o=i.radius,a=i.angle,c=e.innerRadius,l=e.outerRadius;if(o<c||o>l)return!1;if(0===o)return!0;var u,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:e-360*o,endAngle:r-360*o}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;u=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;u=h>=p&&h<=f}return u?kO(kO({},e),{},{radius:o,angle:NO(h,e)}):null};function LO(t){return LO="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},LO(t)}var RO=["offset"];function $O(t){return function(t){if(Array.isArray(t))return zO(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 zO(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 zO(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 zO(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 HO(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}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 UO(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){FO(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 FO(t,e,r){return e=function(t){var e=function(t,e){if("object"!=LO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=LO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==LO(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function WO(){return WO=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},WO.apply(this,arguments)}var qO=function(t){var e=t.value,r=t.formatter,n=mo(t.children)?e:t.children;return Sn(r)?r(n):n},XO=function(t,e,r){var n,i,o=t.position,a=t.viewBox,c=t.offset,l=t.className,u=a,s=u.cx,f=u.cy,p=u.innerRadius,h=u.outerRadius,d=u.startAngle,y=u.endAngle,v=u.clockWise,m=(p+h)/2,g=function(t,e){return Io(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=g>=0?1:-1;"insideStart"===o?(n=d+b*c,i=v):"insideEnd"===o?(n=y-b*c,i=!v):"end"===o&&(n=y+b*c,i=v),i=g<=0?i:!i;var w=DO(s,f,m,n),x=DO(s,f,m,n+359*(i?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),S=mo(t.id)?$o("recharts-radial-line-"):t.id;return K.createElement("text",WO({},r,{dominantBaseline:"central",className:Ur("recharts-radial-bar-label",l)}),K.createElement("defs",null,K.createElement("path",{id:S,d:O})),K.createElement("textPath",{xlinkHref:"#".concat(S)},e))},YO=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e,o=i.cx,a=i.cy,c=i.innerRadius,l=i.outerRadius,u=(i.startAngle+i.endAngle)/2;if("outside"===n){var s=DO(o,a,l+r,u),f=s.x;return{x:f,y:s.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=DO(o,a,(c+l)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},KO=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,i=t.position,o=e,a=o.x,c=o.y,l=o.width,u=o.height,s=u>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=l>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===i)return UO(UO({},{x:a+l/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:l}:{});if("bottom"===i)return UO(UO({},{x:a+l/2,y:c+u+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+u),0),width:l}:{});if("left"===i){var g={x:a-y,y:c+u/2,textAnchor:v,verticalAnchor:"middle"};return UO(UO({},g),r?{width:Math.max(g.x-r.x,0),height:u}:{})}if("right"===i){var b={x:a+l+y,y:c+u/2,textAnchor:m,verticalAnchor:"middle"};return UO(UO({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:u}:{})}var w=r?{width:l,height:u}:{};return"insideLeft"===i?UO({x:a+y,y:c+u/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===i?UO({x:a+l-y,y:c+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?UO({x:a+l/2,y:c+f,textAnchor:"middle",verticalAnchor:h},w):"insideBottom"===i?UO({x:a+l/2,y:c+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?UO({x:a+y,y:c+f,textAnchor:m,verticalAnchor:h},w):"insideTopRight"===i?UO({x:a+l-y,y:c+f,textAnchor:v,verticalAnchor:h},w):"insideBottomLeft"===i?UO({x:a+y,y:c+u-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===i?UO({x:a+l-y,y:c+u-f,textAnchor:v,verticalAnchor:p},w):gn(i)&&(Bo(i.x)||No(i.x))&&(Bo(i.y)||No(i.y))?UO({x:a+zo(i.x,l),y:c+zo(i.y,u),textAnchor:"end",verticalAnchor:"end"},w):UO({x:a+l/2,y:c+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},GO=function(t){return"cx"in t&&Bo(t.cx)};function ZO(t){var e,r=t.offset,n=UO({offset:void 0===r?5:r},HO(t,RO)),i=n.viewBox,o=n.position,a=n.value,c=n.children,l=n.content,u=n.className,s=void 0===u?"":u,f=n.textBreakAll;if(!i||mo(a)&&mo(c)&&!G(l)&&!Sn(l))return null;if(G(l))return at(l,n);if(Sn(l)){if(G(e=ct(l,n)))return e}else e=qO(n);var p=GO(i),h=pa(n,!0);if(p&&("insideStart"===o||"insideEnd"===o||"end"===o))return XO(n,e,h);var d=p?YO(n):KO(n);return K.createElement(Dy,WO({className:Ur("recharts-label",s)},h,d,{breakAll:f}),e)}ZO.displayName="Label";var JO=function(t){var e=t.cx,r=t.cy,n=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,c=t.radius,l=t.innerRadius,u=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(Bo(d)&&Bo(y)){if(Bo(s)&&Bo(f))return{x:s,y:f,width:d,height:y};if(Bo(p)&&Bo(h))return{x:p,y:h,width:d,height:y}}return Bo(s)&&Bo(f)?{x:s,y:f,width:0,height:0}:Bo(e)&&Bo(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:l||0,outerRadius:u||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};ZO.parseViewBox=JO,ZO.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=JO(t),o=ca(n,ZO).map((function(t,r){return at(t,{viewBox:e||i,key:"label-".concat(r)})}));if(!r)return o;var a=function(t,e){return t?!0===t?K.createElement(ZO,{key:"label-implicit",viewBox:e}):Lo(t)?K.createElement(ZO,{key:"label-implicit",viewBox:e,value:t}):G(t)?t.type===ZO?at(t,{key:"label-implicit",viewBox:e}):K.createElement(ZO,{key:"label-implicit",content:t,viewBox:e}):Sn(t)?K.createElement(ZO,{key:"label-implicit",content:t,viewBox:e}):gn(t)?K.createElement(ZO,WO({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat($O(o))};var QO=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},tS=nr(QO);function eS(t){return eS="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},eS(t)}var rS=["valueAccessor"],nS=["data","dataKey","clockWise","id","textBreakAll"];function iS(t){return function(t){if(Array.isArray(t))return oS(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 oS(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 oS(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 oS(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 aS(){return aS=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},aS.apply(this,arguments)}function cS(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 lS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cS(Object(r),!0).forEach((function(e){uS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=eS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=eS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==eS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sS(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var fS=function(t){return Array.isArray(t.value)?tS(t.value):t.value};function pS(t){var e=t.valueAccessor,r=void 0===e?fS:e,n=sS(t,rS),i=n.data,o=n.dataKey,a=n.clockWise,c=n.id,l=n.textBreakAll,u=sS(n,nS);return i&&i.length?K.createElement(Sa,{className:"recharts-label-list"},i.map((function(t,e){var n=mo(o)?r(t,e):aO(t&&t.payload,o),i=mo(c)?{}:{id:"".concat(c,"-").concat(e)};return K.createElement(ZO,aS({},pa(t,!0),u,i,{parentViewBox:t.parentViewBox,value:n,textBreakAll:l,viewBox:ZO.parseViewBox(mo(a)?t:lS(lS({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}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},hS(t)}function dS(){return dS=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},dS.apply(this,arguments)}function yS(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 vS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yS(Object(r),!0).forEach((function(e){mS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mS(t,e,r){return e=function(t){var e=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)}(t,"string");return"symbol"==hS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}pS.displayName="LabelList",pS.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=ca(t.children,pS).map((function(t,r){return at(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?K.createElement(pS,{key:"labelList-implicit",data:e}):K.isValidElement(t)||Sn(t)?K.createElement(pS,{key:"labelList-implicit",data:e,content:t}):gn(t)?K.createElement(pS,aS({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(iS(n)):n};var gS=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,o=t.sign,a=t.isExternal,c=t.cornerRadius,l=t.cornerIsExternal,u=c*(a?1:-1)+n,s=Math.asin(c/u)/TO,f=l?i:i+o*s,p=l?i-o*s:i;return{center:DO(e,r,u,f),circleTangency:DO(e,r,n,f),lineTangency:DO(e,r,u*Math.cos(s*TO),p),theta:s}},bS=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return Io(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,l=DO(e,r,i,o),u=DO(e,r,i,c),s="M ".concat(l.x,",").concat(l.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(u.x,",").concat(u.y,"\n ");if(n>0){var f=DO(e,r,n,o),p=DO(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},wS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},xS=function(t){var e=vS(vS({},wS),t),r=e.cx,n=e.cy,i=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,l=e.cornerIsExternal,u=e.startAngle,s=e.endAngle,f=e.className;if(o<i||u===s)return null;var p,h=Ur("recharts-sector",f),d=o-i,y=zo(a,d,0,!0);return p=y>0&&Math.abs(u-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,s=Io(u-l),f=gS({cx:e,cy:r,radius:i,angle:l,sign:s,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=gS({cx:e,cy:r,radius:i,angle:u,sign:-s,cornerRadius:o,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=c?Math.abs(l-u):Math.abs(l-u)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):bS({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:u});var w="M ".concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var x=gS({cx:e,cy:r,radius:n,angle:l,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,A=gS({cx:e,cy:r,radius:n,angle:u,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=A.circleTangency,M=A.lineTangency,E=A.theta,k=c?Math.abs(l-u):Math.abs(l-u)-j-E;if(k<0&&0===o)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(M.x,",").concat(M.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(k>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,d/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:s}):bS({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:s}),K.createElement("path",dS({},pa(e,!0),{className:h,d:p,role:"img"}))};function OS(t){return OS="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},OS(t)}function SS(){return SS=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},SS.apply(this,arguments)}function jS(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 AS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jS(Object(r),!0).forEach((function(e){PS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function PS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=OS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=OS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==OS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var MS,ES,kS,_S,TS,CS,DS,IS,NS,BS,LS,RS,$S={curveBasisClosed:function(t){return new Vc(t)},curveBasisOpen:function(t){return new Uc(t)},curveBasis:function(t){return new Hc(t)},curveBumpX:function(t){return new xc(t,!0)},curveBumpY:function(t){return new xc(t,!1)},curveLinearClosed:function(t){return new Fc(t)},curveLinear:vc,curveMonotoneX:function(t){return new Kc(t)},curveMonotoneY:function(t){return new Gc(t)},curveNatural:function(t){return new Jc(t)},curveStep:function(t){return new tl(t,.5)},curveStepAfter:function(t){return new tl(t,1)},curveStepBefore:function(t){return new tl(t,0)}},zS=function(t){return t.x===+t.x&&t.y===+t.y},HS=function(t){return t.x},VS=function(t){return t.y},US=function(t){var e,r=t.type,n=void 0===r?"linear":r,i=t.points,o=void 0===i?[]:i,a=t.baseLine,c=t.layout,l=t.connectNulls,u=void 0!==l&&l,s=function(t,e){if(Sn(t))return t;var r="curve".concat(tc(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?$S[r]||vc:$S["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=u?o.filter((function(t){return zS(t)})):o;if(Array.isArray(a)){var p=u?a.filter((function(t){return zS(t)})):a,h=f.map((function(t,e){return AS(AS({},t),{},{base:p[e]})}));return(e="vertical"===c?wc().y(VS).x1(HS).x0((function(t){return t.base.x})):wc().x(HS).y1(VS).y0((function(t){return t.base.y}))).defined(zS).curve(s),e(h)}return(e="vertical"===c&&Bo(a)?wc().y(VS).x1(HS).x0(a):Bo(a)?wc().x(HS).y1(VS).y0(a):bc().x(HS).y(VS)).defined(zS).curve(s),e(f)},FS=function(t){var e=t.className,r=t.points,n=t.path,i=t.pathRef;if(!(r&&r.length||n))return null;var o=r&&r.length?US(t):n;return K.createElement("path",SS({},pa(t,!1),Go(t),{className:Ur("recharts-curve",e),d:o,ref:i}))},WS={exports:{}};function qS(){if(ES)return MS;ES=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return MS=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))e.call(o,u)&&(c[u]=o[u]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},MS}function XS(){if(_S)return kS;_S=1;return kS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function YS(){return CS?TS:(CS=1,TS=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var KS=Mo;WS.exports=function(){if(BS)return NS;BS=1;var t=Mo,e=qS(),r=XS(),n=YS(),i=function(){if(IS)return DS;IS=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=XS(),r={},n=YS();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,l){if("production"!==process.env.NODE_ENV)for(var u in i)if(n(i,u)){var s;try{if("function"!=typeof i[u]){var f=Error((c||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[u](o,u,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=l?l():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},DS=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),NS=function(c,l){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,n,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new d("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<c.length;l++){var u=t(c,l,i,o,a+"["+l+"]",r);if(u instanceof Error)return u}return null}))},element:y((function(t,e,r,n,i){var o=t[e];return c(o)?null:new d("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,r,n,i){return g(t[e])?null:new d("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,i,o,a,c){if("function"!=typeof t)return new d("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],u=b(l);if("object"!==u)return new d("Invalid "+a+" `"+c+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var s in l)if(n(l,s)){var f=t(l,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?y((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(h(a,t[c]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return y((function(e,i,o,a,c){for(var l=[],u=0;u<t.length;u++){var s=(0,t[u])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&l.push(s.data.expectedType)}return new d("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,i,o,a){var c=e[n],l=b(c);if("object"!==l)return new d("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in t){var s=t[u];if("function"!=typeof s)return m(i,o,a,u,w(s));var f=s(c,u,i,o,a+"."+u,r);if(f)return f}return null}))},exact:function(t){return y((function(i,o,a,c,l){var u=i[o],s=b(u);if("object"!==s)return new d("Invalid "+c+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var h=t[p];if(n(t,p)&&"function"!=typeof h)return m(a,c,l,p,w(h));if(!h)return new d("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=h(u,p,a,c,l+"."+p,r);if(y)return y}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,u,s,p,h){if(u=u||f,p=p||c,h!==r){if(l){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=u+":"+c;!e[v]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?i?null===a[c]?new d("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new d("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(a,c,u,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function v(t){return y((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function m(t,e,r,n,i){return new d((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||c(t))return!0;var e=function(t){var e=t&&(u&&t[u]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!g(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!g(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},NS}()(KS.isElement,!0)}else WS.exports=function(){if(RS)return LS;RS=1;var t=XS();function e(){}function r(){}return r.resetWarningCache=e,LS=function(){function n(e,r,n,i,o,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}()();var GS=nr(WS.exports),ZS=Object.getOwnPropertyNames,JS=Object.getOwnPropertySymbols,QS=Object.prototype.hasOwnProperty;function tj(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function ej(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function rj(t){return ZS(t).concat(JS(t))}var nj=Object.hasOwn||function(t,e){return QS.call(t,e)};function ij(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var oj="_owner",aj=Object.getOwnPropertyDescriptor,cj=Object.keys;function lj(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 uj(t,e){return ij(t.getTime(),e.getTime())}function sj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var l=e.entries(),u=!1,s=0;(i=l.next())&&!i.done;){var f=n.value,p=f[0],h=f[1],d=i.value,y=d[0],v=d[1];u||o[s]||!(u=r.equals(p,y,c,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))||(o[s]=!0),s++}if(!u)return!1;c++}return!0}function fj(t,e,r){var n,i=cj(t),o=i.length;if(cj(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===oj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!nj(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function pj(t,e,r){var n,i,o,a=rj(t),c=a.length;if(rj(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===oj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!nj(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=aj(t,n),o=aj(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function hj(t,e){return ij(t.valueOf(),e.valueOf())}function dj(t,e){return t.source===e.source&&t.flags===e.flags}function yj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),l=!1,u=0;(i=c.next())&&!i.done;)l||o[u]||!(l=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[u]=!0),u++;if(!l)return!1}return!0}function vj(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var mj="[object Arguments]",gj="[object Boolean]",bj="[object Date]",wj="[object Map]",xj="[object Number]",Oj="[object Object]",Sj="[object RegExp]",jj="[object Set]",Aj="[object String]",Pj=Array.isArray,Mj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Ej=Object.assign,kj=Object.prototype.toString.call.bind(Object.prototype.toString);var _j=Tj();function Tj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,l=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?pj:lj,areDatesEqual:uj,areMapsEqual:n?tj(sj,pj):sj,areObjectsEqual:n?pj:fj,arePrimitiveWrappersEqual:hj,areRegExpsEqual:dj,areSetsEqual:n?tj(yj,pj):yj,areTypedArraysEqual:n?pj:vj};if(r&&(i=Ej({},i,r(i))),e){var o=ej(i.areArraysEqual),a=ej(i.areMapsEqual),c=ej(i.areObjectsEqual),l=ej(i.areSetsEqual);i=Ej({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:l})}return i}(t),u=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,l=t.areTypedArraysEqual;return function(t,u,s){if(t===u)return!0;if(null==t||null==u||"object"!=typeof t||"object"!=typeof u)return t!=t&&u!=u;var f=t.constructor;if(f!==u.constructor)return!1;if(f===Object)return i(t,u,s);if(Pj(t))return e(t,u,s);if(null!=Mj&&Mj(t))return l(t,u,s);if(f===Date)return r(t,u,s);if(f===RegExp)return a(t,u,s);if(f===Map)return n(t,u,s);if(f===Set)return c(t,u,s);var p=kj(t);return p===bj?r(t,u,s):p===Sj?a(t,u,s):p===wj?n(t,u,s):p===jj?c(t,u,s):p===Oj?"function"!=typeof t.then&&"function"!=typeof u.then&&i(t,u,s):p===mj?i(t,u,s):(p===gj||p===xj||p===Aj)&&o(t,u,s)}}(l),s=i?i(u):(e=u,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),l=c.cache,u=void 0===l?e?new WeakMap:void 0:l,s=c.meta;return r(t,a,{cache:u,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:u,createState:o,equals:s,strict:c})}function Cj(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Dj(t){return Dj="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},Dj(t)}function Ij(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 Nj(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 Nj(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 Nj(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 Bj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=Ij(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Cj(r.bind(null,a),o):(r(o),void Cj(r.bind(null,a)))}"object"===Dj(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 Lj(t){return Lj="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},Lj(t)}function Rj(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 $j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rj(Object(r),!0).forEach((function(e){zj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Lj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Tj({strict:!0}),Tj({circular:!0}),Tj({circular:!0,strict:!0}),Tj({createInternalComparator:function(){return ij}}),Tj({strict:!0,createInternalComparator:function(){return ij}}),Tj({circular:!0,createInternalComparator:function(){return ij}}),Tj({circular:!0,createInternalComparator:function(){return ij},strict:!0});var Hj=function(t){return t},Vj=function(t,e){return Object.keys(e).reduce((function(r,n){return $j($j({},r),{},zj({},n,t(n,e[n])))}),{})},Uj=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(",")},Fj="production"!==process.env.NODE_ENV,Wj=function(t,e,r,n,i,o,a,c){if(Fj&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,i,o,a,c],u=0;console.warn(e.replace(/%s/g,(function(){return l[u++]})))}};function qj(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||Yj(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 Xj(t){return function(t){if(Array.isArray(t))return Kj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Yj(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 Yj(t,e){if(t){if("string"==typeof t)return Kj(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)?Kj(t,e):void 0}}function Kj(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 Gj=1e-4,Zj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Jj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Qj=function(t,e){return function(r){var n=Zj(t,e);return Jj(n,r)}},tA=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),u=qj(l,4);n=u[0],i=u[1],o=u[2],a=u[3]}else Wj(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Wj([n,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=Qj(n,o),h=Qj(i,a),d=(s=n,f=o,function(t){var e=Zj(s,f),r=[].concat(Xj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Jj(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=d(n);if(Math.abs(o-r)<Gj||a<Gj)return h(n);n=(e=n-o/a)>1?1:e<0?0:e}return h(n)};return y.isStepper=!1,y},eA=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 tA(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,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Gj&&Math.abs(o)<Gj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return tA(n);Wj(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Wj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function rA(t){return rA="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},rA(t)}function nA(t){return function(t){if(Array.isArray(t))return uA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||lA(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 iA(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 oA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iA(Object(r),!0).forEach((function(e){aA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aA(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==rA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cA(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||lA(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 lA(t,e){if(t){if("string"==typeof t)return uA(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)?uA(t,e):void 0}}function uA(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 sA=function(t,e,r){return t+(e-t)*r},fA=function(t){return t.from!==t.to},pA=function t(e,r,n){var i=Vj((function(t,r){if(fA(r)){var n=cA(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return oA(oA({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Vj((function(t,e){return fA(e)?oA(oA({},e),{},{velocity:sA(e.velocity,i[t].velocity,n),from:sA(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},hA=function(t,e,r,n,i){var o,a,c,l,u=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=u.reduce((function(r,n){return oA(oA({},r),{},aA({},n,[t[n],e[n]]))}),{}),f=u.reduce((function(r,n){return oA(oA({},r),{},aA({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=pA(r,f,o),i(oA(oA(oA({},t),e),Vj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(fA).length&&(p=requestAnimationFrame(h))}:function(o){l||(l=o);var a=(o-l)/n,c=Vj((function(t,e){return sA.apply(void 0,nA(e).concat([r(a)]))}),s);if(i(oA(oA(oA({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var u=Vj((function(t,e){return sA.apply(void 0,nA(e).concat([r(1)]))}),s);i(oA(oA(oA({},t),e),u))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function dA(t){return dA="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},dA(t)}var yA=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function vA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function mA(t){return function(t){if(Array.isArray(t))return gA(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 gA(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 gA(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 gA(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 bA(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 wA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bA(Object(r),!0).forEach((function(e){xA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xA(t,e,r){return(e=SA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OA(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,SA(n.key),n)}}function SA(t){var e=function(t,e){if("object"!==dA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dA(e)?e:String(e)}function jA(t,e){return jA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jA(t,e)}function AA(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=EA(t);if(e){var i=EA(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return PA(this,r)}}function PA(t,e){if(e&&("object"===dA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return MA(t)}function MA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function EA(t){return EA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},EA(t)}var kA=function(t){!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&&jA(t,e)}(o,J);var e,r,n,i=AA(o);function o(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=(r=i.call(this,t,e)).props,a=n.isActive,c=n.attributeName,l=n.from,u=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(MA(r)),r.changeStyle=r.changeStyle.bind(MA(r)),!a||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:u}),PA(r);if(s&&s.length)r.state={style:s[0].style};else if(l){if("function"==typeof f)return r.state={style:l},PA(r);r.state={style:c?xA({},c,l):l}}else r.state={style:{}};return r}return e=o,(r=[{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,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,l=this.state.style;if(n)if(r){if(!(_j(t.to,a)&&t.canBegin&&t.isActive)){var u=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=u||o?c:t.to;if(this.state&&l){var f={style:i?xA({},i,s):s};(i&&[i]!==s||!i&&l!==s)&&this.setState(f)}this.runAnimation(wA(wA({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?xA({},i,a):a};this.state&&l&&(i&&l[i]!==a||!i&&l!==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,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,l=t.onAnimationStart,u=hA(r,n,eA(o),i,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=u()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,l=void 0===c?0:c;return this.manager.start([i].concat(mA(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,l=n.style,u=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=u||Object.keys(l);if("function"==typeof c||"spring"===c)return[].concat(mA(t),[e.runJSAnimation.bind(e,{from:f.style,to:l,duration:o,easing:c}),o]);var h=Uj(p,o,c),d=wA(wA(wA({},f.style),l),{},{transition:h});return[].concat(mA(t),[d,o,s]).filter(Hj)}),[a,Math.max(l,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Bj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,l=t.steps,u=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof u&&"spring"!==o)if(l.length>1)this.runStepAnimation(t);else{var f=n?xA({},n,i):i,p=Uj(Object.keys(f),r,o);s.start([a,e,wA(wA({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=vA(t,yA),o=Z.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return at(t,wA(wA({},i),{},{style:wA(wA({},n),a),className:o}))};return 1===o?c(Z.only(e)):K.createElement("div",null,Z.map(e,(function(t){return c(t)})))}}])&&OA(e.prototype,r),n&&OA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}();function _A(t){return _A="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},_A(t)}function TA(){return TA=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},TA.apply(this,arguments)}function CA(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return DA(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 DA(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 DA(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 IA(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 NA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?IA(Object(r),!0).forEach((function(e){BA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=_A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_A(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}kA.displayName="Animate",kA.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},kA.propTypes={from:GS.oneOfType([GS.object,GS.string]),to:GS.oneOfType([GS.object,GS.string]),attributeName:GS.string,duration:GS.number,begin:GS.number,easing:GS.oneOfType([GS.string,GS.func]),steps:GS.arrayOf(GS.shape({duration:GS.number.isRequired,style:GS.object.isRequired,easing:GS.oneOfType([GS.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),GS.func]),properties:GS.arrayOf("string"),onAnimationEnd:GS.func})),children:GS.oneOfType([GS.node,GS.func]),isActive:GS.bool,canBegin:GS.bool,onAnimationEnd:GS.func,shouldReAnimate:GS.bool,onAnimationStart:GS.func,onAnimationReStart:GS.func},GS.object,GS.object,GS.object,GS.element,GS.object,GS.object,GS.object,GS.oneOfType([GS.array,GS.element]),GS.any;var LA=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,l=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(u,",").concat(t+l*s[0],",").concat(e)),o+="L ".concat(t+r-l*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(u,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(u,",\n ").concat(t+r-l*s[2],",").concat(e+n)),o+="L ".concat(t+l*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(u,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(e,"\n L ").concat(t+r-l*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r-l*p,",").concat(e+n,"\n L ").concat(t+l*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(e+n-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},RA=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=l&&r<=u&&n>=s&&n<=f}return!1},$A={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zA=function(t){var e=NA(NA({},$A),t),r=tt(),n=CA(rt(-1),2),i=n[0],o=n[1];it((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.width,u=e.height,s=e.radius,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var m=Ur("recharts-rectangle",f);return v?K.createElement(kA,{canBegin:i>0,from:{width:l,height:u,x:a,y:c},to:{width:l,height:u,x:a,y:c},duration:h,animationEasing:p,isActive:v},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return K.createElement(kA,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:y,easing:p},K.createElement("path",TA({},pa(e,!0),{className:m,d:LA(a,c,n,o,s),ref:r})))})):K.createElement("path",TA({},pa(e,!0),{className:m,d:LA(a,c,l,u,s)}))};function HA(){return HA=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},HA.apply(this,arguments)}var VA=function(t){var e=t.cx,r=t.cy,n=t.r,i=Ur("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?K.createElement("circle",HA({},pa(t,!1),Go(t),{className:i,cx:e,cy:r,r:n})):null};function UA(t){return UA="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},UA(t)}var FA=["x","y","top","left","width","height","className"];function WA(){return WA=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},WA.apply(this,arguments)}function qA(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 XA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UA(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var KA=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},GA=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,l=void 0===c?0:c,u=t.width,s=void 0===u?0:u,f=t.height,p=void 0===f?0:f,h=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qA(Object(r),!0).forEach((function(e){XA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:l,width:s,height:p},YA(t,FA));return Bo(r)&&Bo(i)&&Bo(s)&&Bo(p)&&Bo(a)&&Bo(l)?K.createElement("path",WA({},pa(d,!0),{className:Ur("recharts-cross",h),d:KA(r,i,s,p,a,l)})):null},ZA=ts(Object.getPrototypeOf,Object),JA=cn,QA=ZA,tP=ln,eP=Function.prototype,rP=Object.prototype,nP=eP.toString,iP=rP.hasOwnProperty,oP=nP.call(Object);var aP=nr((function(t){if(!tP(t)||"[object Object]"!=JA(t))return!1;var e=QA(t);if(null===e)return!0;var r=iP.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&nP.call(r)==oP})),cP=cn,lP=ln;var uP=nr((function(t){return!0===t||!1===t||lP(t)&&"[object Boolean]"==cP(t)}));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},sP(t)}function fP(){return fP=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},fP.apply(this,arguments)}function pP(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return hP(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 hP(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 hP(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 dP(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 yP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dP(Object(r),!0).forEach((function(e){vP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vP(t,e,r){return e=function(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:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mP=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},gP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},bP=function(t){var e=yP(yP({},gP),t),r=tt(),n=pP(rt(-1),2),i=n[0],o=n[1];it((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.upperWidth,u=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||s!==+s||0===l&&0===u||0===s)return null;var v=Ur("recharts-trapezoid",f);return y?K.createElement(kA,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:l,lowerWidth:u,height:s,x:a,y:c},duration:h,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,l=t.y;return K.createElement(kA,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,easing:p},K.createElement("path",fP({},pa(e,!0),{className:v,d:mP(c,l,n,o,a),ref:r})))})):K.createElement("g",null,K.createElement("path",fP({},pa(e,!0),{className:v,d:mP(a,c,l,u,s)})))},wP=["option","shapeType","propTransformer","activeClassName","isActive"];function xP(t){return xP="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},xP(t)}function OP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function SP(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 jP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?SP(Object(r),!0).forEach((function(e){AP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function AP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=xP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xP(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function PP(t,e){return jP(jP({},e),t)}function MP(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return K.createElement(zA,r);case"trapezoid":return K.createElement(bP,r);case"sector":return K.createElement(xS,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return K.createElement(dl,r);break;default:return null}}function EP(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?PP:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,l=t.isActive,u=OP(t,wP);if(G(r))e=at(r,jP(jP({},u),function(t){return G(t)?t.props:t}(r)));else if(Sn(r))e=r(u);else if(aP(r)&&!uP(r)){var s=o(r,u);e=K.createElement(MP,{shapeType:n,elementProps:s})}else{var f=u;e=K.createElement(MP,{shapeType:n,elementProps:f})}return l?K.createElement(Sa,{className:c},e):e}function kP(t,e){return null!=e&&"trapezoids"in t.props}function _P(t,e){return null!=e&&"sectors"in t.props}function TP(t,e){return null!=e&&"points"in t.props}function CP(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function DP(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function IP(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function NP(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return kP(t,e)?r="trapezoids":_P(t,e)?r="sectors":TP(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return kP(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:_P(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:TP(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=Lw(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return kP(t,e)?r=CP:_P(t,e)?r=DP:TP(t,e)&&(r=IP),r}(r,e);return n(t,e)})),l=r.props[i].indexOf(c[c.length-1]);return a&&n===l}));return n.indexOf(a[a.length-1])}var BP=Math.ceil,LP=Math.max;var RP=Dd,$P=1/0;var zP=function(t,e,r,n){for(var i=-1,o=LP(BP((e-t)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=t,t+=r;return a},HP=kh,VP=function(t){return t?(t=RP(t))===$P||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var UP=nr(function(t){return function(e,r,n){return n&&"number"!=typeof n&&HP(e,r,n)&&(r=n=void 0),e=VP(e),void 0===r?(r=e,e=0):r=VP(r),n=void 0===n?e<r?1:-1:VP(n),zP(e,r,n,t)}}());function FP(t){return FP="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},FP(t)}function WP(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 qP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WP(Object(r),!0).forEach((function(e){XP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function XP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=FP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=FP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==FP(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var YP=["Webkit","Moz","O","ms"];function KP(t){return KP="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},KP(t)}function GP(){return GP=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},GP.apply(this,arguments)}function ZP(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 JP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ZP(Object(r),!0).forEach((function(e){oM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function QP(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,aM(n.key),n)}}function tM(t,e,r){return e=rM(e),function(t,e){if(e&&("object"===KP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nM(t)}(t,eM()?Reflect.construct(e,r||[],rM(t).constructor):e.apply(t,r))}function eM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(eM=function(){return!!t})()}function rM(t){return rM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rM(t)}function nM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iM(t,e){return iM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},iM(t,e)}function oM(t,e,r){return(e=aM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aM(t){var e=function(t,e){if("object"!=KP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=KP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==KP(e)?e:String(e)}var cM=function(t){return t.changedTouches&&!!t.changedTouches.length},lM=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),oM(nM(r=tM(this,e,[t])),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),oM(nM(r),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),oM(nM(r),"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),oM(nM(r),"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),oM(nM(r),"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),oM(nM(r),"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),oM(nM(r),"handleSlideDragStart",(function(t){var e=cM(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(nM(r),"startX"),endX:r.handleTravellerDragStart.bind(nM(r),"endX")},r.state={},r}var r,n,i;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&&iM(t,e)}(e,J),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,l=Math.min(r,n),u=Math.max(r,n),s=e.getIndexInRange(i,l),f=e.getIndexInRange(i,u);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=aO(r[t],i,t);return Sn(n)?n(o,t):o}},{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,i=e.endX,o=this.props,a=o.x,c=o.width,l=o.travellerWidth,u=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-l-i,a+c-l-n):p<0&&(p=Math.max(p,a-n,a-i));var h=this.getIndex({startX:n+p,endX:i+p});h.startIndex===u&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=cM(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,i=e.endX,o=e.startX,a=this.state[n],c=this.props,l=c.x,u=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,l+u-s-a):y<0&&(y=Math.max(y,l-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,g=v.endIndex;this.setState(oM(oM({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(i>o?m%p==0:g%p==0)||i<o&&g===t||"endX"===n&&(i>o?g%p==0:m%p==0)||i>o&&g===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],l=i.indexOf(c);if(-1!==l){var u=l+t;if(!(-1===u||u>=i.length)){var s=i[u];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(oM({},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,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return K.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,l=Z.only(a);return l?K.cloneElement(l,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n=this,i=this.props,o=i.y,a=i.travellerWidth,c=i.height,l=i.traveller,u=i.ariaLabel,s=i.data,f=i.startIndex,p=i.endIndex,h=Math.max(t,this.props.x),d=JP(JP({},pa(this.props,!1)),{},{x:h,y:o,width:a,height:c}),y=u||"Min value: ".concat(s[f].name,", Max value: ").concat(s[p].name);return K.createElement(Sa,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(l,d))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,l=Math.max(Math.abs(e-t)-a,0);return K.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,l=c.startX,u=c.endX,s={pointerEvents:"none",fill:a};return K.createElement(Sa,{className:"recharts-brush-texts"},K.createElement(Dy,GP({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+i/2},s),this.getTextOfTick(e)),K.createElement(Dy,GP({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,l=t.alwaysShowText,u=this.state,s=u.startX,f=u.endX,p=u.isTextActive,h=u.isSlideMoving,d=u.isTravellerMoving,y=u.isTravellerFocused;if(!e||!e.length||!Bo(i)||!Bo(o)||!Bo(a)||!Bo(c)||a<=0||c<=0)return null;var v=Ur("recharts-brush",r),m=1===K.Children.count(n),g=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=YP.reduce((function(t,n){return qP(qP({},t),{},XP({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return K.createElement(Sa,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||y||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return K.createElement(K.Fragment,null,K.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),K.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),K.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return K.isValidElement(t)?K.cloneElement(t,r):Sn(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,l=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return JP({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,l=lv().domain(UP(0,c)).range([i,i+o-a]),u=l.domain().map((function(t){return l(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:u}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var u=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&QP(r.prototype,n),i&&QP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();oM(lM,"displayName","Brush"),oM(lM,"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 uM=qp;var sM=Fl,fM=Kf,pM=function(t,e){var r;return uM(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r},hM=Fr,dM=kh;var yM=nr((function(t,e,r){var n=hM(t)?sM:pM;return r&&dM(t,e,r)&&(e=void 0),n(t,fM(e))})),vM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},mM=yh;var gM=function(t,e,r){"__proto__"==e&&mM?mM(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},bM=gM,wM=Fp,xM=Kf;var OM=function(t,e){var r={};return e=xM(e),wM(t,(function(t,n,i){bM(r,n,e(t,n,i))})),r},SM=nr(OM);var jM=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},AM=qp;var PM=jM,MM=function(t,e){var r=!0;return AM(t,(function(t,n,i){return r=!!e(t,n,i)})),r},EM=Kf,kM=Fr,_M=kh;var TM=nr((function(t,e,r){var n=kM(t)?PM:MM;return r&&_M(t,e,r)&&(e=void 0),n(t,EM(e))})),CM=["x","y"];function DM(t){return DM="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},DM(t)}function IM(){return IM=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},IM.apply(this,arguments)}function NM(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 BM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NM(Object(r),!0).forEach((function(e){LM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function LM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=DM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=DM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==DM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function $M(t,e){var r=t.x,n=t.y,i=RM(t,CM),o="".concat(r),a=parseInt(o,10),c="".concat(n),l=parseInt(c,10),u="".concat(e.height||i.height),s=parseInt(u,10),f="".concat(e.width||i.width),p=parseInt(f,10);return BM(BM(BM(BM(BM({},e),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function zM(t){return K.createElement(EP,IM({shapeType:"rectangle",propTransformer:$M,activeClassName:"recharts-active-bar"},t))}var HM,VM=["value","background"];function UM(t){return UM="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},UM(t)}function FM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function WM(){return WM=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},WM.apply(this,arguments)}function qM(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?qM(Object(r),!0).forEach((function(e){tE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function YM(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,eE(n.key),n)}}function KM(t,e,r){return e=ZM(e),function(t,e){if(e&&("object"===UM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return JM(t)}(t,GM()?Reflect.construct(e,r||[],ZM(t).constructor):e.apply(t,r))}function GM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(GM=function(){return!!t})()}function ZM(t){return ZM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ZM(t)}function JM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function QM(t,e){return QM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},QM(t,e)}function tE(t,e,r){return(e=eE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eE(t){var e=function(t,e){if("object"!=UM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UM(e)?e:String(e)}var rE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return tE(JM(t=KM(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),tE(JM(t),"id",$o("recharts-bar-")),tE(JM(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),tE(JM(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var r,n,i;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&&QM(t,e)}(e,J),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=pa(this.props,!1);return t&&t.map((function(t,r){var l=r===o,u=l?a:n,s=XM(XM(XM({},c),t),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return K.createElement(Sa,WM({className:"recharts-bar-rectangle"},Zo(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),K.createElement(zM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,l=e.animationId,u=this.state.prevData;return K.createElement(kA,{begin:o,duration:a,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,o=r.map((function(t,e){var r=u&&u[e];if(r){var o=Vo(r.x,t.x),a=Vo(r.y,t.y),c=Vo(r.width,t.width),l=Vo(r.height,t.height);return XM(XM({},t),{},{x:o(i),y:a(i),width:c(i),height:l(i)})}if("horizontal"===n){var s=Vo(0,t.height)(i);return XM(XM({},t),{},{y:t.y+t.height-s,height:s})}var f=Vo(0,t.width)(i);return XM(XM({},t),{},{width:f})}));return K.createElement(Sa,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Lw(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=pa(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=FM(e,VM);if(!a)return null;var l=XM(XM(XM(XM(XM({},c),{},{fill:"#eee"},a),o),Zo(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return K.createElement(zM,WM({option:t.props.background,isActive:r===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=ca(r.children,Yx);if(!c)return null;var l="vertical"===a?n[0].height/2:n[0].width/2,u=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:aO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return K.createElement(Sa,s,c.map((function(t){return K.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,l=t.width,u=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=Ur("recharts-bar",n),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,m=y||v,g=mo(p)?this.id:p;return K.createElement(Sa,{className:d},y||v?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(g)},K.createElement("rect",{x:y?a:a-l/2,y:v?c:c-u/2,width:y?l:2*l,height:v?u:2*u}))):null,K.createElement(Sa,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||h)&&pS.renderCallByParent(this.props,r))}}],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}}],n&&YM(r.prototype,n),i&&YM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function nE(t){return nE="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},nE(t)}function iE(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,lE(n.key),n)}}function oE(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 aE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oE(Object(r),!0).forEach((function(e){cE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cE(t,e,r){return(e=lE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lE(t){var e=function(t,e){if("object"!=nE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nE(e)?e:String(e)}HM=rE,tE(rE,"displayName","Bar"),tE(rE,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!cd.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),tE(rE,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,l=t.yAxisTicks,u=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.props,v=y.dataKey,m=y.children,g=y.minPointSize,b="horizontal"===d?a:o,w=u?b.scale.domain():null,x=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:b}),O=ca(m,Gd),S=f.map((function(t,e){var n,f,p,y,m,b;u?n=function(t,e){if(!e||2!==e.length||!Bo(e[0])||!Bo(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Bo(t[0])||t[0]<r)&&(i[0]=r),(!Bo(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(u[s+e],w):(n=aO(t,v),Array.isArray(n)||(n=[x,n]));var S=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 i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?Vx(!1,"minPointSize callback function received a value with type of ".concat(DM(r),". Currently only numbers are supported.")):Vx(!1)),e)}}(g,HM.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var j,A=[a.scale(n[0]),a.scale(n[1])],P=A[0],M=A[1];f=bO({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:t,index:e}),p=null!==(j=null!=M?M:P)&&void 0!==j?j:void 0,y=h.size;var E=P-M;if(m=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:y,height:a.height},Math.abs(S)>0&&Math.abs(m)<Math.abs(S)){var k=Io(m||S)*(Math.abs(S)-Math.abs(m));p-=k,m+=k}}else{var _=[o.scale(n[0]),o.scale(n[1])],T=_[0],C=_[1];if(f=T,p=bO({axis:a,ticks:l,bandSize:i,offset:h.offset,entry:t,index:e}),y=C-T,m=h.size,b={x:o.x,y:p,width:o.width,height:m},Math.abs(S)>0&&Math.abs(y)<Math.abs(S))y+=Io(y||S)*(Math.abs(S)-Math.abs(y))}return XM(XM(XM({},t),{},{x:f,y:p,width:y,height:m,value:u?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[PO(r,t)],tooltipPosition:{x:f+y/2,y:p+m/2}})}));return XM({data:S,layout:d},p)}));var uE=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,l=t.children,u=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!la(l,rE);return u.reduce((function(o,a){var l,u,p,h,d,y=e[a],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,A=y.categoricalDomain.sort();A.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(A[e-1]||0),j))}));var P=j/S,M="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(l=P*M/2),"no-gap"===y.padding){var E=zo(t.barCategoryGap,P*M),k=P*M/2;l=k-E-(k-E)/M*E}}u="xAxis"===n?[r.left+(b.left||0)+(l||0),r.left+r.width-(b.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(l||0),r.top+r.height-(b.bottom||0)-(l||0)]:y.range,x&&(u=[u[1],u[0]]);var _=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:av(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:_m(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:lv(),realScaleType:"point"}:"category"===i?{scale:av(),realScaleType:"band"}:{scale:_m(),realScaleType:"linear"};if(Oo(n)){var c="scale".concat(tc(n));return{scale:(yw[c]||lv)(),realScaleType:yw[c]?c:"point"}}return Sn(n)?{scale:n}:{scale:lv(),realScaleType:"point"}}(y,i,f),T=_.scale,C=_.realScaleType;T.domain(m).range(u),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-yO,o=Math.max(n[0],n[1])+yO,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(T);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var l=t.domain();if(!l.length)return null;var u=Rx(l,i,a);return t.domain([Mw(u),Ow(u)]),{niceTicks:u}}if(i&&"number"===n){var s=t.domain();return{niceTicks:$x(s,i,a)}}return null}(T,aE(aE({},y),{},{realScaleType:C}));"xAxis"===n?(d="top"===v&&!w||"bottom"===v&&w,p=r.left,h=s[O]-d*y.height):"yAxis"===n&&(d="left"===v&&!w||"right"===v&&w,p=s[O]-d*y.width,h=r.top);var I=aE(aE(aE({},y),D),{},{realScaleType:C,x:p,y:h,scale:T,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=jO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(d?-1:1)*I.width):s[O]+=(d?-1:1)*I.height,aE(aE({},o),{},cE({},a,I))}),{})},sE=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},fE=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}var e,r,n;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 i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}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&&iE(e.prototype,r),n&&iE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();cE(fE,"EPS",1e-4);var pE=function(t){var e=Object.keys(t).reduce((function(e,r){return aE(aE({},e),{},cE({},r,fE.create(t[r])))}),{});return aE(aE({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return SM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return TM(t,(function(t,r){return e[r].isInRange(t)}))}})};var hE=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),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)},dE=Vi((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("")}));function yE(t){return yE="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},yE(t)}var vE=ut(void 0),mE=ut(void 0),gE=ut(void 0),bE=ut({}),wE=ut(void 0),xE=ut(0),OE=ut(0),SE=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,l=t.height,u=dE(i);return K.createElement(vE.Provider,{value:r},K.createElement(mE.Provider,{value:n},K.createElement(bE.Provider,{value:i},K.createElement(gE.Provider,{value:u},K.createElement(wE.Provider,{value:o},K.createElement(xE.Provider,{value:l},K.createElement(OE.Provider,{value:c},a)))))))};function jE(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var AE=function(t){var e=lt(vE);null==e&&("production"!==process.env.NODE_ENV?Vx(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Vx(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Vx(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(yE(t),"]. ").concat(jE(e))):Vx(!1)),r},PE=function(t){var e=lt(mE);null==e&&("production"!==process.env.NODE_ENV?Vx(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Vx(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Vx(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(yE(t),"]. ").concat(jE(e))):Vx(!1)),r},ME=function(){return lt(OE)},EE=function(){return lt(xE)};function kE(t){return kE="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},kE(t)}function _E(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 TE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_E(Object(r),!0).forEach((function(e){CE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function CE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=kE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DE(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return IE(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 IE(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 IE(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 NE(){return NE=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},NE.apply(this,arguments)}function BE(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,l=t.alwaysShow,u=lt(wE),s=AE(i),f=PE(o),p=lt(gE);if(!u||!p)return null;Aa(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(t,e,r,n,i,o,a,c,l){var u=i.x,s=i.y,f=i.width,p=i.height;if(r){var h=l.y,d=t.y.apply(h,{position:o});if(vM(l,"discard")&&!t.y.isInRange(d))return null;var y=[{x:u+f,y:d},{x:u,y:d}];return"left"===c?y.reverse():y}if(e){var v=l.x,m=t.x.apply(v,{position:o});if(vM(l,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?g.reverse():g}if(n){var b=l.segment.map((function(e){return t.apply(e,{position:o})}));return vM(l,"discard")&&yM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(pE({x:s.scale,y:f.scale}),Lo(e),Lo(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!h)return null;var d=DE(h,2),y=d[0],v=y.x,m=y.y,g=d[1],b=g.x,w=g.y,x=TE(TE({clipPath:vM(t,"hidden")?"url(#".concat(u,")"):void 0},pa(t,!0)),{},{x1:v,y1:m,x2:b,y2:w});return K.createElement(Sa,{className:Ur("recharts-reference-line",c)},function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement("line",NE({},e,{className:"recharts-reference-line-line"}))}(a,x),ZO.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return sE({x:e,y:r},{x:n,y:i})}({x1:v,y1:m,x2:b,y2:w})))}function LE(t){return LE="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},LE(t)}function RE(){return RE=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},RE.apply(this,arguments)}function $E(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 zE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$E(Object(r),!0).forEach((function(e){HE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function HE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=LE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=LE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==LE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}BE.displayName="ReferenceLine",BE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function VE(t){var e=t.x,r=t.y,n=t.r,i=t.alwaysShow,o=t.clipPathId,a=Lo(e),c=Lo(r);if(Aa(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!c)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=pE({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return vM(t,"discard")&&!o.isInRange(a)?null:a}(t);if(!l)return null;var u=l.x,s=l.y,f=t.shape,p=t.className,h=zE(zE({clipPath:vM(t,"hidden")?"url(#".concat(o,")"):void 0},pa(t,!0)),{},{cx:u,cy:s});return K.createElement(Sa,{className:Ur("recharts-reference-dot",p)},VE.renderDot(f,h),ZO.renderCallByParent(t,{x:u-n,y:s-n,width:2*n,height:2*n}))}function UE(t){return UE="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},UE(t)}function FE(){return FE=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},FE.apply(this,arguments)}function WE(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 qE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WE(Object(r),!0).forEach((function(e){XE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function XE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}VE.displayName="ReferenceDot",VE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},VE.renderDot=function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement(VA,RE({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function YE(t){var e=t.x1,r=t.x2,n=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;Aa(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Lo(e),u=Lo(r),s=Lo(n),f=Lo(i),p=t.shape;if(!(l||u||s||f||p))return null;var h=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,l=i.y2,u=i.xAxis,s=i.yAxis;if(!u||!s)return null;var f=pE({x:u.scale,y:s.scale}),p={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!vM(i,"discard")||f.isInRange(p)&&f.isInRange(h)?sE(p,h):null}(l,u,s,f,t);if(!h&&!p)return null;var d=vM(t,"hidden")?"url(#".concat(c,")"):void 0;return K.createElement(Sa,{className:Ur("recharts-reference-area",o)},YE.renderRect(p,qE(qE({clipPath:d},pa(t,!0)),h)),ZO.renderCallByParent(t,h))}function KE(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e){if(void 0!==r&&!0!==r(t[i]))return;n.push(t[i])}return n}function GE(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function ZE(t){return ZE="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},ZE(t)}function JE(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 QE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?JE(Object(r),!0).forEach((function(e){tk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tk(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ZE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ZE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ZE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ek(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,l=t.interval,u=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(Bo(l)||cd.isSsr)return function(t,e){return KE(t,e+1)}(i,"number"==typeof l&&Bo(l)?l:0);var p=[],h="top"===c||"bottom"===c?"width":"height",d=s&&"width"===h?iy(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var i=Sn(u)?u(t.value,n):t.value;return"width"===h?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return hE(n,r)}(iy(i,{fontSize:e,letterSpacing:r}),d,f):iy(i,{fontSize:e,letterSpacing:r})[h]},v=i.length>=2?Io(i[1].coordinate-i[0].coordinate):1,m=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,v,h);return"equidistantPreserveStart"===l?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,l=e.end,u=0,s=1,f=c,p=function(){var e=null==n?void 0:n[u];if(void 0===e)return{v:KE(n,s)};var o,a=u,p=function(){return void 0===o&&(o=r(e,a)),o},h=e.coordinate,d=0===u||GE(t,h,p,f,l);d||(u=0,f=c,s+=1),d&&(f=h+t*(p()/2+i),u+=s)};s<=a.length;)if(o=p())return o.v;return[]}(v,m,y,i,a):(p="preserveStart"===l||"preserveStartEnd"===l?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,l=e.start,u=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-u);a[c-1]=s=QE(QE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),GE(t,s.tickCoord,(function(){return f}),l,u)&&(u=s.tickCoord-t*(f/2+i),a[c-1]=QE(QE({},s),{},{isShow:!0}))}for(var h=o?c-1:c,d=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-l);a[e]=o=QE(QE({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=QE(QE({},o),{},{tickCoord:o.coordinate});GE(t,o.tickCoord,c,l,u)&&(l=o.tickCoord+t*(c()/2+i),a[e]=QE(QE({},o),{},{isShow:!0}))},y=0;y<h;y++)d(y);return a}(v,m,y,i,a,"preserveStartEnd"===l):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,l=e.end,u=function(e){var n,u=o[e],s=function(){return void 0===n&&(n=r(u,e)),n};if(e===a-1){var f=t*(u.coordinate+t*s()/2-l);o[e]=u=QE(QE({},u),{},{tickCoord:f>0?u.coordinate-f*t:u.coordinate})}else o[e]=u=QE(QE({},u),{},{tickCoord:u.coordinate});GE(t,u.tickCoord,s,c,l)&&(l=u.tickCoord-t*(s()/2+i),o[e]=QE(QE({},u),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return o}(v,m,y,i,a),p.filter((function(t){return t.isShow})))}YE.displayName="ReferenceArea",YE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},YE.renderRect=function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement(zA,FE({},e,{className:"recharts-reference-area-rect"}))};var rk=["viewBox"],nk=["viewBox"],ik=["ticks"];function ok(t){return ok="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},ok(t)}function ak(){return ak=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},ak.apply(this,arguments)}function ck(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 lk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ck(Object(r),!0).forEach((function(e){yk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ck(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function sk(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,vk(n.key),n)}}function fk(t,e,r){return e=hk(e),function(t,e){if(e&&("object"===ok(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,pk()?Reflect.construct(e,r||[],hk(t).constructor):e.apply(t,r))}function pk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pk=function(){return!!t})()}function hk(t){return hk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hk(t)}function dk(t,e){return dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dk(t,e)}function yk(t,e,r){return(e=vk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vk(t){var e=function(t,e){if("object"!=ok(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ok(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ok(e)?e:String(e)}var mk=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=fk(this,e,[t])).state={fontSize:"",letterSpacing:""},r}var r,n,i;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&&dk(t,e)}(e,st),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=uk(t,rk),i=this.props,o=i.viewBox,a=uk(i,nk);return!Fo(r,o)||!Fo(n,a)||!Fo(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,i,o,a,c=this.props,l=c.x,u=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,m=t.tickSize||h,g=Bo(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=u+ +!d*f)-v*m)-v*y,o=g;break;case"left":n=i=t.coordinate,o=(e=(r=l+ +!d*s)-v*m)-v*y,a=g;break;case"right":n=i=t.coordinate,o=(e=(r=l+ +d*s)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(i=u+ +d*f)+v*m)+v*y,o=g}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,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,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,l=lk(lk(lk({},pa(this.props,!1)),pa(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!a||"bottom"===o&&a);l=lk(lk({},l),{},{x1:e,y1:r+u*i,x2:e+n,y2:r+u*i})}else{var s=+("left"===o&&!a||"right"===o&&a);l=lk(lk({},l),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return K.createElement("line",ak({},l,{className:Ur("recharts-cartesian-axis-line",vo(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,l=o.tick,u=o.tickFormatter,s=o.unit,f=ek(lk(lk({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=pa(this.props,!1),y=pa(l,!1),v=lk(lk({},d),{},{fill:"none"},pa(a,!1)),m=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,m=n.tick,g=lk(lk(lk(lk({textAnchor:p,verticalAnchor:h},d),{},{stroke:"none",fill:c},y),m),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:u});return K.createElement(Sa,ak({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Zo(i.props,t,r)),a&&K.createElement("line",ak({},v,o,{className:Ur("recharts-cartesian-axis-tick-line",vo(a,"className"))})),l&&e.renderTickItem(l,g,"".concat(Sn(u)?u(t.value,r):t.value).concat(s||"")))}));return K.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,l=c.ticks,u=uk(c,ik),s=l;return Sn(o)&&(s=l&&l.length>0?o(this.props):o(u)),n<=0||i<=0||!s||!s.length?null:K.createElement(Sa,{className:Ur("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),ZO.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement(Dy,ak({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&sk(r.prototype,n),i&&sk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();yk(mk,"displayName","CartesianAxis"),yk(mk,"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 gk=["type","layout","connectNulls","ref"];function bk(t){return bk="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},bk(t)}function wk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function xk(){return xk=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},xk.apply(this,arguments)}function Ok(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 Sk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ok(Object(r),!0).forEach((function(e){Ck(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ok(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jk(t){return function(t){if(Array.isArray(t))return Ak(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 Ak(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 Ak(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 Ak(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 Pk(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,Dk(n.key),n)}}function Mk(t,e,r){return e=kk(e),function(t,e){if(e&&("object"===bk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _k(t)}(t,Ek()?Reflect.construct(e,r||[],kk(t).constructor):e.apply(t,r))}function Ek(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ek=function(){return!!t})()}function kk(t){return kk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kk(t)}function _k(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Tk(t,e){return Tk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tk(t,e)}function Ck(t,e,r){return(e=Dk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dk(t){var e=function(t,e){if("object"!=bk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bk(e)?e:String(e)}var Ik=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Ck(_k(t=Mk(this,e,[].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),Ck(_k(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),Ck(_k(t),"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,l=n-r,u=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){u=[].concat(jk(i.slice(0,s)),[c-f]);break}var p=u.length%2==0?[0,l]:[l];return[].concat(jk(e.repeat(i,a)),jk(u),p).map((function(t){return"".concat(t,"px")})).join(", ")})),Ck(_k(t),"id",$o("recharts-line-")),Ck(_k(t),"pathRef",(function(e){t.mainCurve=e})),Ck(_k(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),Ck(_k(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var r,n,i;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&&Tk(t,e)}(e,J),r=e,n=[{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(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=ca(r.children,Yx);if(!c)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:aO(t.payload,e)}},u={clipPath:t?"url(#clipPath-".concat(e,")"):null};return K.createElement(Sa,u,c.map((function(t){return K.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,l=pa(this.props,!1),u=pa(o,!0),s=a.map((function(t,r){var n=Sk(Sk(Sk({key:"dot-".concat(r),r:3},l),u),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return K.createElement(Sa,xk({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var l=wk(i,gk),u=Sk(Sk(Sk({},pa(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return K.createElement(FS,xk({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,h=n.height,d=this.state,y=d.prevPoints,v=d.totalLength;return K.createElement(kA,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],i=Vo(n.x,t.x),o=Vo(n.y,t.y);return Sk(Sk({},t),{},{x:i(a),y:o(a)})}if(f){var l=Vo(2*p,t.x),u=Vo(h/2,t.y);return Sk(Sk({},t),{},{x:l(a),y:u(a)})}return Sk(Sk({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(l,t,e)}var u,s=Vo(0,v)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));u=r.getStrokeDasharray(s,v,d)}else u=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!Lw(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,l=e.top,u=e.left,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Ur("recharts-line",o),m=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,b=m||g,w=mo(h)?this.id:h,x=null!==(t=pa(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(fa(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return K.createElement(Sa,{className:v},m||g?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(w)},K.createElement("rect",{x:m?u:u-s/2,y:g?l:l-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&K.createElement("clipPath",{id:"clipPath-dots-".concat(w)},K.createElement("rect",{x:u-E/2,y:l-E/2,width:s+E,height:f+E}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,M,w),(!p||d)&&pS.renderCallByParent(this.props,i))}}],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(jk(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(jk(n),jk(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(K.isValidElement(t))r=K.cloneElement(t,e);else if(Sn(t))r=t(e);else{var n=Ur("recharts-line-dot",t?t.className:"");r=K.createElement(VA,xk({},e,{className:n}))}return r}}],n&&Pk(r.prototype,n),i&&Pk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Ck(Ik,"displayName","Line"),Ck(Ik,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!cd.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Ck(Ik,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,l=t.displayedData,u=t.offset,s=e.layout;return Sk({points:l.map((function(t,e){var l=aO(t,a);return"horizontal"===s?{x:gO({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:mo(l)?null:n.scale(l),value:l,payload:t}:{x:mo(l)?null:r.scale(l),y:gO({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:l,payload:t}})),layout:s},u)}));var Nk,Bk=["layout","type","stroke","connectNulls","isRange","ref"];function Lk(t){return Lk="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},Lk(t)}function Rk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function $k(){return $k=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},$k.apply(this,arguments)}function zk(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 Hk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zk(Object(r),!0).forEach((function(e){Yk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vk(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,Kk(n.key),n)}}function Uk(t,e,r){return e=Wk(e),function(t,e){if(e&&("object"===Lk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return qk(t)}(t,Fk()?Reflect.construct(e,r||[],Wk(t).constructor):e.apply(t,r))}function Fk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fk=function(){return!!t})()}function Wk(t){return Wk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wk(t)}function qk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xk(t,e){return Xk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xk(t,e)}function Yk(t,e,r){return(e=Kk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kk(t){var e=function(t,e){if("object"!=Lk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Lk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Lk(e)?e:String(e)}var Gk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Yk(qk(t=Uk(this,e,[].concat(n))),"state",{isAnimationFinished:!0}),Yk(qk(t),"id",$o("recharts-area-")),Yk(qk(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Sn(e)&&e()})),Yk(qk(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Sn(e)&&e()})),t}var r,n,i;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&&Xk(t,e)}(e,J),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,l=a.points,u=a.dataKey,s=pa(this.props,!1),f=pa(c,!0),p=l.map((function(t,r){var n=Hk(Hk(Hk({key:"dot-".concat(r),r:3},s),f),{},{dataKey:u,cx:t.x,cy:t.y,index:r,value:t.value,payload:t.payload});return e.renderDotItem(c,n)})),h={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return K.createElement(Sa,$k({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),l=Ow(n.map((function(t){return t.y||0})));return Bo(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(Ow(r.map((function(t){return t.y||0}))),l)),Bo(l)?K.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),l=Ow(n.map((function(t){return t.x||0})));return Bo(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(Ow(r.map((function(t){return t.x||0}))),l)),Bo(l)?K.createElement("rect",{x:0,y:o<a?o:o-c,width:l+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,l=i.connectNulls,u=i.isRange;i.ref;var s=Rk(i,Bk);return K.createElement(Sa,{clipPath:r?"url(#clipPath-".concat(n,")"):null},K.createElement(FS,$k({},pa(s,!0),{points:t,connectNulls:l,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&K.createElement(FS,$k({},pa(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:t})),"none"!==c&&u&&K.createElement(FS,$k({},pa(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,h=f.prevBaseLine;return K.createElement(kA,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,l=p.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*l);if(p[r]){var n=p[r],i=Vo(n.x,t.x),o=Vo(n.y,t.y);return Hk(Hk({},t),{},{x:i(a),y:o(a)})}return t}));return c=Bo(o)&&"number"==typeof o?Vo(h,o)(a):mo(o)||Do(o)?Vo(h,0)(a):o.map((function(t,e){var r=Math.floor(e*l);if(h[r]){var n=h[r],i=Vo(n.x,t.x),o=Vo(n.y,t.y);return Hk(Hk({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(u,c,t,e)}return K.createElement(Sa,null,K.createElement("defs",null,K.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),K.createElement(Sa,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,l=a.prevBaseLine,u=a.totalLength;return o&&n&&n.length&&(!c&&u>0||!Lw(c,n)||!Lw(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,l=e.xAxis,u=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Ur("recharts-area",o),m=l&&l.allowDataOverflow,g=u&&u.allowDataOverflow,b=m||g,w=mo(h)?this.id:h,x=null!==(t=pa(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(fa(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return K.createElement(Sa,{className:v},m||g?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(w)},K.createElement("rect",{x:m?c:c-s/2,y:g?a:a-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&K.createElement("clipPath",{id:"clipPath-dots-".concat(w)},K.createElement("rect",{x:c-E/2,y:a-E/2,width:s+E,height:f+E}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,M,w),(!p||d)&&pS.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&Vk(r.prototype,n),i&&Vk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function Zk(){return Zk=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},Zk.apply(this,arguments)}Nk=Gk,Yk(Gk,"displayName","Area"),Yk(Gk,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!cd.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Yk(Gk,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Bo(c)&&"number"==typeof c)return c;var l="horizontal"===i?n:r,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]})),Yk(Gk,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,l=t.bandSize,u=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,h=t.offset,d=r.layout,y=s&&s.length,v=Nk.getBaseValue(r,n,i,o),m="horizontal"===d,g=!1,b=p.map((function(t,e){var r;y?r=s[f+e]:(r=aO(t,u),Array.isArray(r)?g=!0:r=[v,r]);var n=null==r[1]||y&&null==aO(t,u);return m?{x:gO({axis:i,ticks:a,bandSize:l,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:gO({axis:o,ticks:c,bandSize:l,entry:t,index:e}),value:r,payload:t}}));return e=y||g?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):m?o.scale(v):i.scale(v),Hk({points:b,baseLine:e,layout:d,isRange:g},h)})),Yk(Gk,"renderDotItem",(function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement(VA,$k({},e,{className:"recharts-area-dot"}))}));var Jk=function(t){var e=t.xAxisId,r=ME(),n=EE(),i=AE(e);return null==i?null:K.createElement(mk,Zk({},i,{className:Ur("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return pO(t,!0)}}))};function Qk(){return Qk=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},Qk.apply(this,arguments)}Jk.displayName="XAxis",Jk.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 t_=function(t){var e=t.yAxisId,r=ME(),n=EE(),i=PE(e);return null==i?null:K.createElement(mk,Qk({},i,{className:Ur("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return pO(t,!0)}}))};function e_(t){return function(t){if(Array.isArray(t))return r_(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 r_(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 r_(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 r_(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}t_.displayName="YAxis",t_.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 n_=function(t,e,r,n,i){var o=ca(t,BE),a=ca(t,VE),c=[].concat(e_(o),e_(a)),l=ca(t,YE),u="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[u]===r&&vM(e.props,"extendDomain")&&Bo(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),l.length){var p="".concat(s,"1"),h="".concat(s,"2");f=l.reduce((function(t,e){if(e.props[u]===r&&vM(e.props,"extendDomain")&&Bo(e.props[p])&&Bo(e.props[h])){var n=e.props[p],i=e.props[h];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return Bo(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},i_={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],c]:t._events[l].push(c):(t._events[l]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.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 i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var l,u,s=this._events[c],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,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];s.fn.apply(s.context,l)}else{var p,h=s.length;for(u=0;u<h;u++)switch(s[u].once&&this.removeListener(t,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,e);break;case 3:s[u].fn.call(s[u].context,e,n);break;case 4:s[u].fn.call(s[u].context,e,n,i);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];s[u].fn.apply(s[u].context,l)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var l=0,u=[],s=c.length;l<s;l++)(c[l].fn!==e||i&&!c[l].once||n&&c[l].context!==n)&&u.push(c[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},c.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},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(i_);var o_=new(nr(i_.exports)),a_="recharts.syncMouseEvents";function c_(t){return c_="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},c_(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,s_(n.key),n)}}function u_(t,e,r){return(e=s_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s_(t){var e=function(t,e){if("object"!=c_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c_(e)?e:String(e)}var f_=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u_(this,"activeIndex",0),u_(this,"coordinateList",[]),u_(this,"layout","horizontal")}var e,r,n;return e=t,r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,l=t.offset,u=void 0===l?null:l,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!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=u?u: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,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,l=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,u=n+a+c,s=i+this.offset.top+o/2+l;this.mouseHandlerCallback({pageX:u,pageY:s})}}}],r&&l_(e.prototype,r),n&&l_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function p_(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[DO(e,r,n,i),DO(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function h_(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return p_(e);var c=e.cx,l=e.cy,u=e.innerRadius,s=e.outerRadius,f=e.angle,p=DO(c,l,u,f),h=DO(c,l,s,f);n=p.x,i=p.y,o=h.x,a=h.y}return[{x:n,y:i},{x:o,y:a}]}function d_(t){return d_="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},d_(t)}function y_(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 v_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y_(Object(r),!0).forEach((function(e){m_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=d_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g_(t){var e,r=t.element,n=t.tooltipEventType,i=t.isActive,o=t.activeCoordinate,a=t.activePayload,c=t.offset,l=t.activeTooltipIndex,u=t.tooltipAxisBandSize,s=t.layout,f=t.chartName;if(!r||!r.props.cursor||!i||!o||"ScatterChart"!==f&&"axis"!==n)return null;var p=FS;if("ScatterChart"===f)e=o,p=GA;else if("BarChart"===f)e=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(s,o,c,u),p=zA;else if("radial"===s){var h=p_(o),d=h.cx,y=h.cy,v=h.radius;e={cx:d,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},p=xS}else e={points:h_(s,o,c)},p=FS;var m=v_(v_(v_(v_({stroke:"#ccc",pointerEvents:"none"},c),e),pa(r.props.cursor,!1)),{},{payload:a,payloadIndex:l,className:"recharts-tooltip-cursor"});return G(r.props.cursor)?at(r.props.cursor,m):ct(p,m)}var b_=["item"],w_=["children","className","width","height","style","compact","title","desc"];function x_(t){return x_="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},x_(t)}function O_(){return O_=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},O_.apply(this,arguments)}function S_(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||C_(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 j_(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function A_(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,L_(n.key),n)}}function P_(t,e,r){return e=E_(e),function(t,e){if(e&&("object"===x_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return k_(t)}(t,M_()?Reflect.construct(e,r||[],E_(t).constructor):e.apply(t,r))}function M_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(M_=function(){return!!t})()}function E_(t){return E_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E_(t)}function k_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function __(t,e){return __=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},__(t,e)}function T_(t){return function(t){if(Array.isArray(t))return D_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C_(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 C_(t,e){if(t){if("string"==typeof t)return D_(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)?D_(t,e):void 0}}function D_(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 I_(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 N_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I_(Object(r),!0).forEach((function(e){B_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function B_(t,e,r){return(e=L_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L_(t){var e=function(t,e){if("object"!=x_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=x_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==x_(e)?e:String(e)}var R_={xAxis:["bottom","top"],yAxis:["left","right"]},$_={width:"100%",height:"100%"},z_={x:0,y:0};function H_(t){return t}var V_=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(T_(t),T_(r)):t}),[]);return o.length>0?o:t&&t.length&&Bo(n)&&Bo(i)?t.slice(n,i+1):[]};function U_(t){return"number"===t?[0,"auto"]:void 0}var F_=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=V_(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var l,u,s=null!==(l=c.props.data)&&void 0!==l?l:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?u=Uo(void 0===s?a:s,o.dataKey,n):u=s&&s[r]||a[r];return u?[].concat(T_(i),[PO(c,u)]):i}),[])},W_=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,u=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,l=0;l<a;l++){var u=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(Io(s-u)!==Io(f-s)){var h=[];if(Io(f-s)===Io(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+u)/2),h[1]=Math.max(d,(d+u)/2)}else{p=u;var y=f+c[1]-c[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]){o=n[l].index;break}}else{var m=Math.min(u,f),g=Math.max(u,f);if(t>(m+s)/2&&t<=(g+s)/2){o=n[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,l,c);if(u>=0&&l){var s=l[u]&&l[u].value,f=F_(t,e,u,s),p=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return N_(N_(N_({},n),DO(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,l=n.angle;return N_(N_(N_({},n),DO(n.cx,n.cy,c,l)),{},{angle:l,radius:c})}return z_}(r,a,u,i);return{activeTooltipIndex:u,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},q_=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=t.stackOffset,p=fO(u,i);return r.reduce((function(e,r){var h,d=r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,g=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=r.props[o];if(e[O])return e;var S,j,A,P=V_(t.data,{graphicalItems:n.filter((function(t){return t.props[o]===O})),dataStartIndex:c,dataEndIndex:l}),M=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&Bo(n)&&Bo(i))return!0}return!1})(r.props.domain,m,y)&&(S=SO(r.props.domain,null,m),!p||"number"!==y&&"auto"===b||(A=cO(P,v,"category")));var E=U_(y);if(!S||0===S.length){var k,_=null!==(k=r.props.domain)&&void 0!==k?k:E;if(v){if(S=cO(P,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}(S);g&&T?(j=S,S=UP(0,M)):g||(S=AO(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(T_(t),[e])}),[]))}else if("category"===y)S=g?S.filter((function(t){return""!==t&&!mo(t)})):AO(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||mo(e)?t:[].concat(T_(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,i){var o=e.map((function(e){return uO(t,e,r,i,n)})).filter((function(t){return!mo(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),v,i,u);C&&(S=C)}!p||"number"!==y&&"auto"===b||(A=cO(P,v,"category"))}else S=p?UP(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:wO(a[O].stackGroups,c,l):sO(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,u,!0);if("number"===y)S=n_(s,S,O,i,w),_&&(S=SO(_,S,m));else if("category"===y&&_){var D=_;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return N_(N_({},e),{},B_({},O,N_(N_({},r.props),{},{axisType:i,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:E,isCategorical:p,layout:u})))}),{})},X_=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.children,s="".concat(n,"Id"),f=ca(u,i),p={};return f&&f.length?p=q_(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=V_(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),p=f.length,h=fO(u,i),d=-1;return r.reduce((function(t,e){var y,v=e.props[o],m=U_("number");return t[v]?t:(d++,h?y=UP(0,p):a&&a[v]&&a[v].hasStack?(y=wO(a[v].stackGroups,c,l),y=n_(s,y,v,i)):(y=SO(m,sO(f,r.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",u),n.defaultProps.allowDataOverflow),y=n_(s,y,v,i)),N_(N_({},t),{},B_({},v,N_(N_({axisType:i},n.defaultProps),{},{hide:!0,orientation:vo(R_,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:u}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),p},Y_=function(t){var e=t.children,r=t.defaultShowTooltip,n=la(e,lM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},K_=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"}},G_=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,l=r.height,u=r.children,s=r.margin||{},f=la(u,lM),p=la(u,Ip),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:N_(N_({},t),{},B_({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:N_(N_({},t),{},B_({},n,vo(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=N_(N_({},d),h),v=y.bottom;f&&(y.bottom+=f.props.height||lM.defaultProps.height),p&&e&&(y=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),l=Qx({children:i,legendWidth:c});if(l){var u=n||{},s=u.width,f=u.height,p=l.align,h=l.verticalAlign,d=l.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&Bo(t[p]))return rO(rO({},t),{},nO({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&Bo(t[h]))return rO(rO({},t),{},nO({},h,t[h]+(f||0)))}return t}(y,0,r,e));var m=c-y.left-y.right,g=l-y.top-y.bottom;return N_(N_({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(g,0)})},Z_=function(t){var e,r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=void 0===i?"axis":i,a=t.validateTooltipEventTypes,c=void 0===a?["axis"]:a,l=t.axisComponents,u=t.legendContent,s=t.formatAxisMap,f=t.defaultProps,p=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=K_(s),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=na(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=m&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var i={},o=Object.keys(n),a=0,c=o.length;a<c;a++)for(var l=n[o[a]].stackGroups,u=Object.keys(l),s=0,f=u.length;s<f;s++){var p=l[u[s]],h=p.items,d=p.cateAxisId,y=h.filter((function(t){return na(t.type).indexOf("Bar")>=0}));if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[d];i[m]||(i[m]=[]),i[m].push({item:y[0],stackList:y.slice(1),barSize:mo(v)?e:v})}}return i}({barSize:u,stackGroups:n}),b=[];return r.forEach((function(r,u){var d=V_(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),m=r.props,w=m.dataKey,x=m.maxBarSize,O=r.props["".concat(y,"Id")],S=r.props["".concat(v,"Id")],j=l.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=r.props["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?Vx(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):Vx(!1));var l=a[c];return N_(N_({},t),{},B_(B_({},n.axisType,l),"".concat(n.axisType,"Ticks"),pO(l)))}),{}),A=j[v],P=j["".concat(v,"Ticks")],M=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(Lo(r)){var n=e[r];if(n){var i=n.items.indexOf(t);return i>=0?n.stackedData[i]:null}}return null}(r,n[O].stackGroups),E=na(r.type).indexOf("Bar")>=0,k=jO(A,P),_=[];if(E){var T,C,D=mo(x)?h:x,I=null!==(T=null!==(C=jO(A,P,!0))&&void 0!==C?C:D)&&void 0!==T?T:0;_=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var l,u=zo(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,h=o.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*u)>=n&&(h-=(c-1)*u,u=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var d={offset:((n-h)/2>>0)-u,size:0};l=o.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+u,size:f?p:e.barSize}},n=[].concat(iO(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=zo(r,n,0,!0);n-2*y-(c-1)*u<=0&&(u=0);var v=(n-2*y-(c-1)*u)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;l=o.reduce((function(t,e,r){var n=[].concat(iO(t),[{item:e.item,position:{offset:y+(v+u)*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 l}({barGap:f,barCategoryGap:p,bandSize:I!==k?I:k,sizeList:g[S],maxBarSize:D}),I!==k&&(_=_.map((function(t){return N_(N_({},t),{},{position:N_(N_({},t.position),{},{offset:t.position.offset-I/2})})})))}var N,B,L=r&&r.type&&r.type.getComposedData;L&&b.push({props:N_(N_({},L(N_(N_({},j),{},{displayedData:d,props:t,dataKey:w,item:r,bandSize:k,barPosition:_,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},B_(B_(B_({key:r.key||"item-".concat(u)},y,j[y]),v,j[v]),"animationId",o)),childIndex:(N=r,B=t.children,aa(B).indexOf(N)),item:r})})),b},h=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!ua({props:i}))return null;var u=i.children,f=i.layout,h=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=K_(f),m=v.numericAxisName,g=v.cateAxisName,b=ca(u,n),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(Lo(o)){var l=c.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),c.hasStack=!0,c.stackGroups[o]=l}else c.stackGroups[$o("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return rO(rO({},t),{},nO({},a,c))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return rO(rO({},e),{},nO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:mO(t,a.items,i)}))}),{})),rO(rO({},e),{},nO({},o,c))}),{})}(d,b,"".concat(m,"Id"),"".concat(g,"Id"),h,y),x=l.reduce((function(t,e){var r="".concat(e.axisType,"Map");return N_(N_({},t),{},B_({},r,X_(i,N_(N_({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=G_(N_(N_({},x),{},{props:i,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(x).forEach((function(t){x[t]=s(i,x[t],O,t.replace("Map",""),r)}));var S,j,A=x["".concat(g,"Map")],P=(S=Ho(A),{tooltipTicks:j=pO(S,!1,!0),orderedTooltipTicks:Dh(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:jO(S,j)}),M=p(i,N_(N_({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return N_(N_({formattedGraphicalItems:M,graphicalItems:b,offset:O,stackGroups:w},P),x)};return e=function(t){function e(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),B_(k_(o=P_(this,e,[t])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),B_(k_(o),"accessibilityManager",new f_),B_(k_(o),"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(N_({legendBBox:t},h({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},N_(N_({},o.state),{},{legendBBox:t}))))}})),B_(k_(o),"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),B_(k_(o),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return N_({dataStartIndex:e,dataEndIndex:r},h({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),B_(k_(o),"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=N_(N_({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;Sn(n)&&n(r,t)}})),B_(k_(o),"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?N_(N_({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;Sn(n)&&n(r,t)})),B_(k_(o),"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),B_(k_(o),"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),B_(k_(o),"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),B_(k_(o),"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;Sn(r)&&r(e,t)})),B_(k_(o),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&ra[e]?ra[e]:null}(t),n=vo(o.props,"".concat(r));r&&Sn(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),B_(k_(o),"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=N_(N_({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;Sn(n)&&n(r,t)}})),B_(k_(o),"handleMouseDown",(function(t){var e=o.props.onMouseDown;Sn(e)&&e(o.getMouseInfo(t),t)})),B_(k_(o),"handleMouseUp",(function(t){var e=o.props.onMouseUp;Sn(e)&&e(o.getMouseInfo(t),t)})),B_(k_(o),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),B_(k_(o),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),B_(k_(o),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),B_(k_(o),"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&o_.emit(a_,o.props.syncId,t,o.eventEmitterSymbol)})),B_(k_(o),"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(N_({dataStartIndex:a,dataEndIndex:c},h({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var l=t.chartX,u=t.chartY,s=t.activeTooltipIndex,f=o.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=N_(N_({},p),{},{x:p.left,y:p.top}),m=Math.min(l,v.x+v.width),g=Math.min(u,v.y+v.height),b=d[s]&&d[s].value,w=F_(o.state,o.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:m,y:"horizontal"===r?g:d[s].coordinate}:z_;o.setState(N_(N_({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),B_(k_(o),"renderCursor",(function(t){var e,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,l=n.offset,u=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(e=t.props.active)&&void 0!==e?e:i,h=o.props.layout,d=t.key||"_recharts-cursor";return K.createElement(g_,{key:d,activeCoordinate:a,activePayload:c,activeTooltipIndex:u,chartName:r,element:t,isActive:p,layout:h,offset:l,tooltipAxisBandSize:s,tooltipEventType:f})})),B_(k_(o),"renderPolarAxis",(function(t,e,r){var n=vo(t,"type.axisType"),i=vo(o.state,"".concat(n,"Map")),a=i&&i[t.props["".concat(n,"Id")]];return at(t,N_(N_({},a),{},{className:n,key:t.key||"".concat(e,"-").concat(r),ticks:pO(a,!0)}))})),B_(k_(o),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,l=a.angleAxisMap,u=Ho(c),s=Ho(l),f=s.cx,p=s.cy,h=s.innerRadius,d=s.outerRadius;return at(t,{polarAngles:Array.isArray(n)?n:pO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:pO(u,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),B_(k_(o),"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),l=Qx({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=j_(l,b_);return at(s,N_(N_({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),B_(k_(o),"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=la(r,bd);if(!i)return null;var a=o.state,c=a.isTooltipActive,l=a.activeCoordinate,u=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return at(i,{viewBox:N_(N_({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?u:[],coordinate:l,accessibilityLayer:n})})),B_(k_(o),"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return at(t,{key:t.key||"_recharts-brush",onChange:dO(o.handleBrushChange,t.props.onChange),data:n,x:Bo(t.props.x)?t.props.x:a.left,y:Bo(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Bo(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),B_(k_(o),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=k_(o).clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=t.props,s=u.xAxisId,f=u.yAxisId;return at(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[s],yAxis:c[f],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),B_(k_(o),"renderActivePoints",(function(t){var r=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],l=r.props.key,u=r.item.props,s=u.activeDot,f=N_(N_({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:lO(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(l,"-activePoint-").concat(o)},pa(s,!1)),Go(s));return c.push(e.renderActiveDot(s,f)),i?c.push(e.renderActiveDot(s,N_(N_({},f),{},{cx:i.x,cy:i.y,key:"".concat(l,"-basePoint-").concat(o)}))):a&&c.push(null),c})),B_(k_(o),"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,l=a.tooltipAxis,u=a.activeTooltipIndex,s=a.activeLabel,f=la(o.props.children,bd),p=n.props,h=p.points,d=p.isRange,y=p.baseLine,v=n.item.props,m=v.activeDot,g=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!g&&c&&f&&(m||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:dO(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:dO(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:dO(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=at(t,N_(N_({},n.props),O));if(x){if(!(u>=0)){var j,A=(null!==(j=o.getItemByXY(o.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,P=A.item,M=void 0===P?t:P,E=A.childIndex,k=N_(N_(N_({},n.props),O),{},{activeIndex:E});return[at(M,k),null,null]}var _,T;if(l.dataKey&&!l.allowDuplicatedCategory){var C="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());_=Uo(h,C,s),T=d&&y&&Uo(y,C,s)}else _=null==h?void 0:h[u],T=d&&y&&y[u];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:u;return[at(t,N_(N_(N_({},n.props),O),{},{activeIndex:D})),null,null]}if(!mo(_))return[S].concat(T_(o.renderActivePoints({item:n,activePoint:_,basePoint:T,childIndex:u,isRange:d})))}return d?[S,null,null]:[S,null]})),B_(k_(o),"renderCustomized",(function(t,e,r){return at(t,N_(N_({key:"recharts-customized-".concat(r)},o.props),o.state))})),B_(k_(o),"renderMap",{CartesianGrid:{handler:H_,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:H_},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:H_},YAxis:{handler:H_},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:$o("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=Vd(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}var n,i,a;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&&__(t,e)}(e,st),n=e,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,i=t.layout,o=la(e,bd);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=F_(this.state,r,a,c),u=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:u,y:s}:{y:u,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=N_(N_({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:l,activeCoordinate:f};this.setState(h),this.renderCursor(o),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){ha([la(t.children,bd)],[la(this.props.children,bd)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=la(this.props.children,bd);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return c.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&s){var f=Ho(u).scale,p=Ho(s).scale,h=f&&f.invert?f.invert(o.chartX):null,d=p&&p.invert?p.invert(o.chartY):null;return N_(N_({},o),{},{xValue:h,yValue:d})}var y=W_(this.state,this.props.data,this.props.layout,c);return y?N_(N_({},o),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,l=c.angleAxisMap,u=c.radiusAxisMap;if(l&&u){var s=Ho(l);return BO({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=la(t,bd),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),N_(N_({},Go(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){o_.on(a_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){o_.removeListener(a_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===na(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return K.createElement("defs",null,K.createElement("clipPath",{id:t},K.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=S_(e,2),n=r[0],i=r[1];return N_(N_({},t),{},B_({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=S_(e,2),n=r[0],i=r[1];return N_(N_({},t),{},B_({},n,i.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 i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,l=a.item,u=na(l.type);if("Bar"===u){var s=(c.data||[]).find((function(e){return RA(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===u){var f=(c.data||[]).find((function(e){return BO(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(kP(a,n)||_P(a,n)||TP(a,n)){var p=NP({graphicalItem:a,activeTooltipItem:n,itemData:l.props.data}),h=void 0===l.props.activeIndex?p:l.props.activeIndex;return{graphicalItem:N_(N_({},a),{},{childIndex:h}),payload:TP(a,n)?l.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var t,e=this;if(!ua(this))return null;var r,n,i=this.props,o=i.children,a=i.className,c=i.width,l=i.height,u=i.style,s=i.compact,f=i.title,p=i.desc,h=j_(i,w_),d=pa(h,!1);if(s)return K.createElement(SE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement(ba,O_({},d,{width:c,height:l,title:f,desc:p}),this.renderClipPath(),ya(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,d.role=null!==(n=this.props.role)&&void 0!==n?n:"application",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return K.createElement(SE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement("div",O_({className:Ur("recharts-wrapper",a),style:N_({position:"relative",cursor:"default",width:c,height:l},u)},y,{ref:function(t){e.container=t},role:null!==(t=d.role)&&void 0!==t?t:"region"}),K.createElement(ba,O_({},d,{width:c,height:l,title:f,desc:p,style:$_}),this.renderClipPath(),ya(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&A_(n.prototype,i),a&&A_(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(),B_(e,"displayName",r),B_(e,"defaultProps",N_({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),B_(e,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,l=t.stackOffset,u=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=Y_(t);return N_(N_(N_({},p),{},{updateId:0},h(N_(N_({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||l!==e.prevStackOffset||!Fo(u,e.prevMargin)){var d=Y_(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=N_(N_({},W_(e,n,c)),{},{updateId:e.updateId+1}),m=N_(N_(N_({},d),y),v);return N_(N_(N_({},m),h(N_({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(!ha(i,e.prevChildren)){var g,b,w,x,O=la(i,lM),S=O&&null!==(g=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==g?g:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,A=S!==s||j!==f,P=!mo(n)&&!A?e.updateId:e.updateId+1;return N_(N_({updateId:P},h(N_(N_({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:j})}return null})),B_(e,"renderActiveDot",(function(t,e){var r;return r=G(t)?at(t,e):Sn(t)?t(e):K.createElement(VA,e),K.createElement(Sa,{className:"recharts-active-dot",key:e.key},r)})),e},J_=Z_({chartName:"LineChart",GraphicalChild:Ik,axisComponents:[{axisType:"xAxis",AxisComp:Jk},{axisType:"yAxis",AxisComp:t_}],formatAxisMap:uE}),Q_=Z_({chartName:"AreaChart",GraphicalChild:Gk,axisComponents:[{axisType:"xAxis",AxisComp:Jk},{axisType:"yAxis",AxisComp:t_}],formatAxisMap:uE});const tT=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",showTooltip:c=!1,isAnimated:l=!1,formatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=xr({data:r,dataKey:n}),h=crypto.randomUUID(),d=s?Sr({arr:r||[],n:s}):r;let y,v;d?.length?(v=p?jr.mint():jr.coolElegance(),y=d?.map((t=>({...t,[n]:Number(t[n])||0})))):(v=jr.coolElegance(),y=[{[n]:1},{[n]:1}]);const m={cursor:c&&d?.length?"crosshair":"default",...f};return e(Kd,{width:i,minHeight:o,children:t(Q_,{data:y,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:h,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:v,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:v,stopOpacity:0})]})}),e(t_,{domain:d?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(Gk,{type:a,dataKey:n,stroke:v,fill:`url(#${h})`,isAnimationActive:l}),d?.length&&c&&e(bd,{cursor:!1,formatter:u})]})})},eT=()=>{const t=l({ssr:!1});return e(u,{children:e(s,{bgColor:{base:"rgba(255, 143, 163, 0.9)",sm:"rgba(255, 117, 143, 0.9)",md:"rgba(255, 77, 109, 0.9)",lg:"rgba(201, 24, 74, 0.9)",xl:"rgba(164, 19, 60, 0.9)","2xl":"rgba(128, 15, 47, 0.9)"},color:{base:"black",md:"white"},position:"absolute",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",children:t})})},rT=({children:t,...r})=>e(f,{border:"solid 1px",borderColor:jr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),nT=({isSelected:t,children:r,...n})=>e(p,{paddingX:"1",fontSize:"sm",color:t?"brand.500":jr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),iT=({children:t,...r})=>e(h,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:jr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),oT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=rt(0);return n.length>=1&&e(iT,{children:t(d,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(d,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(y,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(gt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(y,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},aT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,errorMessage:l,label:u,labelPosition:s="left",spaceBetween:f,...p}=r;let h;return c||(h=e(Ot,{})),t(v,{as:d,flexDir:"column",isInvalid:Boolean(l),isDisabled:i,isReadOnly:o,isRequired:a,...p,children:[t(d,{w:"full",justifyContent:f?"space-between":"auto",children:["left"===s&&e(m,{fontSize:n,m:"0",mr:"3",children:u}),e(g,{icon:h,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(l),size:n}),"right"===s&&e(m,{fontSize:n,m:"0",ml:"3",children:u})]}),e(d,{w:"full",children:l&&e(b,{size:n,children:l})})]})},cT=({children:t,onSubmit:r,...n})=>e(d,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var lT=function(){return lT=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},lT.apply(this,arguments)};function uT(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var sT=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},fT={k:1e3,m:1e6,b:1e9},pT=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,l=t.decimalsLimit,u=void 0===l?2:l,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,h=void 0!==p&&p,d=t.prefix,y=void 0===d?"":d,v=t.transformRawValue,m=(void 0===v?function(t){return t}:v)(e);if("-"===m)return m;var g=h?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(sT(y),")")).test(m),w=RegExp("(\\d+)-?".concat(sT(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(sT(e),"g");return t.replace(r,"")}(y?x?m.replace(x,"").concat(O):m.replace(y,""):m,n),j=function(t,e){var r=sT(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,uT([n,o],g,!0)),A=j;if(!h){if(g.some((function(t){return t===j.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(sT(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=fT[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(j,o);P&&(A=String(P))}var M=b&&f?"-":"";if(o&&A.includes(o)){var E=j.split(o),k=E[0],_=E[1],T=u&&_?_.slice(0,u):_,C=c?"".concat(o).concat(T):"";return"".concat(M).concat(k).concat(C)}return"".concat(M).concat(A)},hT=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(sT(n)).concat(sT(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},dT=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,l=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var u=new RegExp("^\\d?-".concat(a?"".concat(sT(a),"?"):"","\\d")).test(e),s="."!==r?yT(e,r,u):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:i||0,maximumFractionDigits:20},p=(n?new Intl.NumberFormat(n.locale,n.currency?lT(lT({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),h=vT(p,t),d=hT(h,lT({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&v&&r&&(h=h.includes(r)?h.replace(RegExp("(\\d+)(".concat(sT(r),")(\\d+)"),"g"),"$1$2".concat(v)):d&&!l?h.replace(d,"".concat(r).concat(v).concat(d)):"".concat(h).concat(r).concat(v)),l&&y?"".concat(h).concat(y).concat(l):d&&y?h.replace(d,"".concat(y).concat(d)):d&&l?h.replace(d,"".concat(y).concat(l)):[h,y,l].join("")},yT=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(sT(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},vT=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var l=e.type,u=e.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?uT(uT([],t,!0),[r],!1):[r,u]:"currency"===l?r?t:uT(uT([],t,!0),[u],!1):"group"===l?c?t:uT(uT([],t,!0),[void 0!==n?n:u],!1):"decimal"===l?void 0!==o&&0===o?t:uT(uT([],t,!0),[void 0!==i?i:u],!1):uT(uT([],t,!0),"fraction"===l?[void 0!==o?u.slice(0,o):u]:[u],!1)}),[""]).join("")},mT={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},gT=function(t){return RegExp(/\d/,"gi").test(t)},bT=Q((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,l=t.className,u=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,h=void 0!==p&&p,d=t.maxLength,y=t.value,v=t.onValueChange,m=t.fixedDecimalLength,g=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,j=t.min,A=t.max,P=t.disableGroupSeparators,M=void 0!==P&&P,E=t.disableAbbreviations,k=void 0!==E&&E,_=t.decimalSeparator,T=t.groupSeparator,C=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,B=t.onKeyUp,L=t.transformRawValue,R=t.formatValueOnBlur,$=void 0===R||R,z=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(_&&gT(_))throw new Error("decimalSeparator cannot be a number");if(T&&gT(T))throw new Error("groupSeparator cannot be a number");var H=ot((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?lT(lT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?lT(lT({},t),{groupSeparator:e.value}):"decimal"===e.type?lT(lT({},t),{decimalSeparator:e.value}):t}),mT)}(O)}),[O]),V=_||H.decimalSeparator||"",U=T||H.groupSeparator||"";if(V&&U&&V===U&&!1===M)throw new Error("decimalSeparator cannot be the same as groupSeparator");var F={decimalSeparator:V,groupSeparator:U,disableGroupSeparators:M,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:V,groupSeparator:U,allowDecimals:n,decimalsLimit:s||m||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},q=rt((function(){return null!=f?dT(lT(lT({},F),{decimalScale:b,value:String(f)})):null!=y?dT(lT(lT({},F),{decimalScale:b,value:String(y)})):""})),X=q[0],Y=q[1],G=rt(!1),Z=G[0],J=G[1],Q=rt(0),nt=Q[0],at=Q[1],ct=rt(0),lt=ct[0],ut=ct[1],st=rt(null),ft=st[0],pt=st[1],ht=tt(null);et(e,(function(){return ht.current}));var dt=function(t,e){J(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var l=r.split("");return"Backspace"===n&&i[a]===o&&(l.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(l.splice(a,1),a+=1),{modifiedValue:c=l.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ft,stateValue:X,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=pT(lT({value:n},W));if(!(d&&o.replace(/-/g,"").length>d)){if(""===o||"-"===o||o===V)return v&&v(void 0,c,{float:null,formatted:"",value:""}),Y(o),void at(1);var a=V?o.replace(V,"."):o,l=parseFloat(a),u=dT(lT({value:o},F));if(null!=i){var s=i+(u.length-t.length);s=s<=0?w?w.length:0:s,at(s),ut(lt+1)}if(Y(u),v)v(o,c,{float:l,formatted:u,value:o})}};it((function(){null==y&&null==f&&Y("")}),[f,y]),it((function(){Z&&"-"!==X&&ht.current&&document.activeElement===ht.current&&ht.current.setSelectionRange(nt,nt)}),[X,nt,ht,Z,lt]);var yt=lT({type:"text",inputMode:"decimal",id:a,name:c,className:l,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;dt(r,n),C&&C(t)},onBlur:function(t){var e=t.target.value,r=pT(lT({value:e},W));if("-"===r||r===V||!r)return Y(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,V,m),i=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,V,void 0!==b?b:m),o=parseFloat(i.replace(V,".")),a=dT(lT(lT({},F),{value:i}));v&&$&&v(i,c,{float:o,formatted:a,value:i}),Y(a),I&&I(t)},onFocus:function(t){return D&&D(t),X?X.length:0},onKeyDown:function(t){var e=t.key;if(pt(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),at(X.length);var r=parseFloat(null!=y?String(y).replace(V,"."):pT(lT({value:X},W)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==A&&n>Number(A))return;var i=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;dt(String(i?n.toFixed(i):n).replace(".",V))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==X){var n=hT(X,{groupSeparator:U,decimalSeparator:V});if(n&&r&&r>X.length-n.length&&ht.current){var i=X.length-n.length;ht.current.setSelectionRange(i,i)}}B&&B(t)},placeholder:g,disabled:h,value:null==y||"-"===X||V&&X===V?X:dT(lT(lT({},F),{decimalScale:Z?void 0:b,value:String(y)})),ref:ht},z);if(u){var vt=u;return K.createElement(vt,lT({},yt))}return K.createElement("input",lT({},yt))}));bT.displayName="CurrencyInput";const wT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,name:l,label:u,register:s,errorMessage:f,helperText:p,leftAddon:h,leftElement:d,rightAddon:y,rightElement:g,type:M="text",...E}=r,k=Or(n),_=s?s(l):void 0,T="currency"===M?{as:bT,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return t(v,{isInvalid:Boolean(f),isDisabled:i,isReadOnly:o,isRequired:a,children:[u&&e(m,{size:n,children:u}),t(w,{size:n,children:[h&&e(x,{bg:"transparent",children:h}),d&&e(O,{w:"auto",ml:"2",children:d}),e(S,{size:n,spellCheck:c,paddingLeft:d&&"2.25em",paddingRight:g&&"2.25em",type:"currency"===M?"text":M,..._,...T,...E}),g&&e(j,{w:"auto",mr:"2",children:g}),y&&e(A,{children:y})]}),f&&e(b,{size:n,children:f}),p&&e(P,{fontSize:k,children:p})]})};var xT=t=>null==t;var OT=t=>!xT(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),ST=t=>{const e=t.constructor&&t.constructor.prototype;return OT(e)&&e.hasOwnProperty("isPrototypeOf")},jT="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function AT(t){let e;const r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(jT&&(t instanceof Blob||t instanceof FileList)||!r&&!OT(t))return t;if(e=r?[]:{},r||ST(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=AT(t[r]));else e=t}return e}var PT=t=>Array.isArray(t)?t.filter(Boolean):[],MT=t=>void 0===t,ET=(t,e,r)=>{if(!e||!OT(t))return r;const n=PT(e.split(/[,[\].]+?/)).reduce(((t,e)=>xT(t)?t:t[e]),t);return MT(n)||n===t?MT(t[e])?r:t[e]:n},kT=t=>"boolean"==typeof t;const _T="onBlur",TT="onChange",CT="onSubmit",DT="onTouched",IT="all",NT="max",BT="min",LT="maxLength",RT="minLength",$T="pattern",zT="required",HT="validate",VT=K.createContext(null);var UT=t=>OT(t)&&!Object.keys(t).length,FT=t=>Array.isArray(t)?t:[t];var WT=t=>"string"==typeof t,qT=t=>/^\w*$/.test(t),XT=t=>PT(t.replace(/["|']|\]/g,"").split(/\.|\[/)),YT=(t,e,r)=>{let n=-1;const i=qT(e)?[e]:XT(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=OT(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}t[e]=o,t=t[e]}return t},KT=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},GT=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},ZT=(t,e,r={})=>r.shouldFocus||MT(r.shouldFocus)?r.focusName||`${t}.${MT(r.focusIndex)?e:r.focusIndex}.`:"",JT=t=>({isOnSubmit:!t||t===CT,isOnBlur:t===_T,isOnChange:t===TT,isOnAll:t===IT,isOnTouch:t===DT});const QT=(t,e,r,n)=>{for(const i of r||Object.keys(t)){const r=ET(t,i);if(r){const{_f:t,...o}=r;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],i)&&!n)break;if(t.ref&&e(t.ref,t.name)&&!n)break;QT(o,e)}else OT(o)&&QT(o,e)}}};var tC=(t,e,r)=>{const n=PT(ET(t,r));return YT(n,"root",e[r]),YT(t,r,n),t},eC=t=>WT(t),rC=t=>t instanceof RegExp;const nC={value:!1,isValid:!1},iC={value:!0,isValid:!0};const oC={isValid:!1,value:null};function aC(t,e,r="validate"){if(eC(t)||Array.isArray(t)&&t.every(eC)||kT(t)&&!t)return{type:r,message:eC(t)?t:"",ref:e}}var cC=t=>OT(t)&&!rC(t)?t:{value:t,message:""},lC=async(t,e,r,n,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:s,max:f,pattern:p,validate:h,name:d,valueAsNumber:y,mount:v,disabled:m}=t._f,g=ET(e,d);if(!v||m)return{};const b=a?a[0]:o,w=t=>{n&&b.reportValidity&&(b.setCustomValidity(kT(t)?"":t||""),b.reportValidity())},x={},O="radio"===o.type;const S=(t=>"checkbox"===t.type)(o),j=O||S,A=(y||(t=>"file"===t.type)(o))&&MT(o.value)&&MT(g)||(t=>{if(!jT)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(o)&&""===o.value||""===g||Array.isArray(g)&&!g.length,P=KT.bind(null,d,r,x),M=(t,e,r,n=LT,i=RT)=>{const a=t?e:r;x[d]={type:t?n:i,message:a,ref:o,...P(t?n:i,a)}};if(i?!Array.isArray(g)||!g.length:c&&(!j&&(A||xT(g))||kT(g)&&!g||S&&!(t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter((t=>t&&t.checked&&!t.disabled)).map((t=>t.value));return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!MT(t[0].attributes.value)?MT(t[0].value)||""===t[0].value?iC:{value:t[0].value,isValid:!0}:iC:nC}return nC})(a).isValid||O&&!(E=a,Array.isArray(E)?E.reduce(((t,e)=>e&&e.checked&&!e.disabled?{isValid:!0,value:e.value}:t),oC):oC).isValid)){const{value:t,message:e}=eC(c)?{value:!!c,message:c}:cC(c);if(t&&(x[d]={type:zT,message:e,ref:b,...P(zT,e)},!r))return w(e),x}var E;if(!(A||xT(s)&&xT(f))){let t,e;const n=cC(f),i=cC(s);if(xT(g)||isNaN(g)){const r=o.valueAsDate||new Date(g),a=t=>new Date((new Date).toDateString()+" "+t),c="time"==o.type,l="week"==o.type;WT(n.value)&&g&&(t=c?a(g)>a(n.value):l?g>n.value:r>new Date(n.value)),WT(i.value)&&g&&(e=c?a(g)<a(i.value):l?g<i.value:r<new Date(i.value))}else{const r=o.valueAsNumber||(g?+g:g);xT(n.value)||(t=r>n.value),xT(i.value)||(e=r<i.value)}if((t||e)&&(M(!!t,n.message,i.message,NT,BT),!r))return w(x[d].message),x}if((l||u)&&!A&&(WT(g)||i&&Array.isArray(g))){const t=cC(l),e=cC(u),n=!xT(t.value)&&g.length>+t.value,i=!xT(e.value)&&g.length<+e.value;if((n||i)&&(M(n,t.message,e.message),!r))return w(x[d].message),x}if(p&&!A&&WT(g)){const{value:t,message:e}=cC(p);if(rC(t)&&!g.match(t)&&(x[d]={type:$T,message:e,ref:o,...P($T,e)},!r))return w(e),x}if(h)if("function"==typeof h){const t=aC(await h(g,e),b);if(t&&(x[d]={...t,...P(HT,t.message)},!r))return w(t.message),x}else if(OT(h)){let t={};for(const n in h){if(!UT(t)&&!r)break;const i=aC(await h[n](g,e),b,n);i&&(t={...i,...P(n,i.message)},w(i.message),r&&(x[d]=t))}if(!UT(t)&&(x[d]={ref:b,...t},!r))return x}return w(!0),x},uC=(t,e)=>[...t,...FT(e)],sC=t=>Array.isArray(t)?t.map((()=>{})):void 0;function fC(t,e,r){return[...t.slice(0,e),...FT(r),...t.slice(e)]}var pC=(t,e,r)=>Array.isArray(t)?(MT(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],hC=(t,e)=>[...FT(e),...FT(t)];var dC=(t,e)=>MT(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return PT(n).length?n:[]}(t,FT(e).sort(((t,e)=>t-e))),yC=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function vC(t,e){const r=Array.isArray(e)?e:qT(e)?[e]:XT(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=MT(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(OT(n)&&UT(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!MT(t[e]))return!1;return!0}(n))&&vC(t,r.slice(0,-1)),t}var mC=(t,e,r)=>(t[e]=r,t);function gC(t){const e=K.useContext(VT),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o}=t,[a,c]=K.useState(r._getFieldArray(n)),l=K.useRef(r._getFieldArray(n).map(GT)),u=K.useRef(a),s=K.useRef(n),f=K.useRef(!1);s.current=n,u.current=a,r._names.array.add(n),t.rules&&r.register(n,t.rules),function(t){const e=K.useRef(t);e.current=t,K.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===s.current||!e){const e=ET(t,s.current);Array.isArray(e)&&(c(e),l.current=e.map(GT))}},subject:r._subjects.array});const p=K.useCallback((t=>{f.current=!0,r._updateFieldArray(n,t)}),[r,n]);return K.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length))))))(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!JT(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=ET(t.errors,n),i=ET(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?YT(r._formState.errors,n,e):vC(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=ET(r._fields,n);!t||!t._f||JT(r._options.reValidateMode).isOnSubmit&&JT(r._options.mode).isOnSubmit||lC(t,r._formValues,r._options.criteriaMode===IT,r._options.shouldUseNativeValidation,!0).then((t=>!UT(t)&&r._subjects.state.next({errors:tC(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&QT(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),f.current=!1}),[a,n,r]),K.useEffect((()=>(!ET(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)})),[n,r,i,o]),{swap:K.useCallback(((t,e)=>{const i=r._getFieldArray(n);yC(i,t,e),yC(l.current,t,e),p(i),c(i),r._updateFieldArray(n,i,yC,{argA:t,argB:e},!1)}),[p,n,r]),move:K.useCallback(((t,e)=>{const i=r._getFieldArray(n);pC(i,t,e),pC(l.current,t,e),p(i),c(i),r._updateFieldArray(n,i,pC,{argA:t,argB:e},!1)}),[p,n,r]),prepend:K.useCallback(((t,e)=>{const i=FT(AT(t)),o=hC(r._getFieldArray(n),i);r._names.focus=ZT(n,0,e),l.current=hC(l.current,i.map(GT)),p(o),c(o),r._updateFieldArray(n,o,hC,{argA:sC(t)})}),[p,n,r]),append:K.useCallback(((t,e)=>{const i=FT(AT(t)),o=uC(r._getFieldArray(n),i);r._names.focus=ZT(n,o.length-1,e),l.current=uC(l.current,i.map(GT)),p(o),c(o),r._updateFieldArray(n,o,uC,{argA:sC(t)})}),[p,n,r]),remove:K.useCallback((t=>{const e=dC(r._getFieldArray(n),t);l.current=dC(l.current,t),p(e),c(e),r._updateFieldArray(n,e,dC,{argA:t})}),[p,n,r]),insert:K.useCallback(((t,e,i)=>{const o=FT(AT(e)),a=fC(r._getFieldArray(n),t,o);r._names.focus=ZT(n,t,i),l.current=fC(l.current,t,o.map(GT)),p(a),c(a),r._updateFieldArray(n,a,fC,{argA:t,argB:sC(e)})}),[p,n,r]),update:K.useCallback(((t,e)=>{const i=AT(e),o=mC(r._getFieldArray(n),t,i);l.current=[...o].map(((e,r)=>e&&r!==t?l.current[r]:GT())),p(o),c([...o]),r._updateFieldArray(n,o,mC,{argA:t,argB:i},!0,!1)}),[p,n,r]),replace:K.useCallback((t=>{const e=FT(AT(t));l.current=e.map(GT),p([...e]),c([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[p,n,r]),fields:K.useMemo((()=>a.map(((t,e)=>({...t,[i]:l.current[e]||GT()})))),[a,i])}}const bC=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=gC({control:n,name:r}),f=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(M,{children:[l.map(((n,o)=>e(M,{children:t(M,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(wT,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(E,{label:"Delete",children:e(d,{position:"absolute",top:"0",right:"0",children:e(p,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(d,{children:e(p,{size:"sm",onClick:()=>{u(f),a&&a(f)},ml:"auto",children:"+"})})]})},wC=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",showTooltip:c=!1,isAnimated:l=!1,formatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=xr({data:r,dataKey:n}),h=s?Sr({arr:r||[],n:s}):r;let d,y;h?.length?(y=p?jr.mint():jr.heroicRed(),d=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(y=jr.coolElegance(),d=[{[n]:0},{[n]:0}]);const v={cursor:c&&h?.length?"crosshair":"default",...f};return e(Kd,{width:i,minHeight:o,children:t(J_,{data:d,style:v,children:[e(t_,{domain:["dataMin","dataMax"],hide:!0}),e(Ik,{isAnimationActive:l,type:a,dataKey:n,stroke:y,strokeWidth:"2",dot:!1,scale:"threshold"}),h?.length&&c&&e(bd,{cursor:!1,formatter:u})]})})},xC=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:l={base:"md",md:"xl"},bodyMinHeight:u,bodyBackground:s="transparent",isDisabledCloseButton:f,...p})=>t(k,{isOpen:r,onClose:n,isCentered:c,size:l,...p,children:[e(_,{}),t(T,{minWidth:kC,children:[e(C,{children:i}),e(D,{isDisabled:f}),e(I,{minH:u||0,bg:s,children:a}),o&&e(N,{borderTop:"solid 1px",borderColor:jr.coolElegance(),children:o})]})]}),OC=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,l]=rt([]),[u,s]=rt(1);return t(d,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(p,{onClick:()=>{if(2===u)return i(void 0),l([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),l((t=>t.slice(0,-1))),s((t=>t-1))},isLoading:r,isDisabled:1===u,children:"Previous"}),e(p,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),l((e=>[...e,t])),s((t=>t+1))}},isLoading:r,isDisabled:!n,children:"Next"})]})},SC=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:l,register:u,errorMessage:s,helperText:f,label:p,...h}=r,d=Or(i),y=u?u(l):void 0;return t(v,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[p&&e(m,{size:i,children:p}),e(B,{icon:e(mt,{}),size:i,...y,...h,children:n}),s&&e(b,{size:i,children:s}),f&&e(P,{fontSize:d,children:f})]})},jC=L({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),AC=({boxSize:t=8,color:r="brand",...n})=>{const i="neutral"===r?jr.sonicSilver():"brand.500";return e(d,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(d,{width:t,height:t,animation:`${jC} 2000ms infinite linear`,children:e(ae,{boxSize:t,__css:{path:{fill:i}}})})})},PC=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[l,u]=rt(!0);return l?t(R,{...c,children:[o&&e($,{as:o}),e(z,{children:n}),i&&e(H,{as:i}),a&&e(V,{onClick:()=>{a(),u(!1)}})]}):null},MC=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,l;switch(a){case"error":l=ft;break;case"success":l=Ot;break;case"warning":l=Ht,c="yellow";break;case"loading":c="brand",l=Y;break;default:c="brand",l=Ht}return t(U,{as:d,colorScheme:c,justifyContent:"space-between",status:a,children:[t(d,{alignItems:"center",mr:"4",children:[e(F,{children:e(l,{size:"sm"})}),t(M,{children:[e(W,{children:n}),e(q,{children:r})]})]}),o&&e(X,{onClick:i})]})},EC=()=>{const t=l({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}},kC="22rem";export{tT as CfAreaChart,eT as CfBreakpointDebugger,rT as CfButtonGroup,nT as CfButtonGroupButton,iT as CfCard,oT as CfCarousel,aT as CfCheckbox,cT as CfForm,wT as CfInput,bC as CfInputArray,wC as CfLineChart,xC as CfModal,OC as CfPagination,SC as CfSelect,AC as CfSpinner,PC as CfTag,MC as CfToast,ft as IconAlert,pt as IconArrowDown,ht as IconArrowUp,pe as IconAvax,dt as IconBank,yt as IconBarChart,he as IconBch,de as IconBtc,vt as IconCalendar,mt as IconCaretDown,gt as IconCaretLeft,bt as IconCaretRight,wt as IconCaretUp,xt as IconCent,Ot as IconCheck,St as IconChecking,jt as IconCircleCheck,At as IconClose,Pt as IconConnect,Mt as IconCopy,Et as IconDollar,kt as IconDollarBill,_t as IconDownload,Tt as IconEdit,Ct as IconEnter,Dt as IconEnterInverted,ye as IconEth,It as IconExchange,Nt as IconFilter,Bt as IconHelp,Lt as IconHistory,Rt as IconHome,$t as IconIndicatorDown,zt as IconIndicatorUp,Ht as IconInfo,ve as IconLink,Vt as IconLock,me as IconLtc,Ut as IconMail,Ft as IconMenu,Wt as IconMore,qt as IconNotification,Xt as IconOverview,Yt as IconPercent,Kt as IconPieChart,Gt as IconPlus,fe as IconRefresh,Zt as IconReports,Jt as IconReservesSuccess,Qt as IconReservesWarning,te as IconSearch,ee as IconSettings,re as IconSettlement,ne as IconSignIn,ie as IconSignOut,oe as IconSort,ae as IconSpinner,ce as IconSupport,le as IconTrash,ue as IconUpload,se as IconUser,ge as IconXlm,er as aggregateAmounts,Hr as coreTheme,fr as dateToTimestamp,pr as formatPercentage,wr as formatUsd,xr as getDelta,kC as layoutMinWidth,Sr as pullFromEnd,jr as uiColors,Pr as usdToNumber,EC as useCfBreakpoint};
17
+ */"production"===process.env.NODE_ENV?So.exports=function(){if(xo)return jo;xo=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case l:case u:case n:case o:case i:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case d:case h:case a:return t;default:return p}}case r:return p}}}function w(t){return b(t)===u}return jo.AsyncMode=l,jo.ConcurrentMode=u,jo.ContextConsumer=c,jo.ContextProvider=a,jo.Element=e,jo.ForwardRef=s,jo.Fragment=n,jo.Lazy=d,jo.Memo=h,jo.Portal=r,jo.Profiler=o,jo.StrictMode=i,jo.Suspense=f,jo.isAsyncMode=function(t){return w(t)||b(t)===l},jo.isConcurrentMode=w,jo.isContextConsumer=function(t){return b(t)===c},jo.isContextProvider=function(t){return b(t)===a},jo.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},jo.isForwardRef=function(t){return b(t)===s},jo.isFragment=function(t){return b(t)===n},jo.isLazy=function(t){return b(t)===d},jo.isMemo=function(t){return b(t)===h},jo.isPortal=function(t){return b(t)===r},jo.isProfiler=function(t){return b(t)===o},jo.isStrictMode=function(t){return b(t)===i},jo.isSuspense=function(t){return b(t)===f},jo.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===u||t===o||t===i||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===g||t.$$typeof===y)},jo.typeOf=b,jo}():So.exports=(Ao||(Ao=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var y=t.type;switch(y){case l:case u:case n:case o:case i:case f:return y;default:var v=y&&y.$$typeof;switch(v){case c:case s:case d:case h:case a:return v;default:return p}}case r:return p}}}var w=l,x=u,O=c,S=a,j=e,A=s,P=n,M=d,E=h,k=r,_=o,T=i,C=f,D=!1;function I(t){return b(t)===u}Po.AsyncMode=w,Po.ConcurrentMode=x,Po.ContextConsumer=O,Po.ContextProvider=S,Po.Element=j,Po.ForwardRef=A,Po.Fragment=P,Po.Lazy=M,Po.Memo=E,Po.Portal=k,Po.Profiler=_,Po.StrictMode=T,Po.Suspense=C,Po.isAsyncMode=function(t){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(t)||b(t)===l},Po.isConcurrentMode=I,Po.isContextConsumer=function(t){return b(t)===c},Po.isContextProvider=function(t){return b(t)===a},Po.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Po.isForwardRef=function(t){return b(t)===s},Po.isFragment=function(t){return b(t)===n},Po.isLazy=function(t){return b(t)===d},Po.isMemo=function(t){return b(t)===h},Po.isPortal=function(t){return b(t)===r},Po.isProfiler=function(t){return b(t)===o},Po.isStrictMode=function(t){return b(t)===i},Po.isSuspense=function(t){return b(t)===f},Po.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===u||t===o||t===i||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===g||t.$$typeof===y)},Po.typeOf=b}()),Po);var Mo=So.exports,Eo=cn,ko=ln;var _o=function(t){return"number"==typeof t||ko(t)&&"[object Number]"==Eo(t)},To=nr(_o),Co=_o;var Do=nr((function(t){return Co(t)&&t!=+t})),Io=function(t){return 0===t?0:t>0?1:-1},No=function(t){return Oo(t)&&t.indexOf("%")===t.length-1},Bo=function(t){return To(t)&&!Do(t)},Lo=function(t){return Bo(t)||Oo(t)},Ro=0,$o=function(t){var e=++Ro;return"".concat(t||"").concat(e)},zo=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Bo(t)&&!Oo(t))return n;if(No(t)){var o=t.indexOf("%");r=e*parseFloat(t.slice(0,o))/100}else r=+t;return Do(r)&&(r=n),i&&r>e&&(r=e),r},Ho=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},Vo=function(t,e){return Bo(t)&&Bo(e)?function(r){return t+r*(e-t)}:function(){return e}};function Uo(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):vo(t,e))===r})):null}function Fo(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 Wo(t){return Wo="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},Wo(t)}var qo=["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"],Xo=["points","pathLength"],Yo={svg:["viewBox","children"],polygon:Xo,polyline:Xo},Ko=["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"],Go=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(G(t)&&(r=t.props),!gn(r))return null;var n={};return Object.keys(r).forEach((function(t){Ko.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},Zo=function(t,e,r){if(!gn(t)||"object"!==Wo(t))return null;var n=null;return Object.keys(t).forEach((function(i){var o=t[i];Ko.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(t,e,r){return function(n){return t(e,r,n),null}}(o,e,r))})),n},Jo=["children"],Qo=["children"];function ta(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function ea(t){return ea="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},ea(t)}var ra={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},na=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},ia=null,oa=null,aa=function t(e){if(e===ia&&Array.isArray(oa))return oa;var r=[];return Z.forEach(e,(function(e){mo(e)||(Mo.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))})),oa=r,ia=e,r};function ca(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return na(t)})):[na(e)],aa(t).forEach((function(t){var e=vo(t,"type.displayName")||vo(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function la(t,e){var r=ca(t,e);return r&&r[0]}var ua=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!Bo(r)||r<=0||!Bo(n)||n<=0)},sa=["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"],fa=function(t){return t&&"object"===ea(t)&&"cx"in t&&"cy"in t&&"r"in t},pa=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(G(t)&&(n=t.props),!gn(n))return null;var i={};return Object.keys(n).forEach((function(t){var o;(function(t,e,r,n){var i,o=null!==(i=null==Yo?void 0:Yo[n])&&void 0!==i?i:[];return!Sn(t)&&(n&&o.includes(e)||qo.includes(e))||r&&Ko.includes(e)})(null===(o=n)||void 0===o?void 0:o[t],t,e,r)&&(i[t]=n[t])})),i},ha=function t(e,r){if(e===r)return!0;var n=Z.count(e);if(n!==Z.count(r))return!1;if(0===n)return!0;if(1===n)return da(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=e[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!da(o,a))return!1}return!0},da=function(t,e){if(mo(t)&&mo(e))return!0;if(!mo(t)&&!mo(e)){var r=t.props||{},n=r.children,i=ta(r,Jo),o=e.props||{},a=o.children,c=ta(o,Qo);return n&&a?Fo(i,c)&&ha(n,a):!n&&!a&&Fo(i,c)}return!1},ya=function(t,e){var r=[],n={};return aa(t).forEach((function(t,i){if(function(t){return t&&t.type&&Oo(t.type)&&sa.indexOf(t.type)>=0}(t))r.push(t);else if(t){var o=na(t.type),a=e[o]||{},c=a.handler,l=a.once;if(c&&(!l||!n[o])){var u=c(t,o,i);r.push(u),n[o]=!0}}})),r},va=["children","width","height","viewBox","className","style","title","desc"];function ma(){return ma=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},ma.apply(this,arguments)}function ga(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function ba(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,o=t.className,a=t.style,c=t.title,l=t.desc,u=ga(t,va),s=i||{width:r,height:n,x:0,y:0},f=Ur("recharts-surface",o);return K.createElement("svg",ma({},pa(u,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),K.createElement("title",null,c),K.createElement("desc",null,l),e)}var wa=["children","className"];function xa(){return xa=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},xa.apply(this,arguments)}function Oa(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var Sa=K.forwardRef((function(t,e){var r=t.children,n=t.className,i=Oa(t,wa),o=Ur("recharts-layer",n);return K.createElement("g",xa({className:o},pa(i,!0),{ref:e}),r)})),ja="production"!==process.env.NODE_ENV,Aa=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(ja&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(e.replace(/%s/g,(function(){return n[o++]})))}};var Pa=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o},Ma=Pa;var Ea=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Ma(t,e,r)},ka=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var _a=function(t){return ka.test(t)};var Ta=function(t){return t.split("")},Ca="\\ud800-\\udfff",Da="["+Ca+"]",Ia="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Na="\\ud83c[\\udffb-\\udfff]",Ba="[^"+Ca+"]",La="(?:\\ud83c[\\udde6-\\uddff]){2}",Ra="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="(?:"+Ia+"|"+Na+")"+"?",za="[\\ufe0e\\ufe0f]?",Ha=za+$a+("(?:\\u200d(?:"+[Ba,La,Ra].join("|")+")"+za+$a+")*"),Va="(?:"+[Ba+Ia+"?",Ia,La,Ra,Da].join("|")+")",Ua=RegExp(Na+"(?="+Na+")|"+Va+Ha,"g");var Fa=function(t){return t.match(Ua)||[]},Wa=Ta,qa=_a,Xa=Fa;var Ya=function(t){return qa(t)?Xa(t):Wa(t)},Ka=Ea,Ga=_a,Za=Ya,Ja=ro;var Qa=function(t){return function(e){e=Ja(e);var r=Ga(e)?Za(e):void 0,n=r?r[0]:e.charAt(0),i=r?Ka(r,1).join(""):e.slice(1);return n[t]()+i}},tc=nr(Qa("toUpperCase"));function ec(t){return function(){return t}}const rc=Math.cos,nc=Math.sin,ic=Math.sqrt,oc=Math.PI,ac=2*oc,cc=Math.PI,lc=2*cc,uc=1e-6,sc=lc-uc;function fc(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class pc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?fc:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return fc;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,i,o){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,r,n,i){if(t=+t,e=+e,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,c=r-t,l=n-e,u=o-t,s=a-e,f=u*u+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>uc)if(Math.abs(s*c-l*u)>uc&&i){let p=r-o,h=n-a,d=c*c+l*l,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=i*Math.tan((cc-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,w=g/v;Math.abs(b-1)>uc&&this._append`L${t+b*u},${e+b*s}`,this._append`A${i},${i},0,0,${+(s*p>u*h)},${this._x1=t+w*c},${this._y1=e+w*l}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,i,o){if(t=+t,e=+e,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),l=t+a,u=e+c,s=1^o,f=o?n-i:i-n;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>uc||Math.abs(this._y1-u)>uc)&&this._append`L${l},${u}`,r&&(f<0&&(f=f%lc+lc),f>sc?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=l},${this._y1=u}`:f>uc&&this._append`A${r},${r},0,${+(f>=cc)},${s},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}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 hc(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 pc(e)}function dc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function yc(t){this._context=t}function vc(t){return new yc(t)}function mc(t){return t[0]}function gc(t){return t[1]}function bc(t,e){var r=ec(!0),n=null,i=vc,o=null,a=hc(c);function c(c){var l,u,s,f=(c=dc(c)).length,p=!1;for(null==n&&(o=i(s=a())),l=0;l<=f;++l)!(l<f&&r(u=c[l],l,c))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+t(u,l,c),+e(u,l,c));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?mc:ec(t),e="function"==typeof e?e:void 0===e?gc:ec(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:ec(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:ec(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:ec(!!t),c):r},c.curve=function(t){return arguments.length?(i=t,null!=n&&(o=i(n)),c):i},c.context=function(t){return arguments.length?(null==t?n=o=null:o=i(n=t),c):n},c}function wc(t,e,r){var n=null,i=ec(!0),o=null,a=vc,c=null,l=hc(u);function u(u){var s,f,p,h,d,y=(u=dc(u)).length,v=!1,m=new Array(y),g=new Array(y);for(null==o&&(c=a(d=l())),s=0;s<=y;++s){if(!(s<y&&i(h=u[s],s,u))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],g[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,u),g[s]=+e(h,s,u),c.point(n?+n(h,s,u):m[s],r?+r(h,s,u):g[s]))}if(d)return c=null,d+""||null}function s(){return bc().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?mc:ec(+t),e="function"==typeof e?e:ec(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?gc:ec(+r),u.x=function(e){return arguments.length?(t="function"==typeof e?e:ec(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:ec(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:ec(+t),u):n},u.y=function(t){return arguments.length?(e="function"==typeof t?t:ec(+t),r=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:ec(+t),u):e},u.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:ec(+t),u):r},u.lineX0=u.lineY0=function(){return s().x(t).y(e)},u.lineY1=function(){return s().x(t).y(r)},u.lineX1=function(){return s().x(n).y(e)},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:ec(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),u):o},u}yc.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 xc{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}}var Oc={draw(t,e){const r=ic(e/oc);t.moveTo(r,0),t.arc(0,0,r,0,ac)}},Sc={draw(t,e){const r=ic(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()}};const jc=ic(1/3),Ac=2*jc;var Pc={draw(t,e){const r=ic(e/Ac),n=r*jc;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Mc={draw(t,e){const r=ic(e),n=-r/2;t.rect(n,n,r,r)}};const Ec=nc(oc/10)/nc(7*oc/10),kc=nc(ac/10)*Ec,_c=-rc(ac/10)*Ec;var Tc={draw(t,e){const r=ic(.8908130915292852*e),n=kc*r,i=_c*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){const o=ac*e/5,a=rc(o),c=nc(o);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*i,c*n+a*i)}t.closePath()}};const Cc=ic(3);var Dc={draw(t,e){const r=-ic(e/(3*Cc));t.moveTo(0,2*r),t.lineTo(-Cc*r,-r),t.lineTo(Cc*r,-r),t.closePath()}};const Ic=-.5,Nc=ic(3)/2,Bc=1/ic(12),Lc=3*(Bc/2+1);var Rc={draw(t,e){const r=ic(e/Lc),n=r/2,i=r*Bc,o=n,a=r*Bc+r,c=-o,l=a;t.moveTo(n,i),t.lineTo(o,a),t.lineTo(c,l),t.lineTo(Ic*n-Nc*i,Nc*n+Ic*i),t.lineTo(Ic*o-Nc*a,Nc*o+Ic*a),t.lineTo(Ic*c-Nc*l,Nc*c+Ic*l),t.lineTo(Ic*n+Nc*i,Ic*i-Nc*n),t.lineTo(Ic*o+Nc*a,Ic*a-Nc*o),t.lineTo(Ic*c+Nc*l,Ic*l-Nc*c),t.closePath()}};function $c(){}function zc(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 Hc(t){this._context=t}function Vc(t){this._context=t}function Uc(t){this._context=t}function Fc(t){this._context=t}function Wc(t){return t<0?-1:1}function qc(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0),c=(o*i+a*n)/(n+i);return(Wc(o)+Wc(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function Xc(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Yc(t,e,r){var n=t._x0,i=t._y0,o=t._x1,a=t._y1,c=(o-n)/3;t._context.bezierCurveTo(n+c,i+c*e,o-c,a-c*r,o,a)}function Kc(t){this._context=t}function Gc(t){this._context=new Zc(t)}function Zc(t){this._context=t}function Jc(t){this._context=t}function Qc(t){var e,r,n=t.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function tl(t,e){this._context=t,this._t=e}function el(t,e){if((i=t.length)>1)for(var r,n,i,o=1,a=t[e[0]],c=a.length;o<i;++o)for(n=a,a=t[e[o]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function rl(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function nl(t,e){return t[e]}function il(t){const e=[];return e.key=t,e}function ol(t){return ol="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},ol(t)}Hc.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:zc(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:zc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Vc.prototype={areaStart:$c,areaEnd:$c,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:zc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Uc.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:zc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Fc.prototype={areaStart:$c,areaEnd:$c,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))}},Kc.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:Yc(this,this._t0,Xc(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,Yc(this,Xc(this,r=qc(this,t,e)),r);break;default:Yc(this,this._t0,r=qc(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Gc.prototype=Object.create(Kc.prototype)).point=function(t,e){Kc.prototype.point.call(this,e,t)},Zc.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,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},Jc.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=Qc(t),i=Qc(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],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)}},tl.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 al=["type","size","sizeType"];function cl(){return cl=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},cl.apply(this,arguments)}function ll(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?ll(Object(r),!0).forEach((function(e){sl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ll(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sl(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ol(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ol(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fl(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var pl={symbolCircle:Oc,symbolCross:Sc,symbolDiamond:Pc,symbolSquare:Mc,symbolStar:Tc,symbolTriangle:Dc,symbolWye:Rc},hl=Math.PI/180,dl=function(t){var e,r,n=t.type,i=void 0===n?"circle":n,o=t.size,a=void 0===o?64:o,c=t.sizeType,l=void 0===c?"area":c,u=ul(ul({},fl(t,al)),{},{type:i,size:a,sizeType:l}),s=u.className,f=u.cx,p=u.cy,h=pa(u,!0);return f===+f&&p===+p&&a===+a?K.createElement("path",cl({},h,{className:Ur("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(p,")"),d:(e=function(t){var e="symbol".concat(tc(t));return pl[e]||Oc}(i),r=function(t,e){let r=null,n=hc(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:ec(t||Oc),e="function"==typeof e?e:ec(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:ec(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:ec(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i}().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*hl;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}}(a,l,i)),r())})):null};function yl(t){return yl="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},yl(t)}function vl(){return vl=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},vl.apply(this,arguments)}function ml(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 gl(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,jl(n.key),n)}}function bl(t,e,r){return e=xl(e),function(t,e){if(e&&("object"===yl(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,wl()?Reflect.construct(e,r||[],xl(t).constructor):e.apply(t,r))}function wl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wl=function(){return!!t})()}function xl(t){return xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xl(t)}function Ol(t,e){return Ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ol(t,e)}function Sl(t,e,r){return(e=jl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jl(t){var e=function(t,e){if("object"!=yl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yl(e)?e:String(e)}dl.registerSymbol=function(t,e){pl["symbol".concat(tc(t))]=e};var Al=32,Pl=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),bl(this,e,arguments)}var r,n,i;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&&Ol(t,e)}(e,J),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=Al/6,i=Al/3,o=t.inactive?e:t.color;if("plainline"===t.type)return K.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:Al,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return K.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Al,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return K.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(Al,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(K.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ml(Object(r),!0).forEach((function(e){Sl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ml(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,K.cloneElement(t.legendIcon,a)}return K.createElement(dl,{fill:o,cx:r,cy:r,size:Al,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,c={x:0,y:0,width:Al,height:Al},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var i=e.formatter||o,s=Ur(Sl(Sl({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=Sn(e.value)?null:e.value;Aa(!Sn(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 p=e.inactive?a:e.color;return K.createElement("li",vl({className:s,style:l,key:"legend-item-".concat(r)},Zo(t.props,e,r)),K.createElement(ba,{width:n,height:n,viewBox:c,style:u},t.renderIcon(e)),K.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(f,e,r):f))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return K.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&gl(r.prototype,n),i&&gl(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Sl(Pl,"displayName","Legend"),Sl(Pl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Ml=xi;var El=xi,kl=Oi,_l=Ri;var Tl=xi,Cl=function(){this.__data__=new Ml,this.size=0},Dl=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Il=function(t){return this.__data__.get(t)},Nl=function(t){return this.__data__.has(t)},Bl=function(t,e){var r=this.__data__;if(r instanceof El){var n=r.__data__;if(!kl||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new _l(n)}return r.set(t,e),this.size=r.size,this};function Ll(t){var e=this.__data__=new Tl(t);this.size=e.size}Ll.prototype.clear=Cl,Ll.prototype.delete=Dl,Ll.prototype.get=Il,Ll.prototype.has=Nl,Ll.prototype.set=Bl;var Rl=Ll;var $l=Ri,zl=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Hl=function(t){return this.__data__.has(t)};function Vl(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new $l;++e<r;)this.add(t[e])}Vl.prototype.add=Vl.prototype.push=zl,Vl.prototype.has=Hl;var Ul=Vl;var Fl=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 Wl=function(t,e){return t.has(e)},ql=Ul,Xl=Fl,Yl=Wl;var Kl=function(t,e,r,n,i,o){var a=1&r,c=t.length,l=e.length;if(c!=l&&!(a&&l>c))return!1;var u=o.get(t),s=o.get(e);if(u&&s)return u==e&&s==t;var f=-1,p=!0,h=2&r?new ql:void 0;for(o.set(t,e),o.set(e,t);++f<c;){var d=t[f],y=e[f];if(n)var v=a?n(y,d,f,e,t,o):n(d,y,f,t,e,o);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!Xl(e,(function(t,e){if(!Yl(h,e)&&(d===t||i(d,t,r,n,o)))return h.push(e)}))){p=!1;break}}else if(d!==y&&!i(d,y,r,n,o)){p=!1;break}}return o.delete(t),o.delete(e),p};var Gl=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var Zl=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},Jl=Yr.Uint8Array,Ql=ci,tu=Kl,eu=Gl,ru=Zl,nu=Kr?Kr.prototype:void 0,iu=nu?nu.valueOf:void 0;var ou=function(t,e,r,n,i,o,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||!o(new Jl(t),new Jl(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ql(+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 c=eu;case"[object Set]":var l=1&n;if(c||(c=ru),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;n|=2,a.set(t,e);var s=tu(c(t),c(e),n,i,o,a);return a.delete(t),s;case"[object Symbol]":if(iu)return iu.call(t)==iu.call(e)}return!1};var au=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},cu=au,lu=Fr;var uu=function(t,e,r){var n=e(t);return lu(t)?n:cu(n,r(t))};var su=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o};var fu=su,pu=function(){return[]},hu=Object.prototype.propertyIsEnumerable,du=Object.getOwnPropertySymbols,yu=du?function(t){return null==t?[]:(t=Object(t),fu(du(t),(function(e){return hu.call(t,e)})))}:pu,vu=yu;var mu=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},gu=cn,bu=ln;var wu=function(t){return bu(t)&&"[object Arguments]"==gu(t)},xu=ln,Ou=Object.prototype,Su=Ou.hasOwnProperty,ju=Ou.propertyIsEnumerable,Au=wu(function(){return arguments}())?wu:function(t){return xu(t)&&Su.call(t,"callee")&&!ju.call(t,"callee")},Pu={exports:{}};var Mu=function(){return!1};!function(t,e){var r=Yr,n=Mu,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(Pu,Pu.exports);var Eu=Pu.exports,ku=/^(?:0|[1-9]\d*)$/;var _u=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&ku.test(t))&&t>-1&&t%1==0&&t<e};var Tu=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Cu=cn,Du=Tu,Iu=ln,Nu={};Nu["[object Float32Array]"]=Nu["[object Float64Array]"]=Nu["[object Int8Array]"]=Nu["[object Int16Array]"]=Nu["[object Int32Array]"]=Nu["[object Uint8Array]"]=Nu["[object Uint8ClampedArray]"]=Nu["[object Uint16Array]"]=Nu["[object Uint32Array]"]=!0,Nu["[object Arguments]"]=Nu["[object Array]"]=Nu["[object ArrayBuffer]"]=Nu["[object Boolean]"]=Nu["[object DataView]"]=Nu["[object Date]"]=Nu["[object Error]"]=Nu["[object Function]"]=Nu["[object Map]"]=Nu["[object Number]"]=Nu["[object Object]"]=Nu["[object RegExp]"]=Nu["[object Set]"]=Nu["[object String]"]=Nu["[object WeakMap]"]=!1;var Bu=function(t){return Iu(t)&&Du(t.length)&&!!Nu[Cu(t)]};var Lu=function(t){return function(e){return t(e)}},Ru={exports:{}};!function(t,e){var r=Wr,n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(Ru,Ru.exports);var $u=Ru.exports,zu=Bu,Hu=Lu,Vu=$u&&$u.isTypedArray,Uu=Vu?Hu(Vu):zu,Fu=mu,Wu=Au,qu=Fr,Xu=Eu,Yu=_u,Ku=Uu,Gu=Object.prototype.hasOwnProperty;var Zu=function(t,e){var r=qu(t),n=!r&&Wu(t),i=!r&&!n&&Xu(t),o=!r&&!n&&!i&&Ku(t),a=r||n||i||o,c=a?Fu(t.length,String):[],l=c.length;for(var u in t)!e&&!Gu.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Yu(u,l))||c.push(u);return c},Ju=Object.prototype;var Qu=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ju)};var ts=function(t,e){return function(r){return t(e(r))}},es=ts(Object.keys,Object),rs=Qu,ns=es,is=Object.prototype.hasOwnProperty;var os=function(t){if(!rs(t))return ns(t);var e=[];for(var r in Object(t))is.call(t,r)&&"constructor"!=r&&e.push(r);return e},as=On,cs=Tu;var ls=function(t){return null!=t&&cs(t.length)&&!as(t)},us=Zu,ss=os,fs=ls;var ps=function(t){return fs(t)?us(t):ss(t)},hs=uu,ds=vu,ys=ps;var vs=function(t){return hs(t,ys,ds)},ms=vs,gs=Object.prototype.hasOwnProperty;var bs=function(t,e,r,n,i,o){var a=1&r,c=ms(t),l=c.length;if(l!=ms(e).length&&!a)return!1;for(var u=l;u--;){var s=c[u];if(!(a?s in e:gs.call(e,s)))return!1}var f=o.get(t),p=o.get(e);if(f&&p)return f==e&&p==t;var h=!0;o.set(t,e),o.set(e,t);for(var d=a;++u<l;){var y=t[s=c[u]],v=e[s];if(n)var m=a?n(v,y,s,e,t,o):n(y,v,s,t,e,o);if(!(void 0===m?y===v||i(y,v,r,n,o):m)){h=!1;break}d||(d="constructor"==s)}if(h&&!d){var g=t.constructor,b=e.constructor;g==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(h=!1)}return o.delete(t),o.delete(e),h},ws=Vn(Yr,"DataView"),xs=Vn(Yr,"Promise"),Os=Vn(Yr,"Set"),Ss=ws,js=Oi,As=xs,Ps=Os,Ms=Vn(Yr,"WeakMap"),Es=cn,ks=En,_s="[object Map]",Ts="[object Promise]",Cs="[object Set]",Ds="[object WeakMap]",Is="[object DataView]",Ns=ks(Ss),Bs=ks(js),Ls=ks(As),Rs=ks(Ps),$s=ks(Ms),zs=Es;(Ss&&zs(new Ss(new ArrayBuffer(1)))!=Is||js&&zs(new js)!=_s||As&&zs(As.resolve())!=Ts||Ps&&zs(new Ps)!=Cs||Ms&&zs(new Ms)!=Ds)&&(zs=function(t){var e=Es(t),r="[object Object]"==e?t.constructor:void 0,n=r?ks(r):"";if(n)switch(n){case Ns:return Is;case Bs:return _s;case Ls:return Ts;case Rs:return Cs;case $s:return Ds}return e});var Hs=Rl,Vs=Kl,Us=ou,Fs=bs,Ws=zs,qs=Fr,Xs=Eu,Ys=Uu,Ks="[object Arguments]",Gs="[object Array]",Zs="[object Object]",Js=Object.prototype.hasOwnProperty;var Qs=function(t,e,r,n,i,o){var a=qs(t),c=qs(e),l=a?Gs:Ws(t),u=c?Gs:Ws(e),s=(l=l==Ks?Zs:l)==Zs,f=(u=u==Ks?Zs:u)==Zs,p=l==u;if(p&&Xs(t)){if(!Xs(e))return!1;a=!0,s=!1}if(p&&!s)return o||(o=new Hs),a||Ys(t)?Vs(t,e,r,n,i,o):Us(t,e,l,r,n,i,o);if(!(1&r)){var h=s&&Js.call(t,"__wrapped__"),d=f&&Js.call(e,"__wrapped__");if(h||d){var y=h?t.value():t,v=d?e.value():e;return o||(o=new Hs),i(y,v,r,n,o)}}return!!p&&(o||(o=new Hs),Fs(t,e,r,n,i,o))},tf=Qs,ef=ln;var rf=function t(e,r,n,i,o){return e===r||(null==e||null==r||!ef(e)&&!ef(r)?e!=e&&r!=r:tf(e,r,n,i,t,o))},nf=Rl,of=rf;var af=function(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=Object(t);i--;){var c=r[i];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<o;){var l=(c=r[i])[0],u=t[l],s=c[1];if(a&&c[2]){if(void 0===u&&!(l in t))return!1}else{var f=new nf;if(n)var p=n(u,s,l,t,e,f);if(!(void 0===p?of(s,u,3,n,f):p))return!1}}return!0},cf=mn;var lf=function(t){return t==t&&!cf(t)},uf=lf,sf=ps;var ff=function(t){for(var e=sf(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,uf(i)]}return e};var pf=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},hf=af,df=ff,yf=pf;var vf=function(t){var e=df(t);return 1==e.length&&e[0][2]?yf(e[0][0],e[0][1]):function(r){return r===t||hf(r,t,e)}};var mf=function(t,e){return null!=t&&e in Object(t)},gf=co,bf=Au,wf=Fr,xf=_u,Of=Tu,Sf=uo;var jf=function(t,e,r){for(var n=-1,i=(e=gf(e,t)).length,o=!1;++n<i;){var a=Sf(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Of(i)&&xf(a,i)&&(wf(t)||bf(t))},Af=mf,Pf=jf;var Mf=function(t,e){return null!=t&&Pf(t,e,Af)},Ef=rf,kf=yo,_f=Mf,Tf=vn,Cf=lf,Df=pf,If=uo;var Nf=function(t,e){return Tf(t)&&Cf(e)?Df(If(t),e):function(r){var n=kf(r,t);return void 0===n&&n===e?_f(r,t):Ef(e,n,3)}};var Bf=function(t){return t};var Lf=function(t){return function(e){return null==e?void 0:e[t]}},Rf=po;var $f=function(t){return function(e){return Rf(e,t)}},zf=Lf,Hf=$f,Vf=vn,Uf=uo;var Ff=vf,Wf=Nf,qf=Bf,Xf=Fr,Yf=function(t){return Vf(t)?zf(Uf(t)):Hf(t)};var Kf=function(t){return"function"==typeof t?t:null==t?qf:"object"==typeof t?Xf(t)?Wf(t[0],t[1]):Ff(t):Yf(t)};var Gf=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1};var Zf=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1},Jf=Gf,Qf=function(t){return t!=t},tp=Zf;var ep=function(t,e,r){return e==e?tp(t,e,r):Jf(t,Qf,r)},rp=ep;var np=function(t,e){return!!(null==t?0:t.length)&&rp(t,e,0)>-1};var ip=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1};var op=Os,ap=function(){},cp=op&&1/Zl(new op([,-0]))[1]==1/0?function(t){return new op(t)}:ap,lp=Ul,up=np,sp=ip,fp=Wl,pp=cp,hp=Zl;var dp=function(t,e,r){var n=-1,i=up,o=t.length,a=!0,c=[],l=c;if(r)a=!1,i=sp;else if(o>=200){var u=e?null:pp(t);if(u)return hp(u);a=!1,i=fp,l=new lp}else l=e?[]:c;t:for(;++n<o;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue t;e&&l.push(f),c.push(s)}else i(l,f,r)||(l!==c&&l.push(f),c.push(s))}return c},yp=Kf,vp=dp;var mp=function(t,e){return t&&t.length?vp(t,yp(e)):[]},gp=nr(mp);function bp(t,e,r){return!0===e?gp(t,r):Sn(e)?gp(t,e):t}function wp(t){return wp="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},wp(t)}var xp=["ref"];function Op(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 Sp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Op(Object(r),!0).forEach((function(e){_p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Op(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jp(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,Tp(n.key),n)}}function Ap(t,e,r){return e=Mp(e),function(t,e){if(e&&("object"===wp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ep(t)}(t,Pp()?Reflect.construct(e,r||[],Mp(t).constructor):e.apply(t,r))}function Pp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Pp=function(){return!!t})()}function Mp(t){return Mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mp(t)}function Ep(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kp(t,e){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kp(t,e)}function _p(t,e,r){return(e=Tp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tp(t){var e=function(t,e){if("object"!=wp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=wp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==wp(e)?e:String(e)}function Cp(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Dp(t){return t.value}var Ip=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return _p(Ep(t=Ap(this,e,[].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}var r,n,i;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&&kp(t,e)}(e,J),r=e,i=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&Bo(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(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))}else-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?Sp({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,c=n.margin,l=n.chartWidth,u=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((u||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Sp(Sp({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,l=Sp(Sp({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return K.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(K.isValidElement(t))return K.cloneElement(t,e);if("function"==typeof t)return K.createElement(t,e);e.ref;var r=Cp(e,xp);return K.createElement(Pl,r)}(r,Sp(Sp({},this.props),{},{payload:bp(c,a,Dp)})))}}])&&jp(r.prototype,n),i&&jp(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();_p(Ip,"displayName","Legend"),_p(Ip,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Np=Au,Bp=Fr,Lp=Kr?Kr.isConcatSpreadable:void 0;var Rp=au,$p=function(t){return Bp(t)||Np(t)||!!(Lp&&t&&t[Lp])};var zp=function t(e,r,n,i,o){var a=-1,c=e.length;for(n||(n=$p),o||(o=[]);++a<c;){var l=e[a];r>0&&n(l)?r>1?t(l,r-1,n,i,o):Rp(o,l):i||(o[o.length]=l)}return o};var Hp=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),c=a.length;c--;){var l=a[t?c:++i];if(!1===r(o[l],l,o))break}return e}},Vp=Hp(),Up=ps;var Fp=function(t,e){return t&&Vp(t,e,Up)},Wp=ls;var qp=function(t,e){return function(r,n){if(null==r)return r;if(!Wp(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=Object(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}(Fp),Xp=qp,Yp=ls;var Kp=function(t,e){var r=-1,n=Yp(t)?Array(t.length):[];return Xp(t,(function(t,i,o){n[++r]=e(t,i,o)})),n};var Gp=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},Zp=fn;var Jp=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=Zp(t),a=void 0!==e,c=null===e,l=e==e,u=Zp(e);if(!c&&!u&&!o&&t>e||o&&a&&l&&!c&&!u||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!u&&t<e||u&&r&&i&&!n&&!o||c&&r&&i||!a&&i||!l)return-1}return 0};var Qp=function(t,e,r){for(var n=-1,i=t.criteria,o=e.criteria,a=i.length,c=r.length;++n<a;){var l=Jp(i[n],o[n]);if(l)return n>=c?l:l*("desc"==r[n]?-1:1)}return t.index-e.index},th=Yi,eh=po,rh=Kf,nh=Kp,ih=Gp,oh=Lu,ah=Qp,ch=Bf,lh=Fr;var uh=function(t,e,r){e=e.length?th(e,(function(t){return lh(t)?function(e){return eh(e,1===t.length?t[0]:t)}:t})):[ch];var n=-1;e=th(e,oh(rh));var i=nh(t,(function(t,r,i){return{criteria:th(e,(function(e){return e(t)})),index:++n,value:t}}));return ih(i,(function(t,e){return ah(t,e,r)}))};var sh=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)},fh=Math.max;var ph=function(t,e,r){return e=fh(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=fh(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=n[i];return c[e]=r(a),sh(t,this,c)}};var hh=function(t){return function(){return t}},dh=Vn,yh=function(){try{var t=dh(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),vh=hh,mh=yh,gh=mh?function(t,e){return mh(t,"toString",{configurable:!0,enumerable:!1,value:vh(e),writable:!0})}:Bf,bh=gh,wh=Date.now;var xh=function(t){var e=0,r=0;return function(){var n=wh(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(bh),Oh=Bf,Sh=ph,jh=xh;var Ah=ci,Ph=ls,Mh=_u,Eh=mn;var kh=function(t,e,r){if(!Eh(r))return!1;var n=typeof e;return!!("number"==n?Ph(r)&&Mh(e,r.length):"string"==n&&e in r)&&Ah(r[e],t)},_h=zp,Th=uh,Ch=kh,Dh=nr(function(t,e){return jh(Sh(t,e,Oh),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&Ch(t,e[0],e[1])?e=[]:r>2&&Ch(e[0],e[1],e[2])&&(e=[e[0]]),Th(t,_h(e,1),[])})));function Ih(t){return Ih="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},Ih(t)}function Nh(){return Nh=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},Nh.apply(this,arguments)}function Bh(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Lh(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 Lh(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 Lh(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 Rh(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 $h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rh(Object(r),!0).forEach((function(e){zh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zh(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Ih(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ih(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ih(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hh(t){return Array.isArray(t)&&Lo(t[0])&&Lo(t[1])?t.join(" ~ "):t}var Vh=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,i=void 0===n?{}:n,o=t.itemStyle,a=void 0===o?{}:o,c=t.labelStyle,l=void 0===c?{}:c,u=t.payload,s=t.formatter,f=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,d=t.label,y=t.labelFormatter,v=t.accessibilityLayer,m=void 0!==v&&v,g=$h({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),b=$h({margin:0},l),w=!mo(d),x=w?d:"",O=Ur("recharts-default-tooltip",p),S=Ur("recharts-tooltip-label",h);w&&y&&null!=u&&(x=y(d,u));var j=m?{role:"status","aria-live":"assertive"}:{};return K.createElement("div",Nh({className:O,style:g},j),K.createElement("p",{className:S,style:b},K.isValidElement(x)?x:"".concat(x)),function(){if(u&&u.length){var t=(f?Dh(u,f):u).map((function(t,e){if("none"===t.type)return null;var n=$h({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||Hh,o=t.value,c=t.name,l=o,f=c;if(i&&null!=l&&null!=f){var p=i(o,c,t,e,u);if(Array.isArray(p)){var h=Bh(p,2);l=h[0],f=h[1]}else l=p}return K.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},Lo(f)?K.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Lo(f)?K.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,K.createElement("span",{className:"recharts-tooltip-item-value"},l),K.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return K.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Uh(t){return Uh="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},Uh(t)}function Fh(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Uh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Uh(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wh="recharts-tooltip-wrapper",qh={visibility:"hidden"};function Xh(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return Ur(Wh,Fh(Fh(Fh(Fh({},"".concat(Wh,"-right"),Bo(r)&&e&&Bo(e.x)&&r>=e.x),"".concat(Wh,"-left"),Bo(r)&&e&&Bo(e.x)&&r<e.x),"".concat(Wh,"-bottom"),Bo(n)&&e&&Bo(e.y)&&n>=e.y),"".concat(Wh,"-top"),Bo(n)&&e&&Bo(e.y)&&n<e.y))}function Yh(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,c=t.tooltipDimension,l=t.viewBox,u=t.viewBoxDimension;if(o&&Bo(o[n]))return o[n];var s=r[n]-c-i,f=r[n]+i;return e[n]?a[n]?s:f:a[n]?s<l[n]?Math.max(f,l[n]):Math.max(s,l[n]):f+c>l[n]+u?Math.max(s,l[n]):Math.max(f,l[n])}function Kh(t){return Kh="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},Kh(t)}function Gh(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 Zh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gh(Object(r),!0).forEach((function(e){id(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jh(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,od(n.key),n)}}function Qh(t,e,r){return e=ed(e),function(t,e){if(e&&("object"===Kh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rd(t)}(t,td()?Reflect.construct(e,r||[],ed(t).constructor):e.apply(t,r))}function td(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(td=function(){return!!t})()}function ed(t){return ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ed(t)}function rd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nd(t,e){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nd(t,e)}function id(t,e,r){return(e=od(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function od(t){var e=function(t,e){if("object"!=Kh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Kh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kh(e)?e:String(e)}var ad=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return id(rd(t=Qh(this,e,[].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),id(rd(t),"lastBoundingBox",{width:-1,height:-1}),id(rd(t),"handleKeyDown",(function(e){var r,n,i,o;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null===(o=t.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),t}var r,n,i;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&&nd(t,e)}(e,J),r=e,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.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,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.children,c=e.coordinate,l=e.hasPayload,u=e.isAnimationActive,s=e.offset,f=e.position,p=e.reverseDirection,h=e.useTranslate3d,d=e.viewBox,y=e.wrapperStyle,v=function(t){var e,r,n=t.allowEscapeViewBox,i=t.coordinate,o=t.offsetTopLeft,a=t.position,c=t.reverseDirection,l=t.tooltipBox,u=t.useTranslate3d,s=t.viewBox;return{cssProperties:l.height>0&&l.width>0&&i?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=Yh({allowEscapeViewBox:n,coordinate:i,key:"x",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:l.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=Yh({allowEscapeViewBox:n,coordinate:i,key:"y",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:l.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:u}):qh,cssClasses:Xh({translateX:e,translateY:r,coordinate:i})}}({allowEscapeViewBox:n,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:p,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:h,viewBox:d}),m=v.cssClasses,g=v.cssProperties,b=Zh(Zh({transition:u&&r?"transform ".concat(i,"ms ").concat(o):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&l?"visible":"hidden",position:"absolute",top:0,left:0},y);return K.createElement("div",{tabIndex:-1,className:m,style:b,ref:function(e){t.wrapperNode=e}},a)}}])&&Jh(r.prototype,n),i&&Jh(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}(),cd={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return cd[t]},set:function(t,e){if("string"==typeof t)cd[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){cd[e]=t[e]}))}}};function ld(t){return ld="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},ld(t)}function ud(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 sd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ud(Object(r),!0).forEach((function(e){vd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ud(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fd(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,md(n.key),n)}}function pd(t,e,r){return e=dd(e),function(t,e){if(e&&("object"===ld(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,hd()?Reflect.construct(e,r||[],dd(t).constructor):e.apply(t,r))}function hd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hd=function(){return!!t})()}function dd(t){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dd(t)}function yd(t,e){return yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yd(t,e)}function vd(t,e,r){return(e=md(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function md(t){var e=function(t,e){if("object"!=ld(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ld(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ld(e)?e:String(e)}function gd(t){return t.dataKey}var bd=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),pd(this,e,arguments)}var r,n,i;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&&yd(t,e)}(e,J),r=e,(n=[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.content,c=e.coordinate,l=e.filterNull,u=e.isAnimationActive,s=e.offset,f=e.payload,p=e.payloadUniqBy,h=e.position,d=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,m=e.wrapperStyle,g=null!=f?f:[];l&&g.length&&(g=bp(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),p,gd));var b=g.length>0;return K.createElement(ad,{allowEscapeViewBox:n,animationDuration:i,animationEasing:o,isAnimationActive:u,active:r,coordinate:c,hasPayload:b,offset:s,position:h,reverseDirection:d,useTranslate3d:y,viewBox:v,wrapperStyle:m},function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):"function"==typeof t?K.createElement(t,e):K.createElement(Vh,e)}(a,sd(sd({},this.props),{},{payload:g})))}}])&&fd(r.prototype,n),i&&fd(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();vd(bd,"displayName","Tooltip"),vd(bd,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!cd.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 wd=Yr,xd=/\s/;var Od=function(t){for(var e=t.length;e--&&xd.test(t.charAt(e)););return e},Sd=Od,jd=/^\s+/;var Ad=function(t){return t?t.slice(0,Sd(t)+1).replace(jd,""):t},Pd=Ad,Md=mn,Ed=fn,kd=/^[-+]0x[0-9a-f]+$/i,_d=/^0b[01]+$/i,Td=/^0o[0-7]+$/i,Cd=parseInt;var Dd=function(t){if("number"==typeof t)return t;if(Ed(t))return NaN;if(Md(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Md(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Pd(t);var r=_d.test(t);return r||Td.test(t)?Cd(t.slice(2),r?2:8):kd.test(t)?NaN:+t},Id=mn,Nd=function(){return wd.Date.now()},Bd=Dd,Ld=Math.max,Rd=Math.min;var $d=function(t,e,r){var n,i,o,a,c,l,u=0,s=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var r=n,o=i;return n=i=void 0,u=e,a=t.apply(o,r)}function d(t){var r=t-l;return void 0===l||r>=e||r<0||f&&t-u>=o}function y(){var t=Nd();if(d(t))return v(t);c=setTimeout(y,function(t){var r=e-(t-l);return f?Rd(r,o-(t-u)):r}(t))}function v(t){return c=void 0,p&&n?h(t):(n=i=void 0,a)}function m(){var t=Nd(),r=d(t);if(n=arguments,i=this,l=t,r){if(void 0===c)return function(t){return u=t,c=setTimeout(y,e),s?h(t):a}(l);if(f)return clearTimeout(c),c=setTimeout(y,e),h(l)}return void 0===c&&(c=setTimeout(y,e)),a}return e=Bd(e)||0,Id(r)&&(s=!!r.leading,o=(f="maxWait"in r)?Ld(Bd(r.maxWait)||0,e):o,p="trailing"in r?!!r.trailing:p),m.cancel=function(){void 0!==c&&clearTimeout(c),u=0,n=l=i=c=void 0},m.flush=function(){return void 0===c?a:v(Nd())},m},zd=$d,Hd=mn;var Vd=nr((function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Hd(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),zd(t,e,{leading:n,maxWait:e,trailing:i})}));function Ud(t){return Ud="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},Ud(t)}function Fd(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 Wd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fd(Object(r),!0).forEach((function(e){qd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qd(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Ud(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ud(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ud(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xd(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Yd(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 Yd(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 Yd(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 Kd=Q((function(t,e){var r=t.aspect,n=t.initialDimension,i=void 0===n?{width:-1,height:-1}:n,o=t.width,a=void 0===o?"100%":o,c=t.height,l=void 0===c?"100%":c,u=t.minWidth,s=void 0===u?0:u,f=t.minHeight,p=t.maxHeight,h=t.children,d=t.debounce,y=void 0===d?0:d,v=t.id,m=t.className,g=t.onResize,b=t.style,w=void 0===b?{}:b,x=tt(null),O=tt();O.current=g,et(e,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var S=Xd(rt({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],P=nt((function(t,e){A((function(r){var n=Math.round(t),i=Math.round(e);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}}))}),[]);it((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,i=r.height;P(n,i),null===(e=O.current)||void 0===e||e.call(O,n,i)};y>0&&(t=Vd(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,i=r.height;return P(n,i),e.observe(x.current),function(){e.disconnect()}}),[P,y]);var M=ot((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;Aa(No(a)||No(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,l),Aa(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=No(a)?t:a,i=No(l)?e:l;r&&r>0&&(n?i=n/r:i&&(n=i*r),p&&i>p&&(i=p)),Aa(n>0||i>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.",n,i,a,l,s,f,r);var o=!Array.isArray(h)&&Mo.isElement(h)&&na(h.type).endsWith("Chart");return K.Children.map(h,(function(t){return Mo.isElement(t)?at(t,Wd({width:n,height:i},o?{style:Wd({height:"100%",width:"100%",maxHeight:i,maxWidth:n},t.props.style)}:{})):t}))}),[r,h,l,p,f,s,j,a]);return K.createElement("div",{id:v?"".concat(v):void 0,className:Ur("recharts-responsive-container",m),style:Wd(Wd({},w),{},{width:a,height:l,minWidth:s,minHeight:f,maxHeight:p}),ref:x},M)})),Gd=function(t){return null};function Zd(t){return Zd="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},Zd(t)}function Jd(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 Qd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jd(Object(r),!0).forEach((function(e){ty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ty(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Zd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zd(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Gd.displayName="Cell";var ey={widthCache:{},cacheCount:0},ry={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ny="recharts_measurement_span";var iy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||cd.isSsr)return{width:0,height:0};var r,n=(r=Qd({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),i=JSON.stringify({text:t,copyStyle:n});if(ey.widthCache[i])return ey.widthCache[i];try{var o=document.getElementById(ny);o||((o=document.createElement("span")).setAttribute("id",ny),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Qd(Qd({},ry),n);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),l={width:c.width,height:c.height};return ey.widthCache[i]=l,++ey.cacheCount>2e3&&(ey.cacheCount=0,ey.widthCache={}),l}catch(t){return{width:0,height:0}}};function oy(t){return oy="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},oy(t)}function ay(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return cy(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 cy(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 cy(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 ly(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,uy(n.key),n)}}function uy(t){var e=function(t,e){if("object"!=oy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=oy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==oy(e)?e:String(e)}var sy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,py=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,hy=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,dy={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},yy=Object.keys(dy),vy="NaN";var my=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||py.test(r)||(this.num=NaN,this.unit=""),yy.includes(r)&&(this.num=function(t,e){return t*dy[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=ay(null!==(r=hy.exec(e))&&void 0!==r?r:[],3),i=n[1],o=n[2];return new t(parseFloat(i),null!=o?o:"")}}],(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)}}])&&ly(e.prototype,r),n&&ly(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function gy(t){if(t.includes(vy))return vy;for(var e=t;e.includes("*")||e.includes("/");){var r,n=ay(null!==(r=sy.exec(e))&&void 0!==r?r:[],4),i=n[1],o=n[2],a=n[3],c=my.parse(null!=i?i:""),l=my.parse(null!=a?a:""),u="*"===o?c.multiply(l):c.divide(l);if(u.isNaN())return vy;e=e.replace(sy,u.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=ay(null!==(s=fy.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=my.parse(null!=p?p:""),v=my.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return vy;e=e.replace(fy,m.toString())}return e}var by=/\(([^()]*)\)/;function wy(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=ay(by.exec(e),2)[1];e=e.replace(by,gy(r))}return e}(e),e=gy(e)}function xy(t){var e=function(t){try{return wy(t)}catch(t){return vy}}(t.slice(5,-1));return e===vy?"":e}var Oy=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Sy=["dx","dy","angle","className","breakAll"];function jy(){return jy=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},jy.apply(this,arguments)}function Ay(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Py(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return My(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 My(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 My(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 Ey=/[ \f\n\r\t\v\u2028\u2029]+/,ky=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var i=[];return mo(e)||(i=r?e.toString().split(""):e.toString().split(Ey)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:iy(t,n).width}})),spaceWidth:r?0:iy(" ",n).width}}catch(t){return null}},_y=function(t){return[{words:mo(t)?[]:t.toString().split(Ey)}]},Ty=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||r)&&!cd.isSsr){var c=ky({breakAll:o,children:n,style:i});return c?function(t,e,r,n,i){var o=t.maxLines,a=t.children,c=t.style,l=t.breakAll,u=Bo(o),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||i||c.width+a+r<Number(n)))c.words.push(o),c.width+=a+r;else{var l={words:[o],width:a};t.push(l)}return t}),[])},p=f(e);if(!u)return p;for(var h,d=function(t){var e=s.slice(0,t),r=ky({breakAll:l,style:c,children:e+"…"}).wordsWithComputedWidth,i=f(r),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(n);return[a,i]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var g=Math.floor((y+v)/2),b=Py(d(g-1),2),w=b[0],x=b[1],O=Py(d(g),1)[0];if(w||O||(y=g+1),w&&O&&(v=g-1),!w&&O){h=x;break}m++}return h||p}({breakAll:o,children:n,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,r):_y(n)}return _y(n)},Cy="#808080",Dy=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.lineHeight,a=void 0===o?"1em":o,c=t.capHeight,l=void 0===c?"0.71em":c,u=t.scaleToFit,s=void 0!==u&&u,f=t.textAnchor,p=void 0===f?"start":f,h=t.verticalAnchor,d=void 0===h?"end":h,y=t.fill,v=void 0===y?Cy:y,m=Ay(t,Oy),g=ot((function(){return Ty({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),b=m.dx,w=m.dy,x=m.angle,O=m.className,S=m.breakAll,j=Ay(m,Sy);if(!Lo(r)||!Lo(i))return null;var A,P=r+(Bo(b)?b:0),M=i+(Bo(w)?w:0);switch(d){case"start":A=xy("calc(".concat(l,")"));break;case"middle":A=xy("calc(".concat((g.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:A=xy("calc(".concat(g.length-1," * -").concat(a,")"))}var E=[];if(s){var k=g[0].width,_=m.width;E.push("scale(".concat((Bo(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(P,", ").concat(M,")")),E.length&&(j.transform=E.join(" ")),K.createElement("text",jy({},pa(j,!0),{x:P,y:M,className:Ur("recharts-text",O),textAnchor:p,fill:v.includes("url")?Cy:v}),g.map((function(t,e){var r=t.words.join(S?"":" ");return K.createElement("tspan",{x:P,dy:0===e?A:a,key:r},r)})))};function Iy(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ny(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function By(t){let e,r,n;function i(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Iy,r=(e,r)=>Iy(t(e),r),n=(e,r)=>t(e)-r):(e=t===Iy||t===Ny?t:Ly,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){const a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<=0?i=e+1:o=e}while(i<o)}return i}}}function Ly(){return 0}function Ry(t){return null===t?NaN:+t}const $y=By(Iy).right;By(Ry).center;class zy extends Map{constructor(t,e=Vy){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(Hy(this,t))}has(t){return super.has(Hy(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 Hy({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function Vy(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Uy(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const Fy=Math.sqrt(50),Wy=Math.sqrt(10),qy=Math.sqrt(2);function Xy(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=Fy?10:o>=Wy?5:o>=qy?2:1;let c,l,u;return i<0?(u=Math.pow(10,-i)/a,c=Math.round(t*u),l=Math.round(e*u),c/u<t&&++c,l/u>e&&--l,u=-u):(u=Math.pow(10,i)*a,c=Math.round(t/u),l=Math.round(e/u),c*u<t&&++c,l*u>e&&--l),l<c&&.5<=r&&r<2?Xy(t,e,2*r):[c,l,u]}function Yy(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[i,o,a]=n?Xy(e,t,r):Xy(t,e,r);if(!(o>=i))return[];const c=o-i+1,l=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)l[t]=(o-t)/-a;else for(let t=0;t<c;++t)l[t]=(o-t)*a;else if(a<0)for(let t=0;t<c;++t)l[t]=(i+t)/-a;else for(let t=0;t<c;++t)l[t]=(i+t)*a;return l}function Ky(t,e,r){return Xy(t=+t,e=+e,r=+r)[2]}function Gy(t,e,r){r=+r;const n=(e=+e)<(t=+t),i=n?Ky(e,t,r):Ky(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function Zy(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function Jy(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function Qy(t,e,r=0,n=1/0,i){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(i=void 0===i?Uy:function(t=Iy){if(t===Iy)return Uy;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))}}(i);n>r;){if(n-r>600){const o=n-r+1,a=e-r+1,c=Math.log(o),l=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*l*(o-l)/o)*(a-o/2<0?-1:1);Qy(t,e,Math.max(r,Math.floor(e-a*l/o+u)),Math.min(n,Math.floor(e+(o-a)*l/o+u)),i)}const o=t[e];let a=r,c=n;for(tv(t,r,e),i(t[n],o)>0&&tv(t,r,n);a<c;){for(tv(t,a,c),++a,--c;i(t[a],o)<0;)++a;for(;i(t[c],o)>0;)--c}0===i(t[r],o)?tv(t,r,c):(++c,tv(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function tv(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ev(t,e,r=Ry){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,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(+r(t[o+1],o+1,t)-a)*(i-o)}}function rv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function nv(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 iv=Symbol("implicit");function ov(){var t=new zy,e=[],r=[],n=iv;function i(i){let o=t.get(i);if(void 0===o){if(n!==iv)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new zy;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return ov(e,r).unknown(n)},rv.apply(i,arguments),i}function av(){var t,e,r=ov().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,c=!1,l=0,u=0,s=.5;function f(){var r=n().length,f=a<o,p=f?a:o,h=f?o:a;t=(h-p)/Math.max(1,r-l+2*u),c&&(t=Math.floor(t)),p+=(h-p-t*(r-l))*s,e=t*(1-l),c&&(p=Math.round(p),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),o=new Array(i);++n<i;)o[n]=t+n*r;return o}(r).map((function(e){return p+t*e}));return i(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?([o,a]=t,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(l=Math.min(1,u=+t),f()):l},r.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),f()):l},r.paddingOuter=function(t){return arguments.length?(u=+t,f()):u},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return av(n(),[o,a]).round(c).paddingInner(l).paddingOuter(u).align(s)},rv.apply(f(),arguments)}function cv(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return cv(e())},t}function lv(){return cv(av.apply(null,arguments).paddingInner(1))}function uv(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function sv(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function fv(){}var pv=.7,hv=1/pv,dv="\\s*([+-]?\\d+)\\s*",yv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mv=/^#([0-9a-f]{3,8})$/,gv=new RegExp(`^rgb\\(${dv},${dv},${dv}\\)$`),bv=new RegExp(`^rgb\\(${vv},${vv},${vv}\\)$`),wv=new RegExp(`^rgba\\(${dv},${dv},${dv},${yv}\\)$`),xv=new RegExp(`^rgba\\(${vv},${vv},${vv},${yv}\\)$`),Ov=new RegExp(`^hsl\\(${yv},${vv},${vv}\\)$`),Sv=new RegExp(`^hsla\\(${yv},${vv},${vv},${yv}\\)$`),jv={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 Av(){return this.rgb().formatHex()}function Pv(){return this.rgb().formatRgb()}function Mv(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=mv.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Ev(e):3===r?new Tv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?kv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?kv(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=gv.exec(t))?new Tv(e[1],e[2],e[3],1):(e=bv.exec(t))?new Tv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=wv.exec(t))?kv(e[1],e[2],e[3],e[4]):(e=xv.exec(t))?kv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ov.exec(t))?Lv(e[1],e[2]/100,e[3]/100,1):(e=Sv.exec(t))?Lv(e[1],e[2]/100,e[3]/100,e[4]):jv.hasOwnProperty(t)?Ev(jv[t]):"transparent"===t?new Tv(NaN,NaN,NaN,0):null}function Ev(t){return new Tv(t>>16&255,t>>8&255,255&t,1)}function kv(t,e,r,n){return n<=0&&(t=e=r=NaN),new Tv(t,e,r,n)}function _v(t,e,r,n){return 1===arguments.length?((i=t)instanceof fv||(i=Mv(i)),i?new Tv((i=i.rgb()).r,i.g,i.b,i.opacity):new Tv):new Tv(t,e,r,null==n?1:n);var i}function Tv(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Cv(){return`#${Bv(this.r)}${Bv(this.g)}${Bv(this.b)}`}function Dv(){const t=Iv(this.opacity);return`${1===t?"rgb(":"rgba("}${Nv(this.r)}, ${Nv(this.g)}, ${Nv(this.b)}${1===t?")":`, ${t})`}`}function Iv(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Nv(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Bv(t){return((t=Nv(t))<16?"0":"")+t.toString(16)}function Lv(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new $v(t,e,r,n)}function Rv(t){if(t instanceof $v)return new $v(t.h,t.s,t.l,t.opacity);if(t instanceof fv||(t=Mv(t)),!t)return new $v;if(t instanceof $v)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),a=NaN,c=o-i,l=(o+i)/2;return c?(a=e===o?(r-n)/c+6*(r<n):r===o?(n-e)/c+2:(e-r)/c+4,c/=l<.5?o+i:2-o-i,a*=60):c=l>0&&l<1?0:a,new $v(a,c,l,t.opacity)}function $v(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function zv(t){return(t=(t||0)%360)<0?t+360:t}function Hv(t){return Math.max(0,Math.min(1,t||0))}function Vv(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}uv(fv,Mv,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Av,formatHex:Av,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Rv(this).formatHsl()},formatRgb:Pv,toString:Pv}),uv(Tv,_v,sv(fv,{brighter(t){return t=null==t?hv:Math.pow(hv,t),new Tv(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?pv:Math.pow(pv,t),new Tv(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Tv(Nv(this.r),Nv(this.g),Nv(this.b),Iv(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:Cv,formatHex:Cv,formatHex8:function(){return`#${Bv(this.r)}${Bv(this.g)}${Bv(this.b)}${Bv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Dv,toString:Dv})),uv($v,(function(t,e,r,n){return 1===arguments.length?Rv(t):new $v(t,e,r,null==n?1:n)}),sv(fv,{brighter(t){return t=null==t?hv:Math.pow(hv,t),new $v(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?pv:Math.pow(pv,t),new $v(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,i=2*r-n;return new Tv(Vv(t>=240?t-240:t+120,i,n),Vv(t,i,n),Vv(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new $v(zv(this.h),Hv(this.s),Hv(this.l),Iv(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=Iv(this.opacity);return`${1===t?"hsl(":"hsla("}${zv(this.h)}, ${100*Hv(this.s)}%, ${100*Hv(this.l)}%${1===t?")":`, ${t})`}`}}));var Uv=t=>()=>t;function Fv(t){return 1==(t=+t)?Wv: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):Uv(isNaN(e)?r:e)}}function Wv(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):Uv(isNaN(t)?e:t)}var qv=function t(e){var r=Fv(e);function n(t,e){var n=r((t=_v(t)).r,(e=_v(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=Wv(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Xv(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function Yv(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=em(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<i;++r)a[r]=o[r](t);return a}}function Kv(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Gv(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Zv(t,e){var r,n={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=em(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var Jv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qv=new RegExp(Jv.source,"g");function tm(t,e){var r,n,i,o=Jv.lastIndex=Qv.lastIndex=0,a=-1,c=[],l=[];for(t+="",e+="";(r=Jv.exec(t))&&(n=Qv.exec(e));)(i=n.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,l.push({i:a,x:Gv(r,n)})),o=Qv.lastIndex;return o<e.length&&(i=e.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n<e;++n)c[(r=l[n]).i]=r.x(t);return c.join("")})}function em(t,e){var r,n=typeof e;return null==e||"boolean"===n?Uv(e):("number"===n?Gv:"string"===n?(r=Mv(e))?(e=r,qv):tm:e instanceof Mv?qv:e instanceof Date?Kv:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Xv:Array.isArray(e)?Yv:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Zv:Gv)(t,e)}function rm(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function nm(t,e){void 0===e&&(e=t,t=em);for(var r=0,n=e.length-1,i=e[0],o=new Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return o[e](t-e)}}function im(t){return+t}var om=[0,1];function am(t){return t}function cm(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function lm(t,e,r){var n=t[0],i=t[1],o=e[0],a=e[1];return i<n?(n=cm(i,n),o=r(a,o)):(n=cm(n,i),o=r(o,a)),function(t){return o(n(t))}}function um(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),o=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=cm(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=$y(t,e,1,n)-1;return o[r](i[r](e))}}function sm(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function fm(){var t,e,r,n,i,o,a=om,c=om,l=em,u=am;function s(){var t=Math.min(a.length,c.length);return u!==am&&(u=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?um:lm,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?r:(i||(i=n(a.map(t),c,l)))(t(u(e)))}return f.invert=function(r){return u(e((o||(o=n(c,a.map(t),Gv)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,im),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),l=rm,s()},f.clamp=function(t){return arguments.length?(u=!!t||am,s()):u!==am},f.interpolate=function(t){return arguments.length?(l=t,s()):l},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function pm(){return fm()(am,am)}function hm(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 dm(t){return(t=hm(Math.abs(t)))?t[1]:NaN}var ym,vm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mm(t){if(!(e=vm.exec(t)))throw new Error("invalid format: "+t);var e;return new gm({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 gm(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 bm(t,e){var r=hm(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}mm.prototype=gm.prototype,gm.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};var wm={"%":(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)=>bm(100*t,e),r:bm,s:function(t,e){var r=hm(t,e);if(!r)return t+"";var n=r[0],i=r[1],o=i-(ym=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+hm(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function xm(t){return t}var Om,Sm,jm,Am=Array.prototype.map,Pm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mm(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?xm:(e=Am.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,o=[],a=0,c=e[0],l=0;i>0&&c>0&&(l+c+1>n&&(c=Math.max(1,n-l)),o.push(t.substring(i-=c,i+c)),!((l+=c+1)>n));)c=e[a=(a+1)%e.length];return o.reverse().join(r)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?xm:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Am.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=mm(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,g=t.type;"n"===g?(y=!0,g="g"):wm[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===p?o:/[%p]/.test(g)?l:"",x=wm[g],O=/[defgprs%]/.test(g);function S(t){var i,o,l,p=b,S=w;if("c"===g)S=x(t)+S,t="";else{var j=(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,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:u:"-"===f||"("===f?"":f)+p,S=("s"===g?Pm[8+ym/3]:"")+S+(j&&"("===f?")":""),O)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){S=(46===l?a+t.slice(i+1):t.slice(i))+S,t=t.slice(0,i);break}}y&&!h&&(t=n(t,1/0));var A=p.length+t.length+S.length,P=A<d?new Array(d-A+1).join(e):"";switch(y&&h&&(t=n(P+t,P.length?d-S.length:1/0),P=""),r){case"<":t=p+t+S+P;break;case"=":t=p+P+t+S;break;case"^":t=P.slice(0,A=P.length>>1)+p+t+S+P.slice(A);break;default:t=P+p+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=mm(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(dm(e)/3))),i=Math.pow(10,-n),o=Pm[8+n/3];return function(t){return r(i*t)+o}}}}function Em(t,e,r,n){var i,o=Gy(t,e,r);switch((n=mm(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(dm(e)/3)))-dm(Math.abs(t)))}(o,a))||(n.precision=i),jm(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,dm(e)-dm(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(t){return Math.max(0,-dm(Math.abs(t)))}(o))||(n.precision=i-2*("%"===n.type))}return Sm(n)}function km(t){var e=t.domain;return t.ticks=function(t){var r=e();return Yy(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Em(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,o=e(),a=0,c=o.length-1,l=o[a],u=o[c],s=10;for(u<l&&(i=l,l=u,u=i,i=a,a=c,c=i);s-- >0;){if((i=Ky(l,u,r))===n)return o[a]=l,o[c]=u,e(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}n=i}return t},t}function _m(){var t=pm();return t.copy=function(){return sm(t,_m())},rv.apply(t,arguments),km(t)}function Tm(t,e){var r,n=0,i=(t=t.slice()).length-1,o=t[n],a=t[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),t[n]=e.floor(o),t[i]=e.ceil(a),t}function Cm(t){return Math.log(t)}function Dm(t){return Math.exp(t)}function Im(t){return-Math.log(-t)}function Nm(t){return-Math.exp(-t)}function Bm(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Lm(t){return(e,r)=>-t(-e,r)}function Rm(t){const e=t(Cm,Dm),r=e.domain;let n,i,o=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)}(o),i=function(t){return 10===t?Bm:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),r()[0]<0?(n=Lm(n),i=Lm(i),t(Im,Nm)):t(Cm,Dm),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const l=c<a;l&&([a,c]=[c,a]);let u,s,f=n(a),p=n(c);const h=null==t?10:+t;let d=[];if(!(o%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(u=1;u<o;++u)if(s=f<0?u/i(-f):u*i(f),!(s<a)){if(s>c)break;d.push(s)}}else for(;f<=p;++f)for(u=o-1;u>=1;--u)if(s=f>0?u/i(-f):u*i(f),!(s<a)){if(s>c)break;d.push(s)}2*d.length<h&&(d=Yy(a,c,h))}else d=Yy(f,p,Math.min(p-f,h)).map(i);return l?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=mm(r)).precision||(r.trim=!0),r=Sm(r)),t===1/0)return r;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(n(t)));return e*o<o-.5&&(e*=o),e<=a?r(t):""}},e.nice=()=>r(Tm(r(),{floor:t=>i(Math.floor(n(t))),ceil:t=>i(Math.ceil(n(t)))})),e}function $m(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function zm(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Hm(t){var e=1,r=t($m(e),zm(e));return r.constant=function(r){return arguments.length?t($m(e=+r),zm(e)):e},km(r)}function Vm(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Um(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Fm(t){return t<0?-t*t:t*t}function Wm(t){var e=t(am,am),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(am,am):.5===r?t(Um,Fm):t(Vm(r),Vm(1/r)):r},km(e)}function qm(){var t=Wm(fm());return t.copy=function(){return sm(t,qm()).exponent(t.exponent())},rv.apply(t,arguments),t}function Xm(t){return Math.sign(t)*t*t}Om=Mm({thousands:",",grouping:[3],currency:["$",""]}),Sm=Om.format,jm=Om.formatPrefix;const Ym=new Date,Km=new Date;function Gm(t,e,r,n){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{const e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{const a=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return a;let c;do{a.push(c=new Date(+r)),e(r,o),t(r)}while(c<r&&r<n);return a},i.filter=r=>Gm((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&&(i.count=(e,n)=>(Ym.setTime(+e),Km.setTime(+n),t(Ym),t(Km),Math.floor(r(Ym,Km))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Zm=Gm((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Zm.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Gm((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):Zm:null),Zm.range;const Jm=1e3,Qm=6e4,tg=36e5,eg=864e5,rg=6048e5,ng=2592e6,ig=31536e6,og=Gm((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Jm)}),((t,e)=>(e-t)/Jm),(t=>t.getUTCSeconds()));og.range;const ag=Gm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jm)}),((t,e)=>{t.setTime(+t+e*Qm)}),((t,e)=>(e-t)/Qm),(t=>t.getMinutes()));ag.range;const cg=Gm((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Qm)}),((t,e)=>(e-t)/Qm),(t=>t.getUTCMinutes()));cg.range;const lg=Gm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Jm-t.getMinutes()*Qm)}),((t,e)=>{t.setTime(+t+e*tg)}),((t,e)=>(e-t)/tg),(t=>t.getHours()));lg.range;const ug=Gm((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*tg)}),((t,e)=>(e-t)/tg),(t=>t.getUTCHours()));ug.range;const sg=Gm((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Qm)/eg),(t=>t.getDate()-1));sg.range;const fg=Gm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/eg),(t=>t.getUTCDate()-1));fg.range;const pg=Gm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/eg),(t=>Math.floor(t/eg)));function hg(t){return Gm((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())*Qm)/rg))}pg.range;const dg=hg(0),yg=hg(1),vg=hg(2),mg=hg(3),gg=hg(4),bg=hg(5),wg=hg(6);function xg(t){return Gm((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)/rg))}dg.range,yg.range,vg.range,mg.range,gg.range,bg.range,wg.range;const Og=xg(0),Sg=xg(1),jg=xg(2),Ag=xg(3),Pg=xg(4),Mg=xg(5),Eg=xg(6);Og.range,Sg.range,jg.range,Ag.range,Pg.range,Mg.range,Eg.range;const kg=Gm((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()));kg.range;const _g=Gm((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()));_g.range;const Tg=Gm((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()));Tg.every=t=>isFinite(t=Math.floor(t))&&t>0?Gm((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,Tg.range;const Cg=Gm((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 Dg(t,e,r,n,i,o){const a=[[og,1,Jm],[og,5,5e3],[og,15,15e3],[og,30,3e4],[o,1,Qm],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,tg],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,eg],[n,2,1728e5],[r,1,rg],[e,1,ng],[e,3,7776e6],[t,1,ig]];function c(e,r,n){const i=Math.abs(r-e)/n,o=By((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Gy(e/ig,r/ig,n));if(0===o)return Zm.every(Math.max(Gy(e,r,n),1));const[c,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(l)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const i=r&&"function"==typeof r.range?r:c(t,e,r),o=i?i.range(t,+e+1):[];return n?o.reverse():o},c]}Cg.every=t=>isFinite(t=Math.floor(t))&&t>0?Gm((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,Cg.range;const[Ig,Ng]=Dg(Cg,_g,Og,pg,ug,cg),[Bg,Lg]=Dg(Tg,kg,dg,sg,lg,ag);function Rg(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 $g(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 zg(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Hg,Vg,Ug,Fg={"-":"",_:" ",0:"0"},Wg=/^\s*\d+/,qg=/^%/,Xg=/[\\^$*+?|[\]().{}]/g;function Yg(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(e)+i:i)}function Kg(t){return t.replace(Xg,"\\$&")}function Gg(t){return new RegExp("^(?:"+t.map(Kg).join("|")+")","i")}function Zg(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Jg(t,e,r){var n=Wg.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Qg(t,e,r){var n=Wg.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function tb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function rb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function nb(t,e,r){var n=Wg.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function ib(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function ob(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 ab(t,e,r){var n=Wg.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function cb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function lb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function ub(t,e,r){var n=Wg.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function sb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function fb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function pb(t,e,r){var n=Wg.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function hb(t,e,r){var n=Wg.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function db(t,e,r){var n=Wg.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function yb(t,e,r){var n=qg.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function vb(t,e,r){var n=Wg.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function mb(t,e,r){var n=Wg.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function gb(t,e){return Yg(t.getDate(),e,2)}function bb(t,e){return Yg(t.getHours(),e,2)}function wb(t,e){return Yg(t.getHours()%12||12,e,2)}function xb(t,e){return Yg(1+sg.count(Tg(t),t),e,3)}function Ob(t,e){return Yg(t.getMilliseconds(),e,3)}function Sb(t,e){return Ob(t,e)+"000"}function jb(t,e){return Yg(t.getMonth()+1,e,2)}function Ab(t,e){return Yg(t.getMinutes(),e,2)}function Pb(t,e){return Yg(t.getSeconds(),e,2)}function Mb(t){var e=t.getDay();return 0===e?7:e}function Eb(t,e){return Yg(dg.count(Tg(t)-1,t),e,2)}function kb(t){var e=t.getDay();return e>=4||0===e?gg(t):gg.ceil(t)}function _b(t,e){return t=kb(t),Yg(gg.count(Tg(t),t)+(4===Tg(t).getDay()),e,2)}function Tb(t){return t.getDay()}function Cb(t,e){return Yg(yg.count(Tg(t)-1,t),e,2)}function Db(t,e){return Yg(t.getFullYear()%100,e,2)}function Ib(t,e){return Yg((t=kb(t)).getFullYear()%100,e,2)}function Nb(t,e){return Yg(t.getFullYear()%1e4,e,4)}function Bb(t,e){var r=t.getDay();return Yg((t=r>=4||0===r?gg(t):gg.ceil(t)).getFullYear()%1e4,e,4)}function Lb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Yg(e/60|0,"0",2)+Yg(e%60,"0",2)}function Rb(t,e){return Yg(t.getUTCDate(),e,2)}function $b(t,e){return Yg(t.getUTCHours(),e,2)}function zb(t,e){return Yg(t.getUTCHours()%12||12,e,2)}function Hb(t,e){return Yg(1+fg.count(Cg(t),t),e,3)}function Vb(t,e){return Yg(t.getUTCMilliseconds(),e,3)}function Ub(t,e){return Vb(t,e)+"000"}function Fb(t,e){return Yg(t.getUTCMonth()+1,e,2)}function Wb(t,e){return Yg(t.getUTCMinutes(),e,2)}function qb(t,e){return Yg(t.getUTCSeconds(),e,2)}function Xb(t){var e=t.getUTCDay();return 0===e?7:e}function Yb(t,e){return Yg(Og.count(Cg(t)-1,t),e,2)}function Kb(t){var e=t.getUTCDay();return e>=4||0===e?Pg(t):Pg.ceil(t)}function Gb(t,e){return t=Kb(t),Yg(Pg.count(Cg(t),t)+(4===Cg(t).getUTCDay()),e,2)}function Zb(t){return t.getUTCDay()}function Jb(t,e){return Yg(Sg.count(Cg(t)-1,t),e,2)}function Qb(t,e){return Yg(t.getUTCFullYear()%100,e,2)}function tw(t,e){return Yg((t=Kb(t)).getUTCFullYear()%100,e,2)}function ew(t,e){return Yg(t.getUTCFullYear()%1e4,e,4)}function rw(t,e){var r=t.getUTCDay();return Yg((t=r>=4||0===r?Pg(t):Pg.ceil(t)).getUTCFullYear()%1e4,e,4)}function nw(){return"+0000"}function iw(){return"%"}function ow(t){return+t}function aw(t){return Math.floor(+t/1e3)}function cw(t){return new Date(t)}function lw(t){return t instanceof Date?+t:+new Date(+t)}function uw(t,e,r,n,i,o,a,c,l,u){var s=pm(),f=s.invert,p=s.domain,h=u(".%L"),d=u(":%S"),y=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),g=u("%b %d"),b=u("%B"),w=u("%Y");function x(t){return(l(t)<t?h:c(t)<t?d:a(t)<t?y:o(t)<t?v:n(t)<t?i(t)<t?m:g:r(t)<t?b:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,lw)):p().map(cw)},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:u(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(Tm(r,t)):s},s.copy=function(){return sm(s,uw(t,e,r,n,i,o,a,c,l,u))},s}function sw(){var t,e,r,n,i,o=0,a=1,c=am,l=!1;function u(e){return null==e||isNaN(e=+e)?i:c(0===r?.5:(e=(n(e)-t)*r,l?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),u):[c(0),c(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,t=n(o=+o),e=n(a=+a),r=t===e?0:1/(e-t),u):[o,a]},u.clamp=function(t){return arguments.length?(l=!!t,u):l},u.interpolator=function(t){return arguments.length?(c=t,u):c},u.range=s(em),u.rangeRound=s(rm),u.unknown=function(t){return arguments.length?(i=t,u):i},function(i){return n=i,t=i(o),e=i(a),r=t===e?0:1/(e-t),u}}function fw(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function pw(){var t=Wm(sw());return t.copy=function(){return fw(t,pw()).exponent(t.exponent())},nv.apply(t,arguments)}function hw(){var t,e,r,n,i,o,a,c=0,l=.5,u=1,s=1,f=am,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?n:i),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=nm(t,[r,n,i]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,l,u]=a,t=o(c=+c),e=o(l=+l),r=o(u=+u),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,l,u]},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(em),h.rangeRound=d(rm),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return o=a,t=a(c),e=a(l),r=a(u),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function dw(){var t=Wm(hw());return t.copy=function(){return fw(t,dw()).exponent(t.exponent())},nv.apply(t,arguments)}!function(t){Hg=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,l=t.shortMonths,u=Gg(i),s=Zg(i),f=Gg(o),p=Zg(o),h=Gg(a),d=Zg(a),y=Gg(c),v=Zg(c),m=Gg(l),g=Zg(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:gb,e:gb,f:Sb,g:Ib,G:Bb,H:bb,I:wb,j:xb,L:Ob,m:jb,M:Ab,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ow,s:aw,S:Pb,u:Mb,U:Eb,V:_b,w:Tb,W:Cb,x:null,X:null,y:Db,Y:Nb,Z:Lb,"%":iw},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:Rb,e:Rb,f:Ub,g:tw,G:rw,H:$b,I:zb,j:Hb,L:Vb,m:Fb,M:Wb,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ow,s:aw,S:qb,u:Xb,U:Yb,V:Gb,w:Zb,W:Jb,x:null,X:null,y:Qb,Y:ew,Z:nw,"%":iw},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=g.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 j(t,e,r,n)},d:lb,e:lb,f:db,g:ib,G:nb,H:sb,I:sb,j:ub,L:hb,m:cb,M:fb,p:function(t,e,r){var n=u.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:ab,Q:vb,s:mb,S:pb,u:Qg,U:tb,V:eb,w:Jg,W:rb,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:ib,Y:nb,Z:ob,"%":yb};function O(t,e){return function(r){var n,i,o,a=[],c=-1,l=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++c<u;)37===t.charCodeAt(c)&&(a.push(t.slice(l,c)),null!=(i=Fg[n=t.charAt(++c)])?n=t.charAt(++c):i="e"===n?" ":"0",(o=e[n])&&(n=o(r,i)),a.push(n),l=c+1);return a.push(t.slice(l,c)),a.join("")}}function S(t,e){return function(r){var n,i,o=zg(1900,void 0,1);if(j(o,t,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=$g(zg(o.y,0,1))).getUTCDay(),n=i>4||0===i?Sg.ceil(n):Sg(n),n=fg.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=Rg(zg(o.y,0,1))).getDay(),n=i>4||0===i?yg.ceil(n):yg(n),n=sg.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?$g(zg(o.y,0,1)).getUTCDay():Rg(zg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,$g(o)):Rg(o)}}function j(t,e,r,n){for(var i,o,a=0,c=e.length,l=r.length;a<c;){if(n>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in Fg?e.charAt(a++):i])||(n=o(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(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=S(t+="",!0);return e.toString=function(){return t},e}}}(t),Vg=Hg.format,Hg.parse,Ug=Hg.utcFormat,Hg.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"]});var yw=Object.freeze({__proto__:null,scaleBand:av,scaleDiverging:function t(){var e=km(hw()(am));return e.copy=function(){return fw(e,t())},nv.apply(e,arguments)},scaleDivergingLog:function t(){var e=Rm(hw()).domain([.1,1,10]);return e.copy=function(){return fw(e,t()).base(e.base())},nv.apply(e,arguments)},scaleDivergingPow:dw,scaleDivergingSqrt:function(){return dw.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=Hm(hw());return e.copy=function(){return fw(e,t()).constant(e.constant())},nv.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,im),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,im):[0,1],km(n)},scaleImplicit:iv,scaleLinear:_m,scaleLog:function t(){const e=Rm(fm()).domain([1,10]);return e.copy=()=>sm(e,t()).base(e.base()),rv.apply(e,arguments),e},scaleOrdinal:ov,scalePoint:lv,scalePow:qm,scaleQuantile:function t(){var e,r=[],n=[],i=[];function o(){var t=0,e=Math.max(1,n.length);for(i=new Array(e-1);++t<e;)i[t-1]=ev(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[$y(i,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[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(Iy),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},rv.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,i=1,o=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[$y(o,t,0,i)]:e}function l(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*n-(t-i)*r)/(i+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,l()):[r,n]},c.range=function(t){return arguments.length?(i=(a=Array.from(t)).length-1,l()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,o[0]]:e>=i?[o[i-1],n]:[o[e-1],o[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},rv.apply(km(c),arguments)},scaleRadial:function t(){var e,r=pm(),n=[0,1],i=!1;function o(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:i?Math.round(n):n}return o.invert=function(t){return r.invert(Xm(t))},o.domain=function(t){return arguments.length?(r.domain(t),o):r.domain()},o.range=function(t){return arguments.length?(r.range((n=Array.from(t,im)).map(Xm)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(r.clamp(t),o):r.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(r.domain(),n).round(i).clamp(r.clamp()).unknown(e)},rv.apply(o,arguments),km(o)},scaleSequential:function t(){var e=km(sw()(am));return e.copy=function(){return fw(e,t())},nv.apply(e,arguments)},scaleSequentialLog:function t(){var e=Rm(sw()).domain([1,10]);return e.copy=function(){return fw(e,t()).base(e.base())},nv.apply(e,arguments)},scaleSequentialPow:pw,scaleSequentialQuantile:function t(){var e=[],r=am;function n(t){if(null!=t&&!isNaN(t=+t))return r(($y(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(Iy),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 e of t)null!=e&&(e=+e)>=e&&(yield e);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 Jy(t);if(e>=1)return Zy(t);var n,i=(n-1)*e,o=Math.floor(i),a=Zy(Qy(t,o).subarray(0,o+1));return a+(Jy(t.subarray(o+1))-a)*(i-o)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},nv.apply(n,arguments)},scaleSequentialSqrt:function(){return pw.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=Hm(sw());return e.copy=function(){return fw(e,t()).constant(e.constant())},nv.apply(e,arguments)},scaleSqrt:function(){return qm.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=Hm(fm());return e.copy=function(){return sm(e,t()).constant(e.constant())},rv.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],i=1;function o(t){return null!=t&&t<=t?n[$y(r,t,0,i)]:e}return o.domain=function(t){return arguments.length?(r=Array.from(t),i=Math.min(r.length,n.length-1),o):r.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(r).range(n).unknown(e)},rv.apply(o,arguments)},scaleTime:function(){return rv.apply(uw(Bg,Lg,Tg,kg,dg,sg,lg,ag,og,Vg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return rv.apply(uw(Ig,Ng,Cg,_g,Og,fg,ug,cg,og,Ug).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Em}),vw=fn;var mw=function(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===c?a==a&&!vw(a):r(a,c)))var c=a,l=o}return l};var gw=mw,bw=function(t,e){return t>e},ww=Bf;var xw=function(t){return t&&t.length?gw(t,ww,bw):void 0},Ow=nr(xw);var Sw=mw,jw=function(t,e){return t<e},Aw=Bf;var Pw=function(t){return t&&t.length?Sw(t,Aw,jw):void 0},Mw=nr(Pw),Ew=Yi,kw=Kf,_w=Kp,Tw=Fr;var Cw=zp,Dw=function(t,e){return(Tw(t)?Ew:_w)(t,kw(e))};var Iw=nr((function(t,e){return Cw(Dw(t,e),1)})),Nw=rf;var Bw,Lw=nr((function(t,e){return Nw(t,e)})),Rw=1e9,$w=!0,zw="[DecimalError] ",Hw=zw+"Invalid argument: ",Vw=zw+"Exponent out of range: ",Uw=Math.floor,Fw=Math.pow,Ww=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qw=1e7,Xw=7,Yw=9007199254740991,Kw=Uw(Yw/Xw),Gw={};function Zw(t,e){var r,n,i,o,a,c,l,u,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),$w?cx(e,f):e;if(l=t.d,u=e.d,a=t.e,i=e.e,l=l.slice(),o=a-i){for(o<0?(n=l,o=-o,c=u.length):(n=u,i=a,c=l.length),o>(c=(a=Math.ceil(f/Xw))>c?a+1:c+1)&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((c=l.length)-(o=u.length)<0&&(o=c,n=u,u=l,l=n),r=0;o;)r=(l[--o]=l[o]+u[o]+r)/qw|0,l[o]%=qw;for(r&&(l.unshift(r),++i),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=i,$w?cx(e,f):e}function Jw(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Hw+t)}function Qw(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=Xw-n.length)&&(o+=ix(r)),o+=n;a=t[e],(r=Xw-(n=a+"").length)&&(o+=ix(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}Gw.absoluteValue=Gw.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},Gw.comparedTo=Gw.cmp=function(t){var e,r,n,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,r=(n=o.d.length)<(i=t.d.length)?n:i;e<r;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},Gw.decimalPlaces=Gw.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*Xw;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},Gw.dividedBy=Gw.div=function(t){return tx(this,new this.constructor(t))},Gw.dividedToIntegerBy=Gw.idiv=function(t){var e=this.constructor;return cx(tx(this,new e(t),0,1),e.precision)},Gw.equals=Gw.eq=function(t){return!this.cmp(t)},Gw.exponent=function(){return rx(this)},Gw.greaterThan=Gw.gt=function(t){return this.cmp(t)>0},Gw.greaterThanOrEqualTo=Gw.gte=function(t){return this.cmp(t)>=0},Gw.isInteger=Gw.isint=function(){return this.e>this.d.length-2},Gw.isNegative=Gw.isneg=function(){return this.s<0},Gw.isPositive=Gw.ispos=function(){return this.s>0},Gw.isZero=function(){return 0===this.s},Gw.lessThan=Gw.lt=function(t){return this.cmp(t)<0},Gw.lessThanOrEqualTo=Gw.lte=function(t){return this.cmp(t)<1},Gw.logarithm=Gw.log=function(t){var e,r=this,n=r.constructor,i=n.precision,o=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(Bw))throw Error(zw+"NaN");if(r.s<1)throw Error(zw+(r.s?"NaN":"-Infinity"));return r.eq(Bw)?new n(0):($w=!1,e=tx(ox(r,o),ox(t,o),o),$w=!0,cx(e,i))},Gw.minus=Gw.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?lx(e,t):Zw(e,(t.s=-t.s,t))},Gw.modulo=Gw.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(!(t=new n(t)).s)throw Error(zw+"NaN");return r.s?($w=!1,e=tx(r,t,0,1).times(t),$w=!0,r.minus(e)):cx(new n(r),i)},Gw.naturalExponential=Gw.exp=function(){return ex(this)},Gw.naturalLogarithm=Gw.ln=function(){return ox(this)},Gw.negated=Gw.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},Gw.plus=Gw.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Zw(e,t):lx(e,(t.s=-t.s,t))},Gw.precision=Gw.sd=function(t){var e,r,n,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Hw+t);if(e=rx(i)+1,r=(n=i.d.length-1)*Xw+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},Gw.squareRoot=Gw.sqrt=function(){var t,e,r,n,i,o,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(zw+"NaN")}for(t=rx(c),$w=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=Qw(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=Uw((t+1)/2)-(t<0||t%2),n=new l(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new l(i.toString()),i=a=(r=l.precision)+3;;)if(n=(o=n).plus(tx(c,o,a+2)).times(.5),Qw(o.d).slice(0,a)===(e=Qw(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(cx(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if("9999"!=e)break;a+=4}return $w=!0,cx(n,r)},Gw.times=Gw.mul=function(t){var e,r,n,i,o,a,c,l,u,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,(l=p.length)<(u=h.length)&&(o=p,p=h,h=o,a=l,l=u,u=a),o=[],n=a=l+u;n--;)o.push(0);for(n=u;--n>=0;){for(e=0,i=l+n;i>n;)c=o[i]+h[n]*p[i-n-1]+e,o[i--]=c%qw|0,e=c/qw|0;o[i]=(o[i]+e)%qw|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,$w?cx(t,f.precision):t},Gw.toDecimalPlaces=Gw.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(Jw(t,0,Rw),void 0===e?e=n.rounding:Jw(e,0,8),cx(r,t+rx(r)+1,e))},Gw.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=ux(n,!0):(Jw(t,0,Rw),void 0===e?e=i.rounding:Jw(e,0,8),r=ux(n=cx(new i(n),t+1,e),!0,t+1)),r},Gw.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?ux(i):(Jw(t,0,Rw),void 0===e?e=o.rounding:Jw(e,0,8),r=ux((n=cx(new o(i),t+rx(i)+1,e)).abs(),!1,t+rx(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},Gw.toInteger=Gw.toint=function(){var t=this,e=t.constructor;return cx(new e(t),rx(t)+1,e.rounding)},Gw.toNumber=function(){return+this},Gw.toPower=Gw.pow=function(t){var e,r,n,i,o,a,c=this,l=c.constructor,u=+(t=new l(t));if(!t.s)return new l(Bw);if(!(c=new l(c)).s){if(t.s<1)throw Error(zw+"Infinity");return c}if(c.eq(Bw))return c;if(n=l.precision,t.eq(Bw))return cx(c,n);if(a=(e=t.e)>=(r=t.d.length-1),o=c.s,a){if((r=u<0?-u:u)<=Yw){for(i=new l(Bw),e=Math.ceil(n/Xw+4),$w=!1;r%2&&sx((i=i.times(c)).d,e),0!==(r=Uw(r/2));)sx((c=c.times(c)).d,e);return $w=!0,t.s<0?new l(Bw).div(i):cx(i,n)}}else if(o<0)throw Error(zw+"NaN");return o=o<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,$w=!1,i=t.times(ox(c,n+12)),$w=!0,(i=ex(i)).s=o,i},Gw.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?n=ux(i,(r=rx(i))<=o.toExpNeg||r>=o.toExpPos):(Jw(t,1,Rw),void 0===e?e=o.rounding:Jw(e,0,8),n=ux(i=cx(new o(i),t,e),t<=(r=rx(i))||r<=o.toExpNeg,t)),n},Gw.toSignificantDigits=Gw.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(Jw(t,1,Rw),void 0===e?e=r.rounding:Jw(e,0,8)),cx(new r(this),t,e)},Gw.toString=Gw.valueOf=Gw.val=Gw.toJSON=Gw[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=rx(t),r=t.constructor;return ux(t,e<=r.toExpNeg||e>=r.toExpPos)};var tx=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%qw|0,n=r/qw|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*qw+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a){var c,l,u,s,f,p,h,d,y,v,m,g,b,w,x,O,S,j,A=n.constructor,P=n.s==i.s?1:-1,M=n.d,E=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(zw+"Division by zero");for(l=n.e-i.e,S=E.length,x=M.length,d=(h=new A(P)).d=[],u=0;E[u]==(M[u]||0);)++u;if(E[u]>(M[u]||0)&&--l,(g=null==o?o=A.precision:a?o+(rx(n)-rx(i))+1:o)<0)return new A(0);if(g=g/Xw+2|0,u=0,1==S)for(s=0,E=E[0],g++;(u<x||s)&&g--;u++)b=s*qw+(M[u]||0),d[u]=b/E|0,s=b%E|0;else{for((s=qw/(E[0]+1)|0)>1&&(E=t(E,s),M=t(M,s),S=E.length,x=M.length),w=S,v=(y=M.slice(0,S)).length;v<S;)y[v++]=0;(j=E.slice()).unshift(0),O=E[0],E[1]>=qw/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(m=y[0],S!=v&&(m=m*qw+(y[1]||0)),(s=m/O|0)>1?(s>=qw&&(s=qw-1),1==(c=e(f=t(E,s),y,p=f.length,v=y.length))&&(s--,r(f,S<p?j:E,p))):(0==s&&(c=s=1),f=E.slice()),(p=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=e(E,y,S,v=y.length))<1&&(s++,r(y,S<v?j:E,v)),v=y.length):0===c&&(s++,y=[0]),d[u++]=s,c&&y[0]?y[v++]=M[w]||0:(y=[M[w]],v=1)}while((w++<x||void 0!==y[0])&&g--)}return d[0]||d.shift(),h.e=l,cx(h,a?o+rx(h)+1:o)}}();function ex(t,e){var r,n,i,o,a,c=0,l=0,u=t.constructor,s=u.precision;if(rx(t)>16)throw Error(Vw+rx(t));if(!t.s)return new u(Bw);for(null==e?($w=!1,a=s):a=e,o=new u(.03125);t.abs().gte(.1);)t=t.times(o),l+=5;for(a+=Math.log(Fw(2,l))/Math.LN10*2+5|0,r=n=i=new u(Bw),u.precision=a;;){if(n=cx(n.times(t),a),r=r.times(++c),Qw((o=i.plus(tx(n,r,a))).d).slice(0,a)===Qw(i.d).slice(0,a)){for(;l--;)i=cx(i.times(i),a);return u.precision=s,null==e?($w=!0,cx(i,s)):i}i=o}}function rx(t){for(var e=t.e*Xw,r=t.d[0];r>=10;r/=10)e++;return e}function nx(t,e,r){if(e>t.LN10.sd())throw $w=!0,r&&(t.precision=r),Error(zw+"LN10 precision limit exceeded");return cx(new t(t.LN10),e)}function ix(t){for(var e="";t--;)e+="0";return e}function ox(t,e){var r,n,i,o,a,c,l,u,s,f=1,p=t,h=p.d,d=p.constructor,y=d.precision;if(p.s<1)throw Error(zw+(p.s?"NaN":"-Infinity"));if(p.eq(Bw))return new d(0);if(null==e?($w=!1,u=y):u=e,p.eq(10))return null==e&&($w=!0),nx(d,u);if(u+=10,d.precision=u,n=(r=Qw(h)).charAt(0),o=rx(p),!(Math.abs(o)<15e14))return l=nx(d,u+2,y).times(o+""),p=ox(new d(n+"."+r.slice(1)),u-10).plus(l),d.precision=y,null==e?($w=!0,cx(p,y)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Qw((p=p.times(t)).d)).charAt(0),f++;for(o=rx(p),n>1?(p=new d("0."+r),o++):p=new d(n+"."+r.slice(1)),c=a=p=tx(p.minus(Bw),p.plus(Bw),u),s=cx(p.times(p),u),i=3;;){if(a=cx(a.times(s),u),Qw((l=c.plus(tx(a,new d(i),u))).d).slice(0,u)===Qw(c.d).slice(0,u))return c=c.times(2),0!==o&&(c=c.plus(nx(d,u+2,y).times(o+""))),c=tx(c,new d(f),u),d.precision=y,null==e?($w=!0,cx(c,y)):c;c=l,i+=2}}function ax(t,e){var r,n,i;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(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,r=r-n-1,t.e=Uw(r/Xw),t.d=[],n=(r+1)%Xw,r<0&&(n+=Xw),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=Xw;n<i;)t.d.push(+e.slice(n,n+=Xw));e=e.slice(n),n=Xw-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),$w&&(t.e>Kw||t.e<-Kw))throw Error(Vw+r)}else t.s=0,t.e=0,t.d=[0];return t}function cx(t,e,r){var n,i,o,a,c,l,u,s,f=t.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((n=e-a)<0)n+=Xw,i=e,u=f[s=0];else{if((s=Math.ceil((n+1)/Xw))>=(o=f.length))return t;for(u=o=f[s],a=1;o>=10;o/=10)a++;i=(n%=Xw)-Xw+a}if(void 0!==r&&(c=u/(o=Fw(10,a-i-1))%10|0,l=e<0||void 0!==f[s+1]||u%o,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?i>0?u/Fw(10,a-i):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return l?(o=rx(t),f.length=1,e=e-o-1,f[0]=Fw(10,(Xw-e%Xw)%Xw),t.e=Uw(-e/Xw)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,o=1,s--):(f.length=s+1,o=Fw(10,Xw-n),f[s]=i>0?(u/Fw(10,a-i)%Fw(10,i)|0)*o:0),l)for(;;){if(0==s){(f[0]+=o)==qw&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=qw)break;f[s--]=0,o=1}for(n=f.length;0===f[--n];)f.pop();if($w&&(t.e>Kw||t.e<-Kw))throw Error(Vw+rx(t));return t}function lx(t,e){var r,n,i,o,a,c,l,u,s,f,p=t.constructor,h=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),$w?cx(e,h):e;if(l=t.d,f=e.d,n=e.e,u=t.e,l=l.slice(),a=u-n){for((s=a<0)?(r=l,a=-a,c=f.length):(r=f,n=u,c=l.length),a>(i=Math.max(Math.ceil(h/Xw),c)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((s=(i=l.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(l[i]!=f[i]){s=l[i]<f[i];break}a=0}for(s&&(r=l,l=f,f=r,e.s=-e.s),c=l.length,i=f.length-c;i>0;--i)l[c++]=0;for(i=f.length;i>a;){if(l[--i]<f[i]){for(o=i;o&&0===l[--o];)l[o]=qw-1;--l[o],l[i]+=qw}l[i]-=f[i]}for(;0===l[--c];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=n,$w?cx(e,h):e):new p(0)}function ux(t,e,r){var n,i=rx(t),o=Qw(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+ix(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ix(-i-1)+o,r&&(n=r-a)>0&&(o+=ix(n))):i>=a?(o+=ix(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+ix(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=ix(n))),t.s<0?"-"+o:o}function sx(t,e){if(t.length>e)return t.length=e,!0}function fx(t){if(!t||"object"!=typeof t)throw Error(zw+"Object expected");var e,r,n,i=["precision",1,Rw,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]])){if(!(Uw(n)===n&&n>=i[e+1]&&n<=i[e+2]))throw Error(Hw+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(Hw+r+": "+n);this[r]=new this(n)}return this}var px=function t(e){var r,n,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)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(Hw+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])):ax(e,t.toString())}if("string"!=typeof t)throw Error(Hw+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!Ww.test(t))throw Error(Hw+t);ax(e,t)}if(o.prototype=Gw,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=fx,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Bw=new px(1);var hx=px;function dx(t){return function(t){if(Array.isArray(t))return yx(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 yx(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 yx(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 yx(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 vx=function(t){return t},mx={"@@functional/placeholder":!0},gx=function(t){return t===mx},bx=function(t){return function e(){return 0===arguments.length||1===arguments.length&&gx(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},wx=function t(e,r){return 1===e?r:bx((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==mx})).length;return a>=e?r.apply(void 0,i):t(e-a,bx((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=i.map((function(t){return gx(t)?e.shift():t}));return r.apply(void 0,dx(o).concat(e))})))}))},xx=function(t){return wx(t.length,t)},Ox=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},Sx=xx((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),jx=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return vx;var n=e.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},Ax=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Px=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e&&i.every((function(t,r){return t===e[r]}))?r:(e=i,r=t.apply(void 0,i))}};var Mx=xx((function(t,e,r){var n=+t;return n+r*(+e-n)})),Ex=xx((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),kx=xx((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),_x={rangeStep:function(t,e,r){for(var n=new hx(t),i=0,o=[];n.lt(e)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new hx(t).abs().log(10).toNumber())+1},interpolateNumber:Mx,uninterpolateNumber:Ex,uninterpolateTruncation:kx};function Tx(t){return function(t){if(Array.isArray(t))return Ix(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Dx(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 Cx(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,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(t,e)||Dx(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 Dx(t,e){if(t){if("string"==typeof t)return Ix(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)?Ix(t,e):void 0}}function Ix(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 Nx(t){var e=Cx(t,2),r=e[0],n=e[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function Bx(t,e,r){if(t.lte(0))return new hx(0);var n=_x.getDigitCount(t.toNumber()),i=new hx(10).pow(n),o=t.div(i),a=1!==n?.05:.1,c=new hx(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?c:new hx(Math.ceil(c))}function Lx(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new hx(0),tickMin:new hx(0),tickMax:new hx(0)};var o,a=Bx(new hx(e).sub(t).div(r-1),n,i);o=t<=0&&e>=0?new hx(0):(o=new hx(t).add(e).div(2)).sub(new hx(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),l=Math.ceil(new hx(e).sub(o).div(a).toNumber()),u=c+l+1;return u>r?Lx(t,e,r,n,i+1):(u<r&&(l=e>0?l+(r-u):l,c=e>0?c:c+(r-u)),{step:a,tickMin:o.sub(new hx(c).mul(a)),tickMax:o.add(new hx(l).mul(a))})}var Rx=Px((function(t){var e=Cx(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=Cx(Nx([r,n]),2),l=c[0],u=c[1];if(l===-1/0||u===1/0){var s=u===1/0?[l].concat(Tx(Ox(0,i-1).map((function(){return 1/0})))):[].concat(Tx(Ox(0,i-1).map((function(){return-1/0}))),[u]);return r>n?Ax(s):s}if(l===u)return function(t,e,r){var n=1,i=new hx(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new hx(10).pow(_x.getDigitCount(t)-1),i=new hx(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new hx(Math.floor(t)))}else 0===t?i=new hx(Math.floor((e-1)/2)):r||(i=new hx(Math.floor(t)));var a=Math.floor((e-1)/2);return jx(Sx((function(t){return i.add(new hx(t-a).mul(n)).toNumber()})),Ox)(0,e)}(l,i,o);var f=Lx(l,u,a,o),p=f.step,h=f.tickMin,d=f.tickMax,y=_x.rangeStep(h,d.add(new hx(.1).mul(p)),p);return r>n?Ax(y):y})),$x=Px((function(t,e){var r=Cx(t,2),n=r[0],i=r[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Cx(Nx([n,i]),2),c=a[0],l=a[1];if(c===-1/0||l===1/0)return[n,i];if(c===l)return[c];var u=Math.max(e,2),s=Bx(new hx(l).sub(c).div(u-1),o,0),f=[].concat(Tx(_x.rangeStep(new hx(c),new hx(l).sub(new hx(.99).mul(s)),s)),[l]);return n>i?Ax(f):f})),zx="production"===process.env.NODE_ENV,Hx="Invariant failed";function Vx(t,e){if(!t){if(zx)throw new Error(Hx);var r="function"==typeof e?e():e,n=r?"".concat(Hx,": ").concat(r):Hx;throw new Error(n)}}var Ux=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Fx(){return Fx=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},Fx.apply(this,arguments)}function Wx(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return qx(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 qx(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 qx(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 Xx(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Yx(t){var e=t.offset,r=t.layout,n=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,c=t.xAxis,l=t.yAxis,u=Xx(t,Ux),s=pa(u,!1);"x"===t.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?Vx(!1,'ErrorBar requires Axis type property to be "number".'):Vx(!1));var f=o.map((function(t){var o=a(t,i),u=o.x,f=o.y,p=o.value,h=o.errorVal;if(!h)return null;var d,y,v=[];if(Array.isArray(h)){var m=Wx(h,2);d=m[0],y=m[1]}else d=y=h;if("vertical"===r){var g=c.scale,b=f+e,w=b+n,x=b-n,O=g(p-d),S=g(p+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var j=l.scale,A=u+e,P=A-n,M=A+n,E=j(p-d),k=j(p+y);v.push({x1:P,y1:k,x2:M,y2:k}),v.push({x1:A,y1:E,x2:A,y2:k}),v.push({x1:P,y1:E,x2:M,y2:E})}return K.createElement(Sa,Fx({className:"recharts-errorBar",key:"bar-".concat(v.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},s),v.map((function(t){return K.createElement("line",Fx({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return K.createElement(Sa,{className:"recharts-errorBars"},f)}function Kx(t){return Kx="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},Kx(t)}function Gx(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 Zx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gx(Object(r),!0).forEach((function(e){Jx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jx(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Kx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Kx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kx(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Yx.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Yx.displayName="ErrorBar";var Qx=function(t){var e,r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=la(r,Ip);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,i=r.name,o=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||o||"square",color:lO(e),value:i||n,payload:e.props}})),Zx(Zx(Zx({},a.props),Ip.getWithHeight(a,i)),{},{payload:e,item:a})):null};function tO(t){return tO="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},tO(t)}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){nO(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,r){return e=function(t){var e=function(t,e){if("object"!=tO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=tO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tO(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iO(t){return function(t){if(Array.isArray(t))return oO(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 oO(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 oO(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 oO(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 aO(t,e,r){return mo(t)||mo(e)?r:Lo(e)?vo(t,e,r):Sn(e)?e(t):r}function cO(t,e,r,n){var i=Iw(t,(function(t){return aO(t,e)}));if("number"===r){var o=i.filter((function(t){return Bo(t)||parseFloat(t)}));return o.length?[Mw(o),Ow(o)]:[1/0,-1/0]}return(n?i.filter((function(t){return!mo(t)})):i).map((function(t){return Lo(t)||t instanceof Date?t:""}))}var lO=function(t){var e,r=t.type.displayName,n=t.props,i=n.stroke,o=n.fill;switch(r){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},uO=function(t,e,r,n,i){var o=ca(e.props.children,Yx).filter((function(t){return function(t,e,r){return!!mo(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,i,t.props.direction)}));if(o&&o.length){var a=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=aO(e,r,0),i=Array.isArray(n)?[Mw(n),Ow(n)]:[n,n],o=a.reduce((function(t,r){var n=aO(e,r,0),o=i[0]-Math.abs(Array.isArray(n)?n[0]:n),a=i[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},sO=function(t,e,r,n,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===r&&o&&uO(t,e,o,n)||cO(t,o,r,i)}));if("number"===r)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return o.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}),[])},fO=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},pO=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,l=(e||r)&&"category"===o&&n.bandwidth?n.bandwidth()/c:0;return l="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*Io(a[0]-a[1])*l:l,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=i?i.indexOf(t):t;return{coordinate:n(e)+l,value:t,offset:l}})).filter((function(t){return!Do(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+l,value:t,index:e,offset:l}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+l,value:t,offset:l}})):n.domain().map((function(t,e){return{coordinate:n(t)+l,value:i?i[t]:t,index:e,offset:l}}))},hO=new WeakMap,dO=function(t,e){if("function"!=typeof e)return t;hO.has(t)||hO.set(t,new WeakMap);var r=hO.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},yO=1e-4,vO={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0,a=0;a<e;++a){var c=Do(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,o=0,a=t[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=t[r][o][1]||0;if(i)for(r=0;r<n;++r)t[r][o][1]/=i}el(t,e)}},none:el,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n<o;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}el(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var c=0,l=0,u=0;c<i;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}l+=f,u+=p*f}r[a-1][1]+=r[a-1][0]=o,l&&(o-=u/l)}r[a-1][1]+=r[a-1][0]=o,el(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 i=0,o=0;o<e;++o){var a=Do(t[o][r][1])?t[o][r][0]:t[o][r][1];a>=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},mO=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),i=vO[r],o=function(){var t=ec([]),e=rl,r=el,n=nl;function i(i){var o,a,c=Array.from(t.apply(this,arguments),il),l=c.length,u=-1;for(const t of i)for(o=0,++u;o<l;++o)(c[o][u]=[0,+n(t,c[o].key,u,i)]).data=t;for(o=0,a=dc(e(c));o<l;++o)c[a[o]].index=o;return r(c,a),c}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:ec(Array.from(e)),i):t},i.value=function(t){return arguments.length?(n="function"==typeof t?t:ec(+t),i):n},i.order=function(t){return arguments.length?(e=null==t?rl:"function"==typeof t?t:ec(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(r=null==t?el:t,i):r},i}().keys(n).value((function(t,e){return+aO(t,e,0)})).order(rl).offset(i);return o(t)};function gO(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!mo(i[e.dataKey])){var c=Uo(r,"value",i[e.dataKey]);if(c)return c.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var l=aO(i,mo(a)?e.dataKey:a);return mo(l)?null:e.scale(l)}var bO=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=aO(o,e.dataKey,e.domain[a]);return mo(c)?null:e.scale(c)-i/2+n},wO=function(t,e,r){return Object.keys(t).reduce((function(n,i){var o=t[i].stackedData.reduce((function(t,n){var i=n.slice(e,r+1).reduce((function(t,e){return[Mw(e.concat([t[0]]).filter(Bo)),Ow(e.concat([t[1]]).filter(Bo))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},xO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,OO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,SO=function(t,e,r){if(Sn(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(Bo(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(xO.test(t[0])){var i=+xO.exec(t[0])[1];n[0]=e[0]-i}else Sn(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(Bo(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(OO.test(t[1])){var o=+OO.exec(t[1])[1];n[1]=e[1]+o}else Sn(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},jO=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 i=Dh(e,(function(t){return t.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var l=i[a],u=i[a-1];o=Math.min((l.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},AO=function(t,e,r){return t&&t.length?Lw(t,vo(r,"type.defaultProps.domain"))?e:t:e},PO=function(t,e){var r=t.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,c=r.tooltipType,l=r.chartType,u=r.hide;return rO(rO({},pa(t,!1)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:lO(t),value:aO(e,n),type:c,payload:e,chartType:l,hide:u})};function MO(t){return MO="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},MO(t)}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 kO(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){_O(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 _O(t,e,r){return e=function(t){var e=function(t,e){if("object"!=MO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=MO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==MO(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var TO=Math.PI/180,CO=function(t){return 180*t/Math.PI},DO=function(t,e,r,n){return{x:t+Math.cos(-TO*n)*r,y:e+Math.sin(-TO*n)*r}},IO=function(t,e){var r=t.x,n=t.y,i=e.cx,o=e.cy,a=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(n-o,2))}({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var c=(r-i)/a,l=Math.acos(c);return n>o&&(l=2*Math.PI-l),{radius:a,angle:CO(l),angleInRadian:l}},NO=function(t,e){var r=e.startAngle,n=e.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return t+360*Math.min(i,o)},BO=function(t,e){var r=t.x,n=t.y,i=IO({x:r,y:n},e),o=i.radius,a=i.angle,c=e.innerRadius,l=e.outerRadius;if(o<c||o>l)return!1;if(0===o)return!0;var u,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:e-360*o,endAngle:r-360*o}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;u=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;u=h>=p&&h<=f}return u?kO(kO({},e),{},{radius:o,angle:NO(h,e)}):null};function LO(t){return LO="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},LO(t)}var RO=["offset"];function $O(t){return function(t){if(Array.isArray(t))return zO(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 zO(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 zO(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 zO(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 HO(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}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 UO(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){FO(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 FO(t,e,r){return e=function(t){var e=function(t,e){if("object"!=LO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=LO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==LO(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function WO(){return WO=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},WO.apply(this,arguments)}var qO=function(t){var e=t.value,r=t.formatter,n=mo(t.children)?e:t.children;return Sn(r)?r(n):n},XO=function(t,e,r){var n,i,o=t.position,a=t.viewBox,c=t.offset,l=t.className,u=a,s=u.cx,f=u.cy,p=u.innerRadius,h=u.outerRadius,d=u.startAngle,y=u.endAngle,v=u.clockWise,m=(p+h)/2,g=function(t,e){return Io(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=g>=0?1:-1;"insideStart"===o?(n=d+b*c,i=v):"insideEnd"===o?(n=y-b*c,i=!v):"end"===o&&(n=y+b*c,i=v),i=g<=0?i:!i;var w=DO(s,f,m,n),x=DO(s,f,m,n+359*(i?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),S=mo(t.id)?$o("recharts-radial-line-"):t.id;return K.createElement("text",WO({},r,{dominantBaseline:"central",className:Ur("recharts-radial-bar-label",l)}),K.createElement("defs",null,K.createElement("path",{id:S,d:O})),K.createElement("textPath",{xlinkHref:"#".concat(S)},e))},YO=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e,o=i.cx,a=i.cy,c=i.innerRadius,l=i.outerRadius,u=(i.startAngle+i.endAngle)/2;if("outside"===n){var s=DO(o,a,l+r,u),f=s.x;return{x:f,y:s.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=DO(o,a,(c+l)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},KO=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,i=t.position,o=e,a=o.x,c=o.y,l=o.width,u=o.height,s=u>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=l>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===i)return UO(UO({},{x:a+l/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:l}:{});if("bottom"===i)return UO(UO({},{x:a+l/2,y:c+u+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+u),0),width:l}:{});if("left"===i){var g={x:a-y,y:c+u/2,textAnchor:v,verticalAnchor:"middle"};return UO(UO({},g),r?{width:Math.max(g.x-r.x,0),height:u}:{})}if("right"===i){var b={x:a+l+y,y:c+u/2,textAnchor:m,verticalAnchor:"middle"};return UO(UO({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:u}:{})}var w=r?{width:l,height:u}:{};return"insideLeft"===i?UO({x:a+y,y:c+u/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===i?UO({x:a+l-y,y:c+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?UO({x:a+l/2,y:c+f,textAnchor:"middle",verticalAnchor:h},w):"insideBottom"===i?UO({x:a+l/2,y:c+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?UO({x:a+y,y:c+f,textAnchor:m,verticalAnchor:h},w):"insideTopRight"===i?UO({x:a+l-y,y:c+f,textAnchor:v,verticalAnchor:h},w):"insideBottomLeft"===i?UO({x:a+y,y:c+u-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===i?UO({x:a+l-y,y:c+u-f,textAnchor:v,verticalAnchor:p},w):gn(i)&&(Bo(i.x)||No(i.x))&&(Bo(i.y)||No(i.y))?UO({x:a+zo(i.x,l),y:c+zo(i.y,u),textAnchor:"end",verticalAnchor:"end"},w):UO({x:a+l/2,y:c+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},GO=function(t){return"cx"in t&&Bo(t.cx)};function ZO(t){var e,r=t.offset,n=UO({offset:void 0===r?5:r},HO(t,RO)),i=n.viewBox,o=n.position,a=n.value,c=n.children,l=n.content,u=n.className,s=void 0===u?"":u,f=n.textBreakAll;if(!i||mo(a)&&mo(c)&&!G(l)&&!Sn(l))return null;if(G(l))return at(l,n);if(Sn(l)){if(G(e=ct(l,n)))return e}else e=qO(n);var p=GO(i),h=pa(n,!0);if(p&&("insideStart"===o||"insideEnd"===o||"end"===o))return XO(n,e,h);var d=p?YO(n):KO(n);return K.createElement(Dy,WO({className:Ur("recharts-label",s)},h,d,{breakAll:f}),e)}ZO.displayName="Label";var JO=function(t){var e=t.cx,r=t.cy,n=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,c=t.radius,l=t.innerRadius,u=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(Bo(d)&&Bo(y)){if(Bo(s)&&Bo(f))return{x:s,y:f,width:d,height:y};if(Bo(p)&&Bo(h))return{x:p,y:h,width:d,height:y}}return Bo(s)&&Bo(f)?{x:s,y:f,width:0,height:0}:Bo(e)&&Bo(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:l||0,outerRadius:u||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};ZO.parseViewBox=JO,ZO.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=JO(t),o=ca(n,ZO).map((function(t,r){return at(t,{viewBox:e||i,key:"label-".concat(r)})}));if(!r)return o;var a=function(t,e){return t?!0===t?K.createElement(ZO,{key:"label-implicit",viewBox:e}):Lo(t)?K.createElement(ZO,{key:"label-implicit",viewBox:e,value:t}):G(t)?t.type===ZO?at(t,{key:"label-implicit",viewBox:e}):K.createElement(ZO,{key:"label-implicit",content:t,viewBox:e}):Sn(t)?K.createElement(ZO,{key:"label-implicit",content:t,viewBox:e}):gn(t)?K.createElement(ZO,WO({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat($O(o))};var QO=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},tS=nr(QO);function eS(t){return eS="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},eS(t)}var rS=["valueAccessor"],nS=["data","dataKey","clockWise","id","textBreakAll"];function iS(t){return function(t){if(Array.isArray(t))return oS(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 oS(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 oS(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 oS(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 aS(){return aS=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},aS.apply(this,arguments)}function cS(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 lS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cS(Object(r),!0).forEach((function(e){uS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=eS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=eS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==eS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sS(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var fS=function(t){return Array.isArray(t.value)?tS(t.value):t.value};function pS(t){var e=t.valueAccessor,r=void 0===e?fS:e,n=sS(t,rS),i=n.data,o=n.dataKey,a=n.clockWise,c=n.id,l=n.textBreakAll,u=sS(n,nS);return i&&i.length?K.createElement(Sa,{className:"recharts-label-list"},i.map((function(t,e){var n=mo(o)?r(t,e):aO(t&&t.payload,o),i=mo(c)?{}:{id:"".concat(c,"-").concat(e)};return K.createElement(ZO,aS({},pa(t,!0),u,i,{parentViewBox:t.parentViewBox,value:n,textBreakAll:l,viewBox:ZO.parseViewBox(mo(a)?t:lS(lS({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}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},hS(t)}function dS(){return dS=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},dS.apply(this,arguments)}function yS(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 vS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yS(Object(r),!0).forEach((function(e){mS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mS(t,e,r){return e=function(t){var e=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)}(t,"string");return"symbol"==hS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}pS.displayName="LabelList",pS.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=ca(t.children,pS).map((function(t,r){return at(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?K.createElement(pS,{key:"labelList-implicit",data:e}):K.isValidElement(t)||Sn(t)?K.createElement(pS,{key:"labelList-implicit",data:e,content:t}):gn(t)?K.createElement(pS,aS({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(iS(n)):n};var gS=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,o=t.sign,a=t.isExternal,c=t.cornerRadius,l=t.cornerIsExternal,u=c*(a?1:-1)+n,s=Math.asin(c/u)/TO,f=l?i:i+o*s,p=l?i-o*s:i;return{center:DO(e,r,u,f),circleTangency:DO(e,r,n,f),lineTangency:DO(e,r,u*Math.cos(s*TO),p),theta:s}},bS=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return Io(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,l=DO(e,r,i,o),u=DO(e,r,i,c),s="M ".concat(l.x,",").concat(l.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(u.x,",").concat(u.y,"\n ");if(n>0){var f=DO(e,r,n,o),p=DO(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},wS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},xS=function(t){var e=vS(vS({},wS),t),r=e.cx,n=e.cy,i=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,l=e.cornerIsExternal,u=e.startAngle,s=e.endAngle,f=e.className;if(o<i||u===s)return null;var p,h=Ur("recharts-sector",f),d=o-i,y=zo(a,d,0,!0);return p=y>0&&Math.abs(u-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,s=Io(u-l),f=gS({cx:e,cy:r,radius:i,angle:l,sign:s,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=gS({cx:e,cy:r,radius:i,angle:u,sign:-s,cornerRadius:o,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=c?Math.abs(l-u):Math.abs(l-u)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):bS({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:u});var w="M ".concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var x=gS({cx:e,cy:r,radius:n,angle:l,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,A=gS({cx:e,cy:r,radius:n,angle:u,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=A.circleTangency,M=A.lineTangency,E=A.theta,k=c?Math.abs(l-u):Math.abs(l-u)-j-E;if(k<0&&0===o)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(M.x,",").concat(M.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(k>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,d/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:s}):bS({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:s}),K.createElement("path",dS({},pa(e,!0),{className:h,d:p,role:"img"}))};function OS(t){return OS="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},OS(t)}function SS(){return SS=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},SS.apply(this,arguments)}function jS(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 AS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jS(Object(r),!0).forEach((function(e){PS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function PS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=OS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=OS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==OS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var MS,ES,kS,_S,TS,CS,DS,IS,NS,BS,LS,RS,$S={curveBasisClosed:function(t){return new Vc(t)},curveBasisOpen:function(t){return new Uc(t)},curveBasis:function(t){return new Hc(t)},curveBumpX:function(t){return new xc(t,!0)},curveBumpY:function(t){return new xc(t,!1)},curveLinearClosed:function(t){return new Fc(t)},curveLinear:vc,curveMonotoneX:function(t){return new Kc(t)},curveMonotoneY:function(t){return new Gc(t)},curveNatural:function(t){return new Jc(t)},curveStep:function(t){return new tl(t,.5)},curveStepAfter:function(t){return new tl(t,1)},curveStepBefore:function(t){return new tl(t,0)}},zS=function(t){return t.x===+t.x&&t.y===+t.y},HS=function(t){return t.x},VS=function(t){return t.y},US=function(t){var e,r=t.type,n=void 0===r?"linear":r,i=t.points,o=void 0===i?[]:i,a=t.baseLine,c=t.layout,l=t.connectNulls,u=void 0!==l&&l,s=function(t,e){if(Sn(t))return t;var r="curve".concat(tc(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?$S[r]||vc:$S["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=u?o.filter((function(t){return zS(t)})):o;if(Array.isArray(a)){var p=u?a.filter((function(t){return zS(t)})):a,h=f.map((function(t,e){return AS(AS({},t),{},{base:p[e]})}));return(e="vertical"===c?wc().y(VS).x1(HS).x0((function(t){return t.base.x})):wc().x(HS).y1(VS).y0((function(t){return t.base.y}))).defined(zS).curve(s),e(h)}return(e="vertical"===c&&Bo(a)?wc().y(VS).x1(HS).x0(a):Bo(a)?wc().x(HS).y1(VS).y0(a):bc().x(HS).y(VS)).defined(zS).curve(s),e(f)},FS=function(t){var e=t.className,r=t.points,n=t.path,i=t.pathRef;if(!(r&&r.length||n))return null;var o=r&&r.length?US(t):n;return K.createElement("path",SS({},pa(t,!1),Go(t),{className:Ur("recharts-curve",e),d:o,ref:i}))},WS={exports:{}};function qS(){if(ES)return MS;ES=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return MS=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))e.call(o,u)&&(c[u]=o[u]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},MS}function XS(){if(_S)return kS;_S=1;return kS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function YS(){return CS?TS:(CS=1,TS=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var KS=Mo;WS.exports=function(){if(BS)return NS;BS=1;var t=Mo,e=qS(),r=XS(),n=YS(),i=function(){if(IS)return DS;IS=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=XS(),r={},n=YS();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,l){if("production"!==process.env.NODE_ENV)for(var u in i)if(n(i,u)){var s;try{if("function"!=typeof i[u]){var f=Error((c||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[u](o,u,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=l?l():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},DS=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),NS=function(c,l){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,n,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new d("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<c.length;l++){var u=t(c,l,i,o,a+"["+l+"]",r);if(u instanceof Error)return u}return null}))},element:y((function(t,e,r,n,i){var o=t[e];return c(o)?null:new d("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,r,n,i){return g(t[e])?null:new d("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,i,o,a,c){if("function"!=typeof t)return new d("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],u=b(l);if("object"!==u)return new d("Invalid "+a+" `"+c+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var s in l)if(n(l,s)){var f=t(l,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?y((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(h(a,t[c]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return y((function(e,i,o,a,c){for(var l=[],u=0;u<t.length;u++){var s=(0,t[u])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&l.push(s.data.expectedType)}return new d("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,i,o,a){var c=e[n],l=b(c);if("object"!==l)return new d("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in t){var s=t[u];if("function"!=typeof s)return m(i,o,a,u,w(s));var f=s(c,u,i,o,a+"."+u,r);if(f)return f}return null}))},exact:function(t){return y((function(i,o,a,c,l){var u=i[o],s=b(u);if("object"!==s)return new d("Invalid "+c+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var h=t[p];if(n(t,p)&&"function"!=typeof h)return m(a,c,l,p,w(h));if(!h)return new d("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=h(u,p,a,c,l+"."+p,r);if(y)return y}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,u,s,p,h){if(u=u||f,p=p||c,h!==r){if(l){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=u+":"+c;!e[v]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?i?null===a[c]?new d("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new d("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(a,c,u,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function v(t){return y((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function m(t,e,r,n,i){return new d((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||c(t))return!0;var e=function(t){var e=t&&(u&&t[u]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!g(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!g(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},NS}()(KS.isElement,!0)}else WS.exports=function(){if(RS)return LS;RS=1;var t=XS();function e(){}function r(){}return r.resetWarningCache=e,LS=function(){function n(e,r,n,i,o,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}()();var GS=nr(WS.exports),ZS=Object.getOwnPropertyNames,JS=Object.getOwnPropertySymbols,QS=Object.prototype.hasOwnProperty;function tj(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function ej(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function rj(t){return ZS(t).concat(JS(t))}var nj=Object.hasOwn||function(t,e){return QS.call(t,e)};function ij(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var oj="_owner",aj=Object.getOwnPropertyDescriptor,cj=Object.keys;function lj(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 uj(t,e){return ij(t.getTime(),e.getTime())}function sj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var l=e.entries(),u=!1,s=0;(i=l.next())&&!i.done;){var f=n.value,p=f[0],h=f[1],d=i.value,y=d[0],v=d[1];u||o[s]||!(u=r.equals(p,y,c,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))||(o[s]=!0),s++}if(!u)return!1;c++}return!0}function fj(t,e,r){var n,i=cj(t),o=i.length;if(cj(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===oj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!nj(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function pj(t,e,r){var n,i,o,a=rj(t),c=a.length;if(rj(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===oj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!nj(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=aj(t,n),o=aj(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function hj(t,e){return ij(t.valueOf(),e.valueOf())}function dj(t,e){return t.source===e.source&&t.flags===e.flags}function yj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),l=!1,u=0;(i=c.next())&&!i.done;)l||o[u]||!(l=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[u]=!0),u++;if(!l)return!1}return!0}function vj(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var mj="[object Arguments]",gj="[object Boolean]",bj="[object Date]",wj="[object Map]",xj="[object Number]",Oj="[object Object]",Sj="[object RegExp]",jj="[object Set]",Aj="[object String]",Pj=Array.isArray,Mj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Ej=Object.assign,kj=Object.prototype.toString.call.bind(Object.prototype.toString);var _j=Tj();function Tj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,l=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?pj:lj,areDatesEqual:uj,areMapsEqual:n?tj(sj,pj):sj,areObjectsEqual:n?pj:fj,arePrimitiveWrappersEqual:hj,areRegExpsEqual:dj,areSetsEqual:n?tj(yj,pj):yj,areTypedArraysEqual:n?pj:vj};if(r&&(i=Ej({},i,r(i))),e){var o=ej(i.areArraysEqual),a=ej(i.areMapsEqual),c=ej(i.areObjectsEqual),l=ej(i.areSetsEqual);i=Ej({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:l})}return i}(t),u=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,l=t.areTypedArraysEqual;return function(t,u,s){if(t===u)return!0;if(null==t||null==u||"object"!=typeof t||"object"!=typeof u)return t!=t&&u!=u;var f=t.constructor;if(f!==u.constructor)return!1;if(f===Object)return i(t,u,s);if(Pj(t))return e(t,u,s);if(null!=Mj&&Mj(t))return l(t,u,s);if(f===Date)return r(t,u,s);if(f===RegExp)return a(t,u,s);if(f===Map)return n(t,u,s);if(f===Set)return c(t,u,s);var p=kj(t);return p===bj?r(t,u,s):p===Sj?a(t,u,s):p===wj?n(t,u,s):p===jj?c(t,u,s):p===Oj?"function"!=typeof t.then&&"function"!=typeof u.then&&i(t,u,s):p===mj?i(t,u,s):(p===gj||p===xj||p===Aj)&&o(t,u,s)}}(l),s=i?i(u):(e=u,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),l=c.cache,u=void 0===l?e?new WeakMap:void 0:l,s=c.meta;return r(t,a,{cache:u,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:u,createState:o,equals:s,strict:c})}function Cj(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Dj(t){return Dj="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},Dj(t)}function Ij(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 Nj(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 Nj(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 Nj(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 Bj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=Ij(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Cj(r.bind(null,a),o):(r(o),void Cj(r.bind(null,a)))}"object"===Dj(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 Lj(t){return Lj="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},Lj(t)}function Rj(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 $j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rj(Object(r),!0).forEach((function(e){zj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Lj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Tj({strict:!0}),Tj({circular:!0}),Tj({circular:!0,strict:!0}),Tj({createInternalComparator:function(){return ij}}),Tj({strict:!0,createInternalComparator:function(){return ij}}),Tj({circular:!0,createInternalComparator:function(){return ij}}),Tj({circular:!0,createInternalComparator:function(){return ij},strict:!0});var Hj=function(t){return t},Vj=function(t,e){return Object.keys(e).reduce((function(r,n){return $j($j({},r),{},zj({},n,t(n,e[n])))}),{})},Uj=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(",")},Fj="production"!==process.env.NODE_ENV,Wj=function(t,e,r,n,i,o,a,c){if(Fj&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,i,o,a,c],u=0;console.warn(e.replace(/%s/g,(function(){return l[u++]})))}};function qj(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||Yj(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 Xj(t){return function(t){if(Array.isArray(t))return Kj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Yj(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 Yj(t,e){if(t){if("string"==typeof t)return Kj(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)?Kj(t,e):void 0}}function Kj(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 Gj=1e-4,Zj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Jj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Qj=function(t,e){return function(r){var n=Zj(t,e);return Jj(n,r)}},tA=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),u=qj(l,4);n=u[0],i=u[1],o=u[2],a=u[3]}else Wj(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Wj([n,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=Qj(n,o),h=Qj(i,a),d=(s=n,f=o,function(t){var e=Zj(s,f),r=[].concat(Xj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Jj(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=d(n);if(Math.abs(o-r)<Gj||a<Gj)return h(n);n=(e=n-o/a)>1?1:e<0?0:e}return h(n)};return y.isStepper=!1,y},eA=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 tA(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,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Gj&&Math.abs(o)<Gj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return tA(n);Wj(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Wj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function rA(t){return rA="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},rA(t)}function nA(t){return function(t){if(Array.isArray(t))return uA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||lA(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 iA(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 oA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iA(Object(r),!0).forEach((function(e){aA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aA(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==rA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cA(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||lA(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 lA(t,e){if(t){if("string"==typeof t)return uA(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)?uA(t,e):void 0}}function uA(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 sA=function(t,e,r){return t+(e-t)*r},fA=function(t){return t.from!==t.to},pA=function t(e,r,n){var i=Vj((function(t,r){if(fA(r)){var n=cA(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return oA(oA({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Vj((function(t,e){return fA(e)?oA(oA({},e),{},{velocity:sA(e.velocity,i[t].velocity,n),from:sA(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},hA=function(t,e,r,n,i){var o,a,c,l,u=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=u.reduce((function(r,n){return oA(oA({},r),{},aA({},n,[t[n],e[n]]))}),{}),f=u.reduce((function(r,n){return oA(oA({},r),{},aA({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=pA(r,f,o),i(oA(oA(oA({},t),e),Vj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(fA).length&&(p=requestAnimationFrame(h))}:function(o){l||(l=o);var a=(o-l)/n,c=Vj((function(t,e){return sA.apply(void 0,nA(e).concat([r(a)]))}),s);if(i(oA(oA(oA({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var u=Vj((function(t,e){return sA.apply(void 0,nA(e).concat([r(1)]))}),s);i(oA(oA(oA({},t),e),u))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function dA(t){return dA="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},dA(t)}var yA=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function vA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function mA(t){return function(t){if(Array.isArray(t))return gA(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 gA(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 gA(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 gA(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 bA(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 wA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bA(Object(r),!0).forEach((function(e){xA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xA(t,e,r){return(e=SA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OA(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,SA(n.key),n)}}function SA(t){var e=function(t,e){if("object"!==dA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dA(e)?e:String(e)}function jA(t,e){return jA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jA(t,e)}function AA(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=EA(t);if(e){var i=EA(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return PA(this,r)}}function PA(t,e){if(e&&("object"===dA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return MA(t)}function MA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function EA(t){return EA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},EA(t)}var kA=function(t){!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&&jA(t,e)}(o,J);var e,r,n,i=AA(o);function o(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=(r=i.call(this,t,e)).props,a=n.isActive,c=n.attributeName,l=n.from,u=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(MA(r)),r.changeStyle=r.changeStyle.bind(MA(r)),!a||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:u}),PA(r);if(s&&s.length)r.state={style:s[0].style};else if(l){if("function"==typeof f)return r.state={style:l},PA(r);r.state={style:c?xA({},c,l):l}}else r.state={style:{}};return r}return e=o,(r=[{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,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,l=this.state.style;if(n)if(r){if(!(_j(t.to,a)&&t.canBegin&&t.isActive)){var u=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=u||o?c:t.to;if(this.state&&l){var f={style:i?xA({},i,s):s};(i&&[i]!==s||!i&&l!==s)&&this.setState(f)}this.runAnimation(wA(wA({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?xA({},i,a):a};this.state&&l&&(i&&l[i]!==a||!i&&l!==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,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,l=t.onAnimationStart,u=hA(r,n,eA(o),i,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=u()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,l=void 0===c?0:c;return this.manager.start([i].concat(mA(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,l=n.style,u=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=u||Object.keys(l);if("function"==typeof c||"spring"===c)return[].concat(mA(t),[e.runJSAnimation.bind(e,{from:f.style,to:l,duration:o,easing:c}),o]);var h=Uj(p,o,c),d=wA(wA(wA({},f.style),l),{},{transition:h});return[].concat(mA(t),[d,o,s]).filter(Hj)}),[a,Math.max(l,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Bj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,l=t.steps,u=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof u&&"spring"!==o)if(l.length>1)this.runStepAnimation(t);else{var f=n?xA({},n,i):i,p=Uj(Object.keys(f),r,o);s.start([a,e,wA(wA({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=vA(t,yA),o=Z.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return at(t,wA(wA({},i),{},{style:wA(wA({},n),a),className:o}))};return 1===o?c(Z.only(e)):K.createElement("div",null,Z.map(e,(function(t){return c(t)})))}}])&&OA(e.prototype,r),n&&OA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}();function _A(t){return _A="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},_A(t)}function TA(){return TA=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},TA.apply(this,arguments)}function CA(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return DA(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 DA(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 DA(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 IA(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 NA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?IA(Object(r),!0).forEach((function(e){BA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=_A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_A(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}kA.displayName="Animate",kA.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},kA.propTypes={from:GS.oneOfType([GS.object,GS.string]),to:GS.oneOfType([GS.object,GS.string]),attributeName:GS.string,duration:GS.number,begin:GS.number,easing:GS.oneOfType([GS.string,GS.func]),steps:GS.arrayOf(GS.shape({duration:GS.number.isRequired,style:GS.object.isRequired,easing:GS.oneOfType([GS.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),GS.func]),properties:GS.arrayOf("string"),onAnimationEnd:GS.func})),children:GS.oneOfType([GS.node,GS.func]),isActive:GS.bool,canBegin:GS.bool,onAnimationEnd:GS.func,shouldReAnimate:GS.bool,onAnimationStart:GS.func,onAnimationReStart:GS.func},GS.object,GS.object,GS.object,GS.element,GS.object,GS.object,GS.object,GS.oneOfType([GS.array,GS.element]),GS.any;var LA=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,l=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(u,",").concat(t+l*s[0],",").concat(e)),o+="L ".concat(t+r-l*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(u,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(u,",\n ").concat(t+r-l*s[2],",").concat(e+n)),o+="L ".concat(t+l*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(u,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(e,"\n L ").concat(t+r-l*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r-l*p,",").concat(e+n,"\n L ").concat(t+l*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(e+n-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},RA=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=l&&r<=u&&n>=s&&n<=f}return!1},$A={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zA=function(t){var e=NA(NA({},$A),t),r=tt(),n=CA(rt(-1),2),i=n[0],o=n[1];it((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.width,u=e.height,s=e.radius,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var m=Ur("recharts-rectangle",f);return v?K.createElement(kA,{canBegin:i>0,from:{width:l,height:u,x:a,y:c},to:{width:l,height:u,x:a,y:c},duration:h,animationEasing:p,isActive:v},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return K.createElement(kA,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:y,easing:p},K.createElement("path",TA({},pa(e,!0),{className:m,d:LA(a,c,n,o,s),ref:r})))})):K.createElement("path",TA({},pa(e,!0),{className:m,d:LA(a,c,l,u,s)}))};function HA(){return HA=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},HA.apply(this,arguments)}var VA=function(t){var e=t.cx,r=t.cy,n=t.r,i=Ur("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?K.createElement("circle",HA({},pa(t,!1),Go(t),{className:i,cx:e,cy:r,r:n})):null};function UA(t){return UA="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},UA(t)}var FA=["x","y","top","left","width","height","className"];function WA(){return WA=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},WA.apply(this,arguments)}function qA(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 XA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UA(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function YA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var KA=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},GA=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,l=void 0===c?0:c,u=t.width,s=void 0===u?0:u,f=t.height,p=void 0===f?0:f,h=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qA(Object(r),!0).forEach((function(e){XA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:l,width:s,height:p},YA(t,FA));return Bo(r)&&Bo(i)&&Bo(s)&&Bo(p)&&Bo(a)&&Bo(l)?K.createElement("path",WA({},pa(d,!0),{className:Ur("recharts-cross",h),d:KA(r,i,s,p,a,l)})):null},ZA=ts(Object.getPrototypeOf,Object),JA=cn,QA=ZA,tP=ln,eP=Function.prototype,rP=Object.prototype,nP=eP.toString,iP=rP.hasOwnProperty,oP=nP.call(Object);var aP=nr((function(t){if(!tP(t)||"[object Object]"!=JA(t))return!1;var e=QA(t);if(null===e)return!0;var r=iP.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&nP.call(r)==oP})),cP=cn,lP=ln;var uP=nr((function(t){return!0===t||!1===t||lP(t)&&"[object Boolean]"==cP(t)}));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},sP(t)}function fP(){return fP=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},fP.apply(this,arguments)}function pP(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return hP(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 hP(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 hP(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 dP(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 yP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dP(Object(r),!0).forEach((function(e){vP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vP(t,e,r){return e=function(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:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mP=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},gP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},bP=function(t){var e=yP(yP({},gP),t),r=tt(),n=pP(rt(-1),2),i=n[0],o=n[1];it((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.upperWidth,u=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||s!==+s||0===l&&0===u||0===s)return null;var v=Ur("recharts-trapezoid",f);return y?K.createElement(kA,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:l,lowerWidth:u,height:s,x:a,y:c},duration:h,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,l=t.y;return K.createElement(kA,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,easing:p},K.createElement("path",fP({},pa(e,!0),{className:v,d:mP(c,l,n,o,a),ref:r})))})):K.createElement("g",null,K.createElement("path",fP({},pa(e,!0),{className:v,d:mP(a,c,l,u,s)})))},wP=["option","shapeType","propTransformer","activeClassName","isActive"];function xP(t){return xP="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},xP(t)}function OP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function SP(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 jP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?SP(Object(r),!0).forEach((function(e){AP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function AP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=xP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xP(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function PP(t,e){return jP(jP({},e),t)}function MP(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return K.createElement(zA,r);case"trapezoid":return K.createElement(bP,r);case"sector":return K.createElement(xS,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return K.createElement(dl,r);break;default:return null}}function EP(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?PP:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,l=t.isActive,u=OP(t,wP);if(G(r))e=at(r,jP(jP({},u),function(t){return G(t)?t.props:t}(r)));else if(Sn(r))e=r(u);else if(aP(r)&&!uP(r)){var s=o(r,u);e=K.createElement(MP,{shapeType:n,elementProps:s})}else{var f=u;e=K.createElement(MP,{shapeType:n,elementProps:f})}return l?K.createElement(Sa,{className:c},e):e}function kP(t,e){return null!=e&&"trapezoids"in t.props}function _P(t,e){return null!=e&&"sectors"in t.props}function TP(t,e){return null!=e&&"points"in t.props}function CP(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function DP(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function IP(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function NP(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return kP(t,e)?r="trapezoids":_P(t,e)?r="sectors":TP(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return kP(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:_P(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:TP(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=Lw(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return kP(t,e)?r=CP:_P(t,e)?r=DP:TP(t,e)&&(r=IP),r}(r,e);return n(t,e)})),l=r.props[i].indexOf(c[c.length-1]);return a&&n===l}));return n.indexOf(a[a.length-1])}var BP=Math.ceil,LP=Math.max;var RP=Dd,$P=1/0;var zP=function(t,e,r,n){for(var i=-1,o=LP(BP((e-t)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=t,t+=r;return a},HP=kh,VP=function(t){return t?(t=RP(t))===$P||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var UP=nr(function(t){return function(e,r,n){return n&&"number"!=typeof n&&HP(e,r,n)&&(r=n=void 0),e=VP(e),void 0===r?(r=e,e=0):r=VP(r),n=void 0===n?e<r?1:-1:VP(n),zP(e,r,n,t)}}());function FP(t){return FP="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},FP(t)}function WP(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 qP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WP(Object(r),!0).forEach((function(e){XP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function XP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=FP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=FP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==FP(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var YP=["Webkit","Moz","O","ms"];function KP(t){return KP="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},KP(t)}function GP(){return GP=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},GP.apply(this,arguments)}function ZP(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 JP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ZP(Object(r),!0).forEach((function(e){oM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function QP(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,aM(n.key),n)}}function tM(t,e,r){return e=rM(e),function(t,e){if(e&&("object"===KP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nM(t)}(t,eM()?Reflect.construct(e,r||[],rM(t).constructor):e.apply(t,r))}function eM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(eM=function(){return!!t})()}function rM(t){return rM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rM(t)}function nM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iM(t,e){return iM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},iM(t,e)}function oM(t,e,r){return(e=aM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aM(t){var e=function(t,e){if("object"!=KP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=KP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==KP(e)?e:String(e)}var cM=function(t){return t.changedTouches&&!!t.changedTouches.length},lM=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),oM(nM(r=tM(this,e,[t])),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),oM(nM(r),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),oM(nM(r),"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),oM(nM(r),"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),oM(nM(r),"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),oM(nM(r),"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),oM(nM(r),"handleSlideDragStart",(function(t){var e=cM(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(nM(r),"startX"),endX:r.handleTravellerDragStart.bind(nM(r),"endX")},r.state={},r}var r,n,i;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&&iM(t,e)}(e,J),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,l=Math.min(r,n),u=Math.max(r,n),s=e.getIndexInRange(i,l),f=e.getIndexInRange(i,u);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=aO(r[t],i,t);return Sn(n)?n(o,t):o}},{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,i=e.endX,o=this.props,a=o.x,c=o.width,l=o.travellerWidth,u=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-l-i,a+c-l-n):p<0&&(p=Math.max(p,a-n,a-i));var h=this.getIndex({startX:n+p,endX:i+p});h.startIndex===u&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=cM(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,i=e.endX,o=e.startX,a=this.state[n],c=this.props,l=c.x,u=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,l+u-s-a):y<0&&(y=Math.max(y,l-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,g=v.endIndex;this.setState(oM(oM({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(i>o?m%p==0:g%p==0)||i<o&&g===t||"endX"===n&&(i>o?g%p==0:m%p==0)||i>o&&g===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],l=i.indexOf(c);if(-1!==l){var u=l+t;if(!(-1===u||u>=i.length)){var s=i[u];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(oM({},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,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return K.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,l=Z.only(a);return l?K.cloneElement(l,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n=this,i=this.props,o=i.y,a=i.travellerWidth,c=i.height,l=i.traveller,u=i.ariaLabel,s=i.data,f=i.startIndex,p=i.endIndex,h=Math.max(t,this.props.x),d=JP(JP({},pa(this.props,!1)),{},{x:h,y:o,width:a,height:c}),y=u||"Min value: ".concat(s[f].name,", Max value: ").concat(s[p].name);return K.createElement(Sa,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(l,d))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,l=Math.max(Math.abs(e-t)-a,0);return K.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,l=c.startX,u=c.endX,s={pointerEvents:"none",fill:a};return K.createElement(Sa,{className:"recharts-brush-texts"},K.createElement(Dy,GP({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+i/2},s),this.getTextOfTick(e)),K.createElement(Dy,GP({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,l=t.alwaysShowText,u=this.state,s=u.startX,f=u.endX,p=u.isTextActive,h=u.isSlideMoving,d=u.isTravellerMoving,y=u.isTravellerFocused;if(!e||!e.length||!Bo(i)||!Bo(o)||!Bo(a)||!Bo(c)||a<=0||c<=0)return null;var v=Ur("recharts-brush",r),m=1===K.Children.count(n),g=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=YP.reduce((function(t,n){return qP(qP({},t),{},XP({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return K.createElement(Sa,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||y||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return K.createElement(K.Fragment,null,K.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),K.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),K.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return K.isValidElement(t)?K.cloneElement(t,r):Sn(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,l=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return JP({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,l=lv().domain(UP(0,c)).range([i,i+o-a]),u=l.domain().map((function(t){return l(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:u}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var u=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&QP(r.prototype,n),i&&QP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();oM(lM,"displayName","Brush"),oM(lM,"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 uM=qp;var sM=Fl,fM=Kf,pM=function(t,e){var r;return uM(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r},hM=Fr,dM=kh;var yM=nr((function(t,e,r){var n=hM(t)?sM:pM;return r&&dM(t,e,r)&&(e=void 0),n(t,fM(e))})),vM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},mM=yh;var gM=function(t,e,r){"__proto__"==e&&mM?mM(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},bM=gM,wM=Fp,xM=Kf;var OM=function(t,e){var r={};return e=xM(e),wM(t,(function(t,n,i){bM(r,n,e(t,n,i))})),r},SM=nr(OM);var jM=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},AM=qp;var PM=jM,MM=function(t,e){var r=!0;return AM(t,(function(t,n,i){return r=!!e(t,n,i)})),r},EM=Kf,kM=Fr,_M=kh;var TM=nr((function(t,e,r){var n=kM(t)?PM:MM;return r&&_M(t,e,r)&&(e=void 0),n(t,EM(e))})),CM=["x","y"];function DM(t){return DM="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},DM(t)}function IM(){return IM=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},IM.apply(this,arguments)}function NM(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 BM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NM(Object(r),!0).forEach((function(e){LM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function LM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=DM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=DM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==DM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function $M(t,e){var r=t.x,n=t.y,i=RM(t,CM),o="".concat(r),a=parseInt(o,10),c="".concat(n),l=parseInt(c,10),u="".concat(e.height||i.height),s=parseInt(u,10),f="".concat(e.width||i.width),p=parseInt(f,10);return BM(BM(BM(BM(BM({},e),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function zM(t){return K.createElement(EP,IM({shapeType:"rectangle",propTransformer:$M,activeClassName:"recharts-active-bar"},t))}var HM,VM=["value","background"];function UM(t){return UM="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},UM(t)}function FM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function WM(){return WM=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},WM.apply(this,arguments)}function qM(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?qM(Object(r),!0).forEach((function(e){tE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function YM(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,eE(n.key),n)}}function KM(t,e,r){return e=ZM(e),function(t,e){if(e&&("object"===UM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return JM(t)}(t,GM()?Reflect.construct(e,r||[],ZM(t).constructor):e.apply(t,r))}function GM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(GM=function(){return!!t})()}function ZM(t){return ZM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ZM(t)}function JM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function QM(t,e){return QM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},QM(t,e)}function tE(t,e,r){return(e=eE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eE(t){var e=function(t,e){if("object"!=UM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UM(e)?e:String(e)}var rE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return tE(JM(t=KM(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),tE(JM(t),"id",$o("recharts-bar-")),tE(JM(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),tE(JM(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var r,n,i;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&&QM(t,e)}(e,J),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=pa(this.props,!1);return t&&t.map((function(t,r){var l=r===o,u=l?a:n,s=XM(XM(XM({},c),t),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return K.createElement(Sa,WM({className:"recharts-bar-rectangle"},Zo(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),K.createElement(zM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,l=e.animationId,u=this.state.prevData;return K.createElement(kA,{begin:o,duration:a,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,o=r.map((function(t,e){var r=u&&u[e];if(r){var o=Vo(r.x,t.x),a=Vo(r.y,t.y),c=Vo(r.width,t.width),l=Vo(r.height,t.height);return XM(XM({},t),{},{x:o(i),y:a(i),width:c(i),height:l(i)})}if("horizontal"===n){var s=Vo(0,t.height)(i);return XM(XM({},t),{},{y:t.y+t.height-s,height:s})}var f=Vo(0,t.width)(i);return XM(XM({},t),{},{width:f})}));return K.createElement(Sa,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Lw(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=pa(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=FM(e,VM);if(!a)return null;var l=XM(XM(XM(XM(XM({},c),{},{fill:"#eee"},a),o),Zo(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return K.createElement(zM,WM({option:t.props.background,isActive:r===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=ca(r.children,Yx);if(!c)return null;var l="vertical"===a?n[0].height/2:n[0].width/2,u=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:aO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return K.createElement(Sa,s,c.map((function(t){return K.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,l=t.width,u=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=Ur("recharts-bar",n),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,m=y||v,g=mo(p)?this.id:p;return K.createElement(Sa,{className:d},y||v?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(g)},K.createElement("rect",{x:y?a:a-l/2,y:v?c:c-u/2,width:y?l:2*l,height:v?u:2*u}))):null,K.createElement(Sa,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||h)&&pS.renderCallByParent(this.props,r))}}],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}}],n&&YM(r.prototype,n),i&&YM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function nE(t){return nE="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},nE(t)}function iE(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,lE(n.key),n)}}function oE(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 aE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oE(Object(r),!0).forEach((function(e){cE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cE(t,e,r){return(e=lE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lE(t){var e=function(t,e){if("object"!=nE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nE(e)?e:String(e)}HM=rE,tE(rE,"displayName","Bar"),tE(rE,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!cd.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),tE(rE,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,l=t.yAxisTicks,u=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.props,v=y.dataKey,m=y.children,g=y.minPointSize,b="horizontal"===d?a:o,w=u?b.scale.domain():null,x=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:b}),O=ca(m,Gd),S=f.map((function(t,e){var n,f,p,y,m,b;u?n=function(t,e){if(!e||2!==e.length||!Bo(e[0])||!Bo(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Bo(t[0])||t[0]<r)&&(i[0]=r),(!Bo(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(u[s+e],w):(n=aO(t,v),Array.isArray(n)||(n=[x,n]));var S=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 i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?Vx(!1,"minPointSize callback function received a value with type of ".concat(DM(r),". Currently only numbers are supported.")):Vx(!1)),e)}}(g,HM.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var j,A=[a.scale(n[0]),a.scale(n[1])],P=A[0],M=A[1];f=bO({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:t,index:e}),p=null!==(j=null!=M?M:P)&&void 0!==j?j:void 0,y=h.size;var E=P-M;if(m=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:y,height:a.height},Math.abs(S)>0&&Math.abs(m)<Math.abs(S)){var k=Io(m||S)*(Math.abs(S)-Math.abs(m));p-=k,m+=k}}else{var _=[o.scale(n[0]),o.scale(n[1])],T=_[0],C=_[1];if(f=T,p=bO({axis:a,ticks:l,bandSize:i,offset:h.offset,entry:t,index:e}),y=C-T,m=h.size,b={x:o.x,y:p,width:o.width,height:m},Math.abs(S)>0&&Math.abs(y)<Math.abs(S))y+=Io(y||S)*(Math.abs(S)-Math.abs(y))}return XM(XM(XM({},t),{},{x:f,y:p,width:y,height:m,value:u?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[PO(r,t)],tooltipPosition:{x:f+y/2,y:p+m/2}})}));return XM({data:S,layout:d},p)}));var uE=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,l=t.children,u=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!la(l,rE);return u.reduce((function(o,a){var l,u,p,h,d,y=e[a],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,A=y.categoricalDomain.sort();A.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(A[e-1]||0),j))}));var P=j/S,M="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(l=P*M/2),"no-gap"===y.padding){var E=zo(t.barCategoryGap,P*M),k=P*M/2;l=k-E-(k-E)/M*E}}u="xAxis"===n?[r.left+(b.left||0)+(l||0),r.left+r.width-(b.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(l||0),r.top+r.height-(b.bottom||0)-(l||0)]:y.range,x&&(u=[u[1],u[0]]);var _=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:av(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:_m(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:lv(),realScaleType:"point"}:"category"===i?{scale:av(),realScaleType:"band"}:{scale:_m(),realScaleType:"linear"};if(Oo(n)){var c="scale".concat(tc(n));return{scale:(yw[c]||lv)(),realScaleType:yw[c]?c:"point"}}return Sn(n)?{scale:n}:{scale:lv(),realScaleType:"point"}}(y,i,f),T=_.scale,C=_.realScaleType;T.domain(m).range(u),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-yO,o=Math.max(n[0],n[1])+yO,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(T);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var l=t.domain();if(!l.length)return null;var u=Rx(l,i,a);return t.domain([Mw(u),Ow(u)]),{niceTicks:u}}if(i&&"number"===n){var s=t.domain();return{niceTicks:$x(s,i,a)}}return null}(T,aE(aE({},y),{},{realScaleType:C}));"xAxis"===n?(d="top"===v&&!w||"bottom"===v&&w,p=r.left,h=s[O]-d*y.height):"yAxis"===n&&(d="left"===v&&!w||"right"===v&&w,p=s[O]-d*y.width,h=r.top);var I=aE(aE(aE({},y),D),{},{realScaleType:C,x:p,y:h,scale:T,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=jO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(d?-1:1)*I.width):s[O]+=(d?-1:1)*I.height,aE(aE({},o),{},cE({},a,I))}),{})},sE=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},fE=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}var e,r,n;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 i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}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&&iE(e.prototype,r),n&&iE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();cE(fE,"EPS",1e-4);var pE=function(t){var e=Object.keys(t).reduce((function(e,r){return aE(aE({},e),{},cE({},r,fE.create(t[r])))}),{});return aE(aE({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return SM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return TM(t,(function(t,r){return e[r].isInRange(t)}))}})};var hE=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),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)},dE=Vi((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("")}));function yE(t){return yE="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},yE(t)}var vE=ut(void 0),mE=ut(void 0),gE=ut(void 0),bE=ut({}),wE=ut(void 0),xE=ut(0),OE=ut(0),SE=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,l=t.height,u=dE(i);return K.createElement(vE.Provider,{value:r},K.createElement(mE.Provider,{value:n},K.createElement(bE.Provider,{value:i},K.createElement(gE.Provider,{value:u},K.createElement(wE.Provider,{value:o},K.createElement(xE.Provider,{value:l},K.createElement(OE.Provider,{value:c},a)))))))};function jE(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var AE=function(t){var e=lt(vE);null==e&&("production"!==process.env.NODE_ENV?Vx(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Vx(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Vx(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(yE(t),"]. ").concat(jE(e))):Vx(!1)),r},PE=function(t){var e=lt(mE);null==e&&("production"!==process.env.NODE_ENV?Vx(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Vx(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Vx(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(yE(t),"]. ").concat(jE(e))):Vx(!1)),r},ME=function(){return lt(OE)},EE=function(){return lt(xE)};function kE(t){return kE="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},kE(t)}function _E(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 TE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_E(Object(r),!0).forEach((function(e){CE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function CE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=kE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DE(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return IE(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 IE(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 IE(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 NE(){return NE=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},NE.apply(this,arguments)}function BE(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,l=t.alwaysShow,u=lt(wE),s=AE(i),f=PE(o),p=lt(gE);if(!u||!p)return null;Aa(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(t,e,r,n,i,o,a,c,l){var u=i.x,s=i.y,f=i.width,p=i.height;if(r){var h=l.y,d=t.y.apply(h,{position:o});if(vM(l,"discard")&&!t.y.isInRange(d))return null;var y=[{x:u+f,y:d},{x:u,y:d}];return"left"===c?y.reverse():y}if(e){var v=l.x,m=t.x.apply(v,{position:o});if(vM(l,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?g.reverse():g}if(n){var b=l.segment.map((function(e){return t.apply(e,{position:o})}));return vM(l,"discard")&&yM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(pE({x:s.scale,y:f.scale}),Lo(e),Lo(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!h)return null;var d=DE(h,2),y=d[0],v=y.x,m=y.y,g=d[1],b=g.x,w=g.y,x=TE(TE({clipPath:vM(t,"hidden")?"url(#".concat(u,")"):void 0},pa(t,!0)),{},{x1:v,y1:m,x2:b,y2:w});return K.createElement(Sa,{className:Ur("recharts-reference-line",c)},function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement("line",NE({},e,{className:"recharts-reference-line-line"}))}(a,x),ZO.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return sE({x:e,y:r},{x:n,y:i})}({x1:v,y1:m,x2:b,y2:w})))}function LE(t){return LE="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},LE(t)}function RE(){return RE=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},RE.apply(this,arguments)}function $E(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 zE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$E(Object(r),!0).forEach((function(e){HE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function HE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=LE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=LE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==LE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}BE.displayName="ReferenceLine",BE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function VE(t){var e=t.x,r=t.y,n=t.r,i=t.alwaysShow,o=t.clipPathId,a=Lo(e),c=Lo(r);if(Aa(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!c)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=pE({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return vM(t,"discard")&&!o.isInRange(a)?null:a}(t);if(!l)return null;var u=l.x,s=l.y,f=t.shape,p=t.className,h=zE(zE({clipPath:vM(t,"hidden")?"url(#".concat(o,")"):void 0},pa(t,!0)),{},{cx:u,cy:s});return K.createElement(Sa,{className:Ur("recharts-reference-dot",p)},VE.renderDot(f,h),ZO.renderCallByParent(t,{x:u-n,y:s-n,width:2*n,height:2*n}))}function UE(t){return UE="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},UE(t)}function FE(){return FE=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},FE.apply(this,arguments)}function WE(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 qE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WE(Object(r),!0).forEach((function(e){XE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function XE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}VE.displayName="ReferenceDot",VE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},VE.renderDot=function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement(VA,RE({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function YE(t){var e=t.x1,r=t.x2,n=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;Aa(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Lo(e),u=Lo(r),s=Lo(n),f=Lo(i),p=t.shape;if(!(l||u||s||f||p))return null;var h=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,l=i.y2,u=i.xAxis,s=i.yAxis;if(!u||!s)return null;var f=pE({x:u.scale,y:s.scale}),p={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!vM(i,"discard")||f.isInRange(p)&&f.isInRange(h)?sE(p,h):null}(l,u,s,f,t);if(!h&&!p)return null;var d=vM(t,"hidden")?"url(#".concat(c,")"):void 0;return K.createElement(Sa,{className:Ur("recharts-reference-area",o)},YE.renderRect(p,qE(qE({clipPath:d},pa(t,!0)),h)),ZO.renderCallByParent(t,h))}function KE(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e){if(void 0!==r&&!0!==r(t[i]))return;n.push(t[i])}return n}function GE(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function ZE(t){return ZE="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},ZE(t)}function JE(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 QE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?JE(Object(r),!0).forEach((function(e){tk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tk(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ZE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ZE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ZE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ek(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,l=t.interval,u=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(Bo(l)||cd.isSsr)return function(t,e){return KE(t,e+1)}(i,"number"==typeof l&&Bo(l)?l:0);var p=[],h="top"===c||"bottom"===c?"width":"height",d=s&&"width"===h?iy(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var i=Sn(u)?u(t.value,n):t.value;return"width"===h?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return hE(n,r)}(iy(i,{fontSize:e,letterSpacing:r}),d,f):iy(i,{fontSize:e,letterSpacing:r})[h]},v=i.length>=2?Io(i[1].coordinate-i[0].coordinate):1,m=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,v,h);return"equidistantPreserveStart"===l?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,l=e.end,u=0,s=1,f=c,p=function(){var e=null==n?void 0:n[u];if(void 0===e)return{v:KE(n,s)};var o,a=u,p=function(){return void 0===o&&(o=r(e,a)),o},h=e.coordinate,d=0===u||GE(t,h,p,f,l);d||(u=0,f=c,s+=1),d&&(f=h+t*(p()/2+i),u+=s)};s<=a.length;)if(o=p())return o.v;return[]}(v,m,y,i,a):(p="preserveStart"===l||"preserveStartEnd"===l?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,l=e.start,u=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-u);a[c-1]=s=QE(QE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),GE(t,s.tickCoord,(function(){return f}),l,u)&&(u=s.tickCoord-t*(f/2+i),a[c-1]=QE(QE({},s),{},{isShow:!0}))}for(var h=o?c-1:c,d=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-l);a[e]=o=QE(QE({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=QE(QE({},o),{},{tickCoord:o.coordinate});GE(t,o.tickCoord,c,l,u)&&(l=o.tickCoord+t*(c()/2+i),a[e]=QE(QE({},o),{},{isShow:!0}))},y=0;y<h;y++)d(y);return a}(v,m,y,i,a,"preserveStartEnd"===l):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,l=e.end,u=function(e){var n,u=o[e],s=function(){return void 0===n&&(n=r(u,e)),n};if(e===a-1){var f=t*(u.coordinate+t*s()/2-l);o[e]=u=QE(QE({},u),{},{tickCoord:f>0?u.coordinate-f*t:u.coordinate})}else o[e]=u=QE(QE({},u),{},{tickCoord:u.coordinate});GE(t,u.tickCoord,s,c,l)&&(l=u.tickCoord-t*(s()/2+i),o[e]=QE(QE({},u),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return o}(v,m,y,i,a),p.filter((function(t){return t.isShow})))}YE.displayName="ReferenceArea",YE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},YE.renderRect=function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement(zA,FE({},e,{className:"recharts-reference-area-rect"}))};var rk=["viewBox"],nk=["viewBox"],ik=["ticks"];function ok(t){return ok="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},ok(t)}function ak(){return ak=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},ak.apply(this,arguments)}function ck(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 lk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ck(Object(r),!0).forEach((function(e){yk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ck(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function sk(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,vk(n.key),n)}}function fk(t,e,r){return e=hk(e),function(t,e){if(e&&("object"===ok(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,pk()?Reflect.construct(e,r||[],hk(t).constructor):e.apply(t,r))}function pk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pk=function(){return!!t})()}function hk(t){return hk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hk(t)}function dk(t,e){return dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dk(t,e)}function yk(t,e,r){return(e=vk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vk(t){var e=function(t,e){if("object"!=ok(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ok(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ok(e)?e:String(e)}var mk=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=fk(this,e,[t])).state={fontSize:"",letterSpacing:""},r}var r,n,i;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&&dk(t,e)}(e,st),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=uk(t,rk),i=this.props,o=i.viewBox,a=uk(i,nk);return!Fo(r,o)||!Fo(n,a)||!Fo(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,i,o,a,c=this.props,l=c.x,u=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,m=t.tickSize||h,g=Bo(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=u+ +!d*f)-v*m)-v*y,o=g;break;case"left":n=i=t.coordinate,o=(e=(r=l+ +!d*s)-v*m)-v*y,a=g;break;case"right":n=i=t.coordinate,o=(e=(r=l+ +d*s)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(i=u+ +d*f)+v*m)+v*y,o=g}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,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,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,l=lk(lk(lk({},pa(this.props,!1)),pa(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!a||"bottom"===o&&a);l=lk(lk({},l),{},{x1:e,y1:r+u*i,x2:e+n,y2:r+u*i})}else{var s=+("left"===o&&!a||"right"===o&&a);l=lk(lk({},l),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return K.createElement("line",ak({},l,{className:Ur("recharts-cartesian-axis-line",vo(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,l=o.tick,u=o.tickFormatter,s=o.unit,f=ek(lk(lk({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=pa(this.props,!1),y=pa(l,!1),v=lk(lk({},d),{},{fill:"none"},pa(a,!1)),m=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,m=n.tick,g=lk(lk(lk(lk({textAnchor:p,verticalAnchor:h},d),{},{stroke:"none",fill:c},y),m),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:u});return K.createElement(Sa,ak({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Zo(i.props,t,r)),a&&K.createElement("line",ak({},v,o,{className:Ur("recharts-cartesian-axis-tick-line",vo(a,"className"))})),l&&e.renderTickItem(l,g,"".concat(Sn(u)?u(t.value,r):t.value).concat(s||"")))}));return K.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,l=c.ticks,u=uk(c,ik),s=l;return Sn(o)&&(s=l&&l.length>0?o(this.props):o(u)),n<=0||i<=0||!s||!s.length?null:K.createElement(Sa,{className:Ur("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),ZO.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement(Dy,ak({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&sk(r.prototype,n),i&&sk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();yk(mk,"displayName","CartesianAxis"),yk(mk,"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 gk=["type","layout","connectNulls","ref"];function bk(t){return bk="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},bk(t)}function wk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function xk(){return xk=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},xk.apply(this,arguments)}function Ok(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 Sk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ok(Object(r),!0).forEach((function(e){Ck(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ok(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jk(t){return function(t){if(Array.isArray(t))return Ak(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 Ak(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 Ak(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 Ak(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 Pk(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,Dk(n.key),n)}}function Mk(t,e,r){return e=kk(e),function(t,e){if(e&&("object"===bk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _k(t)}(t,Ek()?Reflect.construct(e,r||[],kk(t).constructor):e.apply(t,r))}function Ek(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ek=function(){return!!t})()}function kk(t){return kk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kk(t)}function _k(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Tk(t,e){return Tk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tk(t,e)}function Ck(t,e,r){return(e=Dk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dk(t){var e=function(t,e){if("object"!=bk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bk(e)?e:String(e)}var Ik=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Ck(_k(t=Mk(this,e,[].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),Ck(_k(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),Ck(_k(t),"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,l=n-r,u=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){u=[].concat(jk(i.slice(0,s)),[c-f]);break}var p=u.length%2==0?[0,l]:[l];return[].concat(jk(e.repeat(i,a)),jk(u),p).map((function(t){return"".concat(t,"px")})).join(", ")})),Ck(_k(t),"id",$o("recharts-line-")),Ck(_k(t),"pathRef",(function(e){t.mainCurve=e})),Ck(_k(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),Ck(_k(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var r,n,i;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&&Tk(t,e)}(e,J),r=e,n=[{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(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=ca(r.children,Yx);if(!c)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:aO(t.payload,e)}},u={clipPath:t?"url(#clipPath-".concat(e,")"):null};return K.createElement(Sa,u,c.map((function(t){return K.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,l=pa(this.props,!1),u=pa(o,!0),s=a.map((function(t,r){var n=Sk(Sk(Sk({key:"dot-".concat(r),r:3},l),u),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return K.createElement(Sa,xk({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var l=wk(i,gk),u=Sk(Sk(Sk({},pa(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return K.createElement(FS,xk({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,h=n.height,d=this.state,y=d.prevPoints,v=d.totalLength;return K.createElement(kA,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],i=Vo(n.x,t.x),o=Vo(n.y,t.y);return Sk(Sk({},t),{},{x:i(a),y:o(a)})}if(f){var l=Vo(2*p,t.x),u=Vo(h/2,t.y);return Sk(Sk({},t),{},{x:l(a),y:u(a)})}return Sk(Sk({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(l,t,e)}var u,s=Vo(0,v)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));u=r.getStrokeDasharray(s,v,d)}else u=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!Lw(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,l=e.top,u=e.left,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Ur("recharts-line",o),m=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,b=m||g,w=mo(h)?this.id:h,x=null!==(t=pa(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(fa(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return K.createElement(Sa,{className:v},m||g?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(w)},K.createElement("rect",{x:m?u:u-s/2,y:g?l:l-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&K.createElement("clipPath",{id:"clipPath-dots-".concat(w)},K.createElement("rect",{x:u-E/2,y:l-E/2,width:s+E,height:f+E}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,M,w),(!p||d)&&pS.renderCallByParent(this.props,i))}}],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(jk(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(jk(n),jk(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(K.isValidElement(t))r=K.cloneElement(t,e);else if(Sn(t))r=t(e);else{var n=Ur("recharts-line-dot",t?t.className:"");r=K.createElement(VA,xk({},e,{className:n}))}return r}}],n&&Pk(r.prototype,n),i&&Pk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Ck(Ik,"displayName","Line"),Ck(Ik,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!cd.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Ck(Ik,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,l=t.displayedData,u=t.offset,s=e.layout;return Sk({points:l.map((function(t,e){var l=aO(t,a);return"horizontal"===s?{x:gO({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:mo(l)?null:n.scale(l),value:l,payload:t}:{x:mo(l)?null:r.scale(l),y:gO({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:l,payload:t}})),layout:s},u)}));var Nk,Bk=["layout","type","stroke","connectNulls","isRange","ref"];function Lk(t){return Lk="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},Lk(t)}function Rk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function $k(){return $k=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},$k.apply(this,arguments)}function zk(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 Hk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zk(Object(r),!0).forEach((function(e){Yk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vk(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,Kk(n.key),n)}}function Uk(t,e,r){return e=Wk(e),function(t,e){if(e&&("object"===Lk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return qk(t)}(t,Fk()?Reflect.construct(e,r||[],Wk(t).constructor):e.apply(t,r))}function Fk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fk=function(){return!!t})()}function Wk(t){return Wk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wk(t)}function qk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xk(t,e){return Xk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xk(t,e)}function Yk(t,e,r){return(e=Kk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kk(t){var e=function(t,e){if("object"!=Lk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Lk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Lk(e)?e:String(e)}var Gk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Yk(qk(t=Uk(this,e,[].concat(n))),"state",{isAnimationFinished:!0}),Yk(qk(t),"id",$o("recharts-area-")),Yk(qk(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Sn(e)&&e()})),Yk(qk(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Sn(e)&&e()})),t}var r,n,i;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&&Xk(t,e)}(e,J),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,l=a.points,u=a.dataKey,s=pa(this.props,!1),f=pa(c,!0),p=l.map((function(t,r){var n=Hk(Hk(Hk({key:"dot-".concat(r),r:3},s),f),{},{dataKey:u,cx:t.x,cy:t.y,index:r,value:t.value,payload:t.payload});return e.renderDotItem(c,n)})),h={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return K.createElement(Sa,$k({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),l=Ow(n.map((function(t){return t.y||0})));return Bo(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(Ow(r.map((function(t){return t.y||0}))),l)),Bo(l)?K.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),l=Ow(n.map((function(t){return t.x||0})));return Bo(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(Ow(r.map((function(t){return t.x||0}))),l)),Bo(l)?K.createElement("rect",{x:0,y:o<a?o:o-c,width:l+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,l=i.connectNulls,u=i.isRange;i.ref;var s=Rk(i,Bk);return K.createElement(Sa,{clipPath:r?"url(#clipPath-".concat(n,")"):null},K.createElement(FS,$k({},pa(s,!0),{points:t,connectNulls:l,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&K.createElement(FS,$k({},pa(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:t})),"none"!==c&&u&&K.createElement(FS,$k({},pa(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,h=f.prevBaseLine;return K.createElement(kA,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,l=p.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*l);if(p[r]){var n=p[r],i=Vo(n.x,t.x),o=Vo(n.y,t.y);return Hk(Hk({},t),{},{x:i(a),y:o(a)})}return t}));return c=Bo(o)&&"number"==typeof o?Vo(h,o)(a):mo(o)||Do(o)?Vo(h,0)(a):o.map((function(t,e){var r=Math.floor(e*l);if(h[r]){var n=h[r],i=Vo(n.x,t.x),o=Vo(n.y,t.y);return Hk(Hk({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(u,c,t,e)}return K.createElement(Sa,null,K.createElement("defs",null,K.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),K.createElement(Sa,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,l=a.prevBaseLine,u=a.totalLength;return o&&n&&n.length&&(!c&&u>0||!Lw(c,n)||!Lw(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,l=e.xAxis,u=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Ur("recharts-area",o),m=l&&l.allowDataOverflow,g=u&&u.allowDataOverflow,b=m||g,w=mo(h)?this.id:h,x=null!==(t=pa(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(fa(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return K.createElement(Sa,{className:v},m||g?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(w)},K.createElement("rect",{x:m?c:c-s/2,y:g?a:a-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&K.createElement("clipPath",{id:"clipPath-dots-".concat(w)},K.createElement("rect",{x:c-E/2,y:a-E/2,width:s+E,height:f+E}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,M,w),(!p||d)&&pS.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&Vk(r.prototype,n),i&&Vk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function Zk(){return Zk=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},Zk.apply(this,arguments)}Nk=Gk,Yk(Gk,"displayName","Area"),Yk(Gk,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!cd.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Yk(Gk,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Bo(c)&&"number"==typeof c)return c;var l="horizontal"===i?n:r,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]})),Yk(Gk,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,l=t.bandSize,u=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,h=t.offset,d=r.layout,y=s&&s.length,v=Nk.getBaseValue(r,n,i,o),m="horizontal"===d,g=!1,b=p.map((function(t,e){var r;y?r=s[f+e]:(r=aO(t,u),Array.isArray(r)?g=!0:r=[v,r]);var n=null==r[1]||y&&null==aO(t,u);return m?{x:gO({axis:i,ticks:a,bandSize:l,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:gO({axis:o,ticks:c,bandSize:l,entry:t,index:e}),value:r,payload:t}}));return e=y||g?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):m?o.scale(v):i.scale(v),Hk({points:b,baseLine:e,layout:d,isRange:g},h)})),Yk(Gk,"renderDotItem",(function(t,e){return K.isValidElement(t)?K.cloneElement(t,e):Sn(t)?t(e):K.createElement(VA,$k({},e,{className:"recharts-area-dot"}))}));var Jk=function(t){var e=t.xAxisId,r=ME(),n=EE(),i=AE(e);return null==i?null:K.createElement(mk,Zk({},i,{className:Ur("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return pO(t,!0)}}))};function Qk(){return Qk=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},Qk.apply(this,arguments)}Jk.displayName="XAxis",Jk.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 t_=function(t){var e=t.yAxisId,r=ME(),n=EE(),i=PE(e);return null==i?null:K.createElement(mk,Qk({},i,{className:Ur("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return pO(t,!0)}}))};function e_(t){return function(t){if(Array.isArray(t))return r_(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 r_(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 r_(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 r_(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}t_.displayName="YAxis",t_.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 n_=function(t,e,r,n,i){var o=ca(t,BE),a=ca(t,VE),c=[].concat(e_(o),e_(a)),l=ca(t,YE),u="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[u]===r&&vM(e.props,"extendDomain")&&Bo(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),l.length){var p="".concat(s,"1"),h="".concat(s,"2");f=l.reduce((function(t,e){if(e.props[u]===r&&vM(e.props,"extendDomain")&&Bo(e.props[p])&&Bo(e.props[h])){var n=e.props[p],i=e.props[h];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return Bo(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},i_={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],c]:t._events[l].push(c):(t._events[l]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.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 i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var l,u,s=this._events[c],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,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];s.fn.apply(s.context,l)}else{var p,h=s.length;for(u=0;u<h;u++)switch(s[u].once&&this.removeListener(t,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,e);break;case 3:s[u].fn.call(s[u].context,e,n);break;case 4:s[u].fn.call(s[u].context,e,n,i);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];s[u].fn.apply(s[u].context,l)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var l=0,u=[],s=c.length;l<s;l++)(c[l].fn!==e||i&&!c[l].once||n&&c[l].context!==n)&&u.push(c[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},c.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},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(i_);var o_=new(nr(i_.exports)),a_="recharts.syncMouseEvents";function c_(t){return c_="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},c_(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,s_(n.key),n)}}function u_(t,e,r){return(e=s_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s_(t){var e=function(t,e){if("object"!=c_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c_(e)?e:String(e)}var f_=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u_(this,"activeIndex",0),u_(this,"coordinateList",[]),u_(this,"layout","horizontal")}var e,r,n;return e=t,r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,l=t.offset,u=void 0===l?null:l,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!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=u?u: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,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,l=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,u=n+a+c,s=i+this.offset.top+o/2+l;this.mouseHandlerCallback({pageX:u,pageY:s})}}}],r&&l_(e.prototype,r),n&&l_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function p_(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[DO(e,r,n,i),DO(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function h_(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return p_(e);var c=e.cx,l=e.cy,u=e.innerRadius,s=e.outerRadius,f=e.angle,p=DO(c,l,u,f),h=DO(c,l,s,f);n=p.x,i=p.y,o=h.x,a=h.y}return[{x:n,y:i},{x:o,y:a}]}function d_(t){return d_="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},d_(t)}function y_(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 v_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y_(Object(r),!0).forEach((function(e){m_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=d_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g_(t){var e,r=t.element,n=t.tooltipEventType,i=t.isActive,o=t.activeCoordinate,a=t.activePayload,c=t.offset,l=t.activeTooltipIndex,u=t.tooltipAxisBandSize,s=t.layout,f=t.chartName;if(!r||!r.props.cursor||!i||!o||"ScatterChart"!==f&&"axis"!==n)return null;var p=FS;if("ScatterChart"===f)e=o,p=GA;else if("BarChart"===f)e=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(s,o,c,u),p=zA;else if("radial"===s){var h=p_(o),d=h.cx,y=h.cy,v=h.radius;e={cx:d,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},p=xS}else e={points:h_(s,o,c)},p=FS;var m=v_(v_(v_(v_({stroke:"#ccc",pointerEvents:"none"},c),e),pa(r.props.cursor,!1)),{},{payload:a,payloadIndex:l,className:"recharts-tooltip-cursor"});return G(r.props.cursor)?at(r.props.cursor,m):ct(p,m)}var b_=["item"],w_=["children","className","width","height","style","compact","title","desc"];function x_(t){return x_="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},x_(t)}function O_(){return O_=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},O_.apply(this,arguments)}function S_(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,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||C_(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 j_(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function A_(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,L_(n.key),n)}}function P_(t,e,r){return e=E_(e),function(t,e){if(e&&("object"===x_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return k_(t)}(t,M_()?Reflect.construct(e,r||[],E_(t).constructor):e.apply(t,r))}function M_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(M_=function(){return!!t})()}function E_(t){return E_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E_(t)}function k_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function __(t,e){return __=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},__(t,e)}function T_(t){return function(t){if(Array.isArray(t))return D_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C_(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 C_(t,e){if(t){if("string"==typeof t)return D_(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)?D_(t,e):void 0}}function D_(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 I_(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 N_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I_(Object(r),!0).forEach((function(e){B_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function B_(t,e,r){return(e=L_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L_(t){var e=function(t,e){if("object"!=x_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=x_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==x_(e)?e:String(e)}var R_={xAxis:["bottom","top"],yAxis:["left","right"]},$_={width:"100%",height:"100%"},z_={x:0,y:0};function H_(t){return t}var V_=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(T_(t),T_(r)):t}),[]);return o.length>0?o:t&&t.length&&Bo(n)&&Bo(i)?t.slice(n,i+1):[]};function U_(t){return"number"===t?[0,"auto"]:void 0}var F_=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=V_(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var l,u,s=null!==(l=c.props.data)&&void 0!==l?l:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?u=Uo(void 0===s?a:s,o.dataKey,n):u=s&&s[r]||a[r];return u?[].concat(T_(i),[PO(c,u)]):i}),[])},W_=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,u=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,l=0;l<a;l++){var u=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(Io(s-u)!==Io(f-s)){var h=[];if(Io(f-s)===Io(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+u)/2),h[1]=Math.max(d,(d+u)/2)}else{p=u;var y=f+c[1]-c[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]){o=n[l].index;break}}else{var m=Math.min(u,f),g=Math.max(u,f);if(t>(m+s)/2&&t<=(g+s)/2){o=n[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,l,c);if(u>=0&&l){var s=l[u]&&l[u].value,f=F_(t,e,u,s),p=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return N_(N_(N_({},n),DO(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,l=n.angle;return N_(N_(N_({},n),DO(n.cx,n.cy,c,l)),{},{angle:l,radius:c})}return z_}(r,a,u,i);return{activeTooltipIndex:u,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},q_=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=t.stackOffset,p=fO(u,i);return r.reduce((function(e,r){var h,d=r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,g=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=r.props[o];if(e[O])return e;var S,j,A,P=V_(t.data,{graphicalItems:n.filter((function(t){return t.props[o]===O})),dataStartIndex:c,dataEndIndex:l}),M=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&Bo(n)&&Bo(i))return!0}return!1})(r.props.domain,m,y)&&(S=SO(r.props.domain,null,m),!p||"number"!==y&&"auto"===b||(A=cO(P,v,"category")));var E=U_(y);if(!S||0===S.length){var k,_=null!==(k=r.props.domain)&&void 0!==k?k:E;if(v){if(S=cO(P,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}(S);g&&T?(j=S,S=UP(0,M)):g||(S=AO(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(T_(t),[e])}),[]))}else if("category"===y)S=g?S.filter((function(t){return""!==t&&!mo(t)})):AO(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||mo(e)?t:[].concat(T_(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,i){var o=e.map((function(e){return uO(t,e,r,i,n)})).filter((function(t){return!mo(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),v,i,u);C&&(S=C)}!p||"number"!==y&&"auto"===b||(A=cO(P,v,"category"))}else S=p?UP(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:wO(a[O].stackGroups,c,l):sO(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,u,!0);if("number"===y)S=n_(s,S,O,i,w),_&&(S=SO(_,S,m));else if("category"===y&&_){var D=_;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return N_(N_({},e),{},B_({},O,N_(N_({},r.props),{},{axisType:i,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:E,isCategorical:p,layout:u})))}),{})},X_=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.children,s="".concat(n,"Id"),f=ca(u,i),p={};return f&&f.length?p=q_(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=V_(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),p=f.length,h=fO(u,i),d=-1;return r.reduce((function(t,e){var y,v=e.props[o],m=U_("number");return t[v]?t:(d++,h?y=UP(0,p):a&&a[v]&&a[v].hasStack?(y=wO(a[v].stackGroups,c,l),y=n_(s,y,v,i)):(y=SO(m,sO(f,r.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",u),n.defaultProps.allowDataOverflow),y=n_(s,y,v,i)),N_(N_({},t),{},B_({},v,N_(N_({axisType:i},n.defaultProps),{},{hide:!0,orientation:vo(R_,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:u}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),p},Y_=function(t){var e=t.children,r=t.defaultShowTooltip,n=la(e,lM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},K_=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"}},G_=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,l=r.height,u=r.children,s=r.margin||{},f=la(u,lM),p=la(u,Ip),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:N_(N_({},t),{},B_({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:N_(N_({},t),{},B_({},n,vo(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=N_(N_({},d),h),v=y.bottom;f&&(y.bottom+=f.props.height||lM.defaultProps.height),p&&e&&(y=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),l=Qx({children:i,legendWidth:c});if(l){var u=n||{},s=u.width,f=u.height,p=l.align,h=l.verticalAlign,d=l.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&Bo(t[p]))return rO(rO({},t),{},nO({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&Bo(t[h]))return rO(rO({},t),{},nO({},h,t[h]+(f||0)))}return t}(y,0,r,e));var m=c-y.left-y.right,g=l-y.top-y.bottom;return N_(N_({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(g,0)})},Z_=function(t){var e,r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=void 0===i?"axis":i,a=t.validateTooltipEventTypes,c=void 0===a?["axis"]:a,l=t.axisComponents,u=t.legendContent,s=t.formatAxisMap,f=t.defaultProps,p=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=K_(s),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=na(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=m&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var i={},o=Object.keys(n),a=0,c=o.length;a<c;a++)for(var l=n[o[a]].stackGroups,u=Object.keys(l),s=0,f=u.length;s<f;s++){var p=l[u[s]],h=p.items,d=p.cateAxisId,y=h.filter((function(t){return na(t.type).indexOf("Bar")>=0}));if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[d];i[m]||(i[m]=[]),i[m].push({item:y[0],stackList:y.slice(1),barSize:mo(v)?e:v})}}return i}({barSize:u,stackGroups:n}),b=[];return r.forEach((function(r,u){var d=V_(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),m=r.props,w=m.dataKey,x=m.maxBarSize,O=r.props["".concat(y,"Id")],S=r.props["".concat(v,"Id")],j=l.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=r.props["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?Vx(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):Vx(!1));var l=a[c];return N_(N_({},t),{},B_(B_({},n.axisType,l),"".concat(n.axisType,"Ticks"),pO(l)))}),{}),A=j[v],P=j["".concat(v,"Ticks")],M=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(Lo(r)){var n=e[r];if(n){var i=n.items.indexOf(t);return i>=0?n.stackedData[i]:null}}return null}(r,n[O].stackGroups),E=na(r.type).indexOf("Bar")>=0,k=jO(A,P),_=[];if(E){var T,C,D=mo(x)?h:x,I=null!==(T=null!==(C=jO(A,P,!0))&&void 0!==C?C:D)&&void 0!==T?T:0;_=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var l,u=zo(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,h=o.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*u)>=n&&(h-=(c-1)*u,u=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var d={offset:((n-h)/2>>0)-u,size:0};l=o.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+u,size:f?p:e.barSize}},n=[].concat(iO(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=zo(r,n,0,!0);n-2*y-(c-1)*u<=0&&(u=0);var v=(n-2*y-(c-1)*u)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;l=o.reduce((function(t,e,r){var n=[].concat(iO(t),[{item:e.item,position:{offset:y+(v+u)*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 l}({barGap:f,barCategoryGap:p,bandSize:I!==k?I:k,sizeList:g[S],maxBarSize:D}),I!==k&&(_=_.map((function(t){return N_(N_({},t),{},{position:N_(N_({},t.position),{},{offset:t.position.offset-I/2})})})))}var N,B,L=r&&r.type&&r.type.getComposedData;L&&b.push({props:N_(N_({},L(N_(N_({},j),{},{displayedData:d,props:t,dataKey:w,item:r,bandSize:k,barPosition:_,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},B_(B_(B_({key:r.key||"item-".concat(u)},y,j[y]),v,j[v]),"animationId",o)),childIndex:(N=r,B=t.children,aa(B).indexOf(N)),item:r})})),b},h=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!ua({props:i}))return null;var u=i.children,f=i.layout,h=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=K_(f),m=v.numericAxisName,g=v.cateAxisName,b=ca(u,n),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(Lo(o)){var l=c.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),c.hasStack=!0,c.stackGroups[o]=l}else c.stackGroups[$o("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return rO(rO({},t),{},nO({},a,c))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return rO(rO({},e),{},nO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:mO(t,a.items,i)}))}),{})),rO(rO({},e),{},nO({},o,c))}),{})}(d,b,"".concat(m,"Id"),"".concat(g,"Id"),h,y),x=l.reduce((function(t,e){var r="".concat(e.axisType,"Map");return N_(N_({},t),{},B_({},r,X_(i,N_(N_({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=G_(N_(N_({},x),{},{props:i,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(x).forEach((function(t){x[t]=s(i,x[t],O,t.replace("Map",""),r)}));var S,j,A=x["".concat(g,"Map")],P=(S=Ho(A),{tooltipTicks:j=pO(S,!1,!0),orderedTooltipTicks:Dh(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:jO(S,j)}),M=p(i,N_(N_({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return N_(N_({formattedGraphicalItems:M,graphicalItems:b,offset:O,stackGroups:w},P),x)};return e=function(t){function e(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),B_(k_(o=P_(this,e,[t])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),B_(k_(o),"accessibilityManager",new f_),B_(k_(o),"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(N_({legendBBox:t},h({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},N_(N_({},o.state),{},{legendBBox:t}))))}})),B_(k_(o),"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),B_(k_(o),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return N_({dataStartIndex:e,dataEndIndex:r},h({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),B_(k_(o),"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=N_(N_({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;Sn(n)&&n(r,t)}})),B_(k_(o),"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?N_(N_({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;Sn(n)&&n(r,t)})),B_(k_(o),"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),B_(k_(o),"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),B_(k_(o),"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),B_(k_(o),"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;Sn(r)&&r(e,t)})),B_(k_(o),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&ra[e]?ra[e]:null}(t),n=vo(o.props,"".concat(r));r&&Sn(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),B_(k_(o),"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=N_(N_({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;Sn(n)&&n(r,t)}})),B_(k_(o),"handleMouseDown",(function(t){var e=o.props.onMouseDown;Sn(e)&&e(o.getMouseInfo(t),t)})),B_(k_(o),"handleMouseUp",(function(t){var e=o.props.onMouseUp;Sn(e)&&e(o.getMouseInfo(t),t)})),B_(k_(o),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),B_(k_(o),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),B_(k_(o),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),B_(k_(o),"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&o_.emit(a_,o.props.syncId,t,o.eventEmitterSymbol)})),B_(k_(o),"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(N_({dataStartIndex:a,dataEndIndex:c},h({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var l=t.chartX,u=t.chartY,s=t.activeTooltipIndex,f=o.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=N_(N_({},p),{},{x:p.left,y:p.top}),m=Math.min(l,v.x+v.width),g=Math.min(u,v.y+v.height),b=d[s]&&d[s].value,w=F_(o.state,o.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:m,y:"horizontal"===r?g:d[s].coordinate}:z_;o.setState(N_(N_({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),B_(k_(o),"renderCursor",(function(t){var e,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,l=n.offset,u=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(e=t.props.active)&&void 0!==e?e:i,h=o.props.layout,d=t.key||"_recharts-cursor";return K.createElement(g_,{key:d,activeCoordinate:a,activePayload:c,activeTooltipIndex:u,chartName:r,element:t,isActive:p,layout:h,offset:l,tooltipAxisBandSize:s,tooltipEventType:f})})),B_(k_(o),"renderPolarAxis",(function(t,e,r){var n=vo(t,"type.axisType"),i=vo(o.state,"".concat(n,"Map")),a=i&&i[t.props["".concat(n,"Id")]];return at(t,N_(N_({},a),{},{className:n,key:t.key||"".concat(e,"-").concat(r),ticks:pO(a,!0)}))})),B_(k_(o),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,l=a.angleAxisMap,u=Ho(c),s=Ho(l),f=s.cx,p=s.cy,h=s.innerRadius,d=s.outerRadius;return at(t,{polarAngles:Array.isArray(n)?n:pO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:pO(u,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),B_(k_(o),"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),l=Qx({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=j_(l,b_);return at(s,N_(N_({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),B_(k_(o),"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=la(r,bd);if(!i)return null;var a=o.state,c=a.isTooltipActive,l=a.activeCoordinate,u=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return at(i,{viewBox:N_(N_({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?u:[],coordinate:l,accessibilityLayer:n})})),B_(k_(o),"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return at(t,{key:t.key||"_recharts-brush",onChange:dO(o.handleBrushChange,t.props.onChange),data:n,x:Bo(t.props.x)?t.props.x:a.left,y:Bo(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Bo(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),B_(k_(o),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=k_(o).clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=t.props,s=u.xAxisId,f=u.yAxisId;return at(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[s],yAxis:c[f],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),B_(k_(o),"renderActivePoints",(function(t){var r=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],l=r.props.key,u=r.item.props,s=u.activeDot,f=N_(N_({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:lO(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(l,"-activePoint-").concat(o)},pa(s,!1)),Go(s));return c.push(e.renderActiveDot(s,f)),i?c.push(e.renderActiveDot(s,N_(N_({},f),{},{cx:i.x,cy:i.y,key:"".concat(l,"-basePoint-").concat(o)}))):a&&c.push(null),c})),B_(k_(o),"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,l=a.tooltipAxis,u=a.activeTooltipIndex,s=a.activeLabel,f=la(o.props.children,bd),p=n.props,h=p.points,d=p.isRange,y=p.baseLine,v=n.item.props,m=v.activeDot,g=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!g&&c&&f&&(m||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:dO(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:dO(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:dO(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=at(t,N_(N_({},n.props),O));if(x){if(!(u>=0)){var j,A=(null!==(j=o.getItemByXY(o.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,P=A.item,M=void 0===P?t:P,E=A.childIndex,k=N_(N_(N_({},n.props),O),{},{activeIndex:E});return[at(M,k),null,null]}var _,T;if(l.dataKey&&!l.allowDuplicatedCategory){var C="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());_=Uo(h,C,s),T=d&&y&&Uo(y,C,s)}else _=null==h?void 0:h[u],T=d&&y&&y[u];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:u;return[at(t,N_(N_(N_({},n.props),O),{},{activeIndex:D})),null,null]}if(!mo(_))return[S].concat(T_(o.renderActivePoints({item:n,activePoint:_,basePoint:T,childIndex:u,isRange:d})))}return d?[S,null,null]:[S,null]})),B_(k_(o),"renderCustomized",(function(t,e,r){return at(t,N_(N_({key:"recharts-customized-".concat(r)},o.props),o.state))})),B_(k_(o),"renderMap",{CartesianGrid:{handler:H_,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:H_},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:H_},YAxis:{handler:H_},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:$o("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=Vd(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}var n,i,a;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&&__(t,e)}(e,st),n=e,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,i=t.layout,o=la(e,bd);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=F_(this.state,r,a,c),u=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:u,y:s}:{y:u,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=N_(N_({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:l,activeCoordinate:f};this.setState(h),this.renderCursor(o),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){ha([la(t.children,bd)],[la(this.props.children,bd)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=la(this.props.children,bd);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return c.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&s){var f=Ho(u).scale,p=Ho(s).scale,h=f&&f.invert?f.invert(o.chartX):null,d=p&&p.invert?p.invert(o.chartY):null;return N_(N_({},o),{},{xValue:h,yValue:d})}var y=W_(this.state,this.props.data,this.props.layout,c);return y?N_(N_({},o),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,l=c.angleAxisMap,u=c.radiusAxisMap;if(l&&u){var s=Ho(l);return BO({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=la(t,bd),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),N_(N_({},Go(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){o_.on(a_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){o_.removeListener(a_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===na(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return K.createElement("defs",null,K.createElement("clipPath",{id:t},K.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=S_(e,2),n=r[0],i=r[1];return N_(N_({},t),{},B_({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=S_(e,2),n=r[0],i=r[1];return N_(N_({},t),{},B_({},n,i.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 i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,l=a.item,u=na(l.type);if("Bar"===u){var s=(c.data||[]).find((function(e){return RA(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===u){var f=(c.data||[]).find((function(e){return BO(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(kP(a,n)||_P(a,n)||TP(a,n)){var p=NP({graphicalItem:a,activeTooltipItem:n,itemData:l.props.data}),h=void 0===l.props.activeIndex?p:l.props.activeIndex;return{graphicalItem:N_(N_({},a),{},{childIndex:h}),payload:TP(a,n)?l.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var t,e=this;if(!ua(this))return null;var r,n,i=this.props,o=i.children,a=i.className,c=i.width,l=i.height,u=i.style,s=i.compact,f=i.title,p=i.desc,h=j_(i,w_),d=pa(h,!1);if(s)return K.createElement(SE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement(ba,O_({},d,{width:c,height:l,title:f,desc:p}),this.renderClipPath(),ya(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,d.role=null!==(n=this.props.role)&&void 0!==n?n:"application",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return K.createElement(SE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement("div",O_({className:Ur("recharts-wrapper",a),style:N_({position:"relative",cursor:"default",width:c,height:l},u)},y,{ref:function(t){e.container=t},role:null!==(t=d.role)&&void 0!==t?t:"region"}),K.createElement(ba,O_({},d,{width:c,height:l,title:f,desc:p,style:$_}),this.renderClipPath(),ya(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&A_(n.prototype,i),a&&A_(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(),B_(e,"displayName",r),B_(e,"defaultProps",N_({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),B_(e,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,l=t.stackOffset,u=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=Y_(t);return N_(N_(N_({},p),{},{updateId:0},h(N_(N_({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||l!==e.prevStackOffset||!Fo(u,e.prevMargin)){var d=Y_(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=N_(N_({},W_(e,n,c)),{},{updateId:e.updateId+1}),m=N_(N_(N_({},d),y),v);return N_(N_(N_({},m),h(N_({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(!ha(i,e.prevChildren)){var g,b,w,x,O=la(i,lM),S=O&&null!==(g=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==g?g:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,A=S!==s||j!==f,P=!mo(n)&&!A?e.updateId:e.updateId+1;return N_(N_({updateId:P},h(N_(N_({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:j})}return null})),B_(e,"renderActiveDot",(function(t,e){var r;return r=G(t)?at(t,e):Sn(t)?t(e):K.createElement(VA,e),K.createElement(Sa,{className:"recharts-active-dot",key:e.key},r)})),e},J_=Z_({chartName:"LineChart",GraphicalChild:Ik,axisComponents:[{axisType:"xAxis",AxisComp:Jk},{axisType:"yAxis",AxisComp:t_}],formatAxisMap:uE}),Q_=Z_({chartName:"AreaChart",GraphicalChild:Gk,axisComponents:[{axisType:"xAxis",AxisComp:Jk},{axisType:"yAxis",AxisComp:t_}],formatAxisMap:uE});const tT=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",showTooltip:c=!1,isAnimated:l=!1,formatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=xr({data:r,dataKey:n}),h=crypto.randomUUID(),d=s?Sr({arr:r||[],n:s}):r;let y,v;d?.length?(v=p?jr.mint():jr.coolElegance(),y=d?.map((t=>({...t,[n]:Number(t[n])||0})))):(v=jr.coolElegance(),y=[{[n]:1},{[n]:1}]);const m={cursor:c&&d?.length?"crosshair":"default",...f};return e(Kd,{width:i,minHeight:o,children:t(Q_,{data:y,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:h,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:v,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:v,stopOpacity:0})]})}),e(t_,{domain:d?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(Gk,{type:a,dataKey:n,stroke:v,fill:`url(#${h})`,isAnimationActive:l}),d?.length&&c&&e(bd,{cursor:!1,formatter:u})]})})},eT=()=>{const t=l({ssr:!1});return e(u,{children:e(s,{bgColor:{base:"rgba(255, 143, 163, 0.9)",sm:"rgba(255, 117, 143, 0.9)",md:"rgba(255, 77, 109, 0.9)",lg:"rgba(201, 24, 74, 0.9)",xl:"rgba(164, 19, 60, 0.9)","2xl":"rgba(128, 15, 47, 0.9)"},color:{base:"black",md:"white"},position:"absolute",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",children:t})})},rT=({children:t,...r})=>e(f,{border:"solid 1px",borderColor:jr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),nT=({isSelected:t,children:r,...n})=>e(p,{paddingX:"1",fontSize:"sm",color:t?"brand.500":jr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),iT=({children:t,...r})=>e(h,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:jr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),oT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=rt(0);return n.length>=1&&e(iT,{children:t(d,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(d,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(y,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(gt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(y,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},aT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,name:l,register:u,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:h,...y}=r;let w;c||(w=e(Ot,{}));const x=u?u(l):void 0;return t(v,{as:d,flexDir:"column",isInvalid:Boolean(s),isDisabled:i,isReadOnly:o,isRequired:a,children:[t(d,{w:"full",justifyContent:h?"space-between":"auto",children:["left"===p&&e(m,{fontSize:n,m:"0",mr:"3",children:f}),e(g,{icon:w,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...x,...y}),"right"===p&&e(m,{fontSize:n,m:"0",ml:"3",children:f})]}),e(d,{w:"full",children:s&&e(b,{size:n,children:s})})]})},cT=({children:t,onSubmit:r,...n})=>e(d,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var lT=function(){return lT=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},lT.apply(this,arguments)};function uT(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var sT=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},fT={k:1e3,m:1e6,b:1e9},pT=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,l=t.decimalsLimit,u=void 0===l?2:l,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,h=void 0!==p&&p,d=t.prefix,y=void 0===d?"":d,v=t.transformRawValue,m=(void 0===v?function(t){return t}:v)(e);if("-"===m)return m;var g=h?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(sT(y),")")).test(m),w=RegExp("(\\d+)-?".concat(sT(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(sT(e),"g");return t.replace(r,"")}(y?x?m.replace(x,"").concat(O):m.replace(y,""):m,n),j=function(t,e){var r=sT(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,uT([n,o],g,!0)),A=j;if(!h){if(g.some((function(t){return t===j.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(sT(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=fT[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(j,o);P&&(A=String(P))}var M=b&&f?"-":"";if(o&&A.includes(o)){var E=j.split(o),k=E[0],_=E[1],T=u&&_?_.slice(0,u):_,C=c?"".concat(o).concat(T):"";return"".concat(M).concat(k).concat(C)}return"".concat(M).concat(A)},hT=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(sT(n)).concat(sT(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},dT=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,l=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var u=new RegExp("^\\d?-".concat(a?"".concat(sT(a),"?"):"","\\d")).test(e),s="."!==r?yT(e,r,u):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:i||0,maximumFractionDigits:20},p=(n?new Intl.NumberFormat(n.locale,n.currency?lT(lT({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),h=vT(p,t),d=hT(h,lT({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&v&&r&&(h=h.includes(r)?h.replace(RegExp("(\\d+)(".concat(sT(r),")(\\d+)"),"g"),"$1$2".concat(v)):d&&!l?h.replace(d,"".concat(r).concat(v).concat(d)):"".concat(h).concat(r).concat(v)),l&&y?"".concat(h).concat(y).concat(l):d&&y?h.replace(d,"".concat(y).concat(d)):d&&l?h.replace(d,"".concat(y).concat(l)):[h,y,l].join("")},yT=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(sT(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},vT=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var l=e.type,u=e.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?uT(uT([],t,!0),[r],!1):[r,u]:"currency"===l?r?t:uT(uT([],t,!0),[u],!1):"group"===l?c?t:uT(uT([],t,!0),[void 0!==n?n:u],!1):"decimal"===l?void 0!==o&&0===o?t:uT(uT([],t,!0),[void 0!==i?i:u],!1):uT(uT([],t,!0),"fraction"===l?[void 0!==o?u.slice(0,o):u]:[u],!1)}),[""]).join("")},mT={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},gT=function(t){return RegExp(/\d/,"gi").test(t)},bT=Q((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,l=t.className,u=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,h=void 0!==p&&p,d=t.maxLength,y=t.value,v=t.onValueChange,m=t.fixedDecimalLength,g=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,j=t.min,A=t.max,P=t.disableGroupSeparators,M=void 0!==P&&P,E=t.disableAbbreviations,k=void 0!==E&&E,_=t.decimalSeparator,T=t.groupSeparator,C=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,B=t.onKeyUp,L=t.transformRawValue,R=t.formatValueOnBlur,$=void 0===R||R,z=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(_&&gT(_))throw new Error("decimalSeparator cannot be a number");if(T&&gT(T))throw new Error("groupSeparator cannot be a number");var H=ot((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?lT(lT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?lT(lT({},t),{groupSeparator:e.value}):"decimal"===e.type?lT(lT({},t),{decimalSeparator:e.value}):t}),mT)}(O)}),[O]),V=_||H.decimalSeparator||"",U=T||H.groupSeparator||"";if(V&&U&&V===U&&!1===M)throw new Error("decimalSeparator cannot be the same as groupSeparator");var F={decimalSeparator:V,groupSeparator:U,disableGroupSeparators:M,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:V,groupSeparator:U,allowDecimals:n,decimalsLimit:s||m||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},q=rt((function(){return null!=f?dT(lT(lT({},F),{decimalScale:b,value:String(f)})):null!=y?dT(lT(lT({},F),{decimalScale:b,value:String(y)})):""})),X=q[0],Y=q[1],G=rt(!1),Z=G[0],J=G[1],Q=rt(0),nt=Q[0],at=Q[1],ct=rt(0),lt=ct[0],ut=ct[1],st=rt(null),ft=st[0],pt=st[1],ht=tt(null);et(e,(function(){return ht.current}));var dt=function(t,e){J(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var l=r.split("");return"Backspace"===n&&i[a]===o&&(l.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(l.splice(a,1),a+=1),{modifiedValue:c=l.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ft,stateValue:X,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=pT(lT({value:n},W));if(!(d&&o.replace(/-/g,"").length>d)){if(""===o||"-"===o||o===V)return v&&v(void 0,c,{float:null,formatted:"",value:""}),Y(o),void at(1);var a=V?o.replace(V,"."):o,l=parseFloat(a),u=dT(lT({value:o},F));if(null!=i){var s=i+(u.length-t.length);s=s<=0?w?w.length:0:s,at(s),ut(lt+1)}if(Y(u),v)v(o,c,{float:l,formatted:u,value:o})}};it((function(){null==y&&null==f&&Y("")}),[f,y]),it((function(){Z&&"-"!==X&&ht.current&&document.activeElement===ht.current&&ht.current.setSelectionRange(nt,nt)}),[X,nt,ht,Z,lt]);var yt=lT({type:"text",inputMode:"decimal",id:a,name:c,className:l,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;dt(r,n),C&&C(t)},onBlur:function(t){var e=t.target.value,r=pT(lT({value:e},W));if("-"===r||r===V||!r)return Y(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,V,m),i=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,V,void 0!==b?b:m),o=parseFloat(i.replace(V,".")),a=dT(lT(lT({},F),{value:i}));v&&$&&v(i,c,{float:o,formatted:a,value:i}),Y(a),I&&I(t)},onFocus:function(t){return D&&D(t),X?X.length:0},onKeyDown:function(t){var e=t.key;if(pt(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),at(X.length);var r=parseFloat(null!=y?String(y).replace(V,"."):pT(lT({value:X},W)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==A&&n>Number(A))return;var i=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;dt(String(i?n.toFixed(i):n).replace(".",V))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==X){var n=hT(X,{groupSeparator:U,decimalSeparator:V});if(n&&r&&r>X.length-n.length&&ht.current){var i=X.length-n.length;ht.current.setSelectionRange(i,i)}}B&&B(t)},placeholder:g,disabled:h,value:null==y||"-"===X||V&&X===V?X:dT(lT(lT({},F),{decimalScale:Z?void 0:b,value:String(y)})),ref:ht},z);if(u){var vt=u;return K.createElement(vt,lT({},yt))}return K.createElement("input",lT({},yt))}));bT.displayName="CurrencyInput";const wT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,name:l,label:u,register:s,errorMessage:f,helperText:p,leftAddon:h,leftElement:d,rightAddon:y,rightElement:g,type:M="text",...E}=r,k=Or(n),_=s?s(l):void 0,T="currency"===M?{as:bT,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return t(v,{isInvalid:Boolean(f),isDisabled:i,isReadOnly:o,isRequired:a,children:[u&&e(m,{size:n,children:u}),t(w,{size:n,children:[h&&e(x,{bg:"transparent",children:h}),d&&e(O,{w:"auto",ml:"2",children:d}),e(S,{size:n,spellCheck:c,paddingLeft:d&&"2.25em",paddingRight:g&&"2.25em",type:"currency"===M?"text":M,..._,...T,...E}),g&&e(j,{w:"auto",mr:"2",children:g}),y&&e(A,{children:y})]}),f&&e(b,{size:n,children:f}),p&&e(P,{fontSize:k,children:p})]})};var xT=t=>null==t;var OT=t=>!xT(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),ST=t=>{const e=t.constructor&&t.constructor.prototype;return OT(e)&&e.hasOwnProperty("isPrototypeOf")},jT="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function AT(t){let e;const r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(jT&&(t instanceof Blob||t instanceof FileList)||!r&&!OT(t))return t;if(e=r?[]:{},r||ST(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=AT(t[r]));else e=t}return e}var PT=t=>Array.isArray(t)?t.filter(Boolean):[],MT=t=>void 0===t,ET=(t,e,r)=>{if(!e||!OT(t))return r;const n=PT(e.split(/[,[\].]+?/)).reduce(((t,e)=>xT(t)?t:t[e]),t);return MT(n)||n===t?MT(t[e])?r:t[e]:n},kT=t=>"boolean"==typeof t;const _T="onBlur",TT="onChange",CT="onSubmit",DT="onTouched",IT="all",NT="max",BT="min",LT="maxLength",RT="minLength",$T="pattern",zT="required",HT="validate",VT=K.createContext(null);var UT=t=>OT(t)&&!Object.keys(t).length,FT=t=>Array.isArray(t)?t:[t];var WT=t=>"string"==typeof t,qT=t=>/^\w*$/.test(t),XT=t=>PT(t.replace(/["|']|\]/g,"").split(/\.|\[/)),YT=(t,e,r)=>{let n=-1;const i=qT(e)?[e]:XT(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=OT(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}t[e]=o,t=t[e]}return t},KT=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},GT=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},ZT=(t,e,r={})=>r.shouldFocus||MT(r.shouldFocus)?r.focusName||`${t}.${MT(r.focusIndex)?e:r.focusIndex}.`:"",JT=t=>({isOnSubmit:!t||t===CT,isOnBlur:t===_T,isOnChange:t===TT,isOnAll:t===IT,isOnTouch:t===DT});const QT=(t,e,r,n)=>{for(const i of r||Object.keys(t)){const r=ET(t,i);if(r){const{_f:t,...o}=r;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],i)&&!n)break;if(t.ref&&e(t.ref,t.name)&&!n)break;QT(o,e)}else OT(o)&&QT(o,e)}}};var tC=(t,e,r)=>{const n=PT(ET(t,r));return YT(n,"root",e[r]),YT(t,r,n),t},eC=t=>WT(t),rC=t=>t instanceof RegExp;const nC={value:!1,isValid:!1},iC={value:!0,isValid:!0};const oC={isValid:!1,value:null};function aC(t,e,r="validate"){if(eC(t)||Array.isArray(t)&&t.every(eC)||kT(t)&&!t)return{type:r,message:eC(t)?t:"",ref:e}}var cC=t=>OT(t)&&!rC(t)?t:{value:t,message:""},lC=async(t,e,r,n,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:s,max:f,pattern:p,validate:h,name:d,valueAsNumber:y,mount:v,disabled:m}=t._f,g=ET(e,d);if(!v||m)return{};const b=a?a[0]:o,w=t=>{n&&b.reportValidity&&(b.setCustomValidity(kT(t)?"":t||""),b.reportValidity())},x={},O="radio"===o.type;const S=(t=>"checkbox"===t.type)(o),j=O||S,A=(y||(t=>"file"===t.type)(o))&&MT(o.value)&&MT(g)||(t=>{if(!jT)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(o)&&""===o.value||""===g||Array.isArray(g)&&!g.length,P=KT.bind(null,d,r,x),M=(t,e,r,n=LT,i=RT)=>{const a=t?e:r;x[d]={type:t?n:i,message:a,ref:o,...P(t?n:i,a)}};if(i?!Array.isArray(g)||!g.length:c&&(!j&&(A||xT(g))||kT(g)&&!g||S&&!(t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter((t=>t&&t.checked&&!t.disabled)).map((t=>t.value));return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!MT(t[0].attributes.value)?MT(t[0].value)||""===t[0].value?iC:{value:t[0].value,isValid:!0}:iC:nC}return nC})(a).isValid||O&&!(E=a,Array.isArray(E)?E.reduce(((t,e)=>e&&e.checked&&!e.disabled?{isValid:!0,value:e.value}:t),oC):oC).isValid)){const{value:t,message:e}=eC(c)?{value:!!c,message:c}:cC(c);if(t&&(x[d]={type:zT,message:e,ref:b,...P(zT,e)},!r))return w(e),x}var E;if(!(A||xT(s)&&xT(f))){let t,e;const n=cC(f),i=cC(s);if(xT(g)||isNaN(g)){const r=o.valueAsDate||new Date(g),a=t=>new Date((new Date).toDateString()+" "+t),c="time"==o.type,l="week"==o.type;WT(n.value)&&g&&(t=c?a(g)>a(n.value):l?g>n.value:r>new Date(n.value)),WT(i.value)&&g&&(e=c?a(g)<a(i.value):l?g<i.value:r<new Date(i.value))}else{const r=o.valueAsNumber||(g?+g:g);xT(n.value)||(t=r>n.value),xT(i.value)||(e=r<i.value)}if((t||e)&&(M(!!t,n.message,i.message,NT,BT),!r))return w(x[d].message),x}if((l||u)&&!A&&(WT(g)||i&&Array.isArray(g))){const t=cC(l),e=cC(u),n=!xT(t.value)&&g.length>+t.value,i=!xT(e.value)&&g.length<+e.value;if((n||i)&&(M(n,t.message,e.message),!r))return w(x[d].message),x}if(p&&!A&&WT(g)){const{value:t,message:e}=cC(p);if(rC(t)&&!g.match(t)&&(x[d]={type:$T,message:e,ref:o,...P($T,e)},!r))return w(e),x}if(h)if("function"==typeof h){const t=aC(await h(g,e),b);if(t&&(x[d]={...t,...P(HT,t.message)},!r))return w(t.message),x}else if(OT(h)){let t={};for(const n in h){if(!UT(t)&&!r)break;const i=aC(await h[n](g,e),b,n);i&&(t={...i,...P(n,i.message)},w(i.message),r&&(x[d]=t))}if(!UT(t)&&(x[d]={ref:b,...t},!r))return x}return w(!0),x},uC=(t,e)=>[...t,...FT(e)],sC=t=>Array.isArray(t)?t.map((()=>{})):void 0;function fC(t,e,r){return[...t.slice(0,e),...FT(r),...t.slice(e)]}var pC=(t,e,r)=>Array.isArray(t)?(MT(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],hC=(t,e)=>[...FT(e),...FT(t)];var dC=(t,e)=>MT(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return PT(n).length?n:[]}(t,FT(e).sort(((t,e)=>t-e))),yC=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function vC(t,e){const r=Array.isArray(e)?e:qT(e)?[e]:XT(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=MT(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(OT(n)&&UT(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!MT(t[e]))return!1;return!0}(n))&&vC(t,r.slice(0,-1)),t}var mC=(t,e,r)=>(t[e]=r,t);function gC(t){const e=K.useContext(VT),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o}=t,[a,c]=K.useState(r._getFieldArray(n)),l=K.useRef(r._getFieldArray(n).map(GT)),u=K.useRef(a),s=K.useRef(n),f=K.useRef(!1);s.current=n,u.current=a,r._names.array.add(n),t.rules&&r.register(n,t.rules),function(t){const e=K.useRef(t);e.current=t,K.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===s.current||!e){const e=ET(t,s.current);Array.isArray(e)&&(c(e),l.current=e.map(GT))}},subject:r._subjects.array});const p=K.useCallback((t=>{f.current=!0,r._updateFieldArray(n,t)}),[r,n]);return K.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length))))))(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!JT(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=ET(t.errors,n),i=ET(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?YT(r._formState.errors,n,e):vC(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=ET(r._fields,n);!t||!t._f||JT(r._options.reValidateMode).isOnSubmit&&JT(r._options.mode).isOnSubmit||lC(t,r._formValues,r._options.criteriaMode===IT,r._options.shouldUseNativeValidation,!0).then((t=>!UT(t)&&r._subjects.state.next({errors:tC(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&QT(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),f.current=!1}),[a,n,r]),K.useEffect((()=>(!ET(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)})),[n,r,i,o]),{swap:K.useCallback(((t,e)=>{const i=r._getFieldArray(n);yC(i,t,e),yC(l.current,t,e),p(i),c(i),r._updateFieldArray(n,i,yC,{argA:t,argB:e},!1)}),[p,n,r]),move:K.useCallback(((t,e)=>{const i=r._getFieldArray(n);pC(i,t,e),pC(l.current,t,e),p(i),c(i),r._updateFieldArray(n,i,pC,{argA:t,argB:e},!1)}),[p,n,r]),prepend:K.useCallback(((t,e)=>{const i=FT(AT(t)),o=hC(r._getFieldArray(n),i);r._names.focus=ZT(n,0,e),l.current=hC(l.current,i.map(GT)),p(o),c(o),r._updateFieldArray(n,o,hC,{argA:sC(t)})}),[p,n,r]),append:K.useCallback(((t,e)=>{const i=FT(AT(t)),o=uC(r._getFieldArray(n),i);r._names.focus=ZT(n,o.length-1,e),l.current=uC(l.current,i.map(GT)),p(o),c(o),r._updateFieldArray(n,o,uC,{argA:sC(t)})}),[p,n,r]),remove:K.useCallback((t=>{const e=dC(r._getFieldArray(n),t);l.current=dC(l.current,t),p(e),c(e),r._updateFieldArray(n,e,dC,{argA:t})}),[p,n,r]),insert:K.useCallback(((t,e,i)=>{const o=FT(AT(e)),a=fC(r._getFieldArray(n),t,o);r._names.focus=ZT(n,t,i),l.current=fC(l.current,t,o.map(GT)),p(a),c(a),r._updateFieldArray(n,a,fC,{argA:t,argB:sC(e)})}),[p,n,r]),update:K.useCallback(((t,e)=>{const i=AT(e),o=mC(r._getFieldArray(n),t,i);l.current=[...o].map(((e,r)=>e&&r!==t?l.current[r]:GT())),p(o),c([...o]),r._updateFieldArray(n,o,mC,{argA:t,argB:i},!0,!1)}),[p,n,r]),replace:K.useCallback((t=>{const e=FT(AT(t));l.current=e.map(GT),p([...e]),c([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[p,n,r]),fields:K.useMemo((()=>a.map(((t,e)=>({...t,[i]:l.current[e]||GT()})))),[a,i])}}const bC=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=gC({control:n,name:r}),f=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(M,{children:[l.map(((n,o)=>e(M,{children:t(M,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(wT,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(E,{label:"Delete",children:e(d,{position:"absolute",top:"0",right:"0",children:e(p,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(d,{children:e(p,{size:"sm",onClick:()=>{u(f),a&&a(f)},ml:"auto",children:"+"})})]})},wC=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",showTooltip:c=!1,isAnimated:l=!1,formatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=xr({data:r,dataKey:n}),h=s?Sr({arr:r||[],n:s}):r;let d,y;h?.length?(y=p?jr.mint():jr.heroicRed(),d=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(y=jr.coolElegance(),d=[{[n]:0},{[n]:0}]);const v={cursor:c&&h?.length?"crosshair":"default",...f};return e(Kd,{width:i,minHeight:o,children:t(J_,{data:d,style:v,children:[e(t_,{domain:["dataMin","dataMax"],hide:!0}),e(Ik,{isAnimationActive:l,type:a,dataKey:n,stroke:y,strokeWidth:"2",dot:!1,scale:"threshold"}),h?.length&&c&&e(bd,{cursor:!1,formatter:u})]})})},xC=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:l={base:"md",md:"xl"},bodyMinHeight:u,bodyBackground:s="transparent",isDisabledCloseButton:f,...p})=>t(k,{isOpen:r,onClose:n,isCentered:c,size:l,...p,children:[e(_,{}),t(T,{minWidth:kC,children:[e(C,{children:i}),e(D,{isDisabled:f}),e(I,{minH:u||0,bg:s,children:a}),o&&e(N,{borderTop:"solid 1px",borderColor:jr.coolElegance(),children:o})]})]}),OC=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,l]=rt([]),[u,s]=rt(1);return t(d,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(p,{onClick:()=>{if(2===u)return i(void 0),l([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),l((t=>t.slice(0,-1))),s((t=>t-1))},isLoading:r,isDisabled:1===u,children:"Previous"}),e(p,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),l((e=>[...e,t])),s((t=>t+1))}},isLoading:r,isDisabled:!n,children:"Next"})]})},SC=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:l,register:u,errorMessage:s,helperText:f,label:p,...h}=r,d=Or(i),y=u?u(l):void 0;return t(v,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[p&&e(m,{size:i,children:p}),e(B,{icon:e(mt,{}),size:i,...y,...h,children:n}),s&&e(b,{size:i,children:s}),f&&e(P,{fontSize:d,children:f})]})},jC=L({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),AC=({boxSize:t=8,color:r="brand",...n})=>{const i="neutral"===r?jr.sonicSilver():"brand.500";return e(d,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(d,{width:t,height:t,animation:`${jC} 2000ms infinite linear`,children:e(ae,{boxSize:t,__css:{path:{fill:i}}})})})},PC=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[l,u]=rt(!0);return l?t(R,{...c,children:[o&&e($,{as:o}),e(z,{children:n}),i&&e(H,{as:i}),a&&e(V,{onClick:()=>{a(),u(!1)}})]}):null},MC=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,l;switch(a){case"error":l=ft;break;case"success":l=Ot;break;case"warning":l=Ht,c="yellow";break;case"loading":c="brand",l=Y;break;default:c="brand",l=Ht}return t(U,{as:d,colorScheme:c,justifyContent:"space-between",status:a,children:[t(d,{alignItems:"center",mr:"4",children:[e(F,{children:e(l,{size:"sm"})}),t(M,{children:[e(W,{children:n}),e(q,{children:r})]})]}),o&&e(X,{onClick:i})]})},EC=()=>{const t=l({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}},kC="22rem";export{tT as CfAreaChart,eT as CfBreakpointDebugger,rT as CfButtonGroup,nT as CfButtonGroupButton,iT as CfCard,oT as CfCarousel,aT as CfCheckbox,cT as CfForm,wT as CfInput,bC as CfInputArray,wC as CfLineChart,xC as CfModal,OC as CfPagination,SC as CfSelect,AC as CfSpinner,PC as CfTag,MC as CfToast,ft as IconAlert,pt as IconArrowDown,ht as IconArrowUp,pe as IconAvax,dt as IconBank,yt as IconBarChart,he as IconBch,de as IconBtc,vt as IconCalendar,mt as IconCaretDown,gt as IconCaretLeft,bt as IconCaretRight,wt as IconCaretUp,xt as IconCent,Ot as IconCheck,St as IconChecking,jt as IconCircleCheck,At as IconClose,Pt as IconConnect,Mt as IconCopy,Et as IconDollar,kt as IconDollarBill,_t as IconDownload,Tt as IconEdit,Ct as IconEnter,Dt as IconEnterInverted,ye as IconEth,It as IconExchange,Nt as IconFilter,Bt as IconHelp,Lt as IconHistory,Rt as IconHome,$t as IconIndicatorDown,zt as IconIndicatorUp,Ht as IconInfo,ve as IconLink,Vt as IconLock,me as IconLtc,Ut as IconMail,Ft as IconMenu,Wt as IconMore,qt as IconNotification,Xt as IconOverview,Yt as IconPercent,Kt as IconPieChart,Gt as IconPlus,fe as IconRefresh,Zt as IconReports,Jt as IconReservesSuccess,Qt as IconReservesWarning,te as IconSearch,ee as IconSettings,re as IconSettlement,ne as IconSignIn,ie as IconSignOut,oe as IconSort,ae as IconSpinner,ce as IconSupport,le as IconTrash,ue as IconUpload,se as IconUser,ge as IconXlm,er as aggregateAmounts,Hr as coreTheme,fr as dateToTimestamp,pr as formatPercentage,wr as formatUsd,xr as getDelta,kC as layoutMinWidth,Sr as pullFromEnd,jr as uiColors,Pr as usdToNumber,EC as useCfBreakpoint};
18
18
  //# sourceMappingURL=index.js.map