@wavv/ui 2.0.0-alpha.13 → 2.0.0-alpha.15
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/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/package.json +1 -1
package/build/esm/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/"production"===process.env.NODE_ENV?xE.exports=function(){if(bE)return CE;bE=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case s:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return b(e)===u}return CE.AsyncMode=s,CE.ConcurrentMode=u,CE.ContextConsumer=l,CE.ContextProvider=a,CE.Element=t,CE.ForwardRef=c,CE.Fragment=r,CE.Lazy=h,CE.Memo=p,CE.Portal=n,CE.Profiler=i,CE.StrictMode=o,CE.Suspense=d,CE.isAsyncMode=function(e){return w(e)||b(e)===s},CE.isConcurrentMode=w,CE.isContextConsumer=function(e){return b(e)===l},CE.isContextProvider=function(e){return b(e)===a},CE.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},CE.isForwardRef=function(e){return b(e)===c},CE.isFragment=function(e){return b(e)===r},CE.isLazy=function(e){return b(e)===h},CE.isMemo=function(e){return b(e)===p},CE.isPortal=function(e){return b(e)===n},CE.isProfiler=function(e){return b(e)===i},CE.isStrictMode=function(e){return b(e)===o},CE.isSuspense=function(e){return b(e)===d},CE.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},CE.typeOf=b,CE}():xE.exports=(SE||(SE=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var g=e.type;switch(g){case s:case u:case r:case i:case o:case d:return g;default:var m=g&&g.$$typeof;switch(m){case l:case c:case h:case p:case a:return m;default:return f}}case n:return f}}}var w=s,x=u,C=l,S=a,k=t,E=c,O=r,D=h,_=p,P=n,T=i,A=o,M=d,j=!1;function L(e){return b(e)===u}kE.AsyncMode=w,kE.ConcurrentMode=x,kE.ContextConsumer=C,kE.ContextProvider=S,kE.Element=k,kE.ForwardRef=E,kE.Fragment=O,kE.Lazy=D,kE.Memo=_,kE.Portal=P,kE.Profiler=T,kE.StrictMode=A,kE.Suspense=M,kE.isAsyncMode=function(e){return j||(j=!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.")),L(e)||b(e)===s},kE.isConcurrentMode=L,kE.isContextConsumer=function(e){return b(e)===l},kE.isContextProvider=function(e){return b(e)===a},kE.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},kE.isForwardRef=function(e){return b(e)===c},kE.isFragment=function(e){return b(e)===r},kE.isLazy=function(e){return b(e)===h},kE.isMemo=function(e){return b(e)===p},kE.isPortal=function(e){return b(e)===n},kE.isProfiler=function(e){return b(e)===i},kE.isStrictMode=function(e){return b(e)===o},kE.isSuspense=function(e){return b(e)===d},kE.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},kE.typeOf=b}()),kE);var EE=xE.exports,OE=tS,DE=nS;var _E=function(e){return"number"==typeof e||DE(e)&&"[object Number]"==OE(e)},PE=Mt(_E),TE=_E;var AE=Mt((function(e){return TE(e)&&e!=+e})),ME=function(e){return 0===e?0:e>0?1:-1},jE=function(e){return wE(e)&&e.indexOf("%")===e.length-1},LE=function(e){return PE(e)&&!AE(e)},IE=function(e){return LE(e)||wE(e)},RE=0,NE=function(e){var t=++RE;return"".concat(e||"").concat(t)},$E=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!LE(e)&&!wE(e))return r;if(jE(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return AE(n)&&(n=r),o&&n>t&&(n=t),n},zE=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},BE=function(e,t){return LE(e)&&LE(t)?function(n){return e+n*(t-e)}:function(){return t}};function FE(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):hE(e,t))===n})):null}function KE(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function VE(e){return VE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VE(e)}var HE=["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"],UE=["points","pathLength"],WE={svg:["viewBox","children"],polygon:UE,polyline:UE},ZE=["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"],qE=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(p(e)&&(n=e.props),!fS(n))return null;var r={};return Object.keys(n).forEach((function(e){ZE.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})})),r},GE=function(e,t,n){if(!fS(e)||"object"!==VE(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];ZE.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r},YE=["children"],XE=["children"];function JE(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function QE(e){return QE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QE(e)}var eO={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},tO=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},nO=null,rO=null,oO=function e(t){if(t===nO&&Array.isArray(rO))return rO;var n=[];return f.forEach(t,(function(t){gE(t)||(EE.isFragment(t)?n=n.concat(e(t.props.children)):n.push(t))})),rO=n,nO=t,n};function iO(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return tO(e)})):[tO(t)],oO(e).forEach((function(e){var t=hE(e,"type.displayName")||hE(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function aO(e,t){var n=iO(e,t);return n&&n[0]}var lO=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!LE(n)||n<=0||!LE(r)||r<=0)},sO=["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"],uO=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(p(e)&&(r=e.props),!fS(r))return null;var o={};return Object.keys(r).forEach((function(e){var i;(function(e,t,n,r){var o,i=null!==(o=null==WE?void 0:WE[r])&&void 0!==o?o:[];return!vS(e)&&(r&&i.includes(t)||HE.includes(t))||n&&ZE.includes(t)})(null===(i=r)||void 0===i?void 0:i[e],e,t,n)&&(o[e]=r[e])})),o},cO=function e(t,n){if(t===n)return!0;var r=f.count(t);if(r!==f.count(n))return!1;if(0===r)return!0;if(1===r)return dO(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!dO(i,a))return!1}return!0},dO=function(e,t){if(gE(e)&&gE(t))return!0;if(!gE(e)&&!gE(t)){var n=e.props||{},r=n.children,o=JE(n,YE),i=t.props||{},a=i.children,l=JE(i,XE);return r&&a?KE(o,l)&&cO(r,a):!r&&!a&&KE(o,l)}return!1},fO=function(e,t){var n=[],r={};return oO(e).forEach((function(e,o){if(function(e){return e&&e.type&&wE(e.type)&&sO.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=tO(e.type),a=t[i]||{},l=a.handler,s=a.once;if(l&&(!s||!r[i])){var u=l(e,i,o);n.push(u),r[i]=!0}}})),n},pO=["children","width","height","viewBox","className","style","title","desc"];function hO(){return hO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hO.apply(this,arguments)}function gO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mO(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,l=e.style,s=e.title,u=e.desc,c=gO(e,pO),d=i||{width:n,height:r,x:0,y:0},f=$C("recharts-surface",a);return o.createElement("svg",hO({},uO(c,!0,"svg"),{className:f,width:n,height:r,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),o.createElement("title",null,s),o.createElement("desc",null,u),t)}var vO=["children","className"];function yO(){return yO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yO.apply(this,arguments)}function bO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wO=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=bO(e,vO),a=$C("recharts-layer",r);return o.createElement("g",yO({className:a},uO(i,!0),{ref:t}),n)})),xO="production"!==process.env.NODE_ENV,CO=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(xO&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,(function(){return r[i++]})))}};var SO=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i},kO=SO;var EO=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:kO(e,t,n)},OO=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var DO=function(e){return OO.test(e)};var _O=function(e){return e.split("")},PO="\\ud800-\\udfff",TO="["+PO+"]",AO="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",MO="\\ud83c[\\udffb-\\udfff]",jO="[^"+PO+"]",LO="(?:\\ud83c[\\udde6-\\uddff]){2}",IO="[\\ud800-\\udbff][\\udc00-\\udfff]",RO="(?:"+AO+"|"+MO+")"+"?",NO="[\\ufe0e\\ufe0f]?",$O=NO+RO+("(?:\\u200d(?:"+[jO,LO,IO].join("|")+")"+NO+RO+")*"),zO="(?:"+[jO+AO+"?",AO,LO,IO,TO].join("|")+")",BO=RegExp(MO+"(?="+MO+")|"+zO+$O,"g");var FO=function(e){return e.match(BO)||[]},KO=_O,VO=DO,HO=FO;var UO=function(e){return VO(e)?HO(e):KO(e)},WO=EO,ZO=DO,qO=UO,GO=tE;var YO=function(e){return function(t){t=GO(t);var n=ZO(t)?qO(t):void 0,r=n?n[0]:t.charAt(0),o=n?WO(n,1).join(""):t.slice(1);return r[e]()+o}},XO=Mt(YO("toUpperCase"));function JO(e){return function(){return e}}const QO=Math.cos,eD=Math.sin,tD=Math.sqrt,nD=Math.PI,rD=2*nD,oD=Math.PI,iD=2*oD,aD=1e-6,lD=iD-aD;function sD(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class uD{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?sD:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return sD;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,l=n-e,s=r-t,u=i-e,c=a-t,d=u*u+c*c;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>aD)if(Math.abs(c*l-s*u)>aD&&o){let f=n-i,p=r-a,h=l*l+s*s,g=f*f+p*p,m=Math.sqrt(h),v=Math.sqrt(d),y=o*Math.tan((oD-Math.acos((h+d-g)/(2*m*v)))/2),b=y/v,w=y/m;Math.abs(b-1)>aD&&this._append`L${e+b*u},${t+b*c}`,this._append`A${o},${o},0,0,${+(c*f>u*p)},${this._x1=e+w*l},${this._y1=t+w*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),l=n*Math.sin(r),s=e+a,u=t+l,c=1^i,d=i?r-o:o-r;null===this._x1?this._append`M${s},${u}`:(Math.abs(this._x1-s)>aD||Math.abs(this._y1-u)>aD)&&this._append`L${s},${u}`,n&&(d<0&&(d=d%iD+iD),d>lD?this._append`A${n},${n},0,1,${c},${e-a},${t-l}A${n},${n},0,1,${c},${this._x1=s},${this._y1=u}`:d>aD&&this._append`A${n},${n},0,${+(d>=oD)},${c},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function cD(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new uD(t)}function dD(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function fD(e){this._context=e}function pD(e){return new fD(e)}function hD(e){return e[0]}function gD(e){return e[1]}function mD(e,t){var n=JO(!0),r=null,o=pD,i=null,a=cD(l);function l(l){var s,u,c,d=(l=dD(l)).length,f=!1;for(null==r&&(i=o(c=a())),s=0;s<=d;++s)!(s<d&&n(u=l[s],s,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(u,s,l),+t(u,s,l));if(c)return i=null,c+""||null}return e="function"==typeof e?e:void 0===e?hD:JO(e),t="function"==typeof t?t:void 0===t?gD:JO(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:JO(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:JO(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:JO(!!e),l):n},l.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),l):o},l.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),l):r},l}function vD(e,t,n){var r=null,o=JO(!0),i=null,a=pD,l=null,s=cD(u);function u(u){var c,d,f,p,h,g=(u=dD(u)).length,m=!1,v=new Array(g),y=new Array(g);for(null==i&&(l=a(h=s())),c=0;c<=g;++c){if(!(c<g&&o(p=u[c],c,u))===m)if(m=!m)d=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=c-1;f>=d;--f)l.point(v[f],y[f]);l.lineEnd(),l.areaEnd()}m&&(v[c]=+e(p,c,u),y[c]=+t(p,c,u),l.point(r?+r(p,c,u):v[c],n?+n(p,c,u):y[c]))}if(h)return l=null,h+""||null}function c(){return mD().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?hD:JO(+e),t="function"==typeof t?t:JO(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?gD:JO(+n),u.x=function(t){return arguments.length?(e="function"==typeof t?t:JO(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:JO(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:JO(+e),u):r},u.y=function(e){return arguments.length?(t="function"==typeof e?e:JO(+e),n=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:JO(+e),u):t},u.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:JO(+e),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:JO(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),u):i},u}fD.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class yD{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var bD={draw(e,t){const n=tD(t/nD);e.moveTo(n,0),e.arc(0,0,n,0,rD)}},wD={draw(e,t){const n=tD(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const xD=tD(1/3),CD=2*xD;var SD={draw(e,t){const n=tD(t/CD),r=n*xD;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},kD={draw(e,t){const n=tD(t),r=-n/2;e.rect(r,r,n,n)}};const ED=eD(nD/10)/eD(7*nD/10),OD=eD(rD/10)*ED,DD=-QO(rD/10)*ED;var _D={draw(e,t){const n=tD(.8908130915292852*t),r=OD*n,o=DD*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=rD*t/5,a=QO(i),l=eD(i);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*o,l*r+a*o)}e.closePath()}};const PD=tD(3);var TD={draw(e,t){const n=-tD(t/(3*PD));e.moveTo(0,2*n),e.lineTo(-PD*n,-n),e.lineTo(PD*n,-n),e.closePath()}};const AD=-.5,MD=tD(3)/2,jD=1/tD(12),LD=3*(jD/2+1);var ID={draw(e,t){const n=tD(t/LD),r=n/2,o=n*jD,i=r,a=n*jD+n,l=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,s),e.lineTo(AD*r-MD*o,MD*r+AD*o),e.lineTo(AD*i-MD*a,MD*i+AD*a),e.lineTo(AD*l-MD*s,MD*l+AD*s),e.lineTo(AD*r+MD*o,AD*o-MD*r),e.lineTo(AD*i+MD*a,AD*a-MD*i),e.lineTo(AD*l+MD*s,AD*s-MD*l),e.closePath()}};function RD(){}function ND(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function $D(e){this._context=e}function zD(e){this._context=e}function BD(e){this._context=e}function FD(e){this._context=e}function KD(e){return e<0?-1:1}function VD(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(KD(i)+KD(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function HD(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function UD(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function WD(e){this._context=e}function ZD(e){this._context=new qD(e)}function qD(e){this._context=e}function GD(e){this._context=e}function YD(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function XD(e,t){this._context=e,this._t=t}function JD(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function QD(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function e_(e,t){return e[t]}function t_(e){const t=[];return t.key=e,t}function n_(e){return n_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n_(e)}$D.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:ND(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ND(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},zD.prototype={areaStart:RD,areaEnd:RD,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ND(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BD.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ND(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},FD.prototype={areaStart:RD,areaEnd:RD,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},WD.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:UD(this,this._t0,HD(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,UD(this,HD(this,n=VD(this,e,t)),n);break;default:UD(this,this._t0,n=VD(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(ZD.prototype=Object.create(WD.prototype)).point=function(e,t){WD.prototype.point.call(this,t,e)},qD.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},GD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=YD(e),o=YD(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},XD.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var r_=["type","size","sizeType"];function o_(){return o_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o_.apply(this,arguments)}function i_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i_(Object(n),!0).forEach((function(t){l_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l_(e,t,n){return t=function(e){var t=function(e,t){if("object"!=n_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=n_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n_(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u_={symbolCircle:bD,symbolCross:wD,symbolDiamond:SD,symbolSquare:kD,symbolStar:_D,symbolTriangle:TD,symbolWye:ID},c_=Math.PI/180,d_=function(e){var t,n,r=e.type,i=void 0===r?"circle":r,a=e.size,l=void 0===a?64:a,s=e.sizeType,u=void 0===s?"area":s,c=a_(a_({},s_(e,r_)),{},{type:i,size:l,sizeType:u}),d=c.className,f=c.cx,p=c.cy,h=uO(c,!0);return f===+f&&p===+p&&l===+l?o.createElement("path",o_({},h,{className:$C("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(p,")"),d:(t=function(e){var t="symbol".concat(XO(e));return u_[t]||bD}(i),n=function(e,t){let n=null,r=cD(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:JO(e||bD),t="function"==typeof t?t:JO(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:JO(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:JO(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(t).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*c_;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(l,u,i)),n())})):null};function f_(e){return f_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f_(e)}function p_(){return p_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p_.apply(this,arguments)}function h_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x_(r.key),r)}}function m_(e,t,n){return t=y_(t),function(e,t){if(t&&("object"===f_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v_()?Reflect.construct(t,n||[],y_(e).constructor):t.apply(e,n))}function v_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v_=function(){return!!e})()}function y_(e){return y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y_(e)}function b_(e,t){return b_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b_(e,t)}function w_(e,t,n){return(t=x_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x_(e){var t=function(e,t){if("object"!=f_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f_(t)?t:String(t)}d_.registerSymbol=function(e,t){u_["symbol".concat(XO(e))]=t};var C_=32,S_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m_(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b_(e,t)}(t,x),n=t,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=C_/6,i=C_/3,a=e.inactive?t:e.color;if("plainline"===e.type)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:C_,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(C_,"M").concat(2*i,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return o.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(C_,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(e.legendIcon)){var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h_(Object(n),!0).forEach((function(t){w_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete l.legendIcon,o.cloneElement(e.legendIcon,l)}return o.createElement(d_,{fill:a,cx:n,cy:n,size:C_,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,l=t.inactiveColor,s={x:0,y:0,width:C_,height:C_},u={display:"horizontal"===i?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var i=t.formatter||a,d=$C(w_(w_({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",t.inactive));if("none"===t.type)return null;var f=vS(t.value)?null:t.value;CO(!vS(t.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=t.inactive?l:t.color;return o.createElement("li",p_({className:d,style:u,key:"legend-item-".concat(n)},GE(e.props,t,n)),o.createElement(mO,{width:r,height:r,viewBox:s,style:c},e.renderIcon(t)),o.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(f,t,n):f))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],r&&g_(n.prototype,r),i&&g_(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();w_(S_,"displayName","Legend"),w_(S_,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var k_=yk;var E_=yk,O_=bk,D_=Rk;var __=yk,P_=function(){this.__data__=new k_,this.size=0},T_=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},A_=function(e){return this.__data__.get(e)},M_=function(e){return this.__data__.has(e)},j_=function(e,t){var n=this.__data__;if(n instanceof E_){var r=n.__data__;if(!O_||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new D_(r)}return n.set(e,t),this.size=n.size,this};function L_(e){var t=this.__data__=new __(e);this.size=t.size}L_.prototype.clear=P_,L_.prototype.delete=T_,L_.prototype.get=A_,L_.prototype.has=M_,L_.prototype.set=j_;var I_=L_;var R_=Rk,N_=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$_=function(e){return this.__data__.has(e)};function z_(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new R_;++t<n;)this.add(e[t])}z_.prototype.add=z_.prototype.push=N_,z_.prototype.has=$_;var B_=z_;var F_=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var K_=function(e,t){return e.has(t)},V_=B_,H_=F_,U_=K_;var W_=function(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new V_:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!H_(t,(function(e,t){if(!U_(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var Z_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var q_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},G_=VC.Uint8Array,Y_=tk,X_=W_,J_=Z_,Q_=q_,eP=HC?HC.prototype:void 0,tP=eP?eP.valueOf:void 0;var nP=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new G_(e),new G_(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Y_(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=J_;case"[object Set]":var s=1&r;if(l||(l=Q_),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=X_(l(e),l(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(tP)return tP.call(e)==tP.call(t)}return!1};var rP=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},oP=rP,iP=zC;var aP=function(e,t,n){var r=t(e);return iP(e)?r:oP(r,n(e))};var lP=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var sP=lP,uP=function(){return[]},cP=Object.prototype.propertyIsEnumerable,dP=Object.getOwnPropertySymbols,fP=dP?function(e){return null==e?[]:(e=Object(e),sP(dP(e),(function(t){return cP.call(e,t)})))}:uP,pP=fP;var hP=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},gP=tS,mP=nS;var vP=function(e){return mP(e)&&"[object Arguments]"==gP(e)},yP=nS,bP=Object.prototype,wP=bP.hasOwnProperty,xP=bP.propertyIsEnumerable,CP=vP(function(){return arguments}())?vP:function(e){return yP(e)&&wP.call(e,"callee")&&!xP.call(e,"callee")},SP={exports:{}};var kP=function(){return!1};!function(e,t){var n=VC,r=kP,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}(SP,SP.exports);var EP=SP.exports,OP=/^(?:0|[1-9]\d*)$/;var DP=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&OP.test(e))&&e>-1&&e%1==0&&e<t};var _P=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},PP=tS,TP=_P,AP=nS,MP={};MP["[object Float32Array]"]=MP["[object Float64Array]"]=MP["[object Int8Array]"]=MP["[object Int16Array]"]=MP["[object Int32Array]"]=MP["[object Uint8Array]"]=MP["[object Uint8ClampedArray]"]=MP["[object Uint16Array]"]=MP["[object Uint32Array]"]=!0,MP["[object Arguments]"]=MP["[object Array]"]=MP["[object ArrayBuffer]"]=MP["[object Boolean]"]=MP["[object DataView]"]=MP["[object Date]"]=MP["[object Error]"]=MP["[object Function]"]=MP["[object Map]"]=MP["[object Number]"]=MP["[object Object]"]=MP["[object RegExp]"]=MP["[object Set]"]=MP["[object String]"]=MP["[object WeakMap]"]=!1;var jP=function(e){return AP(e)&&TP(e.length)&&!!MP[PP(e)]};var LP=function(e){return function(t){return e(t)}},IP={exports:{}};!function(e,t){var n=BC,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(IP,IP.exports);var RP=IP.exports,NP=jP,$P=LP,zP=RP&&RP.isTypedArray,BP=zP?$P(zP):NP,FP=hP,KP=CP,VP=zC,HP=EP,UP=DP,WP=BP,ZP=Object.prototype.hasOwnProperty;var qP=function(e,t){var n=VP(e),r=!n&&KP(e),o=!n&&!r&&HP(e),i=!n&&!r&&!o&&WP(e),a=n||r||o||i,l=a?FP(e.length,String):[],s=l.length;for(var u in e)!t&&!ZP.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||UP(u,s))||l.push(u);return l},GP=Object.prototype;var YP=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||GP)};var XP=function(e,t){return function(n){return e(t(n))}},JP=XP(Object.keys,Object),QP=YP,eT=JP,tT=Object.prototype.hasOwnProperty;var nT=function(e){if(!QP(e))return eT(e);var t=[];for(var n in Object(e))tT.call(e,n)&&"constructor"!=n&&t.push(n);return t},rT=mS,oT=_P;var iT=function(e){return null!=e&&oT(e.length)&&!rT(e)},aT=qP,lT=nT,sT=iT;var uT=function(e){return sT(e)?aT(e):lT(e)},cT=aP,dT=pP,fT=uT;var pT=function(e){return cT(e,fT,dT)},hT=pT,gT=Object.prototype.hasOwnProperty;var mT=function(e,t,n,r,o,i){var a=1&n,l=hT(e),s=l.length;if(s!=hT(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:gT.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<s;){var g=e[c=l[u]],m=t[c];if(r)var v=a?r(m,g,c,t,e,i):r(g,m,c,e,t,i);if(!(void 0===v?g===m||o(g,m,n,r,i):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p},vT=RS(VC,"DataView"),yT=RS(VC,"Promise"),bT=RS(VC,"Set"),wT=vT,xT=bk,CT=yT,ST=bT,kT=RS(VC,"WeakMap"),ET=tS,OT=CS,DT="[object Map]",_T="[object Promise]",PT="[object Set]",TT="[object WeakMap]",AT="[object DataView]",MT=OT(wT),jT=OT(xT),LT=OT(CT),IT=OT(ST),RT=OT(kT),NT=ET;(wT&&NT(new wT(new ArrayBuffer(1)))!=AT||xT&&NT(new xT)!=DT||CT&&NT(CT.resolve())!=_T||ST&&NT(new ST)!=PT||kT&&NT(new kT)!=TT)&&(NT=function(e){var t=ET(e),n="[object Object]"==t?e.constructor:void 0,r=n?OT(n):"";if(r)switch(r){case MT:return AT;case jT:return DT;case LT:return _T;case IT:return PT;case RT:return TT}return t});var $T=I_,zT=W_,BT=nP,FT=mT,KT=NT,VT=zC,HT=EP,UT=BP,WT="[object Arguments]",ZT="[object Array]",qT="[object Object]",GT=Object.prototype.hasOwnProperty;var YT=function(e,t,n,r,o,i){var a=VT(e),l=VT(t),s=a?ZT:KT(e),u=l?ZT:KT(t),c=(s=s==WT?qT:s)==qT,d=(u=u==WT?qT:u)==qT,f=s==u;if(f&&HT(e)){if(!HT(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new $T),a||UT(e)?zT(e,t,n,r,o,i):BT(e,t,s,n,r,o,i);if(!(1&n)){var p=c&>.call(e,"__wrapped__"),h=d&>.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new $T),o(g,m,n,r,i)}}return!!f&&(i||(i=new $T),FT(e,t,n,r,o,i))},XT=YT,JT=nS;var QT=function e(t,n,r,o,i){return t===n||(null==t||null==n||!JT(t)&&!JT(n)?t!=t&&n!=n:XT(t,n,r,o,e,i))},eA=I_,tA=QT;var nA=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var s=(l=n[o])[0],u=e[s],c=l[1];if(a&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new eA;if(r)var f=r(u,c,s,e,t,d);if(!(void 0===f?tA(c,u,3,r,d):f))return!1}}return!0},rA=dS;var oA=function(e){return e==e&&!rA(e)},iA=oA,aA=uT;var lA=function(e){for(var t=aA(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,iA(o)]}return t};var sA=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},uA=nA,cA=lA,dA=sA;var fA=function(e){var t=cA(e);return 1==t.length&&t[0][2]?dA(t[0][0],t[0][1]):function(n){return n===e||uA(n,e,t)}};var pA=function(e,t){return null!=e&&t in Object(e)},hA=aE,gA=CP,mA=zC,vA=DP,yA=_P,bA=sE;var wA=function(e,t,n){for(var r=-1,o=(t=hA(t,e)).length,i=!1;++r<o;){var a=bA(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&yA(o)&&vA(a,o)&&(mA(e)||gA(e))},xA=pA,CA=wA;var SA=function(e,t){return null!=e&&CA(e,t,xA)},kA=QT,EA=pE,OA=SA,DA=cS,_A=oA,PA=sA,TA=sE;var AA=function(e,t){return DA(e)&&_A(t)?PA(TA(e),t):function(n){var r=EA(n,e);return void 0===r&&r===t?OA(n,e):kA(t,r,3)}};var MA=function(e){return e};var jA=function(e){return function(t){return null==t?void 0:t[e]}},LA=dE;var IA=function(e){return function(t){return LA(t,e)}},RA=jA,NA=IA,$A=cS,zA=sE;var BA=fA,FA=AA,KA=MA,VA=zC,HA=function(e){return $A(e)?RA(zA(e)):NA(e)};var UA=function(e){return"function"==typeof e?e:null==e?KA:"object"==typeof e?VA(e)?FA(e[0],e[1]):BA(e):HA(e)};var WA=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var ZA=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},qA=WA,GA=function(e){return e!=e},YA=ZA;var XA=function(e,t,n){return t==t?YA(e,t,n):qA(e,GA,n)},JA=XA;var QA=function(e,t){return!!(null==e?0:e.length)&&JA(e,t,0)>-1};var eM=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var tM=bT,nM=function(){},rM=tM&&1/q_(new tM([,-0]))[1]==1/0?function(e){return new tM(e)}:nM,oM=B_,iM=QA,aM=eM,lM=K_,sM=rM,uM=q_;var cM=function(e,t,n){var r=-1,o=iM,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=aM;else if(i>=200){var u=t?null:sM(e);if(u)return uM(u);a=!1,o=lM,s=new oM}else s=t?[]:l;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(c)}else o(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l},dM=UA,fM=cM;var pM=function(e,t){return e&&e.length?fM(e,dM(t)):[]},hM=Mt(pM);function gM(e,t,n){return!0===t?hM(e,n):vS(t)?hM(e,t):e}function mM(e){return mM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mM(e)}var vM=["ref"];function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yM(Object(n),!0).forEach((function(t){OM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DM(r.key),r)}}function xM(e,t,n){return t=SM(t),function(e,t){if(t&&("object"===mM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kM(e)}(e,CM()?Reflect.construct(t,n||[],SM(e).constructor):t.apply(e,n))}function CM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CM=function(){return!!e})()}function SM(e){return SM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SM(e)}function kM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EM(e,t){return EM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EM(e,t)}function OM(e,t,n){return(t=DM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DM(e){var t=function(e,t){if("object"!=mM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mM(t)?t:String(t)}function _M(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function PM(e){return e.value}var TM=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OM(kM(e=xM(this,t,[].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&EM(e,t)}(t,x),n=t,i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&LE(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(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,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?bM({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,s=r.chartWidth,u=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((u||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),bM(bM({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,l=t.payloadUniqBy,s=t.payload,u=bM(bM({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return o.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(t){e.wrapperNode=t}},function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if("function"==typeof e)return o.createElement(e,t);t.ref;var n=_M(t,vM);return o.createElement(S_,n)}(n,bM(bM({},this.props),{},{payload:gM(s,l,PM)})))}}])&&wM(n.prototype,r),i&&wM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();OM(TM,"displayName","Legend"),OM(TM,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var AM=CP,MM=zC,jM=HC?HC.isConcatSpreadable:void 0;var LM=rP,IM=function(e){return MM(e)||AM(e)||!!(jM&&e&&e[jM])};var RM=function e(t,n,r,o,i){var a=-1,l=t.length;for(r||(r=IM),i||(i=[]);++a<l;){var s=t[a];n>0&&r(s)?n>1?e(s,n-1,r,o,i):LM(i,s):o||(i[i.length]=s)}return i};var NM=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}},$M=NM(),zM=uT;var BM=function(e,t){return e&&$M(e,t,zM)},FM=iT;var KM=function(e,t){return function(n,r){if(null==n)return n;if(!FM(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},VM=KM(BM),HM=VM,UM=iT;var WM=function(e,t){var n=-1,r=UM(e)?Array(e.length):[];return HM(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};var ZM=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},qM=iS;var GM=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=qM(e),a=void 0!==t,l=null===t,s=t==t,u=qM(t);if(!l&&!u&&!i&&e>t||i&&a&&s&&!l&&!u||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||l&&n&&o||!a&&o||!s)return-1}return 0};var YM=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=GM(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index},XM=Zk,JM=dE,QM=UA,ej=WM,tj=ZM,nj=LP,rj=YM,oj=MA,ij=zC;var aj=function(e,t,n){t=t.length?XM(t,(function(e){return ij(e)?function(t){return JM(t,1===e.length?e[0]:e)}:e})):[oj];var r=-1;t=XM(t,nj(QM));var o=ej(e,(function(e,n,o){return{criteria:XM(t,(function(t){return t(e)})),index:++r,value:e}}));return tj(o,(function(e,t){return rj(e,t,n)}))};var lj=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},sj=lj,uj=Math.max;var cj=function(e,t,n){return t=uj(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=uj(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),sj(e,this,l)}};var dj=function(e){return function(){return e}},fj=RS,pj=function(){try{var e=fj(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),hj=dj,gj=pj,mj=gj?function(e,t){return gj(e,"toString",{configurable:!0,enumerable:!1,value:hj(t),writable:!0})}:MA,vj=mj,yj=Date.now;var bj=function(e){var t=0,n=0;return function(){var r=yj(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(vj),wj=MA,xj=cj,Cj=bj;var Sj=tk,kj=iT,Ej=DP,Oj=dS;var Dj=function(e,t,n){if(!Oj(n))return!1;var r=typeof t;return!!("number"==r?kj(n)&&Ej(t,n.length):"string"==r&&t in n)&&Sj(n[t],e)},_j=RM,Pj=aj,Tj=Dj,Aj=Mt(function(e,t){return Cj(xj(e,t,wj),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Tj(e,t[0],t[1])?t=[]:n>2&&Tj(t[0],t[1],t[2])&&(t=[t[0]]),Pj(e,_j(t,1),[])})));function Mj(e){return Mj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mj(e)}function jj(){return jj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jj.apply(this,arguments)}function Lj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ij(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ij(e,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 Ij(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rj(Object(n),!0).forEach((function(t){$j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $j(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Mj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Mj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zj(e){return Array.isArray(e)&&IE(e[0])&&IE(e[1])?e.join(" ~ "):e}var Bj=function(e){var t=e.separator,n=void 0===t?" : ":t,r=e.contentStyle,i=void 0===r?{}:r,a=e.itemStyle,l=void 0===a?{}:a,s=e.labelStyle,u=void 0===s?{}:s,c=e.payload,d=e.formatter,f=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,g=e.label,m=e.labelFormatter,v=e.accessibilityLayer,y=void 0!==v&&v,b=Nj({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=Nj({margin:0},u),x=!gE(g),C=x?g:"",S=$C("recharts-default-tooltip",p),k=$C("recharts-tooltip-label",h);x&&m&&null!=c&&(C=m(g,c));var E=y?{role:"status","aria-live":"assertive"}:{};return o.createElement("div",jj({className:S,style:b},E),o.createElement("p",{className:k,style:w},o.isValidElement(C)?C:"".concat(C)),function(){if(c&&c.length){var e=(f?Aj(c,f):c).map((function(e,t){if("none"===e.type)return null;var r=Nj({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},l),i=e.formatter||d||zj,a=e.value,s=e.name,u=a,f=s;if(i&&null!=u&&null!=f){var p=i(a,s,e,t,c);if(Array.isArray(p)){var h=Lj(p,2);u=h[0],f=h[1]}else u=p}return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:r},IE(f)?o.createElement("span",{className:"recharts-tooltip-item-name"},f):null,IE(f)?o.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,o.createElement("span",{className:"recharts-tooltip-item-value"},u),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Fj(e){return Fj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fj(e)}function Kj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Fj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Fj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vj="recharts-tooltip-wrapper",Hj={visibility:"hidden"};function Uj(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return $C(Vj,Kj(Kj(Kj(Kj({},"".concat(Vj,"-right"),LE(n)&&t&&LE(t.x)&&n>=t.x),"".concat(Vj,"-left"),LE(n)&&t&&LE(t.x)&&n<t.x),"".concat(Vj,"-bottom"),LE(r)&&t&&LE(t.y)&&r>=t.y),"".concat(Vj,"-top"),LE(r)&&t&&LE(t.y)&&r<t.y))}function Wj(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(i&&LE(i[r]))return i[r];var c=n[r]-l-o,d=n[r]+o;return t[r]?a[r]?c:d:a[r]?c<s[r]?Math.max(d,s[r]):Math.max(c,s[r]):d+l>s[r]+u?Math.max(c,s[r]):Math.max(d,s[r])}function Zj(e){return Zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zj(e)}function qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qj(Object(n),!0).forEach((function(t){nL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rL(r.key),r)}}function Xj(e,t,n){return t=Qj(t),function(e,t){if(t&&("object"===Zj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eL(e)}(e,Jj()?Reflect.construct(t,n||[],Qj(e).constructor):t.apply(e,n))}function Jj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jj=function(){return!!e})()}function Qj(e){return Qj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qj(e)}function eL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tL(e,t){return tL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tL(e,t)}function nL(e,t,n){return(t=rL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rL(e){var t=function(e,t){if("object"!=Zj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Zj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zj(t)?t:String(t)}var oL=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nL(eL(e=Xj(this,t,[].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),nL(eL(e),"lastBoundingBox",{width:-1,height:-1}),nL(eL(e),"handleKeyDown",(function(t){var n,r,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tL(e,t)}(t,x),n=t,r=[{key:"updateBBox",value:function(){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)}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 e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,l=t.children,s=t.coordinate,u=t.hasPayload,c=t.isAnimationActive,d=t.offset,f=t.position,p=t.reverseDirection,h=t.useTranslate3d,g=t.viewBox,m=t.wrapperStyle,v=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,l=e.reverseDirection,s=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox;return{cssProperties:s.height>0&&s.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=Wj({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),translateY:n=Wj({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),useTranslate3d:u}):Hj,cssClasses:Uj({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:d,position:f,reverseDirection:p,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:h,viewBox:g}),y=v.cssClasses,b=v.cssProperties,w=Gj(Gj({transition:c&&n?"transform ".concat(i,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&u?"visible":"hidden",position:"absolute",top:0,left:0},m);return o.createElement("div",{tabIndex:-1,className:y,style:w,ref:function(t){e.wrapperNode=t}},l)}}],r&&Yj(n.prototype,r),i&&Yj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(),iL={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return iL[e]},set:function(e,t){if("string"==typeof e)iL[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){iL[t]=e[t]}))}}};function aL(e){return aL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aL(e)}function lL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lL(Object(n),!0).forEach((function(t){hL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gL(r.key),r)}}function cL(e,t,n){return t=fL(t),function(e,t){if(t&&("object"===aL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dL()?Reflect.construct(t,n||[],fL(e).constructor):t.apply(e,n))}function dL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dL=function(){return!!e})()}function fL(e){return fL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fL(e)}function pL(e,t){return pL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pL(e,t)}function hL(e,t,n){return(t=gL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gL(e){var t=function(e,t){if("object"!=aL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=aL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aL(t)?t:String(t)}function mL(e){return e.dataKey}var vL=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cL(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pL(e,t)}(t,x),n=t,r=[{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,l=t.content,s=t.coordinate,u=t.filterNull,c=t.isAnimationActive,d=t.offset,f=t.payload,p=t.payloadUniqBy,h=t.position,g=t.reverseDirection,m=t.useTranslate3d,v=t.viewBox,y=t.wrapperStyle,b=null!=f?f:[];u&&b.length&&(b=gM(f.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,mL));var w=b.length>0;return o.createElement(oL,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:c,active:n,coordinate:s,hasPayload:w,offset:d,position:h,reverseDirection:g,useTranslate3d:m,viewBox:v,wrapperStyle:y},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):"function"==typeof e?o.createElement(e,t):o.createElement(Bj,t)}(l,sL(sL({},this.props),{},{payload:b})))}}],r&&uL(n.prototype,r),i&&uL(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();hL(vL,"displayName","Tooltip"),hL(vL,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!iL.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 yL=VC,bL=/\s/;var wL=function(e){for(var t=e.length;t--&&bL.test(e.charAt(t)););return t},xL=wL,CL=/^\s+/;var SL=function(e){return e?e.slice(0,xL(e)+1).replace(CL,""):e},kL=SL,EL=dS,OL=iS,DL=/^[-+]0x[0-9a-f]+$/i,_L=/^0b[01]+$/i,PL=/^0o[0-7]+$/i,TL=parseInt;var AL=function(e){if("number"==typeof e)return e;if(OL(e))return NaN;if(EL(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=EL(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=kL(e);var n=_L.test(e);return n||PL.test(e)?TL(e.slice(2),n?2:8):DL.test(e)?NaN:+e},ML=dS,jL=function(){return yL.Date.now()},LL=AL,IL=Math.max,RL=Math.min;var NL=function(e,t,n){var r,o,i,a,l,s,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-u>=i}function g(){var e=jL();if(h(e))return m(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?RL(n,i-(e-u)):n}(e))}function m(e){return l=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=jL(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(g,t),c?p(e):a}(s);if(d)return clearTimeout(l),l=setTimeout(g,t),p(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=LL(t)||0,ML(n)&&(c=!!n.leading,i=(d="maxWait"in n)?IL(LL(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=o=l=void 0},v.flush=function(){return void 0===l?a:m(jL())},v},$L=NL,zL=dS;var BL=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return zL(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),$L(e,t,{leading:r,maxWait:t,trailing:o})},FL=Mt(BL);function KL(e){return KL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KL(e)}function VL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VL(Object(n),!0).forEach((function(t){UL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=KL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=KL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==KL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ZL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZL(e,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 ZL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qL=d((function(e,t){var n=e.aspect,r=e.initialDimension,i=void 0===r?{width:-1,height:-1}:r,l=e.width,s=void 0===l?"100%":l,c=e.height,d=void 0===c?"100%":c,f=e.minWidth,p=void 0===f?0:f,y=e.minHeight,b=e.maxHeight,x=e.children,C=e.debounce,S=void 0===C?0:C,k=e.id,E=e.className,O=e.onResize,D=e.style,_=void 0===D?{}:D,P=g(null),T=g();T.current=O,w(t,(function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})}));var A=WL(v({containerWidth:i.width,containerHeight:i.height}),2),M=A[0],j=A[1],L=u((function(e,t){j((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);m((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;L(r,o),null===(t=T.current)||void 0===t||t.call(T,r,o)};S>0&&(e=FL(e,S,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=P.current.getBoundingClientRect(),r=n.width,o=n.height;return L(r,o),t.observe(P.current),function(){t.disconnect()}}),[L,S]);var I=a((function(){var e=M.containerWidth,t=M.containerHeight;if(e<0||t<0)return null;CO(jE(s)||jE(d),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",s,d),CO(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=jE(s)?e:s,i=jE(d)?t:d;n&&n>0&&(r?i=r/n:i&&(r=i*n),b&&i>b&&(i=b)),CO(r>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.",r,i,s,d,p,y,n);var a=!Array.isArray(x)&&EE.isElement(x)&&tO(x.type).endsWith("Chart");return o.Children.map(x,(function(e){return EE.isElement(e)?h(e,HL({width:r,height:i},a?{style:HL({height:"100%",width:"100%",maxHeight:i,maxWidth:r},e.props.style)}:{})):e}))}),[n,x,d,b,y,p,M,s]);return o.createElement("div",{id:k?"".concat(k):void 0,className:$C("recharts-responsive-container",E),style:HL(HL({},_),{},{width:s,height:d,minWidth:p,minHeight:y,maxHeight:b}),ref:P},I)})),GL=function(e){return null};function YL(e){return YL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YL(e)}function XL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XL(Object(n),!0).forEach((function(t){QL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=YL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}GL.displayName="Cell";var eI={widthCache:{},cacheCount:0},tI={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},nI="recharts_measurement_span";var rI=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||iL.isSsr)return{width:0,height:0};var n,r=(n=JL({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(eI.widthCache[o])return eI.widthCache[o];try{var i=document.getElementById(nI);i||((i=document.createElement("span")).setAttribute("id",nI),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=JL(JL({},tI),r);Object.assign(i.style,a),i.textContent="".concat(e);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return eI.widthCache[o]=s,++eI.cacheCount>2e3&&(eI.cacheCount=0,eI.widthCache={}),s}catch(e){return{width:0,height:0}}};function oI(e){return oI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oI(e)}function iI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aI(e,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 aI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sI(r.key),r)}}function sI(e){var t=function(e,t){if("object"!=oI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oI(t)?t:String(t)}var uI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,cI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,dI=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,fI=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,pI={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},hI=Object.keys(pI),gI="NaN";var mI=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||dI.test(n)||(this.num=NaN,this.unit=""),hI.includes(n)&&(this.num=function(e,t){return e*pI[t]}(t,n),this.unit="px")}var t,n,r;return t=e,r=[{key:"parse",value:function(t){var n,r=iI(null!==(n=fI.exec(t))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new e(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&lI(t.prototype,n),r&&lI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vI(e){if(e.includes(gI))return gI;for(var t=e;t.includes("*")||t.includes("/");){var n,r=iI(null!==(n=uI.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],l=mI.parse(null!=o?o:""),s=mI.parse(null!=a?a:""),u="*"===i?l.multiply(s):l.divide(s);if(u.isNaN())return gI;t=t.replace(uI,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=iI(null!==(c=cI.exec(t))&&void 0!==c?c:[],4),f=d[1],p=d[2],h=d[3],g=mI.parse(null!=f?f:""),m=mI.parse(null!=h?h:""),v="+"===p?g.add(m):g.subtract(m);if(v.isNaN())return gI;t=t.replace(cI,v.toString())}return t}var yI=/\(([^()]*)\)/;function bI(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=iI(yI.exec(t),2)[1];t=t.replace(yI,vI(n))}return t}(t),t=vI(t)}function wI(e){var t=function(e){try{return bI(e)}catch(e){return gI}}(e.slice(5,-1));return t===gI?"":t}var xI=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],CI=["dx","dy","angle","className","breakAll"];function SI(){return SI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SI.apply(this,arguments)}function kI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function EI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return OI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OI(e,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 OI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var DI=/[ \f\n\r\t\v\u2028\u2029]+/,_I=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return gE(t)||(o=n?t.toString().split(""):t.toString().split(DI)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:rI(e,r).width}})),spaceWidth:n?0:rI(" ",r).width}}catch(e){return null}},PI=function(e){return[{words:gE(e)?[]:e.toString().split(DI)}]},TI=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!iL.isSsr){var l=_I({breakAll:i,children:r,style:o});return l?function(e,t,n,r,o){var i=e.maxLines,a=e.children,l=e.style,s=e.breakAll,u=LE(i),c=a,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,l=e[e.length-1];if(l&&(null==r||o||l.width+a+n<Number(r)))l.words.push(i),l.width+=a+n;else{var s={words:[i],width:a};e.push(s)}return e}),[])},f=d(t);if(!u)return f;for(var p,h=function(e){var t=c.slice(0,e),n=_I({breakAll:s,style:l,children:t+"…"}).wordsWithComputedWidth,o=d(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,m=c.length-1,v=0;g<=m&&v<=c.length-1;){var y=Math.floor((g+m)/2),b=EI(h(y-1),2),w=b[0],x=b[1],C=EI(h(y),1)[0];if(w||C||(g=y+1),w&&C&&(m=y-1),!w&&C){p=x;break}v++}return p||f}({breakAll:i,children:r,maxLines:a,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,n):PI(r)}return PI(r)},AI="#808080",MI=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,l=e.lineHeight,s=void 0===l?"1em":l,u=e.capHeight,c=void 0===u?"0.71em":u,d=e.scaleToFit,f=void 0!==d&&d,p=e.textAnchor,h=void 0===p?"start":p,g=e.verticalAnchor,m=void 0===g?"end":g,v=e.fill,y=void 0===v?AI:v,b=kI(e,xI),w=a((function(){return TI({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})}),[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),x=b.dx,C=b.dy,S=b.angle,k=b.className,E=b.breakAll,O=kI(b,CI);if(!IE(n)||!IE(i))return null;var D,_=n+(LE(x)?x:0),P=i+(LE(C)?C:0);switch(m){case"start":D=wI("calc(".concat(c,")"));break;case"middle":D=wI("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:D=wI("calc(".concat(w.length-1," * -").concat(s,")"))}var T=[];if(f){var A=w[0].width,M=b.width;T.push("scale(".concat((LE(M)?M/A:1)/A,")"))}return S&&T.push("rotate(".concat(S,", ").concat(_,", ").concat(P,")")),T.length&&(O.transform=T.join(" ")),o.createElement("text",SI({},uO(O,!0),{x:_,y:P,className:$C("recharts-text",k),textAnchor:h,fill:y.includes("url")?AI:y}),w.map((function(e,t){var n=e.words.join(E?"":" ");return o.createElement("tspan",{x:_,dy:0===t?D:s,key:n},n)})))};function jI(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LI(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function II(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=jI,n=(t,n)=>jI(e(t),n),r=(t,n)=>e(t)-n):(t=e===jI||e===LI?e:RI,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function RI(){return 0}function NI(e){return null===e?NaN:+e}const $I=II(jI).right;II(NI).center;class zI extends Map{constructor(e,t=FI){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(BI(this,e))}has(e){return super.has(BI(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function BI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function FI(e){return null!==e&&"object"==typeof e?e.valueOf():e}function KI(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const VI=Math.sqrt(50),HI=Math.sqrt(10),UI=Math.sqrt(2);function WI(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=VI?10:i>=HI?5:i>=UI?2:1;let l,s,u;return o<0?(u=Math.pow(10,-o)/a,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,o)*a,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?WI(e,t,2*n):[l,s,u]}function ZI(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?WI(t,e,n):WI(e,t,n);if(!(i>=o))return[];const l=i-o+1,s=new Array(l);if(r)if(a<0)for(let e=0;e<l;++e)s[e]=(i-e)/-a;else for(let e=0;e<l;++e)s[e]=(i-e)*a;else if(a<0)for(let e=0;e<l;++e)s[e]=(o+e)/-a;else for(let e=0;e<l;++e)s[e]=(o+e)*a;return s}function qI(e,t,n){return WI(e=+e,t=+t,n=+n)[2]}function GI(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?qI(t,e,n):qI(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function YI(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function XI(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function JI(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?KI:function(e=jI){if(e===jI)return KI;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,l=Math.log(i),s=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*s*(i-s)/i)*(a-i/2<0?-1:1);JI(e,t,Math.max(n,Math.floor(t-a*s/i+u)),Math.min(r,Math.floor(t+(i-a)*s/i+u)),o)}const i=e[t];let a=n,l=r;for(QI(e,n,t),o(e[r],i)>0&&QI(e,n,r);a<l;){for(QI(e,a,l),++a,--l;o(e[a],i)<0;)++a;for(;o(e[l],i)>0;)--l}0===o(e[n],i)?QI(e,n,l):(++l,QI(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function QI(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function eR(e,t,n=NI){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function tR(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function nR(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const rR=Symbol("implicit");function oR(){var e=new zI,t=[],n=[],r=rR;function o(o){let i=e.get(o);if(void 0===i){if(r!==rR)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new zI;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return oR(t,n).unknown(r)},tR.apply(o,arguments),o}function iR(){var e,t,n=oR().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,l=!1,s=0,u=0,c=.5;function d(){var n=r().length,d=a<i,f=d?a:i,p=d?i:a;e=(p-f)/Math.max(1,n-s+2*u),l&&(e=Math.floor(e)),f+=(p-f-e*(n-s))*c,t=e*(1-s),l&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return f+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,l=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,d()):l},n.padding=function(e){return arguments.length?(s=Math.min(1,u=+e),d()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return iR(r(),[i,a]).round(l).paddingInner(s).paddingOuter(u).align(c)},tR.apply(d(),arguments)}function aR(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aR(t())},e}function lR(){return aR(iR.apply(null,arguments).paddingInner(1))}function sR(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uR(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cR(){}var dR=.7,fR=1/dR,pR="\\s*([+-]?\\d+)\\s*",hR="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gR="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mR=/^#([0-9a-f]{3,8})$/,vR=new RegExp(`^rgb\\(${pR},${pR},${pR}\\)$`),yR=new RegExp(`^rgb\\(${gR},${gR},${gR}\\)$`),bR=new RegExp(`^rgba\\(${pR},${pR},${pR},${hR}\\)$`),wR=new RegExp(`^rgba\\(${gR},${gR},${gR},${hR}\\)$`),xR=new RegExp(`^hsl\\(${hR},${gR},${gR}\\)$`),CR=new RegExp(`^hsla\\(${hR},${gR},${gR},${hR}\\)$`),SR={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 kR(){return this.rgb().formatHex()}function ER(){return this.rgb().formatRgb()}function OR(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=mR.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?DR(t):3===n?new TR(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_R(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_R(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=vR.exec(e))?new TR(t[1],t[2],t[3],1):(t=yR.exec(e))?new TR(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=bR.exec(e))?_R(t[1],t[2],t[3],t[4]):(t=wR.exec(e))?_R(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xR.exec(e))?RR(t[1],t[2]/100,t[3]/100,1):(t=CR.exec(e))?RR(t[1],t[2]/100,t[3]/100,t[4]):SR.hasOwnProperty(e)?DR(SR[e]):"transparent"===e?new TR(NaN,NaN,NaN,0):null}function DR(e){return new TR(e>>16&255,e>>8&255,255&e,1)}function _R(e,t,n,r){return r<=0&&(e=t=n=NaN),new TR(e,t,n,r)}function PR(e,t,n,r){return 1===arguments.length?function(e){return e instanceof cR||(e=OR(e)),e?new TR((e=e.rgb()).r,e.g,e.b,e.opacity):new TR}(e):new TR(e,t,n,null==r?1:r)}function TR(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function AR(){return`#${IR(this.r)}${IR(this.g)}${IR(this.b)}`}function MR(){const e=jR(this.opacity);return`${1===e?"rgb(":"rgba("}${LR(this.r)}, ${LR(this.g)}, ${LR(this.b)}${1===e?")":`, ${e})`}`}function jR(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function LR(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function IR(e){return((e=LR(e))<16?"0":"")+e.toString(16)}function RR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $R(e,t,n,r)}function NR(e){if(e instanceof $R)return new $R(e.h,e.s,e.l,e.opacity);if(e instanceof cR||(e=OR(e)),!e)return new $R;if(e instanceof $R)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new $R(a,l,s,e.opacity)}function $R(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function zR(e){return(e=(e||0)%360)<0?e+360:e}function BR(e){return Math.max(0,Math.min(1,e||0))}function FR(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}sR(cR,OR,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kR,formatHex:kR,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return NR(this).formatHsl()},formatRgb:ER,toString:ER}),sR(TR,PR,uR(cR,{brighter(e){return e=null==e?fR:Math.pow(fR,e),new TR(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?dR:Math.pow(dR,e),new TR(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new TR(LR(this.r),LR(this.g),LR(this.b),jR(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:AR,formatHex:AR,formatHex8:function(){return`#${IR(this.r)}${IR(this.g)}${IR(this.b)}${IR(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:MR,toString:MR})),sR($R,(function(e,t,n,r){return 1===arguments.length?NR(e):new $R(e,t,n,null==r?1:r)}),uR(cR,{brighter(e){return e=null==e?fR:Math.pow(fR,e),new $R(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?dR:Math.pow(dR,e),new $R(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new TR(FR(e>=240?e-240:e+120,o,r),FR(e,o,r),FR(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new $R(zR(this.h),BR(this.s),BR(this.l),jR(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=jR(this.opacity);return`${1===e?"hsl(":"hsla("}${zR(this.h)}, ${100*BR(this.s)}%, ${100*BR(this.l)}%${1===e?")":`, ${e})`}`}}));var KR=e=>()=>e;function VR(e){return 1==(e=+e)?HR:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):KR(isNaN(t)?n:t)}}function HR(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):KR(isNaN(e)?t:e)}var UR=function e(t){var n=VR(t);function r(e,t){var r=n((e=PR(e)).r,(t=PR(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=HR(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function WR(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function ZR(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=eN(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function qR(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function GR(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function YR(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=eN(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var XR=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,JR=new RegExp(XR.source,"g");function QR(e,t){var n,r,o,i=XR.lastIndex=JR.lastIndex=0,a=-1,l=[],s=[];for(e+="",t+="";(n=XR.exec(e))&&(r=JR.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,s.push({i:a,x:GR(n,r)})),i=JR.lastIndex;return i<t.length&&(o=t.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function eN(e,t){var n,r=typeof t;return null==t||"boolean"===r?KR(t):("number"===r?GR:"string"===r?(n=OR(t))?(t=n,UR):QR:t instanceof OR?UR:t instanceof Date?qR:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?WR:Array.isArray(t)?ZR:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?YR:GR)(e,t)}function tN(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function nN(e,t){void 0===t&&(t=e,e=eN);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function rN(e){return+e}var oN=[0,1];function iN(e){return e}function aN(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function lN(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=aN(o,r),i=n(a,i)):(r=aN(r,o),i=n(i,a)),function(e){return i(r(e))}}function sN(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=aN(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=$I(e,t,1,r)-1;return i[n](o[n](t))}}function uN(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function cN(){var e,t,n,r,o,i,a=oN,l=oN,s=eN,u=iN;function c(){var e=Math.min(a.length,l.length);return u!==iN&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?sN:lN,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),l,s)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(l,a.map(e),GR)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,rN),c()):a.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=tN,c()},d.clamp=function(e){return arguments.length?(u=!!e||iN,c()):u!==iN},d.interpolate=function(e){return arguments.length?(s=e,c()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function dN(){return cN()(iN,iN)}function fN(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function pN(e){return(e=fN(Math.abs(e)))?e[1]:NaN}var hN,gN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mN(e){if(!(t=gN.exec(e)))throw new Error("invalid format: "+e);var t;return new vN({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function vN(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function yN(e,t){var n=fN(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}mN.prototype=vN.prototype,vN.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 bN={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>yN(100*e,t),r:yN,s:function(e,t){var n=fN(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(hN=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+fN(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wN(e){return e}var xN,CN,SN,kN=Array.prototype.map,EN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ON(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?wN:(t=kN.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?wN:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(kN.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=mN(e)).fill,n=e.align,d=e.sign,f=e.symbol,p=e.zero,h=e.width,g=e.comma,m=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):bN[y]||(void 0===m&&(m=12),v=!0,y="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===f?o:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===f?i:/[%p]/.test(y)?s:"",x=bN[y],C=/[defgprs%]/.test(y);function S(e){var o,i,s,f=b,S=w;if("c"===y)S=x(e)+S,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==d&&(k=!1),f=(k?"("===d?d:u:"-"===d||"("===d?"":d)+f,S=("s"===y?EN[8+hN/3]:"")+S+(k&&"("===d?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(s=e.charCodeAt(o))||s>57){S=(46===s?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var E=f.length+e.length+S.length,O=E<h?new Array(h-E+1).join(t):"";switch(g&&p&&(e=r(O+e,O.length?h-S.length:1/0),O=""),n){case"<":e=f+e+S+O;break;case"=":e=f+O+e+S;break;case"^":e=O.slice(0,E=O.length>>1)+f+e+S+O.slice(E);break;default:e=O+f+e+S}return l(e)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=mN(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(pN(t)/3))),o=Math.pow(10,-r),i=EN[8+r/3];return function(e){return n(o*e)+i}}}}function DN(e,t,n,r){var o,i=GI(e,t,n);switch((r=mN(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pN(t)/3)))-pN(Math.abs(e)))}(i,a))||(r.precision=o),SN(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pN(t)-pN(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-pN(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return CN(r)}function _N(e){var t=e.domain;return e.ticks=function(e){var n=t();return ZI(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return DN(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,l=i.length-1,s=i[a],u=i[l],c=10;for(u<s&&(o=s,s=u,u=o,o=a,a=l,l=o);c-- >0;){if((o=qI(s,u,n))===r)return i[a]=s,i[l]=u,t(i);if(o>0)s=Math.floor(s/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function PN(){var e=dN();return e.copy=function(){return uN(e,PN())},tR.apply(e,arguments),_N(e)}function TN(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function AN(e){return Math.log(e)}function MN(e){return Math.exp(e)}function jN(e){return-Math.log(-e)}function LN(e){return-Math.exp(-e)}function IN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function RN(e){return(t,n)=>-e(-t,n)}function NN(e){const t=e(AN,MN),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?IN:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=RN(r),o=RN(o),e(jN,LN)):e(AN,MN),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],l=t[t.length-1];const s=l<a;s&&([a,l]=[l,a]);let u,c,d=r(a),f=r(l);const p=null==e?10:+e;let h=[];if(!(i%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),a>0){for(;d<=f;++d)for(u=1;u<i;++u)if(c=d<0?u/o(-d):u*o(d),!(c<a)){if(c>l)break;h.push(c)}}else for(;d<=f;++d)for(u=i-1;u>=1;--u)if(c=d>0?u/o(-d):u*o(d),!(c<a)){if(c>l)break;h.push(c)}2*h.length<p&&(h=ZI(a,l,p))}else h=ZI(d,f,Math.min(f-d,p)).map(o);return s?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=mN(n)).precision||(n.trim=!0),n=CN(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(TN(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function $N(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function BN(e){var t=1,n=e($N(t),zN(t));return n.constant=function(n){return arguments.length?e($N(t=+n),zN(t)):t},_N(n)}function FN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function KN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function VN(e){return e<0?-e*e:e*e}function HN(e){var t=e(iN,iN),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(iN,iN):.5===n?e(KN,VN):e(FN(n),FN(1/n)):n},_N(t)}function UN(){var e=HN(cN());return e.copy=function(){return uN(e,UN()).exponent(e.exponent())},tR.apply(e,arguments),e}function WN(e){return Math.sign(e)*e*e}xN=ON({thousands:",",grouping:[3],currency:["$",""]}),CN=xN.format,SN=xN.formatPrefix;const ZN=new Date,qN=new Date;function GN(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let l;do{a.push(l=new Date(+n)),t(n,i),e(n)}while(l<n&&n<r);return a},o.filter=n=>GN((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(ZN.setTime(+t),qN.setTime(+r),e(ZN),e(qN),Math.floor(n(ZN,qN))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const YN=GN((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));YN.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?GN((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):YN:null),YN.range;const XN=1e3,JN=6e4,QN=36e5,e$=864e5,t$=6048e5,n$=2592e6,r$=31536e6,o$=GN((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*XN)}),((e,t)=>(t-e)/XN),(e=>e.getUTCSeconds()));o$.range;const i$=GN((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*XN)}),((e,t)=>{e.setTime(+e+t*JN)}),((e,t)=>(t-e)/JN),(e=>e.getMinutes()));i$.range;const a$=GN((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*JN)}),((e,t)=>(t-e)/JN),(e=>e.getUTCMinutes()));a$.range;const l$=GN((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*XN-e.getMinutes()*JN)}),((e,t)=>{e.setTime(+e+t*QN)}),((e,t)=>(t-e)/QN),(e=>e.getHours()));l$.range;const s$=GN((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*QN)}),((e,t)=>(t-e)/QN),(e=>e.getUTCHours()));s$.range;const u$=GN((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*JN)/e$),(e=>e.getDate()-1));u$.range;const c$=GN((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/e$),(e=>e.getUTCDate()-1));c$.range;const d$=GN((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/e$),(e=>Math.floor(e/e$)));function f$(e){return GN((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*JN)/t$))}d$.range;const p$=f$(0),h$=f$(1),g$=f$(2),m$=f$(3),v$=f$(4),y$=f$(5),b$=f$(6);function w$(e){return GN((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/t$))}p$.range,h$.range,g$.range,m$.range,v$.range,y$.range,b$.range;const x$=w$(0),C$=w$(1),S$=w$(2),k$=w$(3),E$=w$(4),O$=w$(5),D$=w$(6);x$.range,C$.range,S$.range,k$.range,E$.range,O$.range,D$.range;const _$=GN((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));_$.range;const P$=GN((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));P$.range;const T$=GN((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));T$.every=e=>isFinite(e=Math.floor(e))&&e>0?GN((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,T$.range;const A$=GN((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function M$(e,t,n,r,o,i){const a=[[o$,1,XN],[o$,5,5e3],[o$,15,15e3],[o$,30,3e4],[i,1,JN],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,QN],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,e$],[r,2,1728e5],[n,1,t$],[t,1,n$],[t,3,7776e6],[e,1,r$]];function l(t,n,r){const o=Math.abs(n-t)/r,i=II((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(GI(t/r$,n/r$,r));if(0===i)return YN.every(Math.max(GI(t,n,r),1));const[l,s]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return l.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:l(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},l]}A$.every=e=>isFinite(e=Math.floor(e))&&e>0?GN((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,A$.range;const[j$,L$]=M$(A$,P$,x$,d$,s$,a$),[I$,R$]=M$(T$,_$,p$,u$,l$,i$);function N$(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function $$(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function z$(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var B$,F$,K$,V$={"-":"",_:" ",0:"0"},H$=/^\s*\d+/,U$=/^%/,W$=/[\\^$*+?|[\]().{}]/g;function Z$(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function q$(e){return e.replace(W$,"\\$&")}function G$(e){return new RegExp("^(?:"+e.map(q$).join("|")+")","i")}function Y$(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function X$(e,t,n){var r=H$.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function J$(e,t,n){var r=H$.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Q$(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ez(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function tz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function nz(e,t,n){var r=H$.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function oz(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function iz(e,t,n){var r=H$.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function az(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function lz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sz(e,t,n){var r=H$.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function uz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function cz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function dz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function fz(e,t,n){var r=H$.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function pz(e,t,n){var r=H$.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hz(e,t,n){var r=U$.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function gz(e,t,n){var r=H$.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mz(e,t,n){var r=H$.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vz(e,t){return Z$(e.getDate(),t,2)}function yz(e,t){return Z$(e.getHours(),t,2)}function bz(e,t){return Z$(e.getHours()%12||12,t,2)}function wz(e,t){return Z$(1+u$.count(T$(e),e),t,3)}function xz(e,t){return Z$(e.getMilliseconds(),t,3)}function Cz(e,t){return xz(e,t)+"000"}function Sz(e,t){return Z$(e.getMonth()+1,t,2)}function kz(e,t){return Z$(e.getMinutes(),t,2)}function Ez(e,t){return Z$(e.getSeconds(),t,2)}function Oz(e){var t=e.getDay();return 0===t?7:t}function Dz(e,t){return Z$(p$.count(T$(e)-1,e),t,2)}function _z(e){var t=e.getDay();return t>=4||0===t?v$(e):v$.ceil(e)}function Pz(e,t){return e=_z(e),Z$(v$.count(T$(e),e)+(4===T$(e).getDay()),t,2)}function Tz(e){return e.getDay()}function Az(e,t){return Z$(h$.count(T$(e)-1,e),t,2)}function Mz(e,t){return Z$(e.getFullYear()%100,t,2)}function jz(e,t){return Z$((e=_z(e)).getFullYear()%100,t,2)}function Lz(e,t){return Z$(e.getFullYear()%1e4,t,4)}function Iz(e,t){var n=e.getDay();return Z$((e=n>=4||0===n?v$(e):v$.ceil(e)).getFullYear()%1e4,t,4)}function Rz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Z$(t/60|0,"0",2)+Z$(t%60,"0",2)}function Nz(e,t){return Z$(e.getUTCDate(),t,2)}function $z(e,t){return Z$(e.getUTCHours(),t,2)}function zz(e,t){return Z$(e.getUTCHours()%12||12,t,2)}function Bz(e,t){return Z$(1+c$.count(A$(e),e),t,3)}function Fz(e,t){return Z$(e.getUTCMilliseconds(),t,3)}function Kz(e,t){return Fz(e,t)+"000"}function Vz(e,t){return Z$(e.getUTCMonth()+1,t,2)}function Hz(e,t){return Z$(e.getUTCMinutes(),t,2)}function Uz(e,t){return Z$(e.getUTCSeconds(),t,2)}function Wz(e){var t=e.getUTCDay();return 0===t?7:t}function Zz(e,t){return Z$(x$.count(A$(e)-1,e),t,2)}function qz(e){var t=e.getUTCDay();return t>=4||0===t?E$(e):E$.ceil(e)}function Gz(e,t){return e=qz(e),Z$(E$.count(A$(e),e)+(4===A$(e).getUTCDay()),t,2)}function Yz(e){return e.getUTCDay()}function Xz(e,t){return Z$(C$.count(A$(e)-1,e),t,2)}function Jz(e,t){return Z$(e.getUTCFullYear()%100,t,2)}function Qz(e,t){return Z$((e=qz(e)).getUTCFullYear()%100,t,2)}function eB(e,t){return Z$(e.getUTCFullYear()%1e4,t,4)}function tB(e,t){var n=e.getUTCDay();return Z$((e=n>=4||0===n?E$(e):E$.ceil(e)).getUTCFullYear()%1e4,t,4)}function nB(){return"+0000"}function rB(){return"%"}function oB(e){return+e}function iB(e){return Math.floor(+e/1e3)}function aB(e){return new Date(e)}function lB(e){return e instanceof Date?+e:+new Date(+e)}function sB(e,t,n,r,o,i,a,l,s,u){var c=dN(),d=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),y=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(s(e)<e?p:l(e)<e?h:a(e)<e?g:i(e)<e?m:r(e)<e?o(e)<e?v:y:n(e)<e?b:w)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?f(Array.from(e,lB)):f().map(aB)},c.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?x:u(t)},c.nice=function(e){var n=f();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?f(TN(n,e)):c},c.copy=function(){return uN(c,sB(e,t,n,r,o,i,a,l,s,u))},c}function uB(){var e,t,n,r,o,i=0,a=1,l=iN,s=!1;function u(t){return null==t||isNaN(t=+t)?o:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),u):[l(0),l(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(s=!!e,u):s},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=c(eN),u.rangeRound=c(tN),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function cB(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dB(){var e=HN(uB());return e.copy=function(){return cB(e,dB()).exponent(e.exponent())},nR.apply(e,arguments)}function fB(){var e,t,n,r,o,i,a,l=0,s=.5,u=1,c=1,d=iN,f=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(c*e<c*t?r:o),d(f?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,d=nN(e,[n,r,o]),p):[d(0),d(.5),d(1)]}}return p.domain=function(a){return arguments.length?([l,s,u]=a,e=i(l=+l),t=i(s=+s),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),c=t<e?-1:1,p):[l,s,u]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=h(eN),p.rangeRound=h(tN),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(l),t=a(s),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),c=t<e?-1:1,p}}function pB(){var e=HN(fB());return e.copy=function(){return cB(e,pB()).exponent(e.exponent())},nR.apply(e,arguments)}!function(e){B$=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,s=e.shortMonths,u=G$(o),c=Y$(o),d=G$(i),f=Y$(i),p=G$(a),h=Y$(a),g=G$(l),m=Y$(l),v=G$(s),y=Y$(s),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:vz,e:vz,f:Cz,g:jz,G:Iz,H:yz,I:bz,j:wz,L:xz,m:Sz,M:kz,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:oB,s:iB,S:Ez,u:Oz,U:Dz,V:Pz,w:Tz,W:Az,x:null,X:null,y:Mz,Y:Lz,Z:Rz,"%":rB},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Nz,e:Nz,f:Kz,g:Qz,G:tB,H:$z,I:zz,j:Bz,L:Fz,m:Vz,M:Hz,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:oB,s:iB,S:Uz,u:Wz,U:Zz,V:Gz,w:Yz,W:Xz,x:null,X:null,y:Jz,Y:eB,Z:nB,"%":rB},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:lz,e:lz,f:pz,g:rz,G:nz,H:uz,I:uz,j:sz,L:fz,m:az,M:cz,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:iz,Q:gz,s:mz,S:dz,u:J$,U:Q$,V:ez,w:X$,W:tz,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:rz,Y:nz,Z:oz,"%":hz};function C(e,t){return function(n){var r,o,i,a=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(a.push(e.slice(s,l)),null!=(o=V$[r=e.charAt(++l)])?r=e.charAt(++l):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),s=l+1);return a.push(e.slice(s,l)),a.join("")}}function S(e,t){return function(n){var r,o,i=z$(1900,void 0,1);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=$$(z$(i.y,0,1))).getUTCDay(),r=o>4||0===o?C$.ceil(r):C$(r),r=c$.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=N$(z$(i.y,0,1))).getDay(),r=o>4||0===o?h$.ceil(r):h$(r),r=u$.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?$$(z$(i.y,0,1)).getUTCDay():N$(z$(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,$$(i)):N$(i)}}function k(e,t,n,r){for(var o,i,a=0,l=t.length,s=n.length;a<l;){if(r>=s)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in V$?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),F$=B$.format,B$.parse,K$=B$.utcFormat,B$.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 hB=Object.freeze({__proto__:null,scaleBand:iR,scaleDiverging:function e(){var t=_N(fB()(iN));return t.copy=function(){return cB(t,e())},nR.apply(t,arguments)},scaleDivergingLog:function e(){var t=NN(fB()).domain([.1,1,10]);return t.copy=function(){return cB(t,e()).base(t.base())},nR.apply(t,arguments)},scaleDivergingPow:pB,scaleDivergingSqrt:function(){return pB.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=BN(fB());return t.copy=function(){return cB(t,e()).constant(t.constant())},nR.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,rN),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,rN):[0,1],_N(r)},scaleImplicit:rR,scaleLinear:PN,scaleLog:function e(){const t=NN(cN()).domain([1,10]);return t.copy=()=>uN(t,e()).base(t.base()),tR.apply(t,arguments),t},scaleOrdinal:oR,scalePoint:lR,scalePow:UN,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=eR(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[$I(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(jI),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},tR.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function l(e){return null!=e&&e<=e?a[$I(i,e,0,o)]:t}function s(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return l}return l.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,s()):[n,r]},l.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,s()):a.slice()},l.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return i.slice()},l.copy=function(){return e().domain([n,r]).range(a).unknown(t)},tR.apply(_N(l),arguments)},scaleRadial:function e(){var t,n=dN(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(WN(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,rN)).map(WN)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},tR.apply(i,arguments),_N(i)},scaleSequential:function e(){var t=_N(uB()(iN));return t.copy=function(){return cB(t,e())},nR.apply(t,arguments)},scaleSequentialLog:function e(){var t=NN(uB()).domain([1,10]);return t.copy=function(){return cB(t,e()).base(t.base())},nR.apply(t,arguments)},scaleSequentialPow:dB,scaleSequentialQuantile:function e(){var t=[],n=iN;function r(e){if(null!=e&&!isNaN(e=+e))return n(($I(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(jI),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return XI(e);if(t>=1)return YI(e);var r,o=(r-1)*t,i=Math.floor(o),a=YI(JI(e,i).subarray(0,i+1));return a+(XI(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},nR.apply(r,arguments)},scaleSequentialSqrt:function(){return dB.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=BN(uB());return t.copy=function(){return cB(t,e()).constant(t.constant())},nR.apply(t,arguments)},scaleSqrt:function(){return UN.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=BN(cN());return t.copy=function(){return uN(t,e()).constant(t.constant())},tR.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[$I(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},tR.apply(i,arguments)},scaleTime:function(){return tR.apply(sB(I$,R$,T$,_$,p$,u$,l$,i$,o$,F$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return tR.apply(sB(j$,L$,A$,P$,x$,c$,s$,a$,o$,K$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:DN}),gB=iS;var mB=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===l?a==a&&!gB(a):n(a,l)))var l=a,s=i}return s};var vB=function(e,t){return e>t},yB=mB,bB=vB,wB=MA;var xB=function(e){return e&&e.length?yB(e,wB,bB):void 0},CB=Mt(xB);var SB=function(e,t){return e<t},kB=mB,EB=SB,OB=MA;var DB=function(e){return e&&e.length?kB(e,OB,EB):void 0},_B=Mt(DB),PB=Zk,TB=UA,AB=WM,MB=zC;var jB=RM,LB=function(e,t){return(MB(e)?PB:AB)(e,TB(t))};var IB=Mt((function(e,t){return jB(LB(e,t),1)})),RB=QT;var NB,$B=Mt((function(e,t){return RB(e,t)})),zB=1e9,BB=!0,FB="[DecimalError] ",KB=FB+"Invalid argument: ",VB=FB+"Exponent out of range: ",HB=Math.floor,UB=Math.pow,WB=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ZB=1e7,qB=7,GB=9007199254740991,YB=HB(GB/qB),XB={};function JB(e,t){var n,r,o,i,a,l,s,u,c=e.constructor,d=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),BB?sF(t,d):t;if(s=e.d,u=t.d,a=e.e,o=t.e,s=s.slice(),i=a-o){for(i<0?(r=s,i=-i,l=u.length):(r=u,o=a,l=s.length),i>(l=(a=Math.ceil(d/qB))>l?a+1:l+1)&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((l=s.length)-(i=u.length)<0&&(i=l,r=u,u=s,s=r),n=0;i;)n=(s[--i]=s[i]+u[i]+n)/ZB|0,s[i]%=ZB;for(n&&(s.unshift(n),++o),l=s.length;0==s[--l];)s.pop();return t.d=s,t.e=o,BB?sF(t,d):t}function QB(e,t,n){if(e!==~~e||e<t||e>n)throw Error(KB+e)}function eF(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=qB-r.length)&&(i+=iF(n)),i+=r;a=e[t],(n=qB-(r=a+"").length)&&(i+=iF(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}XB.absoluteValue=XB.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},XB.comparedTo=XB.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},XB.decimalPlaces=XB.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*qB;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},XB.dividedBy=XB.div=function(e){return tF(this,new this.constructor(e))},XB.dividedToIntegerBy=XB.idiv=function(e){var t=this.constructor;return sF(tF(this,new t(e),0,1),t.precision)},XB.equals=XB.eq=function(e){return!this.cmp(e)},XB.exponent=function(){return rF(this)},XB.greaterThan=XB.gt=function(e){return this.cmp(e)>0},XB.greaterThanOrEqualTo=XB.gte=function(e){return this.cmp(e)>=0},XB.isInteger=XB.isint=function(){return this.e>this.d.length-2},XB.isNegative=XB.isneg=function(){return this.s<0},XB.isPositive=XB.ispos=function(){return this.s>0},XB.isZero=function(){return 0===this.s},XB.lessThan=XB.lt=function(e){return this.cmp(e)<0},XB.lessThanOrEqualTo=XB.lte=function(e){return this.cmp(e)<1},XB.logarithm=XB.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(NB))throw Error(FB+"NaN");if(n.s<1)throw Error(FB+(n.s?"NaN":"-Infinity"));return n.eq(NB)?new r(0):(BB=!1,t=tF(aF(n,i),aF(e,i),i),BB=!0,sF(t,o))},XB.minus=XB.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uF(t,e):JB(t,(e.s=-e.s,e))},XB.modulo=XB.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(FB+"NaN");return n.s?(BB=!1,t=tF(n,e,0,1).times(e),BB=!0,n.minus(t)):sF(new r(n),o)},XB.naturalExponential=XB.exp=function(){return nF(this)},XB.naturalLogarithm=XB.ln=function(){return aF(this)},XB.negated=XB.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},XB.plus=XB.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?JB(t,e):uF(t,(e.s=-e.s,e))},XB.precision=XB.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(KB+e);if(t=rF(o)+1,n=(r=o.d.length-1)*qB+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},XB.squareRoot=XB.sqrt=function(){var e,t,n,r,o,i,a,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(FB+"NaN")}for(e=rF(l),BB=!1,0==(o=Math.sqrt(+l))||o==1/0?(((t=eF(l.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=HB((e+1)/2)-(e<0||e%2),r=new s(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(o.toString()),o=a=(n=s.precision)+3;;)if(r=(i=r).plus(tF(l,i,a+2)).times(.5),eF(i.d).slice(0,a)===(t=eF(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(sF(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if("9999"!=t)break;a+=4}return BB=!0,sF(r,n)},XB.times=XB.mul=function(e){var t,n,r,o,i,a,l,s,u,c=this,d=c.constructor,f=c.d,p=(e=new d(e)).d;if(!c.s||!e.s)return new d(0);for(e.s*=c.s,n=c.e+e.e,(s=f.length)<(u=p.length)&&(i=f,f=p,p=i,a=s,s=u,u=a),i=[],r=a=s+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=s+r;o>r;)l=i[o]+p[r]*f[o-r-1]+t,i[o--]=l%ZB|0,t=l/ZB|0;i[o]=(i[o]+t)%ZB|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,BB?sF(e,d.precision):e},XB.toDecimalPlaces=XB.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(QB(e,0,zB),void 0===t?t=r.rounding:QB(t,0,8),sF(n,e+rF(n)+1,t))},XB.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=cF(r,!0):(QB(e,0,zB),void 0===t?t=o.rounding:QB(t,0,8),n=cF(r=sF(new o(r),e+1,t),!0,e+1)),n},XB.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?cF(o):(QB(e,0,zB),void 0===t?t=i.rounding:QB(t,0,8),n=cF((r=sF(new i(o),e+rF(o)+1,t)).abs(),!1,e+rF(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},XB.toInteger=XB.toint=function(){var e=this,t=e.constructor;return sF(new t(e),rF(e)+1,t.rounding)},XB.toNumber=function(){return+this},XB.toPower=XB.pow=function(e){var t,n,r,o,i,a,l=this,s=l.constructor,u=+(e=new s(e));if(!e.s)return new s(NB);if(!(l=new s(l)).s){if(e.s<1)throw Error(FB+"Infinity");return l}if(l.eq(NB))return l;if(r=s.precision,e.eq(NB))return sF(l,r);if(a=(t=e.e)>=(n=e.d.length-1),i=l.s,a){if((n=u<0?-u:u)<=GB){for(o=new s(NB),t=Math.ceil(r/qB+4),BB=!1;n%2&&dF((o=o.times(l)).d,t),0!==(n=HB(n/2));)dF((l=l.times(l)).d,t);return BB=!0,e.s<0?new s(NB).div(o):sF(o,r)}}else if(i<0)throw Error(FB+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,l.s=1,BB=!1,o=e.times(aF(l,r+12)),BB=!0,(o=nF(o)).s=i,o},XB.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=cF(o,(n=rF(o))<=i.toExpNeg||n>=i.toExpPos):(QB(e,1,zB),void 0===t?t=i.rounding:QB(t,0,8),r=cF(o=sF(new i(o),e,t),e<=(n=rF(o))||n<=i.toExpNeg,e)),r},XB.toSignificantDigits=XB.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(QB(e,1,zB),void 0===t?t=n.rounding:QB(t,0,8)),sF(new n(this),e,t)},XB.toString=XB.valueOf=XB.val=XB.toJSON=XB[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=rF(e),n=e.constructor;return cF(e,t<=n.toExpNeg||t>=n.toExpPos)};var tF=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%ZB|0,r=n/ZB|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*ZB+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var l,s,u,c,d,f,p,h,g,m,v,y,b,w,x,C,S,k,E=r.constructor,O=r.s==o.s?1:-1,D=r.d,_=o.d;if(!r.s)return new E(r);if(!o.s)throw Error(FB+"Division by zero");for(s=r.e-o.e,S=_.length,x=D.length,h=(p=new E(O)).d=[],u=0;_[u]==(D[u]||0);)++u;if(_[u]>(D[u]||0)&&--s,(y=null==i?i=E.precision:a?i+(rF(r)-rF(o))+1:i)<0)return new E(0);if(y=y/qB+2|0,u=0,1==S)for(c=0,_=_[0],y++;(u<x||c)&&y--;u++)b=c*ZB+(D[u]||0),h[u]=b/_|0,c=b%_|0;else{for((c=ZB/(_[0]+1)|0)>1&&(_=e(_,c),D=e(D,c),S=_.length,x=D.length),w=S,m=(g=D.slice(0,S)).length;m<S;)g[m++]=0;(k=_.slice()).unshift(0),C=_[0],_[1]>=ZB/2&&++C;do{c=0,(l=t(_,g,S,m))<0?(v=g[0],S!=m&&(v=v*ZB+(g[1]||0)),(c=v/C|0)>1?(c>=ZB&&(c=ZB-1),1==(l=t(d=e(_,c),g,f=d.length,m=g.length))&&(c--,n(d,S<f?k:_,f))):(0==c&&(l=c=1),d=_.slice()),(f=d.length)<m&&d.unshift(0),n(g,d,m),-1==l&&(l=t(_,g,S,m=g.length))<1&&(c++,n(g,S<m?k:_,m)),m=g.length):0===l&&(c++,g=[0]),h[u++]=c,l&&g[0]?g[m++]=D[w]||0:(g=[D[w]],m=1)}while((w++<x||void 0!==g[0])&&y--)}return h[0]||h.shift(),p.e=s,sF(p,a?i+rF(p)+1:i)}}();function nF(e,t){var n,r,o,i,a,l=0,s=0,u=e.constructor,c=u.precision;if(rF(e)>16)throw Error(VB+rF(e));if(!e.s)return new u(NB);for(null==t?(BB=!1,a=c):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),s+=5;for(a+=Math.log(UB(2,s))/Math.LN10*2+5|0,n=r=o=new u(NB),u.precision=a;;){if(r=sF(r.times(e),a),n=n.times(++l),eF((i=o.plus(tF(r,n,a))).d).slice(0,a)===eF(o.d).slice(0,a)){for(;s--;)o=sF(o.times(o),a);return u.precision=c,null==t?(BB=!0,sF(o,c)):o}o=i}}function rF(e){for(var t=e.e*qB,n=e.d[0];n>=10;n/=10)t++;return t}function oF(e,t,n){if(t>e.LN10.sd())throw BB=!0,n&&(e.precision=n),Error(FB+"LN10 precision limit exceeded");return sF(new e(e.LN10),t)}function iF(e){for(var t="";e--;)t+="0";return t}function aF(e,t){var n,r,o,i,a,l,s,u,c,d=1,f=e,p=f.d,h=f.constructor,g=h.precision;if(f.s<1)throw Error(FB+(f.s?"NaN":"-Infinity"));if(f.eq(NB))return new h(0);if(null==t?(BB=!1,u=g):u=t,f.eq(10))return null==t&&(BB=!0),oF(h,u);if(u+=10,h.precision=u,r=(n=eF(p)).charAt(0),i=rF(f),!(Math.abs(i)<15e14))return s=oF(h,u+2,g).times(i+""),f=aF(new h(r+"."+n.slice(1)),u-10).plus(s),h.precision=g,null==t?(BB=!0,sF(f,g)):f;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=eF((f=f.times(e)).d)).charAt(0),d++;for(i=rF(f),r>1?(f=new h("0."+n),i++):f=new h(r+"."+n.slice(1)),l=a=f=tF(f.minus(NB),f.plus(NB),u),c=sF(f.times(f),u),o=3;;){if(a=sF(a.times(c),u),eF((s=l.plus(tF(a,new h(o),u))).d).slice(0,u)===eF(l.d).slice(0,u))return l=l.times(2),0!==i&&(l=l.plus(oF(h,u+2,g).times(i+""))),l=tF(l,new h(d),u),h.precision=g,null==t?(BB=!0,sF(l,g)):l;l=s,o+=2}}function lF(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=HB(n/qB),e.d=[],r=(n+1)%qB,n<0&&(r+=qB),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=qB;r<o;)e.d.push(+t.slice(r,r+=qB));t=t.slice(r),r=qB-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),BB&&(e.e>YB||e.e<-YB))throw Error(VB+n)}else e.s=0,e.e=0,e.d=[0];return e}function sF(e,t,n){var r,o,i,a,l,s,u,c,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=qB,o=t,u=d[c=0];else{if((c=Math.ceil((r+1)/qB))>=(i=d.length))return e;for(u=i=d[c],a=1;i>=10;i/=10)a++;o=(r%=qB)-qB+a}if(void 0!==n&&(l=u/(i=UB(10,a-o-1))%10|0,s=t<0||void 0!==d[c+1]||u%i,s=n<4?(l||s)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||s||6==n&&(r>0?o>0?u/UB(10,a-o):0:d[c-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return s?(i=rF(e),d.length=1,t=t-i-1,d[0]=UB(10,(qB-t%qB)%qB),e.e=HB(-t/qB)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(0==r?(d.length=c,i=1,c--):(d.length=c+1,i=UB(10,qB-r),d[c]=o>0?(u/UB(10,a-o)%UB(10,o)|0)*i:0),s)for(;;){if(0==c){(d[0]+=i)==ZB&&(d[0]=1,++e.e);break}if(d[c]+=i,d[c]!=ZB)break;d[c--]=0,i=1}for(r=d.length;0===d[--r];)d.pop();if(BB&&(e.e>YB||e.e<-YB))throw Error(VB+rF(e));return e}function uF(e,t){var n,r,o,i,a,l,s,u,c,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),BB?sF(t,p):t;if(s=e.d,d=t.d,r=t.e,u=e.e,s=s.slice(),a=u-r){for((c=a<0)?(n=s,a=-a,l=d.length):(n=d,r=u,l=s.length),a>(o=Math.max(Math.ceil(p/qB),l)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((c=(o=s.length)<(l=d.length))&&(l=o),o=0;o<l;o++)if(s[o]!=d[o]){c=s[o]<d[o];break}a=0}for(c&&(n=s,s=d,d=n,t.s=-t.s),l=s.length,o=d.length-l;o>0;--o)s[l++]=0;for(o=d.length;o>a;){if(s[--o]<d[o]){for(i=o;i&&0===s[--i];)s[i]=ZB-1;--s[i],s[o]+=ZB}s[o]-=d[o]}for(;0===s[--l];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,BB?sF(t,p):t):new f(0)}function cF(e,t,n){var r,o=rF(e),i=eF(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+iF(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+iF(-o-1)+i,n&&(r=n-a)>0&&(i+=iF(r))):o>=a?(i+=iF(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+iF(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=iF(r))),e.s<0?"-"+i:i}function dF(e,t){if(e.length>t)return e.length=t,!0}function fF(e){if(!e||"object"!=typeof e)throw Error(FB+"Object expected");var t,n,r,o=["precision",1,zB,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(HB(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(KB+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(KB+n+": "+r);this[n]=new this(r)}return this}var pF=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(KB+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):lF(t,e.toString())}if("string"!=typeof e)throw Error(KB+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!WB.test(e))throw Error(KB+e);lF(t,e)}if(i.prototype=XB,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=fF,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});NB=new pF(1);var hF=pF;function gF(e){return function(e){if(Array.isArray(e))return mF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return mF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mF(e,t)}(e)||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 mF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vF=function(e){return e},yF={"@@functional/placeholder":!0},bF=function(e){return e===yF},wF=function(e){return function t(){return 0===arguments.length||1===arguments.length&&bF(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},xF=function e(t,n){return 1===t?n:wF((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==yF})).length;return a>=t?n.apply(void 0,o):e(t-a,wF((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return bF(e)?t.shift():e}));return n.apply(void 0,gF(i).concat(t))})))}))},CF=function(e){return xF(e.length,e)},SF=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},kF=CF((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),EF=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return vF;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},OF=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},DF=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var _F=CF((function(e,t,n){var r=+e;return r+n*(+t-r)})),PF=CF((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),TF=CF((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),AF={rangeStep:function(e,t,n){for(var r=new hF(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new hF(e).abs().log(10).toNumber())+1},interpolateNumber:_F,uninterpolateNumber:PF,uninterpolateTruncation:TF};function MF(e){return function(e){if(Array.isArray(e))return IF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||LF(e)||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 jF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||LF(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 LF(e,t){if(e){if("string"==typeof e)return IF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IF(e,t):void 0}}function IF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RF(e){var t=jF(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function NF(e,t,n){if(e.lte(0))return new hF(0);var r=AF.getDigitCount(e.toNumber()),o=new hF(10).pow(r),i=e.div(o),a=1!==r?.05:.1,l=new hF(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?l:new hF(Math.ceil(l))}function $F(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new hF(0),tickMin:new hF(0),tickMax:new hF(0)};var i,a=NF(new hF(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new hF(0):(i=new hF(e).add(t).div(2)).sub(new hF(i).mod(a));var l=Math.ceil(i.sub(e).div(a).toNumber()),s=Math.ceil(new hF(t).sub(i).div(a).toNumber()),u=l+s+1;return u>n?$F(e,t,n,r,o+1):(u<n&&(s=t>0?s+(n-u):s,l=t>0?l:l+(n-u)),{step:a,tickMin:i.sub(new hF(l).mul(a)),tickMax:i.add(new hF(s).mul(a))})}var zF=DF((function(e){var t=jF(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),l=jF(RF([n,r]),2),s=l[0],u=l[1];if(s===-1/0||u===1/0){var c=u===1/0?[s].concat(MF(SF(0,o-1).map((function(){return 1/0})))):[].concat(MF(SF(0,o-1).map((function(){return-1/0}))),[u]);return n>r?OF(c):c}if(s===u)return function(e,t,n){var r=1,o=new hF(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new hF(10).pow(AF.getDigitCount(e)-1),o=new hF(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new hF(Math.floor(e)))}else 0===e?o=new hF(Math.floor((t-1)/2)):n||(o=new hF(Math.floor(e)));var a=Math.floor((t-1)/2),l=EF(kF((function(e){return o.add(new hF(e-a).mul(r)).toNumber()})),SF);return l(0,t)}(s,o,i);var d=$F(s,u,a,i),f=d.step,p=d.tickMin,h=d.tickMax,g=AF.rangeStep(p,h.add(new hF(.1).mul(f)),f);return n>r?OF(g):g})),BF=DF((function(e,t){var n=jF(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=jF(RF([r,o]),2),l=a[0],s=a[1];if(l===-1/0||s===1/0)return[r,o];if(l===s)return[l];var u=Math.max(t,2),c=NF(new hF(s).sub(l).div(u-1),i,0),d=[].concat(MF(AF.rangeStep(new hF(l),new hF(s).sub(new hF(.99).mul(c)),c)),[s]);return r>o?OF(d):d})),FF="production"===process.env.NODE_ENV,KF="Invariant failed";function VF(e,t){if(!e){if(FF)throw new Error(KF);var n="function"==typeof t?t():t,r=n?"".concat(KF,": ").concat(n):KF;throw new Error(r)}}var HF=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function UF(){return UF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UF.apply(this,arguments)}function WF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ZF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZF(e,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 ZF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qF(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function GF(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,l=e.dataPointFormatter,s=e.xAxis,u=e.yAxis,c=qF(e,HF),d=uO(c,!1);"x"===e.direction&&"number"!==s.type&&("production"!==process.env.NODE_ENV?VF(!1,'ErrorBar requires Axis type property to be "number".'):VF(!1));var f=a.map((function(e){var a=l(e,i),c=a.x,f=a.y,p=a.value,h=a.errorVal;if(!h)return null;var g,m,v=[];if(Array.isArray(h)){var y=WF(h,2);g=y[0],m=y[1]}else g=m=h;if("vertical"===n){var b=s.scale,w=f+t,x=w+r,C=w-r,S=b(p-g),k=b(p+m);v.push({x1:k,y1:x,x2:k,y2:C}),v.push({x1:S,y1:w,x2:k,y2:w}),v.push({x1:S,y1:x,x2:S,y2:C})}else if("horizontal"===n){var E=u.scale,O=c+t,D=O-r,_=O+r,P=E(p-g),T=E(p+m);v.push({x1:D,y1:T,x2:_,y2:T}),v.push({x1:O,y1:P,x2:O,y2:T}),v.push({x1:D,y1:P,x2:_,y2:P})}return o.createElement(wO,UF({className:"recharts-errorBar",key:"bar-".concat(v.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},d),v.map((function(e){return o.createElement("line",UF({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return o.createElement(wO,{className:"recharts-errorBars"},f)}function YF(e){return YF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YF(e)}function XF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XF(Object(n),!0).forEach((function(t){QF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QF(e,t,n){return t=function(e){var t=function(e,t){if("object"!=YF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YF(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}GF.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},GF.displayName="ErrorBar";var eK=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=aO(n,TM);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:uK(t),value:o||r,payload:t.props}})),JF(JF(JF({},a.props),TM.getWithHeight(a,o)),{},{payload:t,item:a})):null};function tK(e){return tK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tK(e)}function nK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nK(Object(n),!0).forEach((function(t){oK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=tK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tK(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iK(e){return function(e){if(Array.isArray(e))return aK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return aK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aK(e,t)}(e)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lK(e,t,n){return gE(e)||gE(t)?n:IE(t)?hE(e,t,n):vS(t)?t(e):n}function sK(e,t,n,r){var o=IB(e,(function(e){return lK(e,t)}));if("number"===n){var i=o.filter((function(e){return LE(e)||parseFloat(e)}));return i.length?[_B(i),CB(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!gE(e)})):o).map((function(e){return IE(e)||e instanceof Date?e:""}))}var uK=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},cK=function(e,t,n,r,o){var i=iO(t.props.children,GF).filter((function(e){return function(e,t,n){return!!gE(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=lK(t,n);if(gE(r))return e;var o=Array.isArray(r)?[_B(r),CB(r)]:[r,r],i=a.reduce((function(e,n){var r=lK(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},dK=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&cK(e,t,i,r)||sK(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},fK=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},pK=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,i,a=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(i=!0),e.coordinate}));return o||a.push(t),i||a.push(n),a},hK=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,l="scaleBand"===e.realScaleType?r.bandwidth()/2:2,s=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/l:0;return s="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*ME(a[0]-a[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+s,value:e,offset:s}})).filter((function(e){return!AE(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+s,value:e,offset:s}})):r.domain().map((function(e,t){return{coordinate:r(e)+s,value:o?o[e]:e,index:t,offset:s}}))},gK=new WeakMap,mK=function(e,t){if("function"!=typeof t)return e;gK.has(e)||gK.set(e,new WeakMap);var n=gK.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},vK=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:iR(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:PN(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:lR(),realScaleType:"point"}:"category"===o?{scale:iR(),realScaleType:"band"}:{scale:PN(),realScaleType:"linear"};if(wE(r)){var l="scale".concat(XO(r));return{scale:(hB[l]||lR)(),realScaleType:hB[l]?l:"point"}}return vS(r)?{scale:r}:{scale:lR(),realScaleType:"point"}},yK=1e-4,bK=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-yK,i=Math.max(r[0],r[1])+yK,a=e(t[0]),l=e(t[n-1]);(a<o||a>i||l<o||l>i)&&e.domain([t[0],t[n-1]])}},wK={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var l=AE(e[a][n][1])?e[a][n][0]:e[a][n][1];l>=0?(e[a][n][0]=o,e[a][n][1]=o+l,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+l,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}JD(e,t)}},none:JD,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,l=0;a<n;++a)l+=e[a][r][1]||0;o[r][1]+=o[r][0]=-l/2}JD(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],d=c[a][1]||0,f=(d-(c[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];f+=(h[a][1]||0)-(h[a-1][1]||0)}s+=d,u+=f*d}n[a-1][1]+=n[a-1][0]=i,s&&(i-=u/s)}n[a-1][1]+=n[a-1][0]=i,JD(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=AE(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},xK=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=wK[n],i=function(){var e=JO([]),t=QD,n=JD,r=e_;function o(o){var i,a,l=Array.from(e.apply(this,arguments),t_),s=l.length,u=-1;for(const e of o)for(i=0,++u;i<s;++i)(l[i][u]=[0,+r(e,l[i].key,u,o)]).data=e;for(i=0,a=dD(t(l));i<s;++i)l[a[i]].index=i;return n(l,a),l}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:JO(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:JO(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?QD:"function"==typeof e?e:JO(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?JD:e,o):n},o}().keys(r).value((function(e,t){return+lK(e,t,0)})).order(QD).offset(o);return i(e)},CK=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,l=n||t.scale;if("auto"!==l&&"linear"!==l)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var s=e.domain();if(!s.length)return null;var u=zF(s,o,a);return e.domain([_B(u),CB(u)]),{niceTicks:u}}if(o&&"number"===r){var c=e.domain();return{niceTicks:BF(c,o,a)}}return null};function SK(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!gE(o[t.dataKey])){var l=FE(n,"value",o[t.dataKey]);if(l)return l.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var s=lK(o,gE(a)?t.dataKey:a);return gE(s)?null:t.scale(s)}var kK=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var l=lK(i,t.dataKey,t.domain[a]);return gE(l)?null:t.scale(l)-o/2+r},EK=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[_B(t.concat([e[0]]).filter(LE)),CB(t.concat([e[1]]).filter(LE))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},OK=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,DK=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_K=function(e,t,n){if(vS(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(LE(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(OK.test(e[0])){var o=+OK.exec(e[0])[1];r[0]=t[0]-o}else vS(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(LE(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(DK.test(e[1])){var i=+DK.exec(e[1])[1];r[1]=t[1]+i}else vS(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},PK=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=Aj(t,(function(e){return e.coordinate})),i=1/0,a=1,l=o.length;a<l;a++){var s=o[a],u=o[a-1];i=Math.min((s.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},TK=function(e,t,n){return e&&e.length?$B(e,hE(n,"type.defaultProps.domain"))?t:e:t},AK=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,l=n.tooltipType,s=n.chartType,u=n.hide;return rK(rK({},uO(e,!1)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:uK(e),value:lK(t,r),type:l,payload:t,chartType:s,hide:u})};function MK(e){return MK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MK(e)}function jK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jK(Object(n),!0).forEach((function(t){IK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=MK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=MK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==MK(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return NK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NK(e,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 NK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $K=Math.PI/180,zK=function(e){return 180*e/Math.PI},BK=function(e,t,n,r){return{x:e+Math.cos(-$K*r)*n,y:t+Math.sin(-$K*r)*n}},FK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},KK=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var l=(n-o)/a,s=Math.acos(l);return r>i&&(s=2*Math.PI-s),{radius:a,angle:zK(s),angleInRadian:s}},VK=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},HK=function(e,t){var n=e.x,r=e.y,o=KK({x:n,y:r},t),i=o.radius,a=o.angle,l=t.innerRadius,s=t.outerRadius;if(i<l||i>s)return!1;if(0===i)return!0;var u,c=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),d=c.startAngle,f=c.endAngle,p=a;if(d<=f){for(;p>f;)p-=360;for(;p<d;)p+=360;u=p>=d&&p<=f}else{for(;p>d;)p-=360;for(;p<f;)p+=360;u=p>=f&&p<=d}return u?LK(LK({},t),{},{radius:i,angle:VK(p,t)}):null},UK=function(e){return p(e)||vS(e)||"boolean"==typeof e?"":e.className};function WK(e){return WK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WK(e)}var ZK=["offset"];function qK(e){return function(e){if(Array.isArray(e))return GK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return GK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GK(e,t)}(e)||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 GK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YK(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function XK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XK(Object(n),!0).forEach((function(t){QK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=WK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=WK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==WK(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eV(){return eV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eV.apply(this,arguments)}var tV=function(e){var t=e.value,n=e.formatter,r=gE(e.children)?t:e.children;return vS(n)?n(r):r},nV=function(e,t,n){var r,i,a=e.position,l=e.viewBox,s=e.offset,u=e.className,c=l,d=c.cx,f=c.cy,p=c.innerRadius,h=c.outerRadius,g=c.startAngle,m=c.endAngle,v=c.clockWise,y=(p+h)/2,b=function(e,t){return ME(t-e)*Math.min(Math.abs(t-e),360)}(g,m),w=b>=0?1:-1;"insideStart"===a?(r=g+w*s,i=v):"insideEnd"===a?(r=m-w*s,i=!v):"end"===a&&(r=m+w*s,i=v),i=b<=0?i:!i;var x=BK(d,f,y,r),C=BK(d,f,y,r+359*(i?1:-1)),S="M".concat(x.x,",").concat(x.y,"\n A").concat(y,",").concat(y,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),k=gE(e.id)?NE("recharts-radial-line-"):e.id;return o.createElement("text",eV({},n,{dominantBaseline:"central",className:$C("recharts-radial-bar-label",u)}),o.createElement("defs",null,o.createElement("path",{id:k,d:S})),o.createElement("textPath",{xlinkHref:"#".concat(k)},t))},rV=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,l=o.innerRadius,s=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var c=BK(i,a,s+n,u),d=c.x;return{x:d,y:c.y,textAnchor:d>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=BK(i,a,(l+s)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},oV=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,l=i.y,s=i.width,u=i.height,c=u>=0?1:-1,d=c*r,f=c>0?"end":"start",p=c>0?"start":"end",h=s>=0?1:-1,g=h*r,m=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return JK(JK({},{x:a+s/2,y:l-c*r,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(l-n.y,0),width:s}:{});if("bottom"===o)return JK(JK({},{x:a+s/2,y:l+u+d,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(l+u),0),width:s}:{});if("left"===o){var y={x:a-g,y:l+u/2,textAnchor:m,verticalAnchor:"middle"};return JK(JK({},y),n?{width:Math.max(y.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+s+g,y:l+u/2,textAnchor:v,verticalAnchor:"middle"};return JK(JK({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:s,height:u}:{};return"insideLeft"===o?JK({x:a+g,y:l+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?JK({x:a+s-g,y:l+u/2,textAnchor:m,verticalAnchor:"middle"},w):"insideTop"===o?JK({x:a+s/2,y:l+d,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?JK({x:a+s/2,y:l+u-d,textAnchor:"middle",verticalAnchor:f},w):"insideTopLeft"===o?JK({x:a+g,y:l+d,textAnchor:v,verticalAnchor:p},w):"insideTopRight"===o?JK({x:a+s-g,y:l+d,textAnchor:m,verticalAnchor:p},w):"insideBottomLeft"===o?JK({x:a+g,y:l+u-d,textAnchor:v,verticalAnchor:f},w):"insideBottomRight"===o?JK({x:a+s-g,y:l+u-d,textAnchor:m,verticalAnchor:f},w):fS(o)&&(LE(o.x)||jE(o.x))&&(LE(o.y)||jE(o.y))?JK({x:a+$E(o.x,s),y:l+$E(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):JK({x:a+s/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},iV=function(e){return"cx"in e&&LE(e.cx)};function aV(e){var t,n=e.offset,r=JK({offset:void 0===n?5:n},YK(e,ZK)),i=r.viewBox,a=r.position,s=r.value,u=r.children,c=r.content,d=r.className,f=void 0===d?"":d,g=r.textBreakAll;if(!i||gE(s)&&gE(u)&&!p(c)&&!vS(c))return null;if(p(c))return h(c,r);if(vS(c)){if(p(t=l(c,r)))return t}else t=tV(r);var m=iV(i),v=uO(r,!0);if(m&&("insideStart"===a||"insideEnd"===a||"end"===a))return nV(r,t,v);var y=m?rV(r):oV(r);return o.createElement(MI,eV({className:$C("recharts-label",f)},v,y,{breakAll:g}),t)}aV.displayName="Label";var lV=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,s=e.innerRadius,u=e.outerRadius,c=e.x,d=e.y,f=e.top,p=e.left,h=e.width,g=e.height,m=e.clockWise,v=e.labelViewBox;if(v)return v;if(LE(h)&&LE(g)){if(LE(c)&&LE(d))return{x:c,y:d,width:h,height:g};if(LE(f)&&LE(p))return{x:f,y:p,width:h,height:g}}return LE(c)&&LE(d)?{x:c,y:d,width:0,height:0}:LE(t)&&LE(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:s||0,outerRadius:u||l||a||0,clockWise:m}:e.viewBox?e.viewBox:{}};aV.parseViewBox=lV,aV.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=lV(e),a=iO(r,aV).map((function(e,n){return h(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return a;var l=function(e,t){return e?!0===e?o.createElement(aV,{key:"label-implicit",viewBox:t}):IE(e)?o.createElement(aV,{key:"label-implicit",viewBox:t,value:e}):p(e)?e.type===aV?h(e,{key:"label-implicit",viewBox:t}):o.createElement(aV,{key:"label-implicit",content:e,viewBox:t}):vS(e)?o.createElement(aV,{key:"label-implicit",content:e,viewBox:t}):fS(e)?o.createElement(aV,eV({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||i);return[l].concat(qK(a))};var sV=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},uV=Mt(sV);function cV(e){return cV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cV(e)}var dV=["valueAccessor"],fV=["data","dataKey","clockWise","id","textBreakAll"];function pV(e){return function(e){if(Array.isArray(e))return hV(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return hV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hV(e,t)}(e)||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 hV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gV(){return gV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gV.apply(this,arguments)}function mV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mV(Object(n),!0).forEach((function(t){yV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=cV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wV=function(e){return Array.isArray(e.value)?uV(e.value):e.value};function xV(e){var t=e.valueAccessor,n=void 0===t?wV:t,r=bV(e,dV),i=r.data,a=r.dataKey,l=r.clockWise,s=r.id,u=r.textBreakAll,c=bV(r,fV);return i&&i.length?o.createElement(wO,{className:"recharts-label-list"},i.map((function(e,t){var r=gE(a)?n(e,t):lK(e&&e.payload,a),i=gE(s)?{}:{id:"".concat(s,"-").concat(t)};return o.createElement(aV,gV({},uO(e,!0),c,i,{parentViewBox:e.parentViewBox,value:r,textBreakAll:u,viewBox:aV.parseViewBox(gE(l)?e:vV(vV({},e),{},{clockWise:l})),key:"label-".concat(t),index:t}))}))):null}function CV(e){return CV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CV(e)}function SV(){return SV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SV.apply(this,arguments)}function kV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kV(Object(n),!0).forEach((function(t){OV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=CV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=CV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==CV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}xV.displayName="LabelList",xV.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=iO(e.children,xV).map((function(e,n){return h(e,{data:t,key:"labelList-".concat(n)})}));return n?[function(e,t){return e?!0===e?o.createElement(xV,{key:"labelList-implicit",data:t}):o.isValidElement(e)||vS(e)?o.createElement(xV,{key:"labelList-implicit",data:t,content:e}):fS(e)?o.createElement(xV,gV({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(pV(r)):r};var DV=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,l=e.cornerRadius,s=e.cornerIsExternal,u=l*(a?1:-1)+r,c=Math.asin(l/u)/$K,d=s?o:o+i*c,f=s?o-i*c:o;return{center:BK(t,n,u,d),circleTangency:BK(t,n,r,d),lineTangency:BK(t,n,u*Math.cos(c*$K),f),theta:c}},_V=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return ME(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),l=i+a,s=BK(t,n,o,i),u=BK(t,n,o,l),c="M ".concat(s.x,",").concat(s.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>l),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var d=BK(t,n,r,i),f=BK(t,n,r,l);c+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=l),",\n ").concat(d.x,",").concat(d.y," Z")}else c+="L ".concat(t,",").concat(n," Z");return c},PV={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},TV=function(e){var t=EV(EV({},PV),e),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,l=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,d=t.endAngle,f=t.className;if(a<i||c===d)return null;var p,h=$C("recharts-sector",f),g=a-i,m=$E(l,g,0,!0);return p=m>0&&Math.abs(c-d)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,u=e.endAngle,c=ME(u-s),d=DV({cx:t,cy:n,radius:o,angle:s,sign:c,cornerRadius:i,cornerIsExternal:l}),f=d.circleTangency,p=d.lineTangency,h=d.theta,g=DV({cx:t,cy:n,radius:o,angle:u,sign:-c,cornerRadius:i,cornerIsExternal:l}),m=g.circleTangency,v=g.lineTangency,y=g.theta,b=l?Math.abs(s-u):Math.abs(s-u)-h-y;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):_V({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:u});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(f.x,",").concat(f.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=DV({cx:t,cy:n,radius:r,angle:s,sign:c,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),C=x.circleTangency,S=x.lineTangency,k=x.theta,E=DV({cx:t,cy:n,radius:r,angle:u,sign:-c,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),O=E.circleTangency,D=E.lineTangency,_=E.theta,P=l?Math.abs(s-u):Math.abs(s-u)-k-_;if(P<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(D.x,",").concat(D.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(P>180),",").concat(+(c>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,g/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:d}):_V({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:c,endAngle:d}),o.createElement("path",SV({},uO(t,!0),{className:h,d:p,role:"img"}))};function AV(e){return AV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AV(e)}function MV(){return MV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MV.apply(this,arguments)}function jV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jV(Object(n),!0).forEach((function(t){IV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=AV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=AV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RV={curveBasisClosed:function(e){return new zD(e)},curveBasisOpen:function(e){return new BD(e)},curveBasis:function(e){return new $D(e)},curveBumpX:function(e){return new yD(e,!0)},curveBumpY:function(e){return new yD(e,!1)},curveLinearClosed:function(e){return new FD(e)},curveLinear:pD,curveMonotoneX:function(e){return new WD(e)},curveMonotoneY:function(e){return new ZD(e)},curveNatural:function(e){return new GD(e)},curveStep:function(e){return new XD(e,.5)},curveStepAfter:function(e){return new XD(e,1)},curveStepBefore:function(e){return new XD(e,0)}},NV=function(e){return e.x===+e.x&&e.y===+e.y},$V=function(e){return e.x},zV=function(e){return e.y},BV=function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,i=void 0===o?[]:o,a=e.baseLine,l=e.layout,s=e.connectNulls,u=void 0!==s&&s,c=function(e,t){if(vS(e))return e;var n="curve".concat(XO(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?RV[n]||pD:RV["".concat(n).concat("vertical"===t?"Y":"X")]}(r,l),d=u?i.filter((function(e){return NV(e)})):i;if(Array.isArray(a)){var f=u?a.filter((function(e){return NV(e)})):a,p=d.map((function(e,t){return LV(LV({},e),{},{base:f[t]})}));return(t="vertical"===l?vD().y(zV).x1($V).x0((function(e){return e.base.x})):vD().x($V).y1(zV).y0((function(e){return e.base.y}))).defined(NV).curve(c),t(p)}return(t="vertical"===l&&LE(a)?vD().y(zV).x1($V).x0(a):LE(a)?vD().x($V).y1(zV).y0(a):mD().x($V).y(zV)).defined(NV).curve(c),t(d)},FV=function(e){var t=e.className,n=e.points,r=e.path,i=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?BV(e):r;return o.createElement("path",MV({},uO(e,!1),qE(e),{className:$C("recharts-curve",t),d:a,ref:i}))},KV={exports:{}},VV=Object.getOwnPropertySymbols,HV=Object.prototype.hasOwnProperty,UV=Object.prototype.propertyIsEnumerable;var WV,ZV,qV,GV,YV,XV,JV,QV,eH,tH,nH=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))HV.call(n,a)&&(o[a]=n[a]);if(VV){r=VV(n);for(var l=0;l<r.length;l++)UV.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o};function rH(){if(ZV)return WV;ZV=1;return WV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function oH(){return GV?qV:(GV=1,qV=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var iH=EE;KV.exports=function(){if(QV)return JV;QV=1;var e=EE,t=nH,n=rH(),r=oH(),o=function(){if(XV)return YV;XV=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=rH(),n={},r=oH();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,l,s){if("production"!==process.env.NODE_ENV)for(var u in o)if(r(o,u)){var c;try{if("function"!=typeof o[u]){var d=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=o[u](i,u,l,a,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var f=s?s():"";e("Failed "+a+" type: "+c.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},YV=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),JV=function(l,s){var u="function"==typeof Symbol&&Symbol.iterator,c="@@iterator",d="<<anonymous>>",f={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(a),arrayOf:function(e){return g((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+i+" `"+a+"` of type `"+b(l)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<l.length;s++){var u=e(l,s,o,i,a+"["+s+"]",n);if(u instanceof Error)return u}return null}))},element:g((function(e,t,n,r,o){var i=e[t];return l(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+o+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:g((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,i,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[o],u=b(s);if("object"!==u)return new h("Invalid "+a+" `"+l+"` of type `"+u+"` supplied to `"+i+"`, expected an object.");for(var c in s)if(r(s,c)){var d=e(s,c,i,a,l+"."+c,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&i(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(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return g((function(t,o,i,a,l){for(var s=[],u=0;u<e.length;u++){var c=(0,e[u])(t,o,i,a,l,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&s.push(c.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,o,i,a){var l=t[r],s=b(l);if("object"!==s)return new h("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return v(o,i,a,u,w(c));var d=c(l,u,o,i,a+"."+u,n);if(d)return d}return null}))},exact:function(e){return g((function(o,i,a,l,s){var u=o[i],c=b(u);if("object"!==c)return new h("Invalid "+l+" `"+s+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var f in d){var p=e[f];if(r(e,f)&&"function"!=typeof p)return v(a,l,s,f,w(p));if(!p)return new h("Invalid "+l+" `"+s+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(u,f,a,l,s+"."+f,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,l,u,c,f,p){if(u=u||d,f=f||l,p!==n){if(s){var g=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 g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=u+":"+l;!t[m]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` 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."),t[m]=!0,r++)}}return null==a[l]?o?null===a[l]?new h("The "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,l,u,c,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return g((function(t,n,r,o,i,a){var l=t[n];return b(l)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||l(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[c]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},JV}()(iH.isElement,!0)}else KV.exports=function(){if(tH)return eH;tH=1;var e=rH();function t(){}function n(){}return n.resetWarningCache=t,eH=function(){function r(t,n,r,o,i,a){if(a!==e){var l=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 l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},eH}()();var aH=Mt(KV.exports),lH=Object.getOwnPropertyNames,sH=Object.getOwnPropertySymbols,uH=Object.prototype.hasOwnProperty;function cH(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function dH(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var l=e(t,n,r);return o.delete(t),o.delete(n),l}}function fH(e){return lH(e).concat(sH(e))}var pH=Object.hasOwn||function(e,t){return uH.call(e,t)};function hH(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var gH="_owner",mH=Object.getOwnPropertyDescriptor,vH=Object.keys;function yH(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function bH(e,t){return hH(e.getTime(),t.getTime())}function wH(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),l=0;(r=a.next())&&!r.done;){for(var s=t.entries(),u=!1,c=0;(o=s.next())&&!o.done;){var d=r.value,f=d[0],p=d[1],h=o.value,g=h[0],m=h[1];u||i[c]||!(u=n.equals(f,g,l,c,e,t,n)&&n.equals(p,m,f,g,e,t,n))||(i[c]=!0),c++}if(!u)return!1;l++}return!0}function xH(e,t,n){var r,o=vH(e),i=o.length;if(vH(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===gH&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!pH(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function CH(e,t,n){var r,o,i,a=fH(e),l=a.length;if(fH(t).length!==l)return!1;for(;l-- >0;){if((r=a[l])===gH&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!pH(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=mH(e,r),i=mH(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function SH(e,t){return hH(e.valueOf(),t.valueOf())}function kH(e,t){return e.source===t.source&&e.flags===t.flags}function EH(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var l=t.values(),s=!1,u=0;(o=l.next())&&!o.done;)s||i[u]||!(s=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[u]=!0),u++;if(!s)return!1}return!0}function OH(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var DH="[object Arguments]",_H="[object Boolean]",PH="[object Date]",TH="[object Map]",AH="[object Number]",MH="[object Object]",jH="[object RegExp]",LH="[object Set]",IH="[object String]",RH=Array.isArray,NH="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,$H=Object.assign,zH=Object.prototype.toString.call.bind(Object.prototype.toString);var BH=FH();function FH(e){void 0===e&&(e={});var t=e.circular,n=void 0!==t&&t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=void 0!==i&&i,l=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?CH:yH,areDatesEqual:bH,areMapsEqual:r?cH(wH,CH):wH,areObjectsEqual:r?CH:xH,arePrimitiveWrappersEqual:SH,areRegExpsEqual:kH,areSetsEqual:r?cH(EH,CH):EH,areTypedArraysEqual:r?CH:OH};if(n&&(o=$H({},o,n(o))),t){var i=dH(o.areArraysEqual),a=dH(o.areMapsEqual),l=dH(o.areObjectsEqual),s=dH(o.areSetsEqual);o=$H({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:s})}return o}(e),s=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,l=e.areSetsEqual,s=e.areTypedArraysEqual;return function(e,u,c){if(e===u)return!0;if(null==e||null==u||"object"!=typeof e||"object"!=typeof u)return e!=e&&u!=u;var d=e.constructor;if(d!==u.constructor)return!1;if(d===Object)return o(e,u,c);if(RH(e))return t(e,u,c);if(null!=NH&&NH(e))return s(e,u,c);if(d===Date)return n(e,u,c);if(d===RegExp)return a(e,u,c);if(d===Map)return r(e,u,c);if(d===Set)return l(e,u,c);var f=zH(e);return f===PH?n(e,u,c):f===jH?a(e,u,c):f===TH?r(e,u,c):f===LH?l(e,u,c):f===MH?"function"!=typeof e.then&&"function"!=typeof u.then&&o(e,u,c):f===DH?o(e,u,c):(f===_H||f===AH||f===IH)&&i(e,u,c)}}(l),u=r?r(s):function(e){return function(t,n,r,o,i,a,l){return e(t,n,l)}}(s);return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var l=r(),s=l.cache,u=void 0===s?t?new WeakMap:void 0:s,c=l.meta;return n(e,a,{cache:u,equals:o,meta:c,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:n,comparator:s,createState:o,equals:u,strict:a})}function KH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function VH(e){return VH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VH(e)}function HH(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return UH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UH(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 UH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WH(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=HH(r),i=o[0],a=o.slice(1);return"number"==typeof i?void KH(n.bind(null,a),i):(n(i),void KH(n.bind(null,a)))}"object"===VH(r)&&e(r),"function"==typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function ZH(e){return ZH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZH(e)}function qH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qH(Object(n),!0).forEach((function(t){YH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ZH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZH(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}FH({strict:!0}),FH({circular:!0}),FH({circular:!0,strict:!0}),FH({createInternalComparator:function(){return hH}}),FH({strict:!0,createInternalComparator:function(){return hH}}),FH({circular:!0,createInternalComparator:function(){return hH}}),FH({circular:!0,createInternalComparator:function(){return hH},strict:!0});var XH=function(e){return e},JH=function(e,t){return Object.keys(t).reduce((function(n,r){return GH(GH({},n),{},YH({},r,e(r,t[r])))}),{})},QH=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")},eU="production"!==process.env.NODE_ENV,tU=function(e,t,n,r,o,i,a,l){if(eU&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;console.warn(t.replace(/%s/g,(function(){return s[u++]})))}};function nU(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||oU(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 rU(e){return function(e){if(Array.isArray(e))return iU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oU(e)||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 oU(e,t){if(e){if("string"==typeof e)return iU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iU(e,t):void 0}}function iU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aU=1e-4,lU=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},sU=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},uU=function(e,t){return function(n){var r=lU(e,t);return sU(r,n)}},cU=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var l=t[0].split("(");if("cubic-bezier"===l[0]&&4===l[1].split(")")[0].split(",").length){var s=l[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),u=nU(s,4);r=u[0],o=u[1],i=u[2],a=u[3]}else tU(!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",t)}tU([r,i,o,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var c,d,f=uU(r,i),p=uU(o,a),h=(c=r,d=i,function(e){var t=lU(c,d),n=[].concat(rU(t.map((function(e,t){return e*t})).slice(1)),[0]);return sU(n,e)}),g=function(e){for(var t,n=e>1?1:e,r=n,o=0;o<8;++o){var i=f(r)-n,a=h(r);if(Math.abs(i-n)<aU||a<aU)return p(r);r=(t=r-i/a)>1?1:t<0?0:t}return p(r)};return g.isStepper=!1,g},dU=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return cU(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,l=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,l=r*a/1e3+e;return Math.abs(l-t)<aU&&Math.abs(i)<aU?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l}();default:if("cubic-bezier"===r.split("(")[0])return cU(r);tU(!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",t)}return"function"==typeof r?r:(tU(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function fU(e){return fU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fU(e)}function pU(e){return function(e){if(Array.isArray(e))return bU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yU(e)||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 hU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hU(Object(n),!0).forEach((function(t){mU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mU(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==fU(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fU(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vU(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||yU(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 yU(e,t){if(e){if("string"==typeof e)return bU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bU(e,t):void 0}}function bU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wU=function(e,t,n){return e+(t-e)*n},xU=function(e){return e.from!==e.to},CU=function e(t,n,r){var o=JH((function(e,n){if(xU(n)){var r=vU(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return gU(gU({},n),{},{from:o,velocity:i})}return n}),n);return r<1?JH((function(e,t){return xU(t)?gU(gU({},t),{},{velocity:wU(t.velocity,o[e].velocity,r),from:wU(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},SU=function(e,t,n,r,o){var i,a,l,s,u=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),c=u.reduce((function(n,r){return gU(gU({},n),{},mU({},r,[e[r],t[r]]))}),{}),d=u.reduce((function(n,r){return gU(gU({},n),{},mU({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),f=-1,p=function(){return null};return p=n.isStepper?function(r){l||(l=r);var i=(r-l)/n.dt;d=CU(n,d,i),o(gU(gU(gU({},e),t),JH((function(e,t){return t.from}),d))),l=r,Object.values(d).filter(xU).length&&(f=requestAnimationFrame(p))}:function(i){s||(s=i);var a=(i-s)/r,l=JH((function(e,t){return wU.apply(void 0,pU(t).concat([n(a)]))}),c);if(o(gU(gU(gU({},e),t),l)),a<1)f=requestAnimationFrame(p);else{var u=JH((function(e,t){return wU.apply(void 0,pU(t).concat([n(1)]))}),c);o(gU(gU(gU({},e),t),u))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}};function kU(e){return kU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kU(e)}var EU=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function OU(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DU(e){return function(e){if(Array.isArray(e))return _U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _U(e,t)}(e)||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 _U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PU(Object(n),!0).forEach((function(t){AU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AU(e,t,n){return(t=jU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jU(r.key),r)}}function jU(e){var t=function(e,t){if("object"!==kU(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kU(t)?t:String(t)}function LU(e,t){return LU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LU(e,t)}function IU(e){var t=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(e){return!1}}();return function(){var n,r=$U(e);if(t){var o=$U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RU(this,n)}}function RU(e,t){if(t&&("object"===kU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NU(e)}function NU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $U(e){return $U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$U(e)}var zU=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LU(e,t)}(a,x);var t,n,r,i=IU(a);function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=i.call(this,e,t)).props,o=r.isActive,l=r.attributeName,s=r.from,u=r.to,c=r.steps,d=r.children,f=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(NU(n)),n.changeStyle=n.changeStyle.bind(NU(n)),!o||f<=0)return n.state={style:{}},"function"==typeof d&&(n.state={style:u}),RU(n);if(c&&c.length)n.state={style:c[0].style};else if(s){if("function"==typeof d)return n.state={style:s},RU(n);n.state={style:l?AU({},l,s):s}}else n.state={style:{}};return n}return t=a,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,l=t.from,s=this.state.style;if(r)if(n){if(!(BH(e.to,a)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var c=u||i?l:e.to;if(this.state&&s){var d={style:o?AU({},o,c):c};(o&&s[o]!==c||!o&&s!==c)&&this.setState(d)}this.runAnimation(TU(TU({},this.props),{},{from:c,begin:0}))}}else{var f={style:o?AU({},o,a):a};this.state&&s&&(o&&s[o]!==a||!o&&s!==a)&&this.setState(f)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,l=e.onAnimationEnd,s=e.onAnimationStart,u=SU(n,r,dU(i),o,this.changeStyle);this.manager.start([s,a,function(){t.stopJSAnimation=u()},o,l])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,l=i.duration,s=void 0===l?0:l;return this.manager.start([o].concat(DU(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,l=void 0===a?"ease":a,s=r.style,u=r.properties,c=r.onAnimationEnd,d=o>0?n[o-1]:r,f=u||Object.keys(s);if("function"==typeof l||"spring"===l)return[].concat(DU(e),[t.runJSAnimation.bind(t,{from:d.style,to:s,duration:i,easing:l}),i]);var p=QH(f,i,l),h=TU(TU(TU({},d.style),s),{},{transition:p});return[].concat(DU(e),[h,i,c]).filter(XH)}),[a,Math.max(s,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=WH());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,l=e.onAnimationEnd,s=e.steps,u=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof u&&"spring"!==i)if(s.length>1)this.runStepAnimation(e);else{var d=r?AU({},r,o):o,f=QH(Object.keys(d),n,i);c.start([a,t,TU(TU({},d),{},{transition:f}),n,l])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children;e.begin;var n=e.duration;e.attributeName,e.easing;var r=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=OU(e,EU),a=f.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!r||0===a||n<=0)return t;var s=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,o=t.className;return h(e,TU(TU({},i),{},{style:TU(TU({},r),l),className:o}))};return 1===a?s(f.only(t)):o.createElement("div",null,f.map(t,(function(e){return s(e)})))}}],n&&MU(t.prototype,n),r&&MU(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function BU(e){return BU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BU(e)}function FU(){return FU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FU.apply(this,arguments)}function KU(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return VU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VU(e,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 VU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HU(Object(n),!0).forEach((function(t){WU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WU(e,t,n){return t=function(e){var t=function(e,t){if("object"!=BU(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BU(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}zU.displayName="Animate",zU.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},zU.propTypes={from:aH.oneOfType([aH.object,aH.string]),to:aH.oneOfType([aH.object,aH.string]),attributeName:aH.string,duration:aH.number,begin:aH.number,easing:aH.oneOfType([aH.string,aH.func]),steps:aH.arrayOf(aH.shape({duration:aH.number.isRequired,style:aH.object.isRequired,easing:aH.oneOfType([aH.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),aH.func]),properties:aH.arrayOf("string"),onAnimationEnd:aH.func})),children:aH.oneOfType([aH.node,aH.func]),isActive:aH.bool,canBegin:aH.bool,onAnimationEnd:aH.func,shouldReAnimate:aH.bool,onAnimationStart:aH.func,onAnimationReStart:aH.func},aH.object,aH.object,aH.object,aH.element,aH.object,aH.object,aH.object,aH.oneOfType([aH.array,aH.element]),aH.any;var ZU=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),l=r>=0?1:-1,s=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var c=[0,0,0,0],d=0;d<4;d++)c[d]=o[d]>a?a:o[d];i="M".concat(e,",").concat(t+l*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(e+s*c[0],",").concat(t)),i+="L ".concat(e+n-s*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+l*c[1])),i+="L ".concat(e+n,",").concat(t+r-l*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,",\n ").concat(e+n-s*c[2],",").concat(t+r)),i+="L ".concat(e+s*c[3],",").concat(t+r),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-l*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var f=Math.min(a,o);i="M ".concat(e,",").concat(t+l*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(e+s*f,",").concat(t,"\n L ").concat(e+n-s*f,",").concat(t,"\n A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(e+n,",").concat(t+l*f,"\n L ").concat(e+n,",").concat(t+r-l*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(e+n-s*f,",").concat(t+r,"\n L ").concat(e+s*f,",").concat(t+r,"\n A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(e,",").concat(t+r-l*f," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},qU=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,l=t.height;if(Math.abs(a)>0&&Math.abs(l)>0){var s=Math.min(o,o+a),u=Math.max(o,o+a),c=Math.min(i,i+l),d=Math.max(i,i+l);return n>=s&&n<=u&&r>=c&&r<=d}return!1},GU={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YU=function(e){var t=UU(UU({},GU),e),n=g(),r=KU(v(-1),2),i=r[0],a=r[1];m((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var l=t.x,s=t.y,u=t.width,c=t.height,d=t.radius,f=t.className,p=t.animationEasing,h=t.animationDuration,y=t.animationBegin,b=t.isAnimationActive,w=t.isUpdateAnimationActive;if(l!==+l||s!==+s||u!==+u||c!==+c||0===u||0===c)return null;var x=$C("recharts-rectangle",f);return w?o.createElement(zU,{canBegin:i>0,from:{width:u,height:c,x:l,y:s},to:{width:u,height:c,x:l,y:s},duration:h,animationEasing:p,isActive:w},(function(e){var r=e.width,a=e.height,l=e.x,s=e.y;return o.createElement(zU,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:h,isActive:b,easing:p},o.createElement("path",FU({},uO(t,!0),{className:x,d:ZU(l,s,r,a,d),ref:n})))})):o.createElement("path",FU({},uO(t,!0),{className:x,d:ZU(l,s,u,c,d)}))},XU=["points","className","baseLinePoints","connectNulls"];function JU(){return JU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JU.apply(this,arguments)}function QU(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function eW(e){return function(e){if(Array.isArray(e))return tW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tW(e,t)}(e)||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 tW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nW=function(e){return e&&e.x===+e.x&&e.y===+e.y},rW=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){nW(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),nW(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(eW(e),eW(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},oW=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,a=QU(e,XU);if(!t||!t.length)return null;var l=$C("recharts-polygon",n);if(r&&r.length){var s=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=rW(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(rW(t.reverse(),n).slice(1))}(t,r,i);return o.createElement("g",{className:l},o.createElement("path",JU({},uO(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),s?o.createElement("path",JU({},uO(a,!0),{fill:"none",d:rW(t,i)})):null,s?o.createElement("path",JU({},uO(a,!0),{fill:"none",d:rW(r,i)})):null)}var c=rW(t,i);return o.createElement("path",JU({},uO(a,!0),{fill:"Z"===c.slice(-1)?a.fill:"none",className:l,d:c}))};function iW(){return iW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iW.apply(this,arguments)}var aW=function(e){var t=e.cx,n=e.cy,r=e.r,i=$C("recharts-dot",e.className);return t===+t&&n===+n&&r===+r?o.createElement("circle",iW({},uO(e,!1),qE(e),{className:i,cx:t,cy:n,r:r})):null};function lW(e){return lW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lW(e)}var sW=["x","y","top","left","width","height","className"];function uW(){return uW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uW.apply(this,arguments)}function cW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dW(e,t,n){return t=function(e){var t=function(e,t){if("object"!=lW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lW(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var pW=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},hW=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.top,l=void 0===a?0:a,s=e.left,u=void 0===s?0:s,c=e.width,d=void 0===c?0:c,f=e.height,p=void 0===f?0:f,h=e.className,g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cW(Object(n),!0).forEach((function(t){dW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:n,y:i,top:l,left:u,width:d,height:p},fW(e,sW));return LE(n)&&LE(i)&&LE(d)&&LE(p)&&LE(l)&&LE(u)?o.createElement("path",uW({},uO(g,!0),{className:$C("recharts-cross",h),d:pW(n,i,d,p,l,u)})):null},gW=mB,mW=vB,vW=UA;var yW=function(e,t){return e&&e.length?gW(e,vW(t),mW):void 0},bW=Mt(yW),wW=mB,xW=UA,CW=SB;var SW=function(e,t){return e&&e.length?wW(e,xW(t),CW):void 0},kW=Mt(SW),EW=["cx","cy","angle","ticks","axisLine"],OW=["ticks","tick","angle","tickFormatter","stroke"];function DW(e){return DW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DW(e)}function _W(){return _W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_W.apply(this,arguments)}function PW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PW(Object(n),!0).forEach((function(t){NW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function MW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$W(r.key),r)}}function jW(e,t,n){return t=IW(t),function(e,t){if(t&&("object"===DW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,LW()?Reflect.construct(t,n||[],IW(e).constructor):t.apply(e,n))}function LW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LW=function(){return!!e})()}function IW(e){return IW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IW(e)}function RW(e,t){return RW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RW(e,t)}function NW(e,t,n){return(t=$W(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $W(e){var t=function(e,t){if("object"!=DW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=DW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DW(t)?t:String(t)}var zW=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),jW(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RW(e,t)}(t,x),n=t,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return BK(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=bW(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:kW(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=e.axisLine,l=AW(e,EW),s=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=BK(t,n,s[0],r),c=BK(t,n,s[1],r),d=TW(TW(TW({},uO(l,!1)),{},{fill:"none"},uO(a,!1)),{},{x1:u.x,y1:u.y,x2:c.x,y2:c.y});return o.createElement("line",_W({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.angle,l=n.tickFormatter,s=n.stroke,u=AW(n,OW),c=this.getTickTextAnchor(),d=uO(u,!1),f=uO(i,!1),p=r.map((function(n,r){var u=e.getTickValueCoord(n),p=TW(TW(TW(TW({textAnchor:c,transform:"rotate(".concat(90-a,", ").concat(u.x,", ").concat(u.y,")")},d),{},{stroke:"none",fill:s},f),{},{index:r},u),{},{payload:n});return o.createElement(wO,_W({className:$C("recharts-polar-radius-axis-tick",UK(i)),key:"tick-".concat(n.coordinate)},GE(e.props,n,r)),t.renderTickItem(i,p,l?l(n.value,r):n.value))}));return o.createElement(wO,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?o.createElement(wO,{className:$C("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),r&&this.renderTicks(),aV.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(MI,_W({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],r&&MW(n.prototype,r),i&&MW(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();function BW(e){return BW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BW(e)}function FW(){return FW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FW.apply(this,arguments)}function KW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KW(Object(n),!0).forEach((function(t){GW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YW(r.key),r)}}function UW(e,t,n){return t=ZW(t),function(e,t){if(t&&("object"===BW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WW()?Reflect.construct(t,n||[],ZW(e).constructor):t.apply(e,n))}function WW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WW=function(){return!!e})()}function ZW(e){return ZW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZW(e)}function qW(e,t){return qW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qW(e,t)}function GW(e,t,n){return(t=YW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YW(e){var t=function(e,t){if("object"!=BW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BW(t)?t:String(t)}NW(zW,"displayName","PolarRadiusAxis"),NW(zW,"axisType","radiusAxis"),NW(zW,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var XW=Math.PI/180,JW=1e-5,QW=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),UW(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qW(e,t)}(t,x),n=t,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,l=BK(n,r,o,e.coordinate),s=BK(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:l.x,y1:l.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*XW);return n>JW?"outer"===t?"start":"end":n<-JW?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,l=VW(VW({},uO(this.props,!1)),{},{fill:"none"},uO(i,!1));if("circle"===a)return o.createElement(aW,FW({className:"recharts-polar-angle-axis-line"},l,{cx:t,cy:n,r:r}));var s=this.props.ticks.map((function(e){return BK(t,n,r,e.coordinate)}));return o.createElement(oW,FW({className:"recharts-polar-angle-axis-line"},l,{points:s}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.tickLine,l=n.tickFormatter,s=n.stroke,u=uO(this.props,!1),c=uO(i,!1),d=VW(VW({},u),{},{fill:"none"},uO(a,!1)),f=r.map((function(n,r){var f=e.getTickLineCoord(n),p=VW(VW(VW({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:s},c),{},{index:r,payload:n,x:f.x2,y:f.y2});return o.createElement(wO,FW({className:$C("recharts-polar-angle-axis-tick",UK(i)),key:"tick-".concat(n.coordinate)},GE(e.props,n,r)),a&&o.createElement("line",FW({className:"recharts-polar-angle-axis-tick-line"},d,f)),i&&t.renderTickItem(i,p,l?l(n.value,r):n.value))}));return o.createElement(wO,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:o.createElement(wO,{className:$C("recharts-polar-angle-axis",this.props.className)},r&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(MI,FW({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],r&&HW(n.prototype,r),i&&HW(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();GW(QW,"displayName","PolarAngleAxis"),GW(QW,"axisType","angleAxis"),GW(QW,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var eZ=XP(Object.getPrototypeOf,Object),tZ=tS,nZ=eZ,rZ=nS,oZ=Function.prototype,iZ=Object.prototype,aZ=oZ.toString,lZ=iZ.hasOwnProperty,sZ=aZ.call(Object);var uZ=Mt((function(e){if(!rZ(e)||"[object Object]"!=tZ(e))return!1;var t=nZ(e);if(null===t)return!0;var n=lZ.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&aZ.call(n)==sZ})),cZ=tS,dZ=nS;var fZ=Mt((function(e){return!0===e||!1===e||dZ(e)&&"[object Boolean]"==cZ(e)}));function pZ(e){return pZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pZ(e)}function hZ(){return hZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hZ.apply(this,arguments)}function gZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mZ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mZ(e,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 mZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vZ(Object(n),!0).forEach((function(t){bZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bZ(e,t,n){return t=function(e){var t=function(e,t){if("object"!=pZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=pZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pZ(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wZ,xZ=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},CZ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},SZ=function(e){var t=yZ(yZ({},CZ),e),n=g(),r=gZ(v(-1),2),i=r[0],a=r[1];m((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var l=t.x,s=t.y,u=t.upperWidth,c=t.lowerWidth,d=t.height,f=t.className,p=t.animationEasing,h=t.animationDuration,y=t.animationBegin,b=t.isUpdateAnimationActive;if(l!==+l||s!==+s||u!==+u||c!==+c||d!==+d||0===u&&0===c||0===d)return null;var w=$C("recharts-trapezoid",f);return b?o.createElement(zU,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:u,lowerWidth:c,height:d,x:l,y:s},duration:h,animationEasing:p,isActive:b},(function(e){var r=e.upperWidth,a=e.lowerWidth,l=e.height,s=e.x,u=e.y;return o.createElement(zU,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:h,easing:p},o.createElement("path",hZ({},uO(t,!0),{className:w,d:xZ(s,u,r,a,l),ref:n})))})):o.createElement("g",null,o.createElement("path",hZ({},uO(t,!0),{className:w,d:xZ(l,s,u,c,d)})))},kZ=["option","shapeType","propTransformer","activeClassName","isActive"];function EZ(e){return EZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EZ(e)}function OZ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DZ(Object(n),!0).forEach((function(t){PZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PZ(e,t,n){return t=function(e){var t=function(e,t){if("object"!=EZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=EZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==EZ(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e,t){return _Z(_Z({},t),e)}function AZ(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return o.createElement(YU,n);case"trapezoid":return o.createElement(SZ,n);case"sector":return o.createElement(TV,n);case"symbols":if(function(e,t){return"symbols"===e}(t))return o.createElement(d_,n);break;default:return null}}function MZ(e){var t,n=e.option,r=e.shapeType,i=e.propTransformer,a=void 0===i?TZ:i,l=e.activeClassName,s=void 0===l?"recharts-active-shape":l,u=e.isActive,c=OZ(e,kZ);if(p(n))t=h(n,_Z(_Z({},c),function(e){return p(e)?e.props:e}(n)));else if(vS(n))t=n(c);else if(uZ(n)&&!fZ(n)){var d=a(n,c);t=o.createElement(AZ,{shapeType:r,elementProps:d})}else{var f=c;t=o.createElement(AZ,{shapeType:r,elementProps:f})}return u?o.createElement(wO,{className:s},t):t}function jZ(e,t){return null!=t&&"trapezoids"in e.props}function LZ(e,t){return null!=t&&"sectors"in e.props}function IZ(e,t){return null!=t&&"points"in e.props}function RZ(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&i}function NZ(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function $Z(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function zZ(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return jZ(e,t)?n="trapezoids":LZ(e,t)?n="sectors":IZ(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return jZ(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:LZ(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:IZ(e,t)?t.payload:{}}(n,t),a=r.filter((function(e,r){var a=$B(i,e),l=n.props[o].filter((function(e){var r=function(e,t){var n;return jZ(e,t)?n=RZ:LZ(e,t)?n=NZ:IZ(e,t)&&(n=$Z),n}(n,t);return r(e,t)})),s=n.props[o].indexOf(l[l.length-1]);return a&&r===s}));return r.indexOf(a[a.length-1])}function BZ(e){return BZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BZ(e)}function FZ(){return FZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FZ.apply(this,arguments)}function KZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KZ(Object(n),!0).forEach((function(t){YZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XZ(r.key),r)}}function UZ(e,t,n){return t=ZZ(t),function(e,t){if(t&&("object"===BZ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qZ(e)}(e,WZ()?Reflect.construct(t,n||[],ZZ(e).constructor):t.apply(e,n))}function WZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WZ=function(){return!!e})()}function ZZ(e){return ZZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZZ(e)}function qZ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GZ(e,t){return GZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GZ(e,t)}function YZ(e,t,n){return(t=XZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XZ(e){var t=function(e,t){if("object"!=BZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BZ(t)?t:String(t)}var JZ=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),YZ(qZ(n=UZ(this,t,[e])),"pieRef",null),YZ(qZ(n),"sectorRefs",[]),YZ(qZ(n),"id",NE("recharts-pie-")),YZ(qZ(n),"handleAnimationEnd",(function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),vS(e)&&e()})),YZ(qZ(n),"handleAnimationStart",(function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),vS(e)&&e()})),n.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GZ(e,t)}(t,x),n=t,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,a=n.dataKey,l=n.valueKey,s=uO(this.props,!1),u=uO(r,!1),c=uO(i,!1),d=r&&r.offsetRadius||20,f=e.map((function(e,n){var f=(e.startAngle+e.endAngle)/2,p=BK(e.cx,e.cy,e.outerRadius+d,f),h=VZ(VZ(VZ(VZ({},s),e),{},{stroke:"none"},u),{},{index:n,textAnchor:t.getTextAnchor(p.x,e.cx)},p),g=VZ(VZ(VZ(VZ({},s),e),{},{fill:"none",stroke:e.fill},c),{},{index:n,points:[BK(e.cx,e.cy,e.outerRadius,f),p],key:"line"}),m=a;return gE(a)&&gE(l)?m="value":gE(a)&&(m=l),o.createElement(wO,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(n)},i&&t.renderLabelLineItem(i,g),t.renderLabelItem(r,h,lK(e,m)))}));return o.createElement(wO,{className:"recharts-pie-labels"},f)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return e.map((function(n,l){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==e.length)return null;var s=t.isActiveIndex(l),u=a&&t.hasActiveIndex()?a:null,c=s?r:u,d=VZ(VZ({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return o.createElement(wO,FZ({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},GE(t.props,n,l),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(l)}),o.createElement(MZ,FZ({option:c,isActive:s,shapeType:"sector"},d)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,l=t.animationEasing,s=t.animationId,u=this.state,c=u.prevSectors,d=u.prevIsAnimationActive;return o.createElement(zU,{begin:i,duration:a,isActive:r,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=c&&c[t],o=t>0?hE(e,"paddingAngle",0):0;if(n){var l=BE(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=VZ(VZ({},e),{},{startAngle:a+o,endAngle:a+l(r)+o});i.push(s),a=s.endAngle}else{var u=e.endAngle,d=e.startAngle,f=BE(0,u-d)(r),p=VZ(VZ({},e),{},{startAngle:a+o,endAngle:a+f+o});i.push(p),a=p.endAngle}})),o.createElement(wO,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&$B(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,a=t.label,l=t.cx,s=t.cy,u=t.innerRadius,c=t.outerRadius,d=t.isAnimationActive,f=this.state.isAnimationFinished;if(n||!r||!r.length||!LE(l)||!LE(s)||!LE(u)||!LE(c))return null;var p=$C("recharts-pie",i);return o.createElement(wO,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(r),aV.renderCallByParent(this.props,null,!1),(!d||f)&&xV.renderCallByParent(this.props,r,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(vS(e))return e(t);var n=$C("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return o.createElement(FV,FZ({},t,{type:"linear",className:n}))}},{key:"renderLabelItem",value:function(e,t,n){if(o.isValidElement(e))return o.cloneElement(e,t);var r=n;if(vS(e)&&(r=e(t),o.isValidElement(r)))return r;var i=$C("recharts-pie-label-text","boolean"==typeof e||vS(e)?"":e.className);return o.createElement(MI,FZ({},t,{alignmentBaseline:"middle",className:i}),r)}}],r&&HZ(n.prototype,r),i&&HZ(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();wZ=JZ,YZ(JZ,"displayName","Pie"),YZ(JZ,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!iL.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),YZ(JZ,"parseDeltaAngle",(function(e,t){return ME(t-e)*Math.min(Math.abs(t-e),360)})),YZ(JZ,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=uO(e.props,!1),i=iO(r,GL);return n&&n.length?n.map((function(e,t){return VZ(VZ(VZ({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return VZ(VZ({},o),e.props)})):[]})),YZ(JZ,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=FK(o,i);return{cx:r+$E(e.props.cx,o,o/2),cy:n+$E(e.props.cy,i,i/2),innerRadius:$E(e.props.innerRadius,a,0),outerRadius:$E(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),YZ(JZ,"getComposedData",(function(e){var t=e.item,n=e.offset,r=wZ.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,l=o.endAngle,s=o.paddingAngle,u=o.dataKey,c=o.nameKey,d=o.valueKey,f=o.tooltipType,p=Math.abs(t.props.minAngle),h=wZ.parseCoordinateOfPie(t,n),g=wZ.parseDeltaAngle(a,l),m=Math.abs(g),v=u;gE(u)&&gE(d)?(CO(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):gE(u)&&(CO(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=d);var y,b,w=r.filter((function(e){return 0!==lK(e,v,0)})).length,x=m-w*p-(m>=360?w:w-1)*s,C=r.reduce((function(e,t){var n=lK(t,v,0);return e+(LE(n)?n:0)}),0);C>0&&(y=r.map((function(e,t){var n,r=lK(e,v,0),o=lK(e,c,t),l=(LE(r)?r:0)/C,u=(n=t?b.endAngle+ME(g)*s*(0!==r?1:0):a)+ME(g)*((0!==r?p:0)+l*x),d=(n+u)/2,m=(h.innerRadius+h.outerRadius)/2,y=[{name:o,value:r,payload:e,dataKey:v,type:f}],w=BK(h.cx,h.cy,m,d);return b=VZ(VZ(VZ({percent:l,cornerRadius:i,name:o,tooltipPayload:y,midAngle:d,middleRadius:m,tooltipPosition:w},e),h),{},{value:lK(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:ME(g)*s})})));return VZ(VZ({},h),{},{sectors:y,data:r})}));var QZ=Math.ceil,eq=Math.max;var tq=function(e,t,n,r){for(var o=-1,i=eq(QZ((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},nq=AL,rq=1/0;var oq=function(e){return e?(e=nq(e))===rq||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},iq=tq,aq=Dj,lq=oq;var sq=Mt(function(e){return function(t,n,r){return r&&"number"!=typeof r&&aq(t,n,r)&&(n=r=void 0),t=lq(t),void 0===n?(n=t,t=0):n=lq(n),r=void 0===r?t<n?1:-1:lq(r),iq(t,n,r,e)}}());function uq(e){return uq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uq(e)}function cq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cq(Object(n),!0).forEach((function(t){fq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fq(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uq(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pq=["Webkit","Moz","O","ms"];function hq(e){return hq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hq(e)}function gq(){return gq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gq.apply(this,arguments)}function mq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mq(Object(n),!0).forEach((function(t){kq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eq(r.key),r)}}function bq(e,t,n){return t=xq(t),function(e,t){if(t&&("object"===hq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cq(e)}(e,wq()?Reflect.construct(t,n||[],xq(e).constructor):t.apply(e,n))}function wq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wq=function(){return!!e})()}function xq(e){return xq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xq(e)}function Cq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sq(e,t){return Sq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sq(e,t)}function kq(e,t,n){return(t=Eq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eq(e){var t=function(e,t){if("object"!=hq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hq(t)?t:String(t)}var Oq=function(e){return e.changedTouches&&!!e.changedTouches.length},Dq=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kq(Cq(n=bq(this,t,[e])),"handleDrag",(function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)})),kq(Cq(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])})),kq(Cq(n),"handleDragEnd",(function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:t,startIndex:o})})),n.detachDragEndListener()})),kq(Cq(n),"handleLeaveWrapper",(function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))})),kq(Cq(n),"handleEnterSlideOrTraveller",(function(){n.setState({isTextActive:!0})})),kq(Cq(n),"handleLeaveSlideOrTraveller",(function(){n.setState({isTextActive:!1})})),kq(Cq(n),"handleSlideDragStart",(function(e){var t=Oq(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()})),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(Cq(n),"startX"),endX:n.handleTravellerDragStart.bind(Cq(n),"endX")},n.state={},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sq(e,t)}(t,x),n=t,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var n=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,l=i.data.length-1,s=Math.min(n,r),u=Math.max(n,r),c=t.getIndexInRange(o,s),d=t.getIndexInRange(o,u);return{startIndex:c-c%a,endIndex:d===l?l:d-d%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=lK(n[e],o,e);return vS(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,s=i.travellerWidth,u=i.startIndex,c=i.endIndex,d=i.onChange,f=e.pageX-n;f>0?f=Math.min(f,a+l-s-o,a+l-s-r):f<0&&(f=Math.max(f,a-r,a-o));var p=this.getIndex({startX:r+f,endX:o+f});p.startIndex===u&&p.endIndex===c||!d||d(p),this.setState({startX:r+f,endX:o+f,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=Oq(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],l=this.props,s=l.x,u=l.width,c=l.travellerWidth,d=l.onChange,f=l.gap,p=l.data,h={startX:this.state.startX,endX:this.state.endX},g=e.pageX-n;g>0?g=Math.min(g,s+u-c-a):g<0&&(g=Math.max(g,s-a)),h[r]=a+g;var m=this.getIndex(h),v=m.startIndex,y=m.endIndex;this.setState(kq(kq({},r,a+g),"brushMoveStartX",e.pageX),(function(){var e;d&&(e=p.length-1,("startX"===r&&(o>i?v%f==0:y%f==0)||o<i&&y===e||"endX"===r&&(o>i?y%f==0:v%f==0)||o>i&&y===e)&&d(m))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,l=this.state[t],s=o.indexOf(l);if(-1!==s){var u=s+e;if(!(-1===u||u>=o.length)){var c=o[u];"startX"===t&&c>=a||"endX"===t&&c<=i||this.setState(kq({},t,c),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,l=e.stroke;return o.createElement("rect",{stroke:l,fill:a,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,l=e.children,s=e.padding,u=f.only(l);return u?o.cloneElement(u,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r=this,i=this.props,a=i.y,l=i.travellerWidth,s=i.height,u=i.traveller,c=i.ariaLabel,d=i.data,f=i.startIndex,p=i.endIndex,h=Math.max(e,this.props.x),g=vq(vq({},uO(this.props,!1)),{},{x:h,y:a,width:l,height:s}),m=c||"Min value: ".concat(d[f].name,", Max value: ").concat(d[p].name);return o.createElement(wO,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(u,g))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,l=n.travellerWidth,s=Math.min(e,t)+l,u=Math.max(Math.abs(t-e)-l,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:s,y:r,width:u,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,l=e.stroke,s=this.state,u=s.startX,c=s.endX,d={pointerEvents:"none",fill:l};return o.createElement(wO,{className:"recharts-brush-texts"},o.createElement(MI,gq({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,c)-5,y:r+i/2},d),this.getTextOfTick(t)),o.createElement(MI,gq({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,c)+a+5,y:r+i/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,l=e.width,s=e.height,u=e.alwaysShowText,c=this.state,d=c.startX,f=c.endX,p=c.isTextActive,h=c.isSlideMoving,g=c.isTravellerMoving,m=c.isTravellerFocused;if(!t||!t.length||!LE(i)||!LE(a)||!LE(l)||!LE(s)||l<=0||s<=0)return null;var v=$C("recharts-brush",n),y=1===o.Children.count(r),b=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=pq.reduce((function(e,r){return dq(dq({},e),{},fq({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return o.createElement(wO,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(d,f),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||g||m||u)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,l=Math.floor(n+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:n,width:r,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:t+1,y1:l,x2:t+r-1,y2:l,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:l+2,x2:t+r-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return o.isValidElement(e)?o.cloneElement(e,n):vS(e)?e(n):t.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,l=e.startIndex,s=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return vq({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var l=t.length,s=lR().domain(sq(0,l)).range([o,o+i-a]),u=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(r),scale:s,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:l,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&yq(n.prototype,r),i&&yq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();kq(Dq,"displayName","Brush"),kq(Dq,"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 _q=VM;var Pq=function(e,t){var n;return _q(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},Tq=F_,Aq=UA,Mq=Pq,jq=zC,Lq=Dj;var Iq=function(e,t,n){var r=jq(e)?Tq:Mq;return n&&Lq(e,t,n)&&(t=void 0),r(e,Aq(t))},Rq=Mt(Iq),Nq=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},$q=pj;var zq=function(e,t,n){"__proto__"==t&&$q?$q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Bq=zq,Fq=BM,Kq=UA;var Vq=function(e,t){var n={};return t=Kq(t),Fq(e,(function(e,r,o){Bq(n,r,t(e,r,o))})),n},Hq=Mt(Vq);var Uq=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},Wq=VM;var Zq=function(e,t){var n=!0;return Wq(e,(function(e,r,o){return n=!!t(e,r,o)})),n},qq=Uq,Gq=Zq,Yq=UA,Xq=zC,Jq=Dj;var Qq=function(e,t,n){var r=Xq(e)?qq:Gq;return n&&Jq(e,t,n)&&(t=void 0),r(e,Yq(t))},eG=Mt(Qq),tG=["x","y"];function nG(e){return nG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nG(e)}function rG(){return rG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rG.apply(this,arguments)}function oG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oG(Object(n),!0).forEach((function(t){aG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aG(e,t,n){return t=function(e){var t=function(e,t){if("object"!=nG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nG(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lG(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sG(e,t){var n=e.x,r=e.y,o=lG(e,tG),i="".concat(n),a=parseInt(i,10),l="".concat(r),s=parseInt(l,10),u="".concat(t.height||o.height),c=parseInt(u,10),d="".concat(t.width||o.width),f=parseInt(d,10);return iG(iG(iG(iG(iG({},t),o),a?{x:a}:{}),s?{y:s}:{}),{},{height:c,width:f,name:t.name,radius:t.radius})}function uG(e){return o.createElement(MZ,rG({shapeType:"rectangle",propTransformer:sG,activeClassName:"recharts-active-bar"},e))}var cG,dG=["value","background"];function fG(e){return fG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fG(e)}function pG(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hG(){return hG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hG.apply(this,arguments)}function gG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gG(Object(n),!0).forEach((function(t){SG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kG(r.key),r)}}function yG(e,t,n){return t=wG(t),function(e,t){if(t&&("object"===fG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xG(e)}(e,bG()?Reflect.construct(t,n||[],wG(e).constructor):t.apply(e,n))}function bG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bG=function(){return!!e})()}function wG(e){return wG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wG(e)}function xG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CG(e,t){return CG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CG(e,t)}function SG(e,t,n){return(t=kG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kG(e){var t=function(e,t){if("object"!=fG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fG(t)?t:String(t)}var EG=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SG(xG(e=yG(this,t,[].concat(r))),"state",{isAnimationFinished:!1}),SG(xG(e),"id",NE("recharts-bar-")),SG(xG(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),SG(xG(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CG(e,t)}(t,x),n=t,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.dataKey,a=n.activeIndex,l=n.activeBar,s=uO(this.props,!1);return e&&e.map((function(e,n){var u=n===a,c=u?l:r,d=mG(mG(mG({},s),e),{},{isActive:u,option:c,index:n,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return o.createElement(wO,hG({className:"recharts-bar-rectangle"},GE(t.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),o.createElement(uG,d))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,l=t.animationDuration,s=t.animationEasing,u=t.animationId,c=this.state.prevData;return o.createElement(zU,{begin:a,duration:l,isActive:i,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var i=t.t,a=n.map((function(e,t){var n=c&&c[t];if(n){var o=BE(n.x,e.x),a=BE(n.y,e.y),l=BE(n.width,e.width),s=BE(n.height,e.height);return mG(mG({},e),{},{x:o(i),y:a(i),width:l(i),height:s(i)})}if("horizontal"===r){var u=BE(0,e.height)(i);return mG(mG({},e),{},{y:e.y+e.height-u,height:u})}var d=BE(0,e.width)(i);return mG(mG({},e),{},{width:d})}));return o.createElement(wO,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&$B(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,i=t.activeIndex,a=uO(this.props.background,!1);return n.map((function(t,n){t.value;var l=t.background,s=pG(t,dG);if(!l)return null;var u=mG(mG(mG(mG(mG({},s),{},{fill:"#eee"},l),a),GE(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return o.createElement(uG,hG({option:e.props.background,isActive:n===i},u))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,l=n.layout,s=iO(n.children,GF);if(!s)return null;var u="vertical"===l?r[0].height/2:r[0].width/2,c=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:lK(e,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(wO,d,s.map((function(e){return o.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:i,yAxis:a,layout:l,offset:u,dataPointFormatter:c})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,l=e.left,s=e.top,u=e.width,c=e.height,d=e.isAnimationActive,f=e.background,p=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=$C("recharts-bar",r),m=i&&i.allowDataOverflow,v=a&&a.allowDataOverflow,y=m||v,b=gE(p)?this.id:p;return o.createElement(wO,{className:g},m||v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(b)},o.createElement("rect",{x:m?l:l-u/2,y:v?s:s-c/2,width:m?u:2*u,height:v?c:2*c}))):null,o.createElement(wO,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(b,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,b),(!d||h)&&xV.renderCallByParent(this.props,n))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&vG(n.prototype,r),i&&vG(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();function OG(e){return OG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OG(e)}function DG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AG(r.key),r)}}function _G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_G(Object(n),!0).forEach((function(t){TG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TG(e,t,n){return(t=AG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AG(e){var t=function(e,t){if("object"!=OG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=OG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==OG(t)?t:String(t)}cG=EG,SG(EG,"displayName","Bar"),SG(EG,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!iL.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),SG(EG,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,l=e.xAxisTicks,s=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,d=e.displayedData,f=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,g=n.props,m=g.dataKey,v=g.children,y=g.minPointSize,b="horizontal"===h?a:i,w=u?b.scale.domain():null,x=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),C=iO(v,GL),S=d.map((function(e,t){var r,d,f,g,v,b;u?r=function(e,t){if(!t||2!==t.length||!LE(t[0])||!LE(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!LE(e[0])||e[0]<n)&&(o[0]=n),(!LE(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(u[c+t],w):(r=lK(e,m),Array.isArray(r)||(r=[x,r]));var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||("production"!==process.env.NODE_ENV?VF(!1,"minPointSize callback function received a value with type of ".concat(nG(n),". Currently only numbers are supported.")):VF(!1)),t)}}(y,cG.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var k,E=[a.scale(r[0]),a.scale(r[1])],O=E[0],D=E[1];d=kK({axis:i,ticks:l,bandSize:o,offset:p.offset,entry:e,index:t}),f=null!==(k=null!=D?D:O)&&void 0!==k?k:void 0,g=p.size;var _=O-D;if(v=Number.isNaN(_)?0:_,b={x:d,y:a.y,width:g,height:a.height},Math.abs(S)>0&&Math.abs(v)<Math.abs(S)){var P=ME(v||S)*(Math.abs(S)-Math.abs(v));f-=P,v+=P}}else{var T=[i.scale(r[0]),i.scale(r[1])],A=T[0],M=T[1];if(d=A,f=kK({axis:a,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),g=M-A,v=p.size,b={x:i.x,y:f,width:i.width,height:v},Math.abs(S)>0&&Math.abs(g)<Math.abs(S))g+=ME(g||S)*(Math.abs(S)-Math.abs(g))}return mG(mG(mG({},e),{},{x:d,y:f,width:g,height:v,value:u?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[AK(n,e)],tooltipPosition:{x:d+g/2,y:f+v/2}})}));return mG({data:S,layout:h},f)}));var MG=function(e,t,n,r,o){var i=e.width,a=e.height,l=e.layout,s=e.children,u=Object.keys(t),c={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},d=!!aO(s,EG);return u.reduce((function(i,a){var s,u,f,p,h,g=t[a],m=g.orientation,v=g.domain,y=g.padding,b=void 0===y?{}:y,w=g.mirror,x=g.reversed,C="".concat(m).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var S=v[1]-v[0],k=1/0,E=g.categoricalDomain.sort();if(E.forEach((function(e,t){t>0&&(k=Math.min((e||0)-(E[t-1]||0),k))})),Number.isFinite(k)){var O=k/S,D="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(s=O*D/2),"no-gap"===g.padding){var _=$E(e.barCategoryGap,O*D),P=O*D/2;s=P-_-(P-_)/D*_}}}u="xAxis"===r?[n.left+(b.left||0)+(s||0),n.left+n.width-(b.right||0)-(s||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(s||0),n.top+n.height-(b.bottom||0)-(s||0)]:g.range,x&&(u=[u[1],u[0]]);var T=vK(g,o,d),A=T.scale,M=T.realScaleType;A.domain(v).range(u),bK(A);var j=CK(A,PG(PG({},g),{},{realScaleType:M}));"xAxis"===r?(h="top"===m&&!w||"bottom"===m&&w,f=n.left,p=c[C]-h*g.height):"yAxis"===r&&(h="left"===m&&!w||"right"===m&&w,f=c[C]-h*g.width,p=n.top);var L=PG(PG(PG({},g),j),{},{realScaleType:M,x:f,y:p,scale:A,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return L.bandSize=PK(L,j),g.hide||"xAxis"!==r?g.hide||(c[C]+=(h?-1:1)*L.width):c[C]+=(h?-1:1)*L.height,PG(PG({},i),{},TG({},a,L))}),{})},jG=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},LG=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&DG(t.prototype,n),r&&DG(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();TG(LG,"EPS",1e-4);var IG=function(e){var t=Object.keys(e).reduce((function(t,n){return PG(PG({},t),{},TG({},n,LG.create(e[n])))}),{});return PG(PG({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return Hq(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return eG(e,(function(e,n){return t[n].isInRange(e)}))}})};var RG=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)},NG=UA,$G=iT,zG=uT;var BG=function(e){return function(t,n,r){var o=Object(t);if(!$G(t)){var i=NG(n);t=zG(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},FG=oq;var KG=WA,VG=UA,HG=function(e){var t=FG(e),n=t%1;return t==t?n?t-n:t:0},UG=Math.max;var WG=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:HG(n);return o<0&&(o=UG(r+o,0)),KG(e,VG(t),o)},ZG=Mt(BG(WG)),qG=Bk((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}));function GG(e){return GG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GG(e)}var YG=i(void 0),XG=i(void 0),JG=i(void 0),QG=i({}),eY=i(void 0),tY=i(0),nY=i(0),rY=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,a=e.clipPathId,l=e.children,s=e.width,u=e.height,c=qG(i);return o.createElement(YG.Provider,{value:n},o.createElement(XG.Provider,{value:r},o.createElement(QG.Provider,{value:i},o.createElement(JG.Provider,{value:c},o.createElement(eY.Provider,{value:a},o.createElement(tY.Provider,{value:u},o.createElement(nY.Provider,{value:s},l)))))))};function oY(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var iY=function(e){var t=s(YG);null==t&&("production"!==process.env.NODE_ENV?VF(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):VF(!1));var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?VF(!1,'Could not find xAxis by id "'.concat(e,'" [').concat(GG(e),"]. ").concat(oY(t))):VF(!1)),n},aY=function(e){var t=s(XG);null==t&&("production"!==process.env.NODE_ENV?VF(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):VF(!1));var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?VF(!1,'Could not find yAxis by id "'.concat(e,'" [').concat(GG(e),"]. ").concat(oY(t))):VF(!1)),n},lY=function(){return s(nY)},sY=function(){return s(tY)};function uY(e){return uY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uY(e)}function cY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cY(Object(n),!0).forEach((function(t){fY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hY(e,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 hY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gY(){return gY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gY.apply(this,arguments)}function mY(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,l=e.shape,u=e.className,c=e.alwaysShow,d=s(eY),f=iY(i),p=aY(a),h=s(JG);if(!d||!h)return null;CO(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=function(e,t,n,r,o,i,a,l,s){var u=o.x,c=o.y,d=o.width,f=o.height;if(n){var p=s.y,h=e.y.apply(p,{position:i});if(Nq(s,"discard")&&!e.y.isInRange(h))return null;var g=[{x:u+d,y:h},{x:u,y:h}];return"left"===l?g.reverse():g}if(t){var m=s.x,v=e.x.apply(m,{position:i});if(Nq(s,"discard")&&!e.x.isInRange(v))return null;var y=[{x:v,y:c+f},{x:v,y:c}];return"top"===a?y.reverse():y}if(r){var b=s.segment.map((function(t){return e.apply(t,{position:i})}));return Nq(s,"discard")&&Rq(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(IG({x:f.scale,y:p.scale}),IE(t),IE(n),r&&2===r.length,h,e.position,f.orientation,p.orientation,e);if(!g)return null;var m=pY(g,2),v=m[0],y=v.x,b=v.y,w=m[1],x=w.x,C=w.y,S=dY(dY({clipPath:Nq(e,"hidden")?"url(#".concat(d,")"):void 0},uO(e,!0)),{},{x1:y,y1:b,x2:x,y2:C});return o.createElement(wO,{className:$C("recharts-reference-line",u)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement("line",gY({},t,{className:"recharts-reference-line-line"}))}(l,S),aV.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return jG({x:t,y:n},{x:r,y:o})}({x1:y,y1:b,x2:x,y2:C})))}function vY(e){return vY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vY(e)}function yY(){return yY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yY.apply(this,arguments)}function bY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bY(Object(n),!0).forEach((function(t){xY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=vY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}mY.displayName="ReferenceLine",mY.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function CY(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,a=e.clipPathId,l=IE(t),s=IE(n);if(CO(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!s)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=IG({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return Nq(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!u)return null;var c=u.x,d=u.y,f=e.shape,p=e.className,h=wY(wY({clipPath:Nq(e,"hidden")?"url(#".concat(a,")"):void 0},uO(e,!0)),{},{cx:c,cy:d});return o.createElement(wO,{className:$C("recharts-reference-dot",p)},CY.renderDot(f,h),aV.renderCallByParent(e,{x:c-r,y:d-r,width:2*r,height:2*r}))}function SY(e){return SY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SY(e)}function kY(){return kY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kY.apply(this,arguments)}function EY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EY(Object(n),!0).forEach((function(t){DY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=SY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=SY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==SY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}CY.displayName="ReferenceDot",CY.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},CY.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(aW,yY({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function _Y(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.className,l=e.alwaysShow,s=e.clipPathId;CO(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=IE(t),c=IE(n),d=IE(r),f=IE(i),p=e.shape;if(!(u||c||d||f||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,l=o.y1,s=o.y2,u=o.xAxis,c=o.yAxis;if(!u||!c)return null;var d=IG({x:u.scale,y:c.scale}),f={x:e?d.x.apply(i,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},p={x:t?d.x.apply(a,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(s,{position:"end"}):d.y.rangeMax};return!Nq(o,"discard")||d.isInRange(f)&&d.isInRange(p)?jG(f,p):null}(u,c,d,f,e);if(!h&&!p)return null;var g=Nq(e,"hidden")?"url(#".concat(s,")"):void 0;return o.createElement(wO,{className:$C("recharts-reference-area",a)},_Y.renderRect(p,OY(OY({clipPath:g},uO(e,!0)),h)),aV.renderCallByParent(e,h))}function PY(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function TY(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function AY(e){return AY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AY(e)}function MY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MY(Object(n),!0).forEach((function(t){LY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=AY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=AY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IY(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,l=e.orientation,s=e.interval,u=e.tickFormatter,c=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(LE(s)||iL.isSsr)return function(e,t){return PY(e,t+1)}(o,"number"==typeof s&&LE(s)?s:0);var f=[],p="top"===l||"bottom"===l?"width":"height",h=c&&"width"===p?rI(c,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(e,r){var o=vS(u)?u(e.value,r):e.value;return"width"===p?function(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return RG(r,n)}(rI(o,{fontSize:t,letterSpacing:n}),h,d):rI(o,{fontSize:t,letterSpacing:n})[p]},m=o.length>=2?ME(o[1].coordinate-o[0].coordinate):1,v=function(e,t,n){var r="width"===n,o=e.x,i=e.y,a=e.width,l=e.height;return 1===t?{start:r?o:i,end:r?o+a:i+l}:{start:r?o+a:i+l,end:r?o:i}}(i,m,p);return"equidistantPreserveStart"===s?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),l=t.start,s=t.end,u=0,c=1,d=l,f=function(){var t=null==r?void 0:r[u];if(void 0===t)return{v:PY(r,c)};var i,a=u,f=function(){return void 0===i&&(i=n(t,a)),i},p=t.coordinate,h=0===u||TY(e,p,f,d,s);h||(u=0,d=l,c+=1),h&&(d=p+e*(f()/2+o),u+=c)};c<=a.length;)if(i=f())return i.v;return[]}(m,v,g,o,a):(f="preserveStart"===s||"preserveStartEnd"===s?function(e,t,n,r,o,i){var a=(r||[]).slice(),l=a.length,s=t.start,u=t.end;if(i){var c=r[l-1],d=n(c,l-1),f=e*(c.coordinate+e*d/2-u);a[l-1]=c=jY(jY({},c),{},{tickCoord:f>0?c.coordinate-f*e:c.coordinate}),TY(e,c.tickCoord,(function(){return d}),s,u)&&(u=c.tickCoord-e*(d/2+o),a[l-1]=jY(jY({},c),{},{isShow:!0}))}for(var p=i?l-1:l,h=function(t){var r,i=a[t],l=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var c=e*(i.coordinate-e*l()/2-s);a[t]=i=jY(jY({},i),{},{tickCoord:c<0?i.coordinate-c*e:i.coordinate})}else a[t]=i=jY(jY({},i),{},{tickCoord:i.coordinate});TY(e,i.tickCoord,l,s,u)&&(s=i.tickCoord+e*(l()/2+o),a[t]=jY(jY({},i),{},{isShow:!0}))},g=0;g<p;g++)h(g);return a}(m,v,g,o,a,"preserveStartEnd"===s):function(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,l=t.start,s=t.end,u=function(t){var r,u=i[t],c=function(){return void 0===r&&(r=n(u,t)),r};if(t===a-1){var d=e*(u.coordinate+e*c()/2-s);i[t]=u=jY(jY({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate})}else i[t]=u=jY(jY({},u),{},{tickCoord:u.coordinate});TY(e,u.tickCoord,c,l,s)&&(s=u.tickCoord-e*(c()/2+o),i[t]=jY(jY({},u),{},{isShow:!0}))},c=a-1;c>=0;c--)u(c);return i}(m,v,g,o,a),f.filter((function(e){return e.isShow})))}_Y.displayName="ReferenceArea",_Y.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},_Y.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(YU,kY({},t,{className:"recharts-reference-area-rect"}))};var RY=["viewBox"],NY=["viewBox"],$Y=["ticks"];function zY(e){return zY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zY(e)}function BY(){return BY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BY.apply(this,arguments)}function FY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FY(Object(n),!0).forEach((function(t){GY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VY(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function HY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YY(r.key),r)}}function UY(e,t,n){return t=ZY(t),function(e,t){if(t&&("object"===zY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WY()?Reflect.construct(t,n||[],ZY(e).constructor):t.apply(e,n))}function WY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WY=function(){return!!e})()}function ZY(e){return ZY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZY(e)}function qY(e,t){return qY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qY(e,t)}function GY(e,t,n){return(t=YY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YY(e){var t=function(e,t){if("object"!=zY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zY(t)?t:String(t)}var XY=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=UY(this,t,[e])).state={fontSize:"",letterSpacing:""},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qY(e,t)}(t,C),n=t,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=VY(e,RY),o=this.props,i=o.viewBox,a=VY(o,NY);return!KE(n,i)||!KE(r,a)||!KE(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,l=this.props,s=l.x,u=l.y,c=l.width,d=l.height,f=l.orientation,p=l.tickSize,h=l.mirror,g=l.tickMargin,m=h?-1:1,v=e.tickSize||p,y=LE(e.tickCoord)?e.tickCoord:e.coordinate;switch(f){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*d)-m*v)-m*g,i=y;break;case"left":r=o=e.coordinate,i=(t=(n=s+ +!h*c)-m*v)-m*g,a=y;break;case"right":r=o=e.coordinate,i=(t=(n=s+ +h*c)+m*v)+m*g,a=y;break;default:t=n=e.coordinate,a=(r=(o=u+ +h*d)+m*v)+m*g,i=y}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,l=e.mirror,s=e.axisLine,u=KY(KY(KY({},uO(this.props,!1)),uO(s,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var c=+("top"===a&&!l||"bottom"===a&&l);u=KY(KY({},u),{},{x1:t,y1:n+c*i,x2:t+r,y2:n+c*i})}else{var d=+("left"===a&&!l||"right"===a&&l);u=KY(KY({},u),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return o.createElement("line",BY({},u,{className:$C("recharts-cartesian-axis-line",hE(s,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var i=this,a=this.props,l=a.tickLine,s=a.stroke,u=a.tick,c=a.tickFormatter,d=a.unit,f=IY(KY(KY({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=uO(this.props,!1),m=uO(u,!1),v=KY(KY({},g),{},{fill:"none"},uO(l,!1)),y=f.map((function(e,n){var r=i.getTickLineCoord(e),a=r.line,y=r.tick,b=KY(KY(KY(KY({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:s},m),y),{},{index:n,payload:e,visibleTicksCount:f.length,tickFormatter:c});return o.createElement(wO,BY({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},GE(i.props,e,n)),l&&o.createElement("line",BY({},v,a,{className:$C("recharts-cartesian-axis-tick-line",hE(l,"className"))})),u&&t.renderTickItem(u,b,"".concat(vS(c)?c(e.value,n):e.value).concat(d||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,l=t.className;if(t.hide)return null;var s=this.props,u=s.ticks,c=VY(s,$Y),d=u;return vS(a)&&(d=u&&u.length>0?a(this.props):a(c)),r<=0||i<=0||!d||!d.length?null:o.createElement(wO,{className:$C("recharts-cartesian-axis",l),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),aV.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(MI,BY({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&HY(n.prototype,r),i&&HY(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();GY(XY,"displayName","CartesianAxis"),GY(XY,"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 JY=["x1","y1","x2","y2","key"],QY=["offset"];function eX(e){return eX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eX(e)}function tX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tX(Object(n),!0).forEach((function(t){rX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rX(e,t,n){return t=function(e){var t=function(e,t){if("object"!=eX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eX(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oX(){return oX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oX.apply(this,arguments)}function iX(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var aX=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,i=e.y,a=e.width,l=e.height;return o.createElement("rect",{x:r,y:i,width:a,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function lX(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(vS(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,l=t.y2,s=t.key,u=iX(t,JY),c=uO(u,!1);c.offset;var d=iX(c,QY);n=o.createElement("line",oX({},d,{x1:r,y1:i,x2:a,y2:l,fill:"none",key:s}))}return n}function sX(e){var t=e.x,n=e.width,r=e.horizontal,i=void 0===r||r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(r,o){var a=nX(nX({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(o),index:o});return lX(i,a)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function uX(e){var t=e.y,n=e.height,r=e.vertical,i=void 0===r||r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(r,o){var a=nX(nX({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(o),index:o});return lX(i,a)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function cX(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,l=e.height,s=e.horizontalPoints,u=e.horizontal;if(!(void 0===u||u)||!t||!t.length)return null;var c=s.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==c[0]&&c.unshift(0);var d=c.map((function(e,s){var u=!c[s+1]?i+l-e:c[s+1]-e;if(u<=0)return null;var d=s%t.length;return o.createElement("rect",{key:"react-".concat(s),y:e,x:r,height:u,width:a,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function dX(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,i=e.fillOpacity,a=e.x,l=e.y,s=e.width,u=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var d=c.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==d[0]&&d.unshift(0);var f=d.map((function(e,t){var n=!d[t+1]?a+s-e:d[t+1]-e;if(n<=0)return null;var c=t%r.length;return o.createElement("rect",{key:"react-".concat(t),x:e,y:l,width:n,height:u,stroke:"none",fill:r[c],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var fX=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return pK(IY(nX(nX(nX({},XY.defaultProps),n),{},{ticks:hK(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},pX=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return pK(IY(nX(nX(nX({},XY.defaultProps),n),{},{ticks:hK(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},hX={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function gX(e){var t,n,r,i,a,l,u,c,d=lY(),f=sY(),p=s(QG),h=nX(nX({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:hX.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:hX.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:hX.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:hX.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:hX.vertical,verticalFill:null!==(l=e.verticalFill)&&void 0!==l?l:hX.verticalFill,x:LE(e.x)?e.x:p.left,y:LE(e.y)?e.y:p.top,width:LE(e.width)?e.width:p.width,height:LE(e.height)?e.height:p.height}),g=h.x,m=h.y,v=h.width,y=h.height,b=h.syncWithTicks,w=h.horizontalValues,x=h.verticalValues,C=(u=s(YG),zE(u)),S=(c=s(XG),ZG(c,(function(e){return eG(e.domain,Number.isFinite)}))||zE(c));if(!LE(v)||v<=0||!LE(y)||y<=0||!LE(g)||g!==+g||!LE(m)||m!==+m)return null;var k=h.verticalCoordinatesGenerator||fX,E=h.horizontalCoordinatesGenerator||pX,O=h.horizontalPoints,D=h.verticalPoints;if((!O||!O.length)&&vS(E)){var _=w&&w.length,P=E({yAxis:S?nX(nX({},S),{},{ticks:_?w:S.ticks}):void 0,width:d,height:f,offset:p},!!_||b);CO(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(eX(P),"]")),Array.isArray(P)&&(O=P)}if((!D||!D.length)&&vS(k)){var T=x&&x.length,A=k({xAxis:C?nX(nX({},C),{},{ticks:T?x:C.ticks}):void 0,width:d,height:f,offset:p},!!T||b);CO(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(eX(A),"]")),Array.isArray(A)&&(D=A)}return o.createElement("g",{className:"recharts-cartesian-grid"},o.createElement(aX,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height}),o.createElement(sX,oX({},h,{offset:p,horizontalPoints:O,xAxis:C,yAxis:S})),o.createElement(uX,oX({},h,{offset:p,verticalPoints:D,xAxis:C,yAxis:S})),o.createElement(cX,oX({},h,{horizontalPoints:O})),o.createElement(dX,oX({},h,{verticalPoints:D})))}gX.displayName="CartesianGrid";var mX=["type","layout","connectNulls","ref"];function vX(e){return vX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vX(e)}function yX(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bX(){return bX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bX.apply(this,arguments)}function wX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wX(Object(n),!0).forEach((function(t){TX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CX(e){return function(e){if(Array.isArray(e))return SX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return SX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SX(e,t)}(e)||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 SX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AX(r.key),r)}}function EX(e,t,n){return t=DX(t),function(e,t){if(t&&("object"===vX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _X(e)}(e,OX()?Reflect.construct(t,n||[],DX(e).constructor):t.apply(e,n))}function OX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(OX=function(){return!!e})()}function DX(e){return DX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},DX(e)}function _X(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PX(e,t){return PX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PX(e,t)}function TX(e,t,n){return(t=AX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AX(e){var t=function(e,t){if("object"!=vX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vX(t)?t:String(t)}var MX=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return TX(_X(e=EX(this,t,[].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),TX(_X(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),TX(_X(e),"getStrokeDasharray",(function(n,r,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(r,n);for(var a=Math.floor(n/i),l=n%i,s=r-n,u=[],c=0,d=0;c<o.length;d+=o[c],++c)if(d+o[c]>l){u=[].concat(CX(o.slice(0,c)),[l-d]);break}var f=u.length%2==0?[0,s]:[s];return[].concat(CX(t.repeat(o,a)),CX(u),f).map((function(e){return"".concat(e,"px")})).join(", ")})),TX(_X(e),"id",NE("recharts-line-")),TX(_X(e),"pathRef",(function(t){e.mainCurve=t})),TX(_X(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),TX(_X(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PX(e,t)}(t,x),n=t,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,a=n.yAxis,l=n.layout,s=iO(n.children,GF);if(!s)return null;var u=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:lK(e.payload,t)}},c={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(wO,c,s.map((function(e){return o.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:r,xAxis:i,yAxis:a,layout:l,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,l=i.points,s=i.dataKey,u=uO(this.props,!1),c=uO(a,!0),d=l.map((function(e,n){var r=xX(xX(xX({key:"dot-".concat(n),r:3},u),c),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:n,payload:e.payload});return t.renderDotItem(a,r)})),f={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return o.createElement(wO,bX({className:"recharts-line-dots",key:"dots"},f),d)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,a=i.type,l=i.layout,s=i.connectNulls;i.ref;var u=yX(i,mX),c=xX(xX(xX({},uO(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:l,connectNulls:s});return o.createElement(FV,bX({},c,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,a=r.strokeDasharray,l=r.isAnimationActive,s=r.animationBegin,u=r.animationDuration,c=r.animationEasing,d=r.animationId,f=r.animateNewValues,p=r.width,h=r.height,g=this.state,m=g.prevPoints,v=g.totalLength;return o.createElement(zU,{begin:s,duration:u,isActive:l,easing:c,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(m){var l=m.length/i.length,s=i.map((function(e,t){var n=Math.floor(t*l);if(m[n]){var r=m[n],i=BE(r.x,e.x),a=BE(r.y,e.y);return xX(xX({},e),{},{x:i(o),y:a(o)})}if(f){var s=BE(2*p,e.x),u=BE(h/2,e.y);return xX(xX({},e),{},{x:s(o),y:u(o)})}return xX(xX({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(s,e,t)}var u,c=BE(0,v)(o);if(a){var d="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=n.getStrokeDasharray(c,v,d)}else u=n.generateSimpleStrokeDasharray(v,c);return n.renderCurveStatically(i,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,l=i.totalLength;return o&&r&&r.length&&(!a&&l>0||!$B(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,i=t.points,a=t.className,l=t.xAxis,s=t.yAxis,u=t.top,c=t.left,d=t.width,f=t.height,p=t.isAnimationActive,h=t.id;if(n||!i||!i.length)return null;var g=this.state.isAnimationFinished,m=1===i.length,v=$C("recharts-line",a),y=l&&l.allowDataOverflow,b=s&&s.allowDataOverflow,w=y||b,x=gE(h)?this.id:h,C=null!==(e=uO(r,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=C.r,k=void 0===S?3:S,E=C.strokeWidth,O=void 0===E?2:E,D=(function(e){return e&&"object"===QE(e)&&"cx"in e&&"cy"in e&&"r"in e}(r)?r:{}).clipDot,_=void 0===D||D,P=2*k+O;return o.createElement(wO,{className:v},y||b?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(x)},o.createElement("rect",{x:y?c:c-d/2,y:b?u:u-f/2,width:y?d:2*d,height:b?f:2*f})),!_&&o.createElement("clipPath",{id:"clipPath-dots-".concat(x)},o.createElement("rect",{x:c-P/2,y:u-P/2,width:d+P,height:f+P}))):null,!m&&this.renderCurve(w,x),this.renderErrorBar(w,x),(m||r)&&this.renderDots(w,_,x),(!p||g)&&xV.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(CX(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(CX(r),CX(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(vS(e))n=e(t);else{var r=$C("recharts-line-dot","boolean"!=typeof e?e.className:"");n=o.createElement(aW,bX({},t,{className:r}))}return n}}],r&&kX(n.prototype,r),i&&kX(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();function jX(){return jX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jX.apply(this,arguments)}TX(MX,"displayName","Line"),TX(MX,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!iL.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),TX(MX,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,l=e.bandSize,s=e.displayedData,u=e.offset,c=t.layout,d=s.map((function(e,t){var s=lK(e,a);return"horizontal"===c?{x:SK({axis:n,ticks:o,bandSize:l,entry:e,index:t}),y:gE(s)?null:r.scale(s),value:s,payload:e}:{x:gE(s)?null:n.scale(s),y:SK({axis:r,ticks:i,bandSize:l,entry:e,index:t}),value:s,payload:e}}));return xX({points:d,layout:c},u)}));var LX=function(e){var t=e.xAxisId,n=lY(),r=sY(),i=iY(t);return null==i?null:o.createElement(XY,jX({},i,{className:$C("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return hK(e,!0)}}))};function IX(){return IX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IX.apply(this,arguments)}LX.displayName="XAxis",LX.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 RX=function(e){var t=e.yAxisId,n=lY(),r=sY(),i=aY(t);return null==i?null:o.createElement(XY,IX({},i,{className:$C("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return hK(e,!0)}}))};function NX(e){return function(e){if(Array.isArray(e))return $X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $X(e,t)}(e)||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 $X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}RX.displayName="YAxis",RX.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 zX=function(e,t,n,r,o){var i=iO(e,mY),a=iO(e,CY),l=[].concat(NX(i),NX(a)),s=iO(e,_Y),u="".concat(r,"Id"),c=r[0],d=t;if(l.length&&(d=l.reduce((function(e,t){if(t.props[u]===n&&Nq(t.props,"extendDomain")&&LE(t.props[c])){var r=t.props[c];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),d)),s.length){var f="".concat(c,"1"),p="".concat(c,"2");d=s.reduce((function(e,t){if(t.props[u]===n&&Nq(t.props,"extendDomain")&&LE(t.props[f])&&LE(t.props[p])){var r=t.props[f],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),d)}return o&&o.length&&(d=o.reduce((function(e,t){return LE(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),d)),d},BX={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new o(r,i||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},l.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,o,i,a){var l=n?n+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,o),!0;case 5:return c.fn.call(c.context,t,r,o,i),!0;case 6:return c.fn.call(c.context,t,r,o,i,a),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,o);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var l=this._events[i];if(l.fn)l.fn!==t||o&&!l.once||r&&l.context!==r||a(this,i);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||o&&!l[s].once||r&&l[s].context!==r)&&u.push(l[s]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l}(BX);var FX=new(Mt(BX.exports)),KX="recharts.syncMouseEvents";function VX(e){return VX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VX(e)}function HX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WX(r.key),r)}}function UX(e,t,n){return(t=WX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WX(e){var t=function(e,t){if("object"!=VX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=VX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VX(t)?t:String(t)}var ZX=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),UX(this,"activeIndex",0),UX(this,"coordinateList",[]),UX(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,i=void 0===o?null:o,a=e.layout,l=void 0===a?null:a,s=e.offset,u=void 0===s?null:s,c=e.mouseHandlerCallback,d=void 0===c?null:c;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=l?l:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=d?d: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(e){if(0!==this.coordinateList.length)switch(e.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(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,l=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,s=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,u=r+a+l,c=o+this.offset.top+i/2+s;this.mouseHandlerCallback({pageX:u,pageY:c})}}}],n&&HX(t.prototype,n),r&&HX(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qX(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[BK(t,n,r,o),BK(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function GX(e,t,n){var r,o,i,a;if("horizontal"===e)i=r=t.x,o=n.top,a=n.top+n.height;else if("vertical"===e)a=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return qX(t);var l=t.cx,s=t.cy,u=t.innerRadius,c=t.outerRadius,d=t.angle,f=BK(l,s,u,d),p=BK(l,s,c,d);r=f.x,o=f.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function YX(e){return YX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YX(e)}function XX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XX(Object(n),!0).forEach((function(t){QX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QX(e,t,n){return t=function(e){var t=function(e,t){if("object"!=YX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YX(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eJ(e){var t,n=e.element,r=e.tooltipEventType,o=e.isActive,i=e.activeCoordinate,a=e.activePayload,s=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,d=e.layout,f=e.chartName;if(!n||!n.props.cursor||!o||!i||"ScatterChart"!==f&&"axis"!==r)return null;var g=FV;if("ScatterChart"===f)t=i,g=hW;else if("BarChart"===f)t=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(d,i,s,c),g=YU;else if("radial"===d){var m=qX(i),v=m.cx,y=m.cy,b=m.radius;t={cx:v,cy:y,startAngle:m.startAngle,endAngle:m.endAngle,innerRadius:b,outerRadius:b},g=TV}else t={points:GX(d,i,s)},g=FV;var w=JX(JX(JX(JX({stroke:"#ccc",pointerEvents:"none"},s),t),uO(n.props.cursor,!1)),{},{payload:a,payloadIndex:u,className:$C("recharts-tooltip-cursor",n.props.cursor.className)});return p(n.props.cursor)?h(n.props.cursor,w):l(g,w)}var tJ=["item"],nJ=["children","className","width","height","style","compact","title","desc"];function rJ(e){return rJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rJ(e)}function oJ(){return oJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oJ.apply(this,arguments)}function iJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||hJ(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 aJ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bJ(r.key),r)}}function sJ(e,t,n){return t=cJ(t),function(e,t){if(t&&("object"===rJ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dJ(e)}(e,uJ()?Reflect.construct(t,n||[],cJ(e).constructor):t.apply(e,n))}function uJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uJ=function(){return!!e})()}function cJ(e){return cJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cJ(e)}function dJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fJ(e,t){return fJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fJ(e,t)}function pJ(e){return function(e){if(Array.isArray(e))return gJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hJ(e)||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 hJ(e,t){if(e){if("string"==typeof e)return gJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gJ(e,t):void 0}}function gJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mJ(Object(n),!0).forEach((function(t){yJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yJ(e,t,n){return(t=bJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bJ(e){var t=function(e,t){if("object"!=rJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rJ(t)?t:String(t)}var wJ={xAxis:["bottom","top"],yAxis:["left","right"]},xJ={width:"100%",height:"100%"},CJ={x:0,y:0};function SJ(e){return e}var kJ=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,i=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(pJ(e),pJ(n)):e}),[]);return i.length>0?i:e&&e.length&&LE(r)&&LE(o)?e.slice(r,o+1):[]};function EJ(e){return"number"===e?[0,"auto"]:void 0}var OJ=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=kJ(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,l){var s,u,c=null!==(s=l.props.data)&&void 0!==s?s:t;(c&&e.dataStartIndex+e.dataEndIndex!==0&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?u=FE(void 0===c?a:c,i.dataKey,r):u=c&&c[n]||a[n];return u?[].concat(pJ(o),[AK(l,u)]):o}),[])},DJ=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,s=0;s<a;s++){var u=s>0?r[s-1].coordinate:r[a-1].coordinate,c=r[s].coordinate,d=s>=a-1?r[0].coordinate:r[s+1].coordinate,f=void 0;if(ME(c-u)!==ME(d-c)){var p=[];if(ME(d-c)===ME(l[1]-l[0])){f=d;var h=c+l[1]-l[0];p[0]=Math.min(h,(h+u)/2),p[1]=Math.max(h,(h+u)/2)}else{f=u;var g=d+l[1]-l[0];p[0]=Math.min(c,(g+c)/2),p[1]=Math.max(c,(g+c)/2)}var m=[Math.min(c,(f+c)/2),Math.max(c,(f+c)/2)];if(e>m[0]&&e<=m[1]||e>=p[0]&&e<=p[1]){i=r[s].index;break}}else{var v=Math.min(u,d),y=Math.max(u,d);if(e>(v+c)/2&&e<=(y+c)/2){i=r[s].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,s,l);if(u>=0&&s){var c=s[u]&&s[u].value,d=OJ(e,t,u,c),f=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return vJ(vJ(vJ({},r),BK(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var l=o.coordinate,s=r.angle;return vJ(vJ(vJ({},r),BK(r.cx,r.cy,l,s)),{},{angle:s,radius:l})}return CJ}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:c,activePayload:d,activeCoordinate:f}}return null},_J=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,u=e.layout,c=e.children,d=e.stackOffset,f=fK(u,o);return n.reduce((function(t,n){var p,h=n.props,g=h.type,m=h.dataKey,v=h.allowDataOverflow,y=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var S,k,E,O=kJ(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:l,dataEndIndex:s}),D=O.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&LE(r)&&LE(o))return!0}return!1})(n.props.domain,v,g)&&(S=_K(n.props.domain,null,v),!f||"number"!==g&&"auto"===b||(E=sK(O,m,"category")));var _=EJ(g);if(!S||0===S.length){var P,T=null!==(P=n.props.domain)&&void 0!==P?P:_;if(m){if(S=sK(O,m,g),"category"===g&&f){var A=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(S);y&&A?(k=S,S=sq(0,D)):y||(S=TK(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(pJ(e),[t])}),[]))}else if("category"===g)S=y?S.filter((function(e){return""!==e&&!gE(e)})):TK(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||gE(t)?e:[].concat(pJ(e),[t])}),[]);else if("number"===g){var M=function(e,t,n,r,o){var i=t.map((function(t){return cK(e,t,n,o,r)})).filter((function(e){return!gE(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(O,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),m,o,u);M&&(S=M)}!f||"number"!==g&&"auto"===b||(E=sK(O,m,"category"))}else S=f?sq(0,D):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===d?[0,1]:EK(a[C].stackGroups,l,s):dK(O,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,u,!0);if("number"===g)S=zX(c,S,C,o,w),T&&(S=_K(T,S,v));else if("category"===g&&T){var j=T;S.every((function(e){return j.indexOf(e)>=0}))&&(S=j)}}return vJ(vJ({},t),{},yJ({},C,vJ(vJ({},n.props),{},{axisType:o,domain:S,categoricalDomain:E,duplicateDomain:k,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:_,isCategorical:f,layout:u})))}),{})},PJ=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,u=e.children,c="".concat(r,"Id"),d=iO(u,o),f={};return d&&d.length?f=_J(e,{axes:d,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:s}):i&&i.length&&(f=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,u=e.layout,c=e.children,d=kJ(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),f=d.length,p=fK(u,o),h=-1;return n.reduce((function(e,t){var g,m=t.props[i],v=EJ("number");return e[m]?e:(h++,p?g=sq(0,f):a&&a[m]&&a[m].hasStack?(g=EK(a[m].stackGroups,l,s),g=zX(c,g,m,o)):(g=_K(v,dK(d,n.filter((function(e){return e.props[i]===m&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=zX(c,g,m,o)),vJ(vJ({},e),{},yJ({},m,vJ(vJ({axisType:o},r.defaultProps),{},{hide:!0,orientation:hE(wJ,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:p,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:s})),f},TJ=function(e){var t=e.children,n=e.defaultShowTooltip,r=aO(t,Dq),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},AJ=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},MJ=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,l=n.width,s=n.height,u=n.children,c=n.margin||{},d=aO(u,Dq),f=aO(u,TM),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:vJ(vJ({},e),{},yJ({},r,e[r]+n.width))}),{left:c.left||0,right:c.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:vJ(vJ({},e),{},yJ({},r,hE(e,"".concat(r))+n.height))}),{top:c.top||0,bottom:c.bottom||0}),g=vJ(vJ({},h),p),m=g.bottom;d&&(g.bottom+=d.props.height||Dq.defaultProps.height),f&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,l=i-(a.left||0)-(a.right||0),s=eK({children:o,legendWidth:l});if(s){var u=r||{},c=u.width,d=u.height,f=s.align,p=s.verticalAlign,h=s.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==f&&LE(e[f]))return rK(rK({},e),{},oK({},f,e[f]+(c||0)));if(("horizontal"===h||"vertical"===h&&"center"===f)&&"middle"!==p&&LE(e[p]))return rK(rK({},e),{},oK({},p,e[p]+(d||0)))}return e}(g,0,n,t));var v=l-g.left-g.right,y=s-g.top-g.bottom;return vJ(vJ({brushBottom:m},g),{},{width:Math.max(v,0),height:Math.max(y,0)})},jJ=function(e){var t,n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,l=e.validateTooltipEventTypes,s=void 0===l?["axis"]:l,u=e.axisComponents,c=e.legendContent,d=e.formatAxisMap,f=e.defaultProps,g=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,d=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,h=AJ(c),g=h.numericAxisName,m=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=tO(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),y=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,l=i.length;a<l;a++)for(var s=r[i[a]].stackGroups,u=Object.keys(s),c=0,d=u.length;c<d;c++){var f=s[u[c]],p=f.items,h=f.cateAxisId,g=p.filter((function(e){return tO(e.type).indexOf("Bar")>=0}));if(g&&g.length){var m=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:gE(m)?t:m})}}return o}({barSize:s,stackGroups:r}),b=[];return n.forEach((function(n,s){var h=kJ(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:l}),v=n.props,w=v.dataKey,x=v.maxBarSize,C=n.props["".concat(g,"Id")],S=n.props["".concat(m,"Id")],k=u.reduce((function(e,r){var o,i,a=t["".concat(r.axisType,"Map")],l=n.props["".concat(r.axisType,"Id")];a&&a[l]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?VF(!1,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==n||null===(i=n.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):VF(!1));var s=a[l];return vJ(vJ({},e),{},yJ(yJ({},r.axisType,s),"".concat(r.axisType,"Ticks"),hK(s)))}),{}),E=k[m],O=k["".concat(m,"Ticks")],D=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(IE(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null}(n,r[C].stackGroups),_=tO(n.type).indexOf("Bar")>=0,P=PK(E,O),T=[];if(_){var A,M,j=gE(x)?p:x,L=null!==(A=null!==(M=PK(E,O,!0))&&void 0!==M?M:j)&&void 0!==A?A:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,l=i.length;if(l<1)return null;var s,u=$E(t,r,0,!0),c=[];if(i[0].barSize===+i[0].barSize){var d=!1,f=r/l,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(l-1)*u)>=r&&(p-=(l-1)*u,u=0),p>=r&&f>0&&(d=!0,p=l*(f*=.9));var h={offset:((r-p)/2>>0)-u,size:0};s=i.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+u,size:d?f:t.barSize}},r=[].concat(iK(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),c)}else{var g=$E(n,r,0,!0);r-2*g-(l-1)*u<=0&&(u=0);var m=(r-2*g-(l-1)*u)/l;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;s=i.reduce((function(e,t,n){var r=[].concat(iK(e),[{item:t.item,position:{offset:g+(m+u)*n+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),c)}return s}({barGap:d,barCategoryGap:f,bandSize:L!==P?L:P,sizeList:y[S],maxBarSize:j}),L!==P&&(T=T.map((function(e){return vJ(vJ({},e),{},{position:vJ(vJ({},e.position),{},{offset:e.position.offset-L/2})})})))}var I,R,N=n&&n.type&&n.type.getComposedData;N&&b.push({props:vJ(vJ({},N(vJ(vJ({},k),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:P,barPosition:T,offset:o,stackedData:D,layout:c,dataStartIndex:a,dataEndIndex:l}))),{},yJ(yJ(yJ({key:n.key||"item-".concat(s)},g,k[g]),m,k[m]),"animationId",i)),childIndex:(I=n,R=e.children,oO(R).indexOf(I)),item:n})})),b},m=function(e,t){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!lO({props:o}))return null;var s=o.children,c=o.layout,f=o.stackOffset,p=o.data,h=o.reverseStackOrder,m=AJ(c),v=m.numericAxisName,y=m.cateAxisName,b=iO(s,r),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],l=e[a]||{hasStack:!1,stackGroups:{}};if(IE(i)){var s=l.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};s.items.push(t),l.hasStack=!0,l.stackGroups[i]=s}else l.stackGroups[NE("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return rK(rK({},e),{},oK({},a,l))}),{});return Object.keys(a).reduce((function(t,i){var l=a[i];return l.hasStack&&(l.stackGroups=Object.keys(l.stackGroups).reduce((function(t,i){var a=l.stackGroups[i];return rK(rK({},t),{},oK({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:xK(e,a.items,o)}))}),{})),rK(rK({},t),{},oK({},i,l))}),{})}(p,b,"".concat(v,"Id"),"".concat(y,"Id"),f,h),x=u.reduce((function(e,t){var n="".concat(t.axisType,"Map");return vJ(vJ({},e),{},yJ({},n,PJ(o,vJ(vJ({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=MJ(vJ(vJ({},x),{},{props:o,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=d(o,x[e],C,e.replace("Map",""),n)}));var S,k,E=x["".concat(y,"Map")],O=(S=zE(E),{tooltipTicks:k=hK(S,!1,!0),orderedTooltipTicks:Aj(k,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:PK(S,k)}),D=g(o,vJ(vJ({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:C}));return vJ(vJ({formattedGraphicalItems:D,graphicalItems:b,offset:C,stackGroups:w},O),x)};return t=function(e){function t(e){var r,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),yJ(dJ(a=sJ(this,t,[e])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),yJ(dJ(a),"accessibilityManager",new ZX),yJ(dJ(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(vJ({legendBBox:e},m({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},vJ(vJ({},a.state),{},{legendBBox:e}))))}})),yJ(dJ(a),"handleReceiveSyncEvent",(function(e,t,n){if(a.props.syncId===e){if(n===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),yJ(dJ(a),"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState((function(){return vJ({dataStartIndex:t,dataEndIndex:n},m({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),yJ(dJ(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var n=vJ(vJ({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;vS(r)&&r(n,e)}})),yJ(dJ(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),n=t?vJ(vJ({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;vS(r)&&r(n,e)})),yJ(dJ(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),yJ(dJ(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),yJ(dJ(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),yJ(dJ(a),"handleMouseLeave",(function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;vS(n)&&n(t,e)})),yJ(dJ(a),"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&eO[t]?eO[t]:null}(e),r=hE(a.props,"".concat(n));n&&vS(r)&&r(null!==(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),yJ(dJ(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var n=vJ(vJ({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;vS(r)&&r(n,e)}})),yJ(dJ(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;vS(t)&&t(a.getMouseInfo(e),e)})),yJ(dJ(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;vS(t)&&t(a.getMouseInfo(e),e)})),yJ(dJ(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),yJ(dJ(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),yJ(dJ(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),yJ(dJ(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&FX.emit(KX,a.props.syncId,e,a.eventEmitterSymbol)})),yJ(dJ(a),"applySyncEvent",(function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(vJ({dataStartIndex:i,dataEndIndex:l},m({props:a.props,dataStartIndex:i,dataEndIndex:l,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,u=e.chartY,c=e.activeTooltipIndex,d=a.state,f=d.offset,p=d.tooltipTicks;if(!f)return;if("function"==typeof r)c=r(p,e);else if("value"===r){c=-1;for(var h=0;h<p.length;h++)if(p[h].value===e.activeLabel){c=h;break}}var g=vJ(vJ({},f),{},{x:f.left,y:f.top}),v=Math.min(s,g.x+g.width),y=Math.min(u,g.y+g.height),b=p[c]&&p[c].value,w=OJ(a.state,a.props.data,c),x=p[c]?{x:"horizontal"===n?p[c].coordinate:v,y:"horizontal"===n?y:p[c].coordinate}:CJ;a.setState(vJ(vJ({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:c}))}else a.setState(e)})),yJ(dJ(a),"renderCursor",(function(e){var t,r=a.state,i=r.isTooltipActive,l=r.activeCoordinate,s=r.activePayload,u=r.offset,c=r.activeTooltipIndex,d=r.tooltipAxisBandSize,f=a.getTooltipEventType(),p=null!==(t=e.props.active)&&void 0!==t?t:i,h=a.props.layout,g=e.key||"_recharts-cursor";return o.createElement(eJ,{key:g,activeCoordinate:l,activePayload:s,activeTooltipIndex:c,chartName:n,element:e,isActive:p,layout:h,offset:u,tooltipAxisBandSize:d,tooltipEventType:f})})),yJ(dJ(a),"renderPolarAxis",(function(e,t,n){var r=hE(e,"type.axisType"),o=hE(a.state,"".concat(r,"Map")),i=o&&o[e.props["".concat(r,"Id")]];return h(e,vJ(vJ({},i),{},{className:$C(r,i.className),key:e.key||"".concat(t,"-").concat(n),ticks:hK(i,!0)}))})),yJ(dJ(a),"renderPolarGrid",(function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,o=t.polarRadius,i=a.state,l=i.radiusAxisMap,s=i.angleAxisMap,u=zE(l),c=zE(s),d=c.cx,f=c.cy,p=c.innerRadius,g=c.outerRadius;return h(e,{polarAngles:Array.isArray(r)?r:hK(c,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(o)?o:hK(u,!0).map((function(e){return e.coordinate})),cx:d,cy:f,innerRadius:p,outerRadius:g,key:e.key||"polar-grid",radialLines:n})})),yJ(dJ(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,t=a.props,n=t.children,r=t.width,o=t.height,i=a.props.margin||{},l=r-(i.left||0)-(i.right||0),s=eK({children:n,formattedGraphicalItems:e,legendWidth:l,legendContent:c});if(!s)return null;var u=s.item,d=aJ(s,tJ);return h(u,vJ(vJ({},d),{},{chartWidth:r,chartHeight:o,margin:i,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),yJ(dJ(a),"renderTooltip",(function(){var e,t=a.props,n=t.children,r=t.accessibilityLayer,o=aO(n,vL);if(!o)return null;var i=a.state,l=i.isTooltipActive,s=i.activeCoordinate,u=i.activePayload,c=i.activeLabel,d=i.offset,f=null!==(e=o.props.active)&&void 0!==e?e:l;return h(o,{viewBox:vJ(vJ({},d),{},{x:d.left,y:d.top}),active:f,label:c,payload:f?u:[],coordinate:s,accessibilityLayer:r})})),yJ(dJ(a),"renderBrush",(function(e){var t=a.props,n=t.margin,r=t.data,o=a.state,i=o.offset,l=o.dataStartIndex,s=o.dataEndIndex,u=o.updateId;return h(e,{key:e.key||"_recharts-brush",onChange:mK(a.handleBrushChange,e.props.onChange),data:r,x:LE(e.props.x)?e.props.x:i.left,y:LE(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(n.bottom||0),width:LE(e.props.width)?e.props.width:i.width,startIndex:l,endIndex:s,updateId:"brush-".concat(u)})})),yJ(dJ(a),"renderReferenceElement",(function(e,t,n){if(!e)return null;var r=dJ(a).clipPathId,o=a.state,i=o.xAxisMap,l=o.yAxisMap,s=o.offset,u=e.props,c=u.xAxisId,d=u.yAxisId;return h(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:i[c],yAxis:l[d],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:r})})),yJ(dJ(a),"renderActivePoints",(function(e){var n=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,l=[],s=n.props.key,u=n.item.props,c=u.activeDot,d=vJ(vJ({index:i,dataKey:u.dataKey,cx:r.x,cy:r.y,r:4,fill:uK(n.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(s,"-activePoint-").concat(i)},uO(c,!1)),qE(c));return l.push(t.renderActiveDot(c,d)),o?l.push(t.renderActiveDot(c,vJ(vJ({},d),{},{cx:o.x,cy:o.y,key:"".concat(s,"-basePoint-").concat(i)}))):a&&l.push(null),l})),yJ(dJ(a),"renderGraphicChild",(function(e,t,n){var r=a.filterFormatItem(e,t,n);if(!r)return null;var o=a.getTooltipEventType(),i=a.state,l=i.isTooltipActive,s=i.tooltipAxis,u=i.activeTooltipIndex,c=i.activeLabel,d=aO(a.props.children,vL),f=r.props,p=f.points,g=f.isRange,m=f.baseLine,v=r.item.props,y=v.activeDot,b=v.hide,w=v.activeBar,x=v.activeShape,C=Boolean(!b&&l&&d&&(y||w||x)),S={};"axis"!==o&&d&&"click"===d.props.trigger?S={onClick:mK(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(S={onMouseLeave:mK(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:mK(a.handleItemMouseEnter,e.props.onMouseEnter)});var k=h(e,vJ(vJ({},r.props),S));if(C){if(!(u>=0)){var E,O=(null!==(E=a.getItemByXY(a.state.activeCoordinate))&&void 0!==E?E:{graphicalItem:k}).graphicalItem,D=O.item,_=void 0===D?e:D,P=O.childIndex,T=vJ(vJ(vJ({},r.props),S),{},{activeIndex:P});return[h(_,T),null,null]}var A,M;if(s.dataKey&&!s.allowDuplicatedCategory){var j="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());A=FE(p,j,c),M=g&&m&&FE(m,j,c)}else A=null==p?void 0:p[u],M=g&&m&&m[u];if(x||w){var L=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[h(e,vJ(vJ(vJ({},r.props),S),{},{activeIndex:L})),null,null]}if(!gE(A))return[k].concat(pJ(a.renderActivePoints({item:r,activePoint:A,basePoint:M,childIndex:u,isRange:g})))}return g?[k,null,null]:[k,null]})),yJ(dJ(a),"renderCustomized",(function(e,t,n){return h(e,vJ(vJ({key:"recharts-customized-".concat(n)},a.props),a.state))})),yJ(dJ(a),"renderMap",{CartesianGrid:{handler:SJ,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:SJ},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:SJ},YAxis:{handler:SJ},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:NE("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=FL(a.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}var r,i,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fJ(e,t)}(t,C),r=t,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=aO(t,vL);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var l=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,s=OJ(this.state,n,a,l),u=this.state.tooltipTicks[a].coordinate,c=(this.state.offset.top+r)/2,d="horizontal"===o?{x:u,y:c}:{y:u,x:c},f=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));f&&(d=vJ(vJ({},d),f.props.points[a].tooltipPosition),s=f.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:l,activePayload:s,activeCoordinate:d};this.setState(p),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){cO([aO(e.children,vL)],[aO(this.props.children,vL)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=aO(this.props.children,vL);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return s.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o={top:(t=r).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=r.width/n.offsetWidth||1,l=this.inRange(i.chartX,i.chartY,a);if(!l)return null;var s=this.state,u=s.xAxisMap,c=s.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&c){var d=zE(u).scale,f=zE(c).scale,p=d&&d.invert?d.invert(i.chartX):null,h=f&&f.invert?f.invert(i.chartY):null;return vJ(vJ({},i),{},{xValue:p,yValue:h})}var g=DJ(this.state,this.props.data,this.props.layout,l);return g?vJ(vJ({},i),g):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var l=this.state,s=l.angleAxisMap,u=l.radiusAxisMap;if(s&&u){var c=zE(s);return HK({x:o,y:i},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=aO(e,vL),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),vJ(vJ({},qE(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){FX.on(KX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){FX.removeListener(KX,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===tO(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:n,y:r,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=iJ(t,2),r=n[0],o=n[1];return vJ(vJ({},e),{},yJ({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=iJ(t,2),r=n[0],o=n[1];return vJ(vJ({},e),{},yJ({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],l=a.props,s=a.item,u=tO(s.type);if("Bar"===u){var c=(l.data||[]).find((function(t){return qU(e,t)}));if(c)return{graphicalItem:a,payload:c}}else if("RadialBar"===u){var d=(l.data||[]).find((function(t){return HK(e,t)}));if(d)return{graphicalItem:a,payload:d}}else if(jZ(a,r)||LZ(a,r)||IZ(a,r)){var f=zZ({graphicalItem:a,activeTooltipItem:r,itemData:s.props.data}),p=void 0===s.props.activeIndex?f:s.props.activeIndex;return{graphicalItem:vJ(vJ({},a),{},{childIndex:p}),payload:IZ(a,r)?s.props.data[f]:a.props.data[f]}}}return null}},{key:"render",value:function(){var e=this;if(!lO(this))return null;var t,n,r=this.props,i=r.children,a=r.className,l=r.width,s=r.height,u=r.style,c=r.compact,d=r.title,f=r.desc,p=aJ(r,nJ),h=uO(p,!1);if(c)return o.createElement(rY,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},o.createElement(mO,oJ({},h,{width:l,height:s,title:d,desc:f}),this.renderClipPath(),fO(i,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,h.role=null!==(n=this.props.role)&&void 0!==n?n:"application",h.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){e.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return o.createElement(rY,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},o.createElement("div",oJ({className:$C("recharts-wrapper",a),style:vJ({position:"relative",cursor:"default",width:l,height:s},u)},g,{ref:function(t){e.container=t}}),o.createElement(mO,oJ({},h,{width:l,height:s,title:d,desc:f,style:xJ}),this.renderClipPath(),fO(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&lJ(r.prototype,i),l&&lJ(r,l),Object.defineProperty(r,"prototype",{writable:!1}),t}(),yJ(t,"displayName",n),yJ(t,"defaultProps",vJ({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),yJ(t,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,i=e.width,a=e.height,l=e.layout,s=e.stackOffset,u=e.margin,c=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var f=TJ(e);return vJ(vJ(vJ({},f),{},{updateId:0},m(vJ(vJ({props:e},f),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:s,prevMargin:u,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||l!==t.prevLayout||s!==t.prevStackOffset||!KE(u,t.prevMargin)){var p=TJ(e),h={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},g=vJ(vJ({},DJ(t,r,l)),{},{updateId:t.updateId+1}),v=vJ(vJ(vJ({},p),h),g);return vJ(vJ(vJ({},v),m(vJ({props:e},v),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:s,prevMargin:u,prevChildren:o})}if(!cO(o,t.prevChildren)){var y,b,w,x,C=aO(o,Dq),S=C&&null!==(y=null===(b=C.props)||void 0===b?void 0:b.startIndex)&&void 0!==y?y:c,k=C&&null!==(w=null===(x=C.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:d,E=S!==c||k!==d,O=!gE(r)&&!E?t.updateId:t.updateId+1;return vJ(vJ({updateId:O},m(vJ(vJ({props:e},t),{},{updateId:O,dataStartIndex:S,dataEndIndex:k}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:k})}return null})),yJ(t,"renderActiveDot",(function(e,t){var n;return n=p(e)?h(e,t):vS(e)?e(t):o.createElement(aW,t),o.createElement(wO,{className:"recharts-active-dot",key:t.key},n)})),t},LJ=jJ({chartName:"LineChart",GraphicalChild:MX,axisComponents:[{axisType:"xAxis",AxisComp:LX},{axisType:"yAxis",AxisComp:RX}],formatAxisMap:MG}),IJ=jJ({chartName:"BarChart",GraphicalChild:EG,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:LX},{axisType:"yAxis",AxisComp:RX}],formatAxisMap:MG}),RJ=jJ({chartName:"PieChart",GraphicalChild:JZ,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:QW},{axisType:"radiusAxis",AxisComp:zW}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,l=e.startAngle,s=e.endAngle,u=$E(e.cx,i,i/2),c=$E(e.cy,a,a/2),d=FK(i,a,n),f=$E(e.innerRadius,d,0),p=$E(e.outerRadius,d,.8*d);return Object.keys(t).reduce((function(e,n){var i,a=t[n],d=a.domain,h=a.reversed;if(gE(a.range))"angleAxis"===r?i=[l,s]:"radiusAxis"===r&&(i=[f,p]),h&&(i=[i[1],i[0]]);else{var g=RK(i=a.range,2);l=g[0],s=g[1]}var m=vK(a,o),v=m.realScaleType,y=m.scale;y.domain(d).range(i),bK(y);var b=CK(y,LK(LK({},a),{},{realScaleType:v})),w=LK(LK(LK({},a),b),{},{range:i,radius:p,realScaleType:v,scale:y,cx:u,cy:c,innerRadius:f,outerRadius:p,startAngle:l,endAngle:s});return LK(LK({},e),{},IK({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const NJ=me.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),Rn,Nn);function $J(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function zJ(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function BJ(e,t){const n=$J(e);return isNaN(t)?zJ(e,NaN):t?(n.setDate(n.getDate()+t),n):n}const FJ=6048e5,KJ=864e5;let VJ={};function HJ(){return VJ}function UJ(e,t){const n=HJ(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$J(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function WJ(e){return UJ(e,{weekStartsOn:1})}function ZJ(e){const t=$J(e),n=t.getFullYear(),r=zJ(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=WJ(r),i=zJ(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=WJ(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function qJ(e){const t=$J(e);return t.setHours(0,0,0,0),t}function GJ(e){const t=$J(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function YJ(e,t){const n=qJ(e),r=qJ(t),o=+n-GJ(n),i=+r-GJ(r);return Math.round((o-i)/KJ)}function XJ(e){return zJ(e,Date.now())}function JJ(e,t){return+qJ(e)==+qJ(t)}function QJ(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=$J(e);return!isNaN(Number(n))}function eQ(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function tQ(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function nQ(e,t,n){const r=function(e,t){return+$J(e)-+$J(t)}(e,t)/6e4;return tQ(n?.roundingMethod)(r)}function rQ(e,t,n){const r=function(e,t){const n=$J(e),r=$J(t),o=eQ(n,r),i=Math.abs(YJ(n,r));n.setDate(n.getDate()-o*i);const a=o*(i-Number(eQ(n,r)===-o));return 0===a?0:a}(e,t)/7;return tQ(n?.roundingMethod)(r)}const oQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function iQ(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const aQ={date:iQ({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:iQ({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:iQ({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},lQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function sQ(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const uQ={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:sQ({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:sQ({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:sQ({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:sQ({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:sQ({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function cQ(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(a)));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}const dQ={ordinalNumber:(fQ={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(fQ.matchPattern);if(!n)return null;const r=n[0],o=e.match(fQ.parsePattern);if(!o)return null;let i=fQ.valueCallback?fQ.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:cQ({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:cQ({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:cQ({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:cQ({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:cQ({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var fQ;const pQ={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=oQ[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:aQ,formatRelative:(e,t,n,r)=>lQ[e],localize:uQ,match:dQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hQ(e){const t=$J(e),n=YJ(t,function(e){const t=$J(e),n=zJ(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function gQ(e){const t=$J(e),n=+WJ(t)-+function(e){const t=ZJ(e),n=zJ(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),WJ(n)}(t);return Math.round(n/FJ)+1}function mQ(e,t){const n=$J(e),r=n.getFullYear(),o=HJ(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=zJ(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const l=UJ(a,t),s=zJ(e,0);s.setFullYear(r,0,i),s.setHours(0,0,0,0);const u=UJ(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function vQ(e,t){const n=$J(e),r=+UJ(n,t)-+function(e,t){const n=HJ(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=mQ(e,t),i=zJ(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),UJ(i,t)}(n,t);return Math.round(r/FJ)+1}function yQ(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const bQ={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return yQ("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):yQ(n+1,2)},d:(e,t)=>yQ(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>yQ(e.getHours()%12||12,t.length),H:(e,t)=>yQ(e.getHours(),t.length),m:(e,t)=>yQ(e.getMinutes(),t.length),s:(e,t)=>yQ(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return yQ(Math.trunc(r*Math.pow(10,n-3)),t.length)}},wQ="midnight",xQ="noon",CQ="morning",SQ="afternoon",kQ="evening",EQ="night",OQ={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return bQ.y(e,t)},Y:function(e,t,n,r){const o=mQ(e,r),i=o>0?o:1-o;if("YY"===t){return yQ(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):yQ(i,t.length)},R:function(e,t){return yQ(ZJ(e),t.length)},u:function(e,t){return yQ(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return yQ(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return yQ(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return bQ.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return yQ(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=vQ(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):yQ(o,t.length)},I:function(e,t,n){const r=gQ(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):yQ(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):bQ.d(e,t)},D:function(e,t,n){const r=hQ(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):yQ(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return yQ(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return yQ(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return yQ(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?xQ:0===r?wQ:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?kQ:r>=12?SQ:r>=4?CQ:EQ,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return bQ.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):bQ.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):yQ(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):yQ(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):bQ.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):bQ.s(e,t)},S:function(e,t){return bQ.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return _Q(r);case"XXXX":case"XX":return PQ(r);default:return PQ(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return _Q(r);case"xxxx":case"xx":return PQ(r);default:return PQ(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+DQ(r,":");default:return"GMT"+PQ(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+DQ(r,":");default:return"GMT"+PQ(r,":")}},t:function(e,t,n){return yQ(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return yQ(e.getTime(),t.length)}};function DQ(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+yQ(i,2)}function _Q(e,t){if(e%60==0){return(e>0?"-":"+")+yQ(Math.abs(e)/60,2)}return PQ(e,t)}function PQ(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+yQ(Math.trunc(r/60),2)+t+yQ(r%60,2)}const TQ=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},AQ=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},MQ={p:AQ,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return TQ(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",TQ(r,t)).replace("{{time}}",AQ(o,t))}},jQ=/^D+$/,LQ=/^Y+$/,IQ=["D","DD","YY","YYYY"];const RQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,NQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$Q=/^'([^]*?)'?$/,zQ=/''/g,BQ=/[a-zA-Z]/;function FQ(e,t,n){const r=HJ(),o=n?.locale??r.locale??pQ,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=$J(e);if(!QJ(l))throw new RangeError("Invalid time value");let s=t.match(NQ).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,MQ[t])(e,o.formatLong)}return e})).join("").match(RQ).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:KQ(e)};if(OQ[t])return{isToken:!0,value:e};if(t.match(BQ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return s.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return LQ.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return jQ.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),IQ.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,OQ[i[0]])(l,i,o.localize,u)})).join("")}function KQ(e){const t=e.match($Q);return t?t[1].replace(zQ,"'"):e}function VQ(e){return function(e,t){const n=$J(e),r=$J(t);return n.getFullYear()===r.getFullYear()}(e,XJ(e))}function HQ(e){return JJ(e,function(e,t){return BJ(e,-t)}(XJ(e),1))}const UQ=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,l="relative"===r||!1,s=new Date,u=FQ(n,"EEEE"),c=FQ(n,"MMM d"),d=FQ(n,"MMM d, y"),f=FQ(n,"h:mm aaa"),p=VQ(n),h=function(e){return+$J(e)>Date.now()}(n),g=function(e){return JJ(e,XJ(e))}(n),m=HQ(n),v=function(e){return JJ(e,BJ(XJ(e),1))}(n),y=nQ(s,n),b=rQ(s,n),w=y>=-10&&y<=10,x=a||l?`, ${f}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(f);if(l){if(0===y)return C("Just now");if(w)return C(h?`Today, in ${-1*y} min.`:`${y} min. ago`);if(g)return C(h?`Today${x}`:f)}return C(g?`Today${x}`:m?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${c}${x}`:`${d}${x}`:`${u}${x}`)},WQ=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},ZQ=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),qQ=()=>e(D,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),GQ=me.div((({width:e,height:t,maxWidth:n,maxHeight:r,responsive:o})=>({width:e||"100%",height:t||"100%",maxWidth:o?n||"100%":void 0,maxHeight:o?r||"100%":void 0})),Rn),YQ=({active:n,payload:r,label:o})=>n&&r&&r.length?t(t1,{children:[e(n1,{children:o}),null==r?void 0:r.map((n=>{var r,o;const i=n.color||(null===(r=n.payload)||void 0===r?void 0:r.color),a=`${null===(o=n.payload)||void 0===o?void 0:o.name}-${n.dataKey}-${n.value}`;return t(e1,{children:[i&&e(NJ,{color:i}),n.name,": ",ZQ(n.value||0)]},a)}))]}):null,XQ=()=>{const{elevation1:t}=O();return e(vL,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e(YQ,{})})},JQ=({payload:n,toggleData:r})=>e(QQ,{children:null==n?void 0:n.map((n=>t(e1,{onClick:r?()=>r(n):void 0,clickable:!!r,inactive:n.inactive,children:[e(NJ,{color:n.color}),n.value]},`${n.dataKey}-${n.value}`)))}),QQ=me.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),e1=me.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),t1=me.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),n1=me.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4}))),r1=n=>{var{data:r,legend:o,keys:i,stacked:a,barGap:l,barCategoryGap:s,barSize:u=16,maxBarSize:c,vertical:d=!1,hideYLabels:f,hideXLabels:p,xAxisHeight:h=22,yAxisWidth:g=45}=n,m=M(n,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:v}=O();return t(GQ,Object.assign({},m,{children:[e(qQ,{}),e(qL,{width:"100%",height:"100%",children:t(IJ,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:d?"vertical":"horizontal",barSize:u,maxBarSize:c,barGap:l,barCategoryGap:s,children:[e(gX,{stroke:v,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e(LX,{stroke:v,tickMargin:4,tickFormatter:e=>d?RC(e):e,tick:!p&&{},height:p?12:h,dataKey:d?void 0:"name",type:d?"number":"category"}),e(RX,{stroke:v,tickMargin:4,tickFormatter:e=>d?e:RC(e),tick:!f&&{},width:f?5:g,dataKey:d?"name":void 0,type:d?"category":"number"}),XQ(),o&&e(TM,{content:e(JQ,{})}),i.map((({key:t,color:n},r)=>e(EG,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},o1=[({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,width:"min-content",padding:8,backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"})],i1=({range:n,initialDate:r})=>t(ib,{children:[e(s1,{children:t=>e(u1,{children:t})}),e(a1,{range:n,children:t=>e(l1,{date:t,current:r?dl(t,r):void 0,range:n})})]}),a1=me(db)({"& > tr > td":{padding:"2px 4px"},"& > tr > td:first-of-type":{paddingLeft:0},"& > tr > td:last-of-type":{paddingRight:0},"& > tr:first-of-type > td":{paddingTop:0},"& > tr:last-of-type > td":{paddingBottom:0},"& > tr > td[aria-disabled]":{cursor:"default"},"& > tr > td[aria-selected]":{position:"relative"}},(({theme:{calendar:e,color:t},range:n})=>n&&{"& > tr > td[aria-selected]::after":{background:e.background.activeRange,content:'""',height:28,left:0,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",zIndex:0},"& > tr > td[aria-selected][aria-invalid]::after":{backgroundColor:t.errorTint2},"& > tr > td[aria-selected]:has(div[data-selection-start])::after":{left:"50%"},"& > tr > td[aria-selected]:has(div[data-selection-end])::after":{right:"50%"},"& > tr:first-of-type > td[aria-selected]::after":{transform:"translateY(calc(-50% - 1px))"},"& > tr:last-of-type > td[aria-selected]::after":{transform:"translateY(calc(-50% + 1px))"}})),l1=me(pb)((({theme:{accent:e,font:t,calendar:n,color:r},range:o=!1})=>({width:28,height:28,lineHeight:"28px",textAlign:"center",borderRadius:"50%",cursor:"pointer",border:"none",fontSize:t.size.md,fontWeight:t.weight.default,color:n.color.default,outline:"none",position:"relative",zIndex:1,"&[data-disabled]":{color:n.color.disabled,cursor:"default","&:hover":{backgroundColor:"transparent"}},"&[data-hovered]":{backgroundColor:n.background.hover},"&[data-focus-visible]":{outline:`${e} solid 1px`,outlineOffset:-1},"&[data-outside-month]":{display:"none"},"&[data-selected]":{backgroundColor:n.background.active,color:n.color.active,"&[data-hovered]":{backgroundColor:n.background.activeHover},"&[data-focus-visible]":{outline:`${e} solid 1px`,outlineOffset:-1}},"&[data-selected]:not([data-selection-start]):not([data-selection-end])":{backgroundColor:o?"transparent":void 0,"&[data-hovered]:not([data-invalid])":{backgroundColor:n.background.activeHover}},"&[data-selected][data-invalid]":{backgroundColor:r.error,"&[data-hovered]":{backgroundColor:r.errorShade2}}})),(({theme:{calendar:e},current:t})=>({color:t?e.color.current:void 0}))),s1=me(lb)((({theme:e})=>({"& > tr > th":{paddingBottom:8,color:e.scale4,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium}}))),u1=me(ub)((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),c1=()=>t(d1,{children:[e(p1,{slot:"previous",children:e(zn,{name:"chevron-left",inheritColor:!0})}),e(f1,{}),e(p1,{slot:"next",children:e(zn,{name:"chevron-right",inheritColor:!0})})]}),d1=me.header({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8}),f1=me(Mw)((({theme:{font:e,calendar:t}})=>({fontSize:e.size.sm,fontWeight:e.weight.default,color:t.color.monthYear,margin:0}))),p1=me(eC)((({theme:e})=>({color:e.calendar.color.iconDefault,outline:"none",borderRadius:4,"&[data-focused]":{outline:`${e.accent} solid 1px`},"&:hover":{color:e.calendar.color.iconHover},"&[data-disabled]":{color:e.calendar.color.iconDisabled,cursor:"not-allowed"}}))),h1=()=>gl(wl()),g1=e=>e.toDate(wl()),m1=e=>function(e){let t=e.match(ls);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new gs(ss(t[1],0,9999),ss(t[2],1,12),1);return n.day=ss(t[3],0,n.calendar.getDaysInMonth(n)),n}(FQ(e,"yyyy-MM-dd")),v1=({past:e,future:t,rel:n})=>({min:a((()=>!0===e?n:e instanceof Date?m1(e):void 0),[e]),max:a((()=>!0===t?n:t instanceof Date?m1(t):void 0),[t])}),y1=h1(),b1=n=>{var{date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:l}=n,s=M(n,["date","onChange","preventPast","preventFuture","noShadow"]);const{current:u}=g(r?m1(r):y1),[c,d]=v(u),{min:f,max:p}=v1({past:i,future:a,rel:u});return t(w1,Object.assign({value:c,onChange:e=>{const{year:t,month:n,day:r}=e,i=new gs(t,n,r);d(i);const a=g1(e);o&&o(a)},minValue:f,maxValue:p,noShadow:l},s,{children:[e(c1,{}),e(i1,{initialDate:u})]}))},w1=me(eb)(o1),x1=me.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),Rn),C1=me.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),S1=me.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),k1=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:l,disabled:s,onChange:u,margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,y=M(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[b,w]=v("checkbox-off"),[x,C]=v(a||!1),S=g(null),k="right"===i,E={margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h};return m((()=>{w(l?"checkbox-partial":x?"checkbox":"checkbox-off")}),[x,l]),m((()=>{C("boolean"==typeof a?a:x)}),[a,x]),t(x1,Object.assign({htmlFor:r,labelRight:k,disabled:s},E,{children:[o&&e(S1,{children:o}),e(C1,Object.assign({ref:S,id:r,type:"checkbox",checked:l?!x:x,disabled:s,onChange:()=>{const e=!!l||!x;C(e),u(e),(null==S?void 0:S.current)&&(S.current.indeterminate=!!l)}},y)),e(zn,{name:b,marginLeft:o&&!k?8:0,marginRight:o&&k?8:0,pointer:!s})]}))};var E1,O1,D1=Object.create,_1=Object.defineProperty,P1=Object.defineProperties,T1=Object.getOwnPropertyDescriptor,A1=Object.getOwnPropertyDescriptors,M1=Object.getOwnPropertyNames,j1=Object.getOwnPropertySymbols,L1=Object.getPrototypeOf,I1=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable,N1=(e,t,n)=>t in e?_1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$1=(e,t)=>{for(var n in t||(t={}))I1.call(t,n)&&N1(e,n,t[n]);if(j1)for(var n of j1(t))R1.call(t,n)&&N1(e,n,t[n]);return e},z1=(e,t)=>P1(e,A1(t)),B1=(e,t)=>{var n={};for(var r in e)I1.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&j1)for(var r of j1(e))t.indexOf(r)<0&&R1.call(e,r)&&(n[r]=e[r]);return n},F1=(E1={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(l)||(a[l]=i[l])}var u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],o||l);var s=t[l],u=r.util.type(s);"Object"!==u||i[a(s)]?"Array"!==u||i[a(s)]||(i[a(s)]=!0,e(s,n,l,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return s(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,l,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var g=p[h],m=g.inside,v=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=l.next,S=c;C!==t.tail&&!(d&&S>=d.reach);S+=C.value.length,C=C.next){var k=C.value;if(t.length>e.length)return;if(!(k instanceof o)){var E,O=1;if(y){if(!(E=i(x,S,e,v))||E.index>=e.length)break;var D=E.index,_=E.index+E[0].length,P=S;for(P+=C.value.length;D>=P;)P+=(C=C.next).value.length;if(S=P-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(P<_||"string"==typeof T.value);T=T.next)O++,P+=T.value.length;O--,k=e.slice(S,P),E.index-=S}else if(!(E=i(x,0,k,v)))continue;D=E.index;var A=E[0],M=k.slice(0,D),j=k.slice(D+A.length),L=S+k.length;d&&L>d.reach&&(d.reach=L);var I=C.prev;if(M&&(I=s(t,I,M),S+=M.length),u(t,I,O),C=s(t,I,new o(f,m?r.tokenize(A,m):A,b,A)),j&&s(t,C,j),O>1){var R={cause:f+","+h,reach:L};a(e,t,n,C.prev,S,R),d&&R.reach>d.reach&&(d.reach=R.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var l="";for(var s in i.attributes)l+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+l+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return O1||(0,E1[M1(E1)[0]])((O1={exports:{}}).exports,O1),O1.exports}),K1=((e,t,n)=>(n=null!=e?D1(L1(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of M1(t))I1.call(e,o)||o===n||_1(e,o,{get:()=>t[o],enumerable:!(r=T1(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:_1(n,"default",{value:e,enumerable:!0}),e)))(F1());K1.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},K1.languages.markup.tag.inside["attr-value"].inside.entity=K1.languages.markup.entity,K1.languages.markup.doctype.inside["internal-subset"].inside=K1.languages.markup,K1.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(K1.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:K1.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:K1.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},K1.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(K1.languages.markup.tag,"addAttribute",{value:function(e,t){K1.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:K1.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),K1.languages.html=K1.languages.markup,K1.languages.mathml=K1.languages.markup,K1.languages.svg=K1.languages.markup,K1.languages.xml=K1.languages.extend("markup",{}),K1.languages.ssml=K1.languages.xml,K1.languages.atom=K1.languages.xml,K1.languages.rss=K1.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(K1),K1.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},K1.languages.javascript=K1.languages.extend("clike",{"class-name":[K1.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),K1.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,K1.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:K1.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:K1.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:K1.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:K1.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:K1.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),K1.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:K1.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),K1.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),K1.languages.markup&&(K1.languages.markup.tag.addInlined("script","javascript"),K1.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),K1.languages.js=K1.languages.javascript,K1.languages.actionscript=K1.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),K1.languages.actionscript["class-name"].alias="function",delete K1.languages.actionscript.parameter,delete K1.languages.actionscript["literal-property"],K1.languages.markup&&K1.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:K1.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(K1),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var l=0,s=a.length;l<s;l++)a[l]instanceof RegExp&&(a[l]={pattern:a[l]}),r(a[l]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(K1),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(K1),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(K1),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(K1),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var u,c=e.languages[n];c?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):l[t]||e})),c,n):n&&"none"!==n&&e.plugins.autoloader&&(u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=u,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(u);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(K1),K1.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:K1.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},K1.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(d(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var i=f(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=c(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(d(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),0<o.length)){var l=f(/^\{$/,/^\}$/);if(-1!==l)for(var s=n;s<l;s++){var u=t[s];"variable"===u.type&&0<=o.indexOf(u.content)&&p(u,"variable-input")}}}}function c(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(n+t);if(!r||r.type!==e[n])return}return 1}function f(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],l=a.content;if("punctuation"===a.type&&"string"==typeof l)if(e.test(l))o++;else if(r.test(l)&&0==--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),K1.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function l(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function s(t,n,a){var s=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),u=0,c={},d=(s=l(s.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=u++,n="___"+a.toUpperCase()+"_"+r+"___")););return c[n]=e,n})).join(""),n,a),Object.keys(c));return u=0,function t(n){for(var i=0;i<n.length;i++){if(u>=d.length)return;var a,s,f,p,h,g,m,v=n[i];"string"==typeof v||"string"==typeof v.content?(a=d[u],-1!==(m=(g="string"==typeof v?v:v.content).indexOf(a))&&(++u,s=g.substring(0,m),h=c[a],f=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((f=[1,1]).push.apply(f,l(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,f)),f=new e.Token("interpolation",p,r.alias,h),p=g.substring(m+a.length),h=[],s&&h.push(s),h.push(f),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof v?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):v.content=h)):(m=v.content,Array.isArray(m)?t(m):t([m]))}}(s),new e.Token(a,s,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function c(e){return"string"==typeof e?e:Array.isArray(e)?e.map(c).join(""):c(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in u&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,l,u=n[r];"string"!=typeof u&&(i=u.content,Array.isArray(i)?"template-string"===u.type?(u=i[1],3===i.length&&"string"!=typeof u&&"embedded-code"===u.type&&(a=c(u),u=u.alias,u=Array.isArray(u)?u[0]:u,l=e.languages[u])&&(i[1]=s(a,l,u))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(K1),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(K1),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(K1),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(K1),K1.languages.n4js=K1.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),K1.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),K1.languages.n4jsd=K1.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(K1),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===l(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:l(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=l(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=l(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=l(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(l).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(K1),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(K1),K1.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},K1.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=K1.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(K1),K1.languages.c=K1.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),K1.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),K1.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},K1.languages.c.string],char:K1.languages.c.char,comment:K1.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:K1.languages.c}}}}),K1.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete K1.languages.c.boolean,K1.languages.objectivec=K1.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete K1.languages.objectivec["class-name"],K1.languages.objc=K1.languages.objectivec,K1.languages.reason=K1.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),K1.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete K1.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(K1),K1.languages.go=K1.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),K1.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete K1.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(K1),K1.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},K1.languages.python["string-interpolation"].inside.interpolation.inside.rest=K1.languages.python,K1.languages.py=K1.languages.python;var V1={};((e,t)=>{for(var n in t)_1(e,n,{get:t[n],enumerable:!0})})(V1,{dracula:()=>H1,duotoneDark:()=>U1,duotoneLight:()=>W1,github:()=>Z1,jettwaveDark:()=>a0,jettwaveLight:()=>l0,nightOwl:()=>q1,nightOwlLight:()=>G1,oceanicNext:()=>J1,okaidia:()=>Q1,oneDark:()=>s0,oneLight:()=>u0,palenight:()=>e0,shadesOfPurple:()=>t0,synthwave84:()=>n0,ultramin:()=>r0,vsDark:()=>o0,vsLight:()=>i0});var H1={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},U1={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},W1={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Z1={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},q1={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},G1={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Y1="#c5a5c5",X1="#8dc891",J1={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Y1}},{types:["attr-value"],style:{color:X1}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:X1}},{types:["punctuation"],style:{color:X1}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Y1}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Q1={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},e0={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},t0={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},n0={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},r0={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},o0={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},i0={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},a0={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},l0={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},s0={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},u0={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},c0=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=$1($1({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=z1($1({},n),{backgroundColor:void 0}),r},d0=/\r\n|\r|\n/,f0=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},p0=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},h0=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,l=[];const s=[l];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,u=t[a];const c=n[a][i];if("string"==typeof c?(u=a>0?u:["plain"],e=c):(u=p0(u,c.type),c.alias&&(u=p0(u,c.alias)),e=c.content),"string"!=typeof e){a++,t.push(u),n.push(e),r.push(0),o.push(e.length);continue}const d=e.split(d0),f=d.length;l.push({types:u,content:d[0]});for(let e=1;e<f;e++)f0(l),s.push(l=[]),l.push({types:u,content:d[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return f0(l),s},g0=({children:e,language:t,code:n,theme:r,prism:o})=>{const i=t.toLowerCase(),l=((e,t)=>{const[n,r]=v(c0(t,e)),o=g(),i=g();return m((()=>{t===o.current&&e===i.current||(o.current=t,i.current=e,r(c0(t,e)))}),[e,t]),n})(i,r),s=(e=>u((t=>{var n=t,{className:r,style:o,line:i}=n,a=B1(n,["className","style","line"]);const l=z1($1({},a),{className:$C("token-line",r)});return"object"==typeof e&&"plain"in e&&(l.style=e.plain),"object"==typeof o&&(l.style=$1($1({},l.style||{}),o)),l}),[e]))(l),c=(e=>{const t=u((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return u((e=>{var n=e,{token:r,className:o,style:i}=n,a=B1(n,["token","className","style"]);const l=z1($1({},a),{className:$C("token",...r.types,o),children:r.content,style:t(r)});return null!=i&&(l.style=$1($1({},l.style||{}),i)),l}),[t])})(l),d=(({prism:e,code:t,grammar:n,language:r})=>{const o=g(e);return a((()=>{if(null==n)return h0([t]);const e={code:t,grammar:n,language:r,tokens:[]};return o.current.hooks.run("before-tokenize",e),e.tokens=o.current.tokenize(t,n),o.current.hooks.run("after-tokenize",e),h0(e.tokens)}),[t,n,r])})({prism:o,language:i,code:n,grammar:o.languages[i]});return e({tokens:d,className:`prism-code language-${i}`,style:null!=l?l.root:{},getLineProps:s,getTokenProps:c})},m0=e=>l(g0,z1($1({},e),{prism:e.prism||K1,theme:e.theme||o0,code:e.code,language:e.language}))
|
|
26
|
+
*/"production"===process.env.NODE_ENV?xE.exports=function(){if(bE)return CE;bE=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case s:case u:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return b(e)===u}return CE.AsyncMode=s,CE.ConcurrentMode=u,CE.ContextConsumer=l,CE.ContextProvider=a,CE.Element=t,CE.ForwardRef=c,CE.Fragment=r,CE.Lazy=h,CE.Memo=p,CE.Portal=n,CE.Profiler=i,CE.StrictMode=o,CE.Suspense=d,CE.isAsyncMode=function(e){return w(e)||b(e)===s},CE.isConcurrentMode=w,CE.isContextConsumer=function(e){return b(e)===l},CE.isContextProvider=function(e){return b(e)===a},CE.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},CE.isForwardRef=function(e){return b(e)===c},CE.isFragment=function(e){return b(e)===r},CE.isLazy=function(e){return b(e)===h},CE.isMemo=function(e){return b(e)===p},CE.isPortal=function(e){return b(e)===n},CE.isProfiler=function(e){return b(e)===i},CE.isStrictMode=function(e){return b(e)===o},CE.isSuspense=function(e){return b(e)===d},CE.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},CE.typeOf=b,CE}():xE.exports=(SE||(SE=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var g=e.type;switch(g){case s:case u:case r:case i:case o:case d:return g;default:var m=g&&g.$$typeof;switch(m){case l:case c:case h:case p:case a:return m;default:return f}}case n:return f}}}var w=s,x=u,C=l,S=a,k=t,E=c,O=r,D=h,_=p,P=n,T=i,A=o,M=d,j=!1;function L(e){return b(e)===u}kE.AsyncMode=w,kE.ConcurrentMode=x,kE.ContextConsumer=C,kE.ContextProvider=S,kE.Element=k,kE.ForwardRef=E,kE.Fragment=O,kE.Lazy=D,kE.Memo=_,kE.Portal=P,kE.Profiler=T,kE.StrictMode=A,kE.Suspense=M,kE.isAsyncMode=function(e){return j||(j=!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.")),L(e)||b(e)===s},kE.isConcurrentMode=L,kE.isContextConsumer=function(e){return b(e)===l},kE.isContextProvider=function(e){return b(e)===a},kE.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},kE.isForwardRef=function(e){return b(e)===c},kE.isFragment=function(e){return b(e)===r},kE.isLazy=function(e){return b(e)===h},kE.isMemo=function(e){return b(e)===p},kE.isPortal=function(e){return b(e)===n},kE.isProfiler=function(e){return b(e)===i},kE.isStrictMode=function(e){return b(e)===o},kE.isSuspense=function(e){return b(e)===d},kE.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},kE.typeOf=b}()),kE);var EE=xE.exports,OE=tS,DE=nS;var _E=function(e){return"number"==typeof e||DE(e)&&"[object Number]"==OE(e)},PE=Mt(_E),TE=_E;var AE=Mt((function(e){return TE(e)&&e!=+e})),ME=function(e){return 0===e?0:e>0?1:-1},jE=function(e){return wE(e)&&e.indexOf("%")===e.length-1},LE=function(e){return PE(e)&&!AE(e)},IE=function(e){return LE(e)||wE(e)},RE=0,NE=function(e){var t=++RE;return"".concat(e||"").concat(t)},$E=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!LE(e)&&!wE(e))return r;if(jE(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return AE(n)&&(n=r),o&&n>t&&(n=t),n},zE=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},BE=function(e,t){return LE(e)&&LE(t)?function(n){return e+n*(t-e)}:function(){return t}};function FE(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):hE(e,t))===n})):null}function KE(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function VE(e){return VE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VE(e)}var HE=["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"],UE=["points","pathLength"],WE={svg:["viewBox","children"],polygon:UE,polyline:UE},ZE=["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"],qE=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(p(e)&&(n=e.props),!fS(n))return null;var r={};return Object.keys(n).forEach((function(e){ZE.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})})),r},GE=function(e,t,n){if(!fS(e)||"object"!==VE(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];ZE.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r},YE=["children"],XE=["children"];function JE(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function QE(e){return QE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QE(e)}var eO={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},tO=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},nO=null,rO=null,oO=function e(t){if(t===nO&&Array.isArray(rO))return rO;var n=[];return f.forEach(t,(function(t){gE(t)||(EE.isFragment(t)?n=n.concat(e(t.props.children)):n.push(t))})),rO=n,nO=t,n};function iO(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return tO(e)})):[tO(t)],oO(e).forEach((function(e){var t=hE(e,"type.displayName")||hE(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function aO(e,t){var n=iO(e,t);return n&&n[0]}var lO=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!LE(n)||n<=0||!LE(r)||r<=0)},sO=["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"],uO=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(p(e)&&(r=e.props),!fS(r))return null;var o={};return Object.keys(r).forEach((function(e){var i;(function(e,t,n,r){var o,i=null!==(o=null==WE?void 0:WE[r])&&void 0!==o?o:[];return!vS(e)&&(r&&i.includes(t)||HE.includes(t))||n&&ZE.includes(t)})(null===(i=r)||void 0===i?void 0:i[e],e,t,n)&&(o[e]=r[e])})),o},cO=function e(t,n){if(t===n)return!0;var r=f.count(t);if(r!==f.count(n))return!1;if(0===r)return!0;if(1===r)return dO(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!dO(i,a))return!1}return!0},dO=function(e,t){if(gE(e)&&gE(t))return!0;if(!gE(e)&&!gE(t)){var n=e.props||{},r=n.children,o=JE(n,YE),i=t.props||{},a=i.children,l=JE(i,XE);return r&&a?KE(o,l)&&cO(r,a):!r&&!a&&KE(o,l)}return!1},fO=function(e,t){var n=[],r={};return oO(e).forEach((function(e,o){if(function(e){return e&&e.type&&wE(e.type)&&sO.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=tO(e.type),a=t[i]||{},l=a.handler,s=a.once;if(l&&(!s||!r[i])){var u=l(e,i,o);n.push(u),r[i]=!0}}})),n},pO=["children","width","height","viewBox","className","style","title","desc"];function hO(){return hO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hO.apply(this,arguments)}function gO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mO(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,l=e.style,s=e.title,u=e.desc,c=gO(e,pO),d=i||{width:n,height:r,x:0,y:0},f=$C("recharts-surface",a);return o.createElement("svg",hO({},uO(c,!0,"svg"),{className:f,width:n,height:r,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),o.createElement("title",null,s),o.createElement("desc",null,u),t)}var vO=["children","className"];function yO(){return yO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yO.apply(this,arguments)}function bO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wO=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=bO(e,vO),a=$C("recharts-layer",r);return o.createElement("g",yO({className:a},uO(i,!0),{ref:t}),n)})),xO="production"!==process.env.NODE_ENV,CO=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(xO&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,(function(){return r[i++]})))}};var SO=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i},kO=SO;var EO=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:kO(e,t,n)},OO=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var DO=function(e){return OO.test(e)};var _O=function(e){return e.split("")},PO="\\ud800-\\udfff",TO="["+PO+"]",AO="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",MO="\\ud83c[\\udffb-\\udfff]",jO="[^"+PO+"]",LO="(?:\\ud83c[\\udde6-\\uddff]){2}",IO="[\\ud800-\\udbff][\\udc00-\\udfff]",RO="(?:"+AO+"|"+MO+")"+"?",NO="[\\ufe0e\\ufe0f]?",$O=NO+RO+("(?:\\u200d(?:"+[jO,LO,IO].join("|")+")"+NO+RO+")*"),zO="(?:"+[jO+AO+"?",AO,LO,IO,TO].join("|")+")",BO=RegExp(MO+"(?="+MO+")|"+zO+$O,"g");var FO=function(e){return e.match(BO)||[]},KO=_O,VO=DO,HO=FO;var UO=function(e){return VO(e)?HO(e):KO(e)},WO=EO,ZO=DO,qO=UO,GO=tE;var YO=function(e){return function(t){t=GO(t);var n=ZO(t)?qO(t):void 0,r=n?n[0]:t.charAt(0),o=n?WO(n,1).join(""):t.slice(1);return r[e]()+o}},XO=Mt(YO("toUpperCase"));function JO(e){return function(){return e}}const QO=Math.cos,eD=Math.sin,tD=Math.sqrt,nD=Math.PI,rD=2*nD,oD=Math.PI,iD=2*oD,aD=1e-6,lD=iD-aD;function sD(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class uD{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?sD:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return sD;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,l=n-e,s=r-t,u=i-e,c=a-t,d=u*u+c*c;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>aD)if(Math.abs(c*l-s*u)>aD&&o){let f=n-i,p=r-a,h=l*l+s*s,g=f*f+p*p,m=Math.sqrt(h),v=Math.sqrt(d),y=o*Math.tan((oD-Math.acos((h+d-g)/(2*m*v)))/2),b=y/v,w=y/m;Math.abs(b-1)>aD&&this._append`L${e+b*u},${t+b*c}`,this._append`A${o},${o},0,0,${+(c*f>u*p)},${this._x1=e+w*l},${this._y1=t+w*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),l=n*Math.sin(r),s=e+a,u=t+l,c=1^i,d=i?r-o:o-r;null===this._x1?this._append`M${s},${u}`:(Math.abs(this._x1-s)>aD||Math.abs(this._y1-u)>aD)&&this._append`L${s},${u}`,n&&(d<0&&(d=d%iD+iD),d>lD?this._append`A${n},${n},0,1,${c},${e-a},${t-l}A${n},${n},0,1,${c},${this._x1=s},${this._y1=u}`:d>aD&&this._append`A${n},${n},0,${+(d>=oD)},${c},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function cD(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new uD(t)}function dD(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function fD(e){this._context=e}function pD(e){return new fD(e)}function hD(e){return e[0]}function gD(e){return e[1]}function mD(e,t){var n=JO(!0),r=null,o=pD,i=null,a=cD(l);function l(l){var s,u,c,d=(l=dD(l)).length,f=!1;for(null==r&&(i=o(c=a())),s=0;s<=d;++s)!(s<d&&n(u=l[s],s,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(u,s,l),+t(u,s,l));if(c)return i=null,c+""||null}return e="function"==typeof e?e:void 0===e?hD:JO(e),t="function"==typeof t?t:void 0===t?gD:JO(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:JO(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:JO(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:JO(!!e),l):n},l.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),l):o},l.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),l):r},l}function vD(e,t,n){var r=null,o=JO(!0),i=null,a=pD,l=null,s=cD(u);function u(u){var c,d,f,p,h,g=(u=dD(u)).length,m=!1,v=new Array(g),y=new Array(g);for(null==i&&(l=a(h=s())),c=0;c<=g;++c){if(!(c<g&&o(p=u[c],c,u))===m)if(m=!m)d=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=c-1;f>=d;--f)l.point(v[f],y[f]);l.lineEnd(),l.areaEnd()}m&&(v[c]=+e(p,c,u),y[c]=+t(p,c,u),l.point(r?+r(p,c,u):v[c],n?+n(p,c,u):y[c]))}if(h)return l=null,h+""||null}function c(){return mD().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?hD:JO(+e),t="function"==typeof t?t:JO(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?gD:JO(+n),u.x=function(t){return arguments.length?(e="function"==typeof t?t:JO(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:JO(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:JO(+e),u):r},u.y=function(e){return arguments.length?(t="function"==typeof e?e:JO(+e),n=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:JO(+e),u):t},u.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:JO(+e),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:JO(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),u):i},u}fD.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class yD{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var bD={draw(e,t){const n=tD(t/nD);e.moveTo(n,0),e.arc(0,0,n,0,rD)}},wD={draw(e,t){const n=tD(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const xD=tD(1/3),CD=2*xD;var SD={draw(e,t){const n=tD(t/CD),r=n*xD;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},kD={draw(e,t){const n=tD(t),r=-n/2;e.rect(r,r,n,n)}};const ED=eD(nD/10)/eD(7*nD/10),OD=eD(rD/10)*ED,DD=-QO(rD/10)*ED;var _D={draw(e,t){const n=tD(.8908130915292852*t),r=OD*n,o=DD*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=rD*t/5,a=QO(i),l=eD(i);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*o,l*r+a*o)}e.closePath()}};const PD=tD(3);var TD={draw(e,t){const n=-tD(t/(3*PD));e.moveTo(0,2*n),e.lineTo(-PD*n,-n),e.lineTo(PD*n,-n),e.closePath()}};const AD=-.5,MD=tD(3)/2,jD=1/tD(12),LD=3*(jD/2+1);var ID={draw(e,t){const n=tD(t/LD),r=n/2,o=n*jD,i=r,a=n*jD+n,l=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,s),e.lineTo(AD*r-MD*o,MD*r+AD*o),e.lineTo(AD*i-MD*a,MD*i+AD*a),e.lineTo(AD*l-MD*s,MD*l+AD*s),e.lineTo(AD*r+MD*o,AD*o-MD*r),e.lineTo(AD*i+MD*a,AD*a-MD*i),e.lineTo(AD*l+MD*s,AD*s-MD*l),e.closePath()}};function RD(){}function ND(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function $D(e){this._context=e}function zD(e){this._context=e}function BD(e){this._context=e}function FD(e){this._context=e}function KD(e){return e<0?-1:1}function VD(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(KD(i)+KD(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function HD(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function UD(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function WD(e){this._context=e}function ZD(e){this._context=new qD(e)}function qD(e){this._context=e}function GD(e){this._context=e}function YD(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function XD(e,t){this._context=e,this._t=t}function JD(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function QD(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function e_(e,t){return e[t]}function t_(e){const t=[];return t.key=e,t}function n_(e){return n_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n_(e)}$D.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:ND(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ND(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},zD.prototype={areaStart:RD,areaEnd:RD,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ND(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BD.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ND(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},FD.prototype={areaStart:RD,areaEnd:RD,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},WD.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:UD(this,this._t0,HD(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,UD(this,HD(this,n=VD(this,e,t)),n);break;default:UD(this,this._t0,n=VD(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(ZD.prototype=Object.create(WD.prototype)).point=function(e,t){WD.prototype.point.call(this,t,e)},qD.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},GD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=YD(e),o=YD(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},XD.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var r_=["type","size","sizeType"];function o_(){return o_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o_.apply(this,arguments)}function i_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i_(Object(n),!0).forEach((function(t){l_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l_(e,t,n){return t=function(e){var t=function(e,t){if("object"!=n_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=n_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n_(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u_={symbolCircle:bD,symbolCross:wD,symbolDiamond:SD,symbolSquare:kD,symbolStar:_D,symbolTriangle:TD,symbolWye:ID},c_=Math.PI/180,d_=function(e){var t,n,r=e.type,i=void 0===r?"circle":r,a=e.size,l=void 0===a?64:a,s=e.sizeType,u=void 0===s?"area":s,c=a_(a_({},s_(e,r_)),{},{type:i,size:l,sizeType:u}),d=c.className,f=c.cx,p=c.cy,h=uO(c,!0);return f===+f&&p===+p&&l===+l?o.createElement("path",o_({},h,{className:$C("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(p,")"),d:(t=function(e){var t="symbol".concat(XO(e));return u_[t]||bD}(i),n=function(e,t){let n=null,r=cD(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:JO(e||bD),t="function"==typeof t?t:JO(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:JO(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:JO(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(t).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*c_;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(l,u,i)),n())})):null};function f_(e){return f_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f_(e)}function p_(){return p_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p_.apply(this,arguments)}function h_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x_(r.key),r)}}function m_(e,t,n){return t=y_(t),function(e,t){if(t&&("object"===f_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v_()?Reflect.construct(t,n||[],y_(e).constructor):t.apply(e,n))}function v_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v_=function(){return!!e})()}function y_(e){return y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y_(e)}function b_(e,t){return b_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b_(e,t)}function w_(e,t,n){return(t=x_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x_(e){var t=function(e,t){if("object"!=f_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=f_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f_(t)?t:String(t)}d_.registerSymbol=function(e,t){u_["symbol".concat(XO(e))]=t};var C_=32,S_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m_(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b_(e,t)}(t,x),n=t,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=C_/6,i=C_/3,a=e.inactive?t:e.color;if("plainline"===e.type)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:C_,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(C_,"M").concat(2*i,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return o.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(C_,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(e.legendIcon)){var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h_(Object(n),!0).forEach((function(t){w_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete l.legendIcon,o.cloneElement(e.legendIcon,l)}return o.createElement(d_,{fill:a,cx:n,cy:n,size:C_,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,l=t.inactiveColor,s={x:0,y:0,width:C_,height:C_},u={display:"horizontal"===i?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var i=t.formatter||a,d=$C(w_(w_({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",t.inactive));if("none"===t.type)return null;var f=vS(t.value)?null:t.value;CO(!vS(t.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=t.inactive?l:t.color;return o.createElement("li",p_({className:d,style:u,key:"legend-item-".concat(n)},GE(e.props,t,n)),o.createElement(mO,{width:r,height:r,viewBox:s,style:c},e.renderIcon(t)),o.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(f,t,n):f))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],r&&g_(n.prototype,r),i&&g_(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();w_(S_,"displayName","Legend"),w_(S_,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var k_=yk;var E_=yk,O_=bk,D_=Rk;var __=yk,P_=function(){this.__data__=new k_,this.size=0},T_=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},A_=function(e){return this.__data__.get(e)},M_=function(e){return this.__data__.has(e)},j_=function(e,t){var n=this.__data__;if(n instanceof E_){var r=n.__data__;if(!O_||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new D_(r)}return n.set(e,t),this.size=n.size,this};function L_(e){var t=this.__data__=new __(e);this.size=t.size}L_.prototype.clear=P_,L_.prototype.delete=T_,L_.prototype.get=A_,L_.prototype.has=M_,L_.prototype.set=j_;var I_=L_;var R_=Rk,N_=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$_=function(e){return this.__data__.has(e)};function z_(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new R_;++t<n;)this.add(e[t])}z_.prototype.add=z_.prototype.push=N_,z_.prototype.has=$_;var B_=z_;var F_=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var K_=function(e,t){return e.has(t)},V_=B_,H_=F_,U_=K_;var W_=function(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new V_:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!H_(t,(function(e,t){if(!U_(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var Z_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var q_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},G_=VC.Uint8Array,Y_=tk,X_=W_,J_=Z_,Q_=q_,eP=HC?HC.prototype:void 0,tP=eP?eP.valueOf:void 0;var nP=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new G_(e),new G_(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Y_(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=J_;case"[object Set]":var s=1&r;if(l||(l=Q_),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=X_(l(e),l(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(tP)return tP.call(e)==tP.call(t)}return!1};var rP=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},oP=rP,iP=zC;var aP=function(e,t,n){var r=t(e);return iP(e)?r:oP(r,n(e))};var lP=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var sP=lP,uP=function(){return[]},cP=Object.prototype.propertyIsEnumerable,dP=Object.getOwnPropertySymbols,fP=dP?function(e){return null==e?[]:(e=Object(e),sP(dP(e),(function(t){return cP.call(e,t)})))}:uP,pP=fP;var hP=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},gP=tS,mP=nS;var vP=function(e){return mP(e)&&"[object Arguments]"==gP(e)},yP=nS,bP=Object.prototype,wP=bP.hasOwnProperty,xP=bP.propertyIsEnumerable,CP=vP(function(){return arguments}())?vP:function(e){return yP(e)&&wP.call(e,"callee")&&!xP.call(e,"callee")},SP={exports:{}};var kP=function(){return!1};!function(e,t){var n=VC,r=kP,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}(SP,SP.exports);var EP=SP.exports,OP=/^(?:0|[1-9]\d*)$/;var DP=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&OP.test(e))&&e>-1&&e%1==0&&e<t};var _P=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},PP=tS,TP=_P,AP=nS,MP={};MP["[object Float32Array]"]=MP["[object Float64Array]"]=MP["[object Int8Array]"]=MP["[object Int16Array]"]=MP["[object Int32Array]"]=MP["[object Uint8Array]"]=MP["[object Uint8ClampedArray]"]=MP["[object Uint16Array]"]=MP["[object Uint32Array]"]=!0,MP["[object Arguments]"]=MP["[object Array]"]=MP["[object ArrayBuffer]"]=MP["[object Boolean]"]=MP["[object DataView]"]=MP["[object Date]"]=MP["[object Error]"]=MP["[object Function]"]=MP["[object Map]"]=MP["[object Number]"]=MP["[object Object]"]=MP["[object RegExp]"]=MP["[object Set]"]=MP["[object String]"]=MP["[object WeakMap]"]=!1;var jP=function(e){return AP(e)&&TP(e.length)&&!!MP[PP(e)]};var LP=function(e){return function(t){return e(t)}},IP={exports:{}};!function(e,t){var n=BC,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(IP,IP.exports);var RP=IP.exports,NP=jP,$P=LP,zP=RP&&RP.isTypedArray,BP=zP?$P(zP):NP,FP=hP,KP=CP,VP=zC,HP=EP,UP=DP,WP=BP,ZP=Object.prototype.hasOwnProperty;var qP=function(e,t){var n=VP(e),r=!n&&KP(e),o=!n&&!r&&HP(e),i=!n&&!r&&!o&&WP(e),a=n||r||o||i,l=a?FP(e.length,String):[],s=l.length;for(var u in e)!t&&!ZP.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||UP(u,s))||l.push(u);return l},GP=Object.prototype;var YP=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||GP)};var XP=function(e,t){return function(n){return e(t(n))}},JP=XP(Object.keys,Object),QP=YP,eT=JP,tT=Object.prototype.hasOwnProperty;var nT=function(e){if(!QP(e))return eT(e);var t=[];for(var n in Object(e))tT.call(e,n)&&"constructor"!=n&&t.push(n);return t},rT=mS,oT=_P;var iT=function(e){return null!=e&&oT(e.length)&&!rT(e)},aT=qP,lT=nT,sT=iT;var uT=function(e){return sT(e)?aT(e):lT(e)},cT=aP,dT=pP,fT=uT;var pT=function(e){return cT(e,fT,dT)},hT=pT,gT=Object.prototype.hasOwnProperty;var mT=function(e,t,n,r,o,i){var a=1&n,l=hT(e),s=l.length;if(s!=hT(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:gT.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<s;){var g=e[c=l[u]],m=t[c];if(r)var v=a?r(m,g,c,t,e,i):r(g,m,c,e,t,i);if(!(void 0===v?g===m||o(g,m,n,r,i):v)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p},vT=RS(VC,"DataView"),yT=RS(VC,"Promise"),bT=RS(VC,"Set"),wT=vT,xT=bk,CT=yT,ST=bT,kT=RS(VC,"WeakMap"),ET=tS,OT=CS,DT="[object Map]",_T="[object Promise]",PT="[object Set]",TT="[object WeakMap]",AT="[object DataView]",MT=OT(wT),jT=OT(xT),LT=OT(CT),IT=OT(ST),RT=OT(kT),NT=ET;(wT&&NT(new wT(new ArrayBuffer(1)))!=AT||xT&&NT(new xT)!=DT||CT&&NT(CT.resolve())!=_T||ST&&NT(new ST)!=PT||kT&&NT(new kT)!=TT)&&(NT=function(e){var t=ET(e),n="[object Object]"==t?e.constructor:void 0,r=n?OT(n):"";if(r)switch(r){case MT:return AT;case jT:return DT;case LT:return _T;case IT:return PT;case RT:return TT}return t});var $T=I_,zT=W_,BT=nP,FT=mT,KT=NT,VT=zC,HT=EP,UT=BP,WT="[object Arguments]",ZT="[object Array]",qT="[object Object]",GT=Object.prototype.hasOwnProperty;var YT=function(e,t,n,r,o,i){var a=VT(e),l=VT(t),s=a?ZT:KT(e),u=l?ZT:KT(t),c=(s=s==WT?qT:s)==qT,d=(u=u==WT?qT:u)==qT,f=s==u;if(f&&HT(e)){if(!HT(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new $T),a||UT(e)?zT(e,t,n,r,o,i):BT(e,t,s,n,r,o,i);if(!(1&n)){var p=c&>.call(e,"__wrapped__"),h=d&>.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new $T),o(g,m,n,r,i)}}return!!f&&(i||(i=new $T),FT(e,t,n,r,o,i))},XT=YT,JT=nS;var QT=function e(t,n,r,o,i){return t===n||(null==t||null==n||!JT(t)&&!JT(n)?t!=t&&n!=n:XT(t,n,r,o,e,i))},eA=I_,tA=QT;var nA=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var s=(l=n[o])[0],u=e[s],c=l[1];if(a&&l[2]){if(void 0===u&&!(s in e))return!1}else{var d=new eA;if(r)var f=r(u,c,s,e,t,d);if(!(void 0===f?tA(c,u,3,r,d):f))return!1}}return!0},rA=dS;var oA=function(e){return e==e&&!rA(e)},iA=oA,aA=uT;var lA=function(e){for(var t=aA(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,iA(o)]}return t};var sA=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},uA=nA,cA=lA,dA=sA;var fA=function(e){var t=cA(e);return 1==t.length&&t[0][2]?dA(t[0][0],t[0][1]):function(n){return n===e||uA(n,e,t)}};var pA=function(e,t){return null!=e&&t in Object(e)},hA=aE,gA=CP,mA=zC,vA=DP,yA=_P,bA=sE;var wA=function(e,t,n){for(var r=-1,o=(t=hA(t,e)).length,i=!1;++r<o;){var a=bA(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&yA(o)&&vA(a,o)&&(mA(e)||gA(e))},xA=pA,CA=wA;var SA=function(e,t){return null!=e&&CA(e,t,xA)},kA=QT,EA=pE,OA=SA,DA=cS,_A=oA,PA=sA,TA=sE;var AA=function(e,t){return DA(e)&&_A(t)?PA(TA(e),t):function(n){var r=EA(n,e);return void 0===r&&r===t?OA(n,e):kA(t,r,3)}};var MA=function(e){return e};var jA=function(e){return function(t){return null==t?void 0:t[e]}},LA=dE;var IA=function(e){return function(t){return LA(t,e)}},RA=jA,NA=IA,$A=cS,zA=sE;var BA=fA,FA=AA,KA=MA,VA=zC,HA=function(e){return $A(e)?RA(zA(e)):NA(e)};var UA=function(e){return"function"==typeof e?e:null==e?KA:"object"==typeof e?VA(e)?FA(e[0],e[1]):BA(e):HA(e)};var WA=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var ZA=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},qA=WA,GA=function(e){return e!=e},YA=ZA;var XA=function(e,t,n){return t==t?YA(e,t,n):qA(e,GA,n)},JA=XA;var QA=function(e,t){return!!(null==e?0:e.length)&&JA(e,t,0)>-1};var eM=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var tM=bT,nM=function(){},rM=tM&&1/q_(new tM([,-0]))[1]==1/0?function(e){return new tM(e)}:nM,oM=B_,iM=QA,aM=eM,lM=K_,sM=rM,uM=q_;var cM=function(e,t,n){var r=-1,o=iM,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=aM;else if(i>=200){var u=t?null:sM(e);if(u)return uM(u);a=!1,o=lM,s=new oM}else s=t?[]:l;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(c)}else o(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l},dM=UA,fM=cM;var pM=function(e,t){return e&&e.length?fM(e,dM(t)):[]},hM=Mt(pM);function gM(e,t,n){return!0===t?hM(e,n):vS(t)?hM(e,t):e}function mM(e){return mM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mM(e)}var vM=["ref"];function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yM(Object(n),!0).forEach((function(t){OM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DM(r.key),r)}}function xM(e,t,n){return t=SM(t),function(e,t){if(t&&("object"===mM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kM(e)}(e,CM()?Reflect.construct(t,n||[],SM(e).constructor):t.apply(e,n))}function CM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CM=function(){return!!e})()}function SM(e){return SM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SM(e)}function kM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EM(e,t){return EM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EM(e,t)}function OM(e,t,n){return(t=DM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DM(e){var t=function(e,t){if("object"!=mM(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mM(t)?t:String(t)}function _M(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function PM(e){return e.value}var TM=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OM(kM(e=xM(this,t,[].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&EM(e,t)}(t,x),n=t,i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&LE(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(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,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?bM({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,s=r.chartWidth,u=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((u||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),bM(bM({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,l=t.payloadUniqBy,s=t.payload,u=bM(bM({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return o.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(t){e.wrapperNode=t}},function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if("function"==typeof e)return o.createElement(e,t);t.ref;var n=_M(t,vM);return o.createElement(S_,n)}(n,bM(bM({},this.props),{},{payload:gM(s,l,PM)})))}}])&&wM(n.prototype,r),i&&wM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();OM(TM,"displayName","Legend"),OM(TM,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var AM=CP,MM=zC,jM=HC?HC.isConcatSpreadable:void 0;var LM=rP,IM=function(e){return MM(e)||AM(e)||!!(jM&&e&&e[jM])};var RM=function e(t,n,r,o,i){var a=-1,l=t.length;for(r||(r=IM),i||(i=[]);++a<l;){var s=t[a];n>0&&r(s)?n>1?e(s,n-1,r,o,i):LM(i,s):o||(i[i.length]=s)}return i};var NM=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}},$M=NM(),zM=uT;var BM=function(e,t){return e&&$M(e,t,zM)},FM=iT;var KM=function(e,t){return function(n,r){if(null==n)return n;if(!FM(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}},VM=KM(BM),HM=VM,UM=iT;var WM=function(e,t){var n=-1,r=UM(e)?Array(e.length):[];return HM(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};var ZM=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},qM=iS;var GM=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=qM(e),a=void 0!==t,l=null===t,s=t==t,u=qM(t);if(!l&&!u&&!i&&e>t||i&&a&&s&&!l&&!u||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||l&&n&&o||!a&&o||!s)return-1}return 0};var YM=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=GM(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index},XM=Zk,JM=dE,QM=UA,ej=WM,tj=ZM,nj=LP,rj=YM,oj=MA,ij=zC;var aj=function(e,t,n){t=t.length?XM(t,(function(e){return ij(e)?function(t){return JM(t,1===e.length?e[0]:e)}:e})):[oj];var r=-1;t=XM(t,nj(QM));var o=ej(e,(function(e,n,o){return{criteria:XM(t,(function(t){return t(e)})),index:++r,value:e}}));return tj(o,(function(e,t){return rj(e,t,n)}))};var lj=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},sj=lj,uj=Math.max;var cj=function(e,t,n){return t=uj(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=uj(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),sj(e,this,l)}};var dj=function(e){return function(){return e}},fj=RS,pj=function(){try{var e=fj(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),hj=dj,gj=pj,mj=gj?function(e,t){return gj(e,"toString",{configurable:!0,enumerable:!1,value:hj(t),writable:!0})}:MA,vj=mj,yj=Date.now;var bj=function(e){var t=0,n=0;return function(){var r=yj(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(vj),wj=MA,xj=cj,Cj=bj;var Sj=tk,kj=iT,Ej=DP,Oj=dS;var Dj=function(e,t,n){if(!Oj(n))return!1;var r=typeof t;return!!("number"==r?kj(n)&&Ej(t,n.length):"string"==r&&t in n)&&Sj(n[t],e)},_j=RM,Pj=aj,Tj=Dj,Aj=Mt(function(e,t){return Cj(xj(e,t,wj),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Tj(e,t[0],t[1])?t=[]:n>2&&Tj(t[0],t[1],t[2])&&(t=[t[0]]),Pj(e,_j(t,1),[])})));function Mj(e){return Mj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mj(e)}function jj(){return jj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jj.apply(this,arguments)}function Lj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ij(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ij(e,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 Ij(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rj(Object(n),!0).forEach((function(t){$j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $j(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Mj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Mj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zj(e){return Array.isArray(e)&&IE(e[0])&&IE(e[1])?e.join(" ~ "):e}var Bj=function(e){var t=e.separator,n=void 0===t?" : ":t,r=e.contentStyle,i=void 0===r?{}:r,a=e.itemStyle,l=void 0===a?{}:a,s=e.labelStyle,u=void 0===s?{}:s,c=e.payload,d=e.formatter,f=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,g=e.label,m=e.labelFormatter,v=e.accessibilityLayer,y=void 0!==v&&v,b=Nj({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=Nj({margin:0},u),x=!gE(g),C=x?g:"",S=$C("recharts-default-tooltip",p),k=$C("recharts-tooltip-label",h);x&&m&&null!=c&&(C=m(g,c));var E=y?{role:"status","aria-live":"assertive"}:{};return o.createElement("div",jj({className:S,style:b},E),o.createElement("p",{className:k,style:w},o.isValidElement(C)?C:"".concat(C)),function(){if(c&&c.length){var e=(f?Aj(c,f):c).map((function(e,t){if("none"===e.type)return null;var r=Nj({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},l),i=e.formatter||d||zj,a=e.value,s=e.name,u=a,f=s;if(i&&null!=u&&null!=f){var p=i(a,s,e,t,c);if(Array.isArray(p)){var h=Lj(p,2);u=h[0],f=h[1]}else u=p}return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:r},IE(f)?o.createElement("span",{className:"recharts-tooltip-item-name"},f):null,IE(f)?o.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,o.createElement("span",{className:"recharts-tooltip-item-value"},u),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Fj(e){return Fj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fj(e)}function Kj(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Fj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Fj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fj(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vj="recharts-tooltip-wrapper",Hj={visibility:"hidden"};function Uj(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return $C(Vj,Kj(Kj(Kj(Kj({},"".concat(Vj,"-right"),LE(n)&&t&&LE(t.x)&&n>=t.x),"".concat(Vj,"-left"),LE(n)&&t&&LE(t.x)&&n<t.x),"".concat(Vj,"-bottom"),LE(r)&&t&&LE(t.y)&&r>=t.y),"".concat(Vj,"-top"),LE(r)&&t&&LE(t.y)&&r<t.y))}function Wj(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(i&&LE(i[r]))return i[r];var c=n[r]-l-o,d=n[r]+o;return t[r]?a[r]?c:d:a[r]?c<s[r]?Math.max(d,s[r]):Math.max(c,s[r]):d+l>s[r]+u?Math.max(c,s[r]):Math.max(d,s[r])}function Zj(e){return Zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zj(e)}function qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qj(Object(n),!0).forEach((function(t){nL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rL(r.key),r)}}function Xj(e,t,n){return t=Qj(t),function(e,t){if(t&&("object"===Zj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eL(e)}(e,Jj()?Reflect.construct(t,n||[],Qj(e).constructor):t.apply(e,n))}function Jj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jj=function(){return!!e})()}function Qj(e){return Qj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qj(e)}function eL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tL(e,t){return tL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tL(e,t)}function nL(e,t,n){return(t=rL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rL(e){var t=function(e,t){if("object"!=Zj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Zj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zj(t)?t:String(t)}var oL=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nL(eL(e=Xj(this,t,[].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),nL(eL(e),"lastBoundingBox",{width:-1,height:-1}),nL(eL(e),"handleKeyDown",(function(t){var n,r,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tL(e,t)}(t,x),n=t,r=[{key:"updateBBox",value:function(){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)}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 e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,l=t.children,s=t.coordinate,u=t.hasPayload,c=t.isAnimationActive,d=t.offset,f=t.position,p=t.reverseDirection,h=t.useTranslate3d,g=t.viewBox,m=t.wrapperStyle,v=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,l=e.reverseDirection,s=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox;return{cssProperties:s.height>0&&s.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=Wj({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),translateY:n=Wj({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),useTranslate3d:u}):Hj,cssClasses:Uj({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:d,position:f,reverseDirection:p,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:h,viewBox:g}),y=v.cssClasses,b=v.cssProperties,w=Gj(Gj({transition:c&&n?"transform ".concat(i,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&u?"visible":"hidden",position:"absolute",top:0,left:0},m);return o.createElement("div",{tabIndex:-1,className:y,style:w,ref:function(t){e.wrapperNode=t}},l)}}],r&&Yj(n.prototype,r),i&&Yj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}(),iL={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return iL[e]},set:function(e,t){if("string"==typeof e)iL[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){iL[t]=e[t]}))}}};function aL(e){return aL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aL(e)}function lL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lL(Object(n),!0).forEach((function(t){hL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gL(r.key),r)}}function cL(e,t,n){return t=fL(t),function(e,t){if(t&&("object"===aL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dL()?Reflect.construct(t,n||[],fL(e).constructor):t.apply(e,n))}function dL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dL=function(){return!!e})()}function fL(e){return fL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fL(e)}function pL(e,t){return pL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pL(e,t)}function hL(e,t,n){return(t=gL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gL(e){var t=function(e,t){if("object"!=aL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=aL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aL(t)?t:String(t)}function mL(e){return e.dataKey}var vL=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cL(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pL(e,t)}(t,x),n=t,r=[{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,l=t.content,s=t.coordinate,u=t.filterNull,c=t.isAnimationActive,d=t.offset,f=t.payload,p=t.payloadUniqBy,h=t.position,g=t.reverseDirection,m=t.useTranslate3d,v=t.viewBox,y=t.wrapperStyle,b=null!=f?f:[];u&&b.length&&(b=gM(f.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,mL));var w=b.length>0;return o.createElement(oL,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:c,active:n,coordinate:s,hasPayload:w,offset:d,position:h,reverseDirection:g,useTranslate3d:m,viewBox:v,wrapperStyle:y},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):"function"==typeof e?o.createElement(e,t):o.createElement(Bj,t)}(l,sL(sL({},this.props),{},{payload:b})))}}],r&&uL(n.prototype,r),i&&uL(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();hL(vL,"displayName","Tooltip"),hL(vL,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!iL.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 yL=VC,bL=/\s/;var wL=function(e){for(var t=e.length;t--&&bL.test(e.charAt(t)););return t},xL=wL,CL=/^\s+/;var SL=function(e){return e?e.slice(0,xL(e)+1).replace(CL,""):e},kL=SL,EL=dS,OL=iS,DL=/^[-+]0x[0-9a-f]+$/i,_L=/^0b[01]+$/i,PL=/^0o[0-7]+$/i,TL=parseInt;var AL=function(e){if("number"==typeof e)return e;if(OL(e))return NaN;if(EL(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=EL(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=kL(e);var n=_L.test(e);return n||PL.test(e)?TL(e.slice(2),n?2:8):DL.test(e)?NaN:+e},ML=dS,jL=function(){return yL.Date.now()},LL=AL,IL=Math.max,RL=Math.min;var NL=function(e,t,n){var r,o,i,a,l,s,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-u>=i}function g(){var e=jL();if(h(e))return m(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?RL(n,i-(e-u)):n}(e))}function m(e){return l=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=jL(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(g,t),c?p(e):a}(s);if(d)return clearTimeout(l),l=setTimeout(g,t),p(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=LL(t)||0,ML(n)&&(c=!!n.leading,i=(d="maxWait"in n)?IL(LL(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=o=l=void 0},v.flush=function(){return void 0===l?a:m(jL())},v},$L=NL,zL=dS;var BL=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return zL(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),$L(e,t,{leading:r,maxWait:t,trailing:o})},FL=Mt(BL);function KL(e){return KL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KL(e)}function VL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VL(Object(n),!0).forEach((function(t){UL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=KL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=KL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==KL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ZL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZL(e,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 ZL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qL=d((function(e,t){var n=e.aspect,r=e.initialDimension,i=void 0===r?{width:-1,height:-1}:r,l=e.width,s=void 0===l?"100%":l,c=e.height,d=void 0===c?"100%":c,f=e.minWidth,p=void 0===f?0:f,y=e.minHeight,b=e.maxHeight,x=e.children,C=e.debounce,S=void 0===C?0:C,k=e.id,E=e.className,O=e.onResize,D=e.style,_=void 0===D?{}:D,P=g(null),T=g();T.current=O,w(t,(function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})}));var A=WL(v({containerWidth:i.width,containerHeight:i.height}),2),M=A[0],j=A[1],L=u((function(e,t){j((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);m((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;L(r,o),null===(t=T.current)||void 0===t||t.call(T,r,o)};S>0&&(e=FL(e,S,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=P.current.getBoundingClientRect(),r=n.width,o=n.height;return L(r,o),t.observe(P.current),function(){t.disconnect()}}),[L,S]);var I=a((function(){var e=M.containerWidth,t=M.containerHeight;if(e<0||t<0)return null;CO(jE(s)||jE(d),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",s,d),CO(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=jE(s)?e:s,i=jE(d)?t:d;n&&n>0&&(r?i=r/n:i&&(r=i*n),b&&i>b&&(i=b)),CO(r>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.",r,i,s,d,p,y,n);var a=!Array.isArray(x)&&EE.isElement(x)&&tO(x.type).endsWith("Chart");return o.Children.map(x,(function(e){return EE.isElement(e)?h(e,HL({width:r,height:i},a?{style:HL({height:"100%",width:"100%",maxHeight:i,maxWidth:r},e.props.style)}:{})):e}))}),[n,x,d,b,y,p,M,s]);return o.createElement("div",{id:k?"".concat(k):void 0,className:$C("recharts-responsive-container",E),style:HL(HL({},_),{},{width:s,height:d,minWidth:p,minHeight:y,maxHeight:b}),ref:P},I)})),GL=function(e){return null};function YL(e){return YL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YL(e)}function XL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XL(Object(n),!0).forEach((function(t){QL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=YL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}GL.displayName="Cell";var eI={widthCache:{},cacheCount:0},tI={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},nI="recharts_measurement_span";var rI=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||iL.isSsr)return{width:0,height:0};var n,r=(n=JL({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(eI.widthCache[o])return eI.widthCache[o];try{var i=document.getElementById(nI);i||((i=document.createElement("span")).setAttribute("id",nI),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=JL(JL({},tI),r);Object.assign(i.style,a),i.textContent="".concat(e);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return eI.widthCache[o]=s,++eI.cacheCount>2e3&&(eI.cacheCount=0,eI.widthCache={}),s}catch(e){return{width:0,height:0}}};function oI(e){return oI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oI(e)}function iI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aI(e,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 aI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sI(r.key),r)}}function sI(e){var t=function(e,t){if("object"!=oI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oI(t)?t:String(t)}var uI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,cI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,dI=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,fI=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,pI={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},hI=Object.keys(pI),gI="NaN";var mI=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||dI.test(n)||(this.num=NaN,this.unit=""),hI.includes(n)&&(this.num=function(e,t){return e*pI[t]}(t,n),this.unit="px")}var t,n,r;return t=e,r=[{key:"parse",value:function(t){var n,r=iI(null!==(n=fI.exec(t))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new e(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&lI(t.prototype,n),r&&lI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vI(e){if(e.includes(gI))return gI;for(var t=e;t.includes("*")||t.includes("/");){var n,r=iI(null!==(n=uI.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],l=mI.parse(null!=o?o:""),s=mI.parse(null!=a?a:""),u="*"===i?l.multiply(s):l.divide(s);if(u.isNaN())return gI;t=t.replace(uI,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=iI(null!==(c=cI.exec(t))&&void 0!==c?c:[],4),f=d[1],p=d[2],h=d[3],g=mI.parse(null!=f?f:""),m=mI.parse(null!=h?h:""),v="+"===p?g.add(m):g.subtract(m);if(v.isNaN())return gI;t=t.replace(cI,v.toString())}return t}var yI=/\(([^()]*)\)/;function bI(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=iI(yI.exec(t),2)[1];t=t.replace(yI,vI(n))}return t}(t),t=vI(t)}function wI(e){var t=function(e){try{return bI(e)}catch(e){return gI}}(e.slice(5,-1));return t===gI?"":t}var xI=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],CI=["dx","dy","angle","className","breakAll"];function SI(){return SI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SI.apply(this,arguments)}function kI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function EI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return OI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OI(e,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 OI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var DI=/[ \f\n\r\t\v\u2028\u2029]+/,_I=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return gE(t)||(o=n?t.toString().split(""):t.toString().split(DI)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:rI(e,r).width}})),spaceWidth:n?0:rI(" ",r).width}}catch(e){return null}},PI=function(e){return[{words:gE(e)?[]:e.toString().split(DI)}]},TI=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!iL.isSsr){var l=_I({breakAll:i,children:r,style:o});return l?function(e,t,n,r,o){var i=e.maxLines,a=e.children,l=e.style,s=e.breakAll,u=LE(i),c=a,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,l=e[e.length-1];if(l&&(null==r||o||l.width+a+n<Number(r)))l.words.push(i),l.width+=a+n;else{var s={words:[i],width:a};e.push(s)}return e}),[])},f=d(t);if(!u)return f;for(var p,h=function(e){var t=c.slice(0,e),n=_I({breakAll:s,style:l,children:t+"…"}).wordsWithComputedWidth,o=d(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,m=c.length-1,v=0;g<=m&&v<=c.length-1;){var y=Math.floor((g+m)/2),b=EI(h(y-1),2),w=b[0],x=b[1],C=EI(h(y),1)[0];if(w||C||(g=y+1),w&&C&&(m=y-1),!w&&C){p=x;break}v++}return p||f}({breakAll:i,children:r,maxLines:a,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,n):PI(r)}return PI(r)},AI="#808080",MI=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,l=e.lineHeight,s=void 0===l?"1em":l,u=e.capHeight,c=void 0===u?"0.71em":u,d=e.scaleToFit,f=void 0!==d&&d,p=e.textAnchor,h=void 0===p?"start":p,g=e.verticalAnchor,m=void 0===g?"end":g,v=e.fill,y=void 0===v?AI:v,b=kI(e,xI),w=a((function(){return TI({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})}),[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),x=b.dx,C=b.dy,S=b.angle,k=b.className,E=b.breakAll,O=kI(b,CI);if(!IE(n)||!IE(i))return null;var D,_=n+(LE(x)?x:0),P=i+(LE(C)?C:0);switch(m){case"start":D=wI("calc(".concat(c,")"));break;case"middle":D=wI("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:D=wI("calc(".concat(w.length-1," * -").concat(s,")"))}var T=[];if(f){var A=w[0].width,M=b.width;T.push("scale(".concat((LE(M)?M/A:1)/A,")"))}return S&&T.push("rotate(".concat(S,", ").concat(_,", ").concat(P,")")),T.length&&(O.transform=T.join(" ")),o.createElement("text",SI({},uO(O,!0),{x:_,y:P,className:$C("recharts-text",k),textAnchor:h,fill:y.includes("url")?AI:y}),w.map((function(e,t){var n=e.words.join(E?"":" ");return o.createElement("tspan",{x:_,dy:0===t?D:s,key:n},n)})))};function jI(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function LI(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function II(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=jI,n=(t,n)=>jI(e(t),n),r=(t,n)=>e(t)-n):(t=e===jI||e===LI?e:RI,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function RI(){return 0}function NI(e){return null===e?NaN:+e}const $I=II(jI).right;II(NI).center;class zI extends Map{constructor(e,t=FI){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(BI(this,e))}has(e){return super.has(BI(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function BI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function FI(e){return null!==e&&"object"==typeof e?e.valueOf():e}function KI(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const VI=Math.sqrt(50),HI=Math.sqrt(10),UI=Math.sqrt(2);function WI(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=VI?10:i>=HI?5:i>=UI?2:1;let l,s,u;return o<0?(u=Math.pow(10,-o)/a,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,o)*a,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?WI(e,t,2*n):[l,s,u]}function ZI(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?WI(t,e,n):WI(e,t,n);if(!(i>=o))return[];const l=i-o+1,s=new Array(l);if(r)if(a<0)for(let e=0;e<l;++e)s[e]=(i-e)/-a;else for(let e=0;e<l;++e)s[e]=(i-e)*a;else if(a<0)for(let e=0;e<l;++e)s[e]=(o+e)/-a;else for(let e=0;e<l;++e)s[e]=(o+e)*a;return s}function qI(e,t,n){return WI(e=+e,t=+t,n=+n)[2]}function GI(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?qI(t,e,n):qI(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function YI(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function XI(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function JI(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?KI:function(e=jI){if(e===jI)return KI;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,l=Math.log(i),s=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*s*(i-s)/i)*(a-i/2<0?-1:1);JI(e,t,Math.max(n,Math.floor(t-a*s/i+u)),Math.min(r,Math.floor(t+(i-a)*s/i+u)),o)}const i=e[t];let a=n,l=r;for(QI(e,n,t),o(e[r],i)>0&&QI(e,n,r);a<l;){for(QI(e,a,l),++a,--l;o(e[a],i)<0;)++a;for(;o(e[l],i)>0;)--l}0===o(e[n],i)?QI(e,n,l):(++l,QI(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function QI(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function eR(e,t,n=NI){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function tR(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function nR(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const rR=Symbol("implicit");function oR(){var e=new zI,t=[],n=[],r=rR;function o(o){let i=e.get(o);if(void 0===i){if(r!==rR)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new zI;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return oR(t,n).unknown(r)},tR.apply(o,arguments),o}function iR(){var e,t,n=oR().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,l=!1,s=0,u=0,c=.5;function d(){var n=r().length,d=a<i,f=d?a:i,p=d?i:a;e=(p-f)/Math.max(1,n-s+2*u),l&&(e=Math.floor(e)),f+=(p-f-e*(n-s))*c,t=e*(1-s),l&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return f+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,l=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,d()):l},n.padding=function(e){return arguments.length?(s=Math.min(1,u=+e),d()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return iR(r(),[i,a]).round(l).paddingInner(s).paddingOuter(u).align(c)},tR.apply(d(),arguments)}function aR(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aR(t())},e}function lR(){return aR(iR.apply(null,arguments).paddingInner(1))}function sR(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uR(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function cR(){}var dR=.7,fR=1/dR,pR="\\s*([+-]?\\d+)\\s*",hR="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gR="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mR=/^#([0-9a-f]{3,8})$/,vR=new RegExp(`^rgb\\(${pR},${pR},${pR}\\)$`),yR=new RegExp(`^rgb\\(${gR},${gR},${gR}\\)$`),bR=new RegExp(`^rgba\\(${pR},${pR},${pR},${hR}\\)$`),wR=new RegExp(`^rgba\\(${gR},${gR},${gR},${hR}\\)$`),xR=new RegExp(`^hsl\\(${hR},${gR},${gR}\\)$`),CR=new RegExp(`^hsla\\(${hR},${gR},${gR},${hR}\\)$`),SR={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 kR(){return this.rgb().formatHex()}function ER(){return this.rgb().formatRgb()}function OR(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=mR.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?DR(t):3===n?new TR(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?_R(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?_R(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=vR.exec(e))?new TR(t[1],t[2],t[3],1):(t=yR.exec(e))?new TR(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=bR.exec(e))?_R(t[1],t[2],t[3],t[4]):(t=wR.exec(e))?_R(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xR.exec(e))?RR(t[1],t[2]/100,t[3]/100,1):(t=CR.exec(e))?RR(t[1],t[2]/100,t[3]/100,t[4]):SR.hasOwnProperty(e)?DR(SR[e]):"transparent"===e?new TR(NaN,NaN,NaN,0):null}function DR(e){return new TR(e>>16&255,e>>8&255,255&e,1)}function _R(e,t,n,r){return r<=0&&(e=t=n=NaN),new TR(e,t,n,r)}function PR(e,t,n,r){return 1===arguments.length?function(e){return e instanceof cR||(e=OR(e)),e?new TR((e=e.rgb()).r,e.g,e.b,e.opacity):new TR}(e):new TR(e,t,n,null==r?1:r)}function TR(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function AR(){return`#${IR(this.r)}${IR(this.g)}${IR(this.b)}`}function MR(){const e=jR(this.opacity);return`${1===e?"rgb(":"rgba("}${LR(this.r)}, ${LR(this.g)}, ${LR(this.b)}${1===e?")":`, ${e})`}`}function jR(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function LR(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function IR(e){return((e=LR(e))<16?"0":"")+e.toString(16)}function RR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $R(e,t,n,r)}function NR(e){if(e instanceof $R)return new $R(e.h,e.s,e.l,e.opacity);if(e instanceof cR||(e=OR(e)),!e)return new $R;if(e instanceof $R)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new $R(a,l,s,e.opacity)}function $R(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function zR(e){return(e=(e||0)%360)<0?e+360:e}function BR(e){return Math.max(0,Math.min(1,e||0))}function FR(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}sR(cR,OR,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:kR,formatHex:kR,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return NR(this).formatHsl()},formatRgb:ER,toString:ER}),sR(TR,PR,uR(cR,{brighter(e){return e=null==e?fR:Math.pow(fR,e),new TR(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?dR:Math.pow(dR,e),new TR(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new TR(LR(this.r),LR(this.g),LR(this.b),jR(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:AR,formatHex:AR,formatHex8:function(){return`#${IR(this.r)}${IR(this.g)}${IR(this.b)}${IR(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:MR,toString:MR})),sR($R,(function(e,t,n,r){return 1===arguments.length?NR(e):new $R(e,t,n,null==r?1:r)}),uR(cR,{brighter(e){return e=null==e?fR:Math.pow(fR,e),new $R(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?dR:Math.pow(dR,e),new $R(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new TR(FR(e>=240?e-240:e+120,o,r),FR(e,o,r),FR(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new $R(zR(this.h),BR(this.s),BR(this.l),jR(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=jR(this.opacity);return`${1===e?"hsl(":"hsla("}${zR(this.h)}, ${100*BR(this.s)}%, ${100*BR(this.l)}%${1===e?")":`, ${e})`}`}}));var KR=e=>()=>e;function VR(e){return 1==(e=+e)?HR:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):KR(isNaN(t)?n:t)}}function HR(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):KR(isNaN(e)?t:e)}var UR=function e(t){var n=VR(t);function r(e,t){var r=n((e=PR(e)).r,(t=PR(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=HR(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function WR(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function ZR(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=eN(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function qR(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function GR(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function YR(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=eN(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var XR=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,JR=new RegExp(XR.source,"g");function QR(e,t){var n,r,o,i=XR.lastIndex=JR.lastIndex=0,a=-1,l=[],s=[];for(e+="",t+="";(n=XR.exec(e))&&(r=JR.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,s.push({i:a,x:GR(n,r)})),i=JR.lastIndex;return i<t.length&&(o=t.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function eN(e,t){var n,r=typeof t;return null==t||"boolean"===r?KR(t):("number"===r?GR:"string"===r?(n=OR(t))?(t=n,UR):QR:t instanceof OR?UR:t instanceof Date?qR:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?WR:Array.isArray(t)?ZR:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?YR:GR)(e,t)}function tN(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function nN(e,t){void 0===t&&(t=e,e=eN);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function rN(e){return+e}var oN=[0,1];function iN(e){return e}function aN(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function lN(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=aN(o,r),i=n(a,i)):(r=aN(r,o),i=n(i,a)),function(e){return i(r(e))}}function sN(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=aN(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=$I(e,t,1,r)-1;return i[n](o[n](t))}}function uN(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function cN(){var e,t,n,r,o,i,a=oN,l=oN,s=eN,u=iN;function c(){var e=Math.min(a.length,l.length);return u!==iN&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?sN:lN,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),l,s)))(e(u(t)))}return d.invert=function(n){return u(t((i||(i=r(l,a.map(e),GR)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,rN),c()):a.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=tN,c()},d.clamp=function(e){return arguments.length?(u=!!e||iN,c()):u!==iN},d.interpolate=function(e){return arguments.length?(s=e,c()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function dN(){return cN()(iN,iN)}function fN(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function pN(e){return(e=fN(Math.abs(e)))?e[1]:NaN}var hN,gN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mN(e){if(!(t=gN.exec(e)))throw new Error("invalid format: "+e);var t;return new vN({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function vN(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function yN(e,t){var n=fN(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}mN.prototype=vN.prototype,vN.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 bN={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>yN(100*e,t),r:yN,s:function(e,t){var n=fN(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(hN=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+fN(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wN(e){return e}var xN,CN,SN,kN=Array.prototype.map,EN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ON(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?wN:(t=kN.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?wN:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(kN.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=mN(e)).fill,n=e.align,d=e.sign,f=e.symbol,p=e.zero,h=e.width,g=e.comma,m=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):bN[y]||(void 0===m&&(m=12),v=!0,y="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===f?o:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===f?i:/[%p]/.test(y)?s:"",x=bN[y],C=/[defgprs%]/.test(y);function S(e){var o,i,s,f=b,S=w;if("c"===y)S=x(e)+S,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==d&&(k=!1),f=(k?"("===d?d:u:"-"===d||"("===d?"":d)+f,S=("s"===y?EN[8+hN/3]:"")+S+(k&&"("===d?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(s=e.charCodeAt(o))||s>57){S=(46===s?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var E=f.length+e.length+S.length,O=E<h?new Array(h-E+1).join(t):"";switch(g&&p&&(e=r(O+e,O.length?h-S.length:1/0),O=""),n){case"<":e=f+e+S+O;break;case"=":e=f+O+e+S;break;case"^":e=O.slice(0,E=O.length>>1)+f+e+S+O.slice(E);break;default:e=O+f+e+S}return l(e)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=mN(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(pN(t)/3))),o=Math.pow(10,-r),i=EN[8+r/3];return function(e){return n(o*e)+i}}}}function DN(e,t,n,r){var o,i=GI(e,t,n);switch((r=mN(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pN(t)/3)))-pN(Math.abs(e)))}(i,a))||(r.precision=o),SN(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pN(t)-pN(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-pN(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return CN(r)}function _N(e){var t=e.domain;return e.ticks=function(e){var n=t();return ZI(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return DN(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,l=i.length-1,s=i[a],u=i[l],c=10;for(u<s&&(o=s,s=u,u=o,o=a,a=l,l=o);c-- >0;){if((o=qI(s,u,n))===r)return i[a]=s,i[l]=u,t(i);if(o>0)s=Math.floor(s/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function PN(){var e=dN();return e.copy=function(){return uN(e,PN())},tR.apply(e,arguments),_N(e)}function TN(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function AN(e){return Math.log(e)}function MN(e){return Math.exp(e)}function jN(e){return-Math.log(-e)}function LN(e){return-Math.exp(-e)}function IN(e){return isFinite(e)?+("1e"+e):e<0?0:e}function RN(e){return(t,n)=>-e(-t,n)}function NN(e){const t=e(AN,MN),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?IN:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=RN(r),o=RN(o),e(jN,LN)):e(AN,MN),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],l=t[t.length-1];const s=l<a;s&&([a,l]=[l,a]);let u,c,d=r(a),f=r(l);const p=null==e?10:+e;let h=[];if(!(i%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),a>0){for(;d<=f;++d)for(u=1;u<i;++u)if(c=d<0?u/o(-d):u*o(d),!(c<a)){if(c>l)break;h.push(c)}}else for(;d<=f;++d)for(u=i-1;u>=1;--u)if(c=d>0?u/o(-d):u*o(d),!(c<a)){if(c>l)break;h.push(c)}2*h.length<p&&(h=ZI(a,l,p))}else h=ZI(d,f,Math.min(f-d,p)).map(o);return s?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=mN(n)).precision||(n.trim=!0),n=CN(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(TN(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function $N(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function BN(e){var t=1,n=e($N(t),zN(t));return n.constant=function(n){return arguments.length?e($N(t=+n),zN(t)):t},_N(n)}function FN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function KN(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function VN(e){return e<0?-e*e:e*e}function HN(e){var t=e(iN,iN),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(iN,iN):.5===n?e(KN,VN):e(FN(n),FN(1/n)):n},_N(t)}function UN(){var e=HN(cN());return e.copy=function(){return uN(e,UN()).exponent(e.exponent())},tR.apply(e,arguments),e}function WN(e){return Math.sign(e)*e*e}xN=ON({thousands:",",grouping:[3],currency:["$",""]}),CN=xN.format,SN=xN.formatPrefix;const ZN=new Date,qN=new Date;function GN(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let l;do{a.push(l=new Date(+n)),t(n,i),e(n)}while(l<n&&n<r);return a},o.filter=n=>GN((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(ZN.setTime(+t),qN.setTime(+r),e(ZN),e(qN),Math.floor(n(ZN,qN))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const YN=GN((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));YN.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?GN((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):YN:null),YN.range;const XN=1e3,JN=6e4,QN=36e5,e$=864e5,t$=6048e5,n$=2592e6,r$=31536e6,o$=GN((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*XN)}),((e,t)=>(t-e)/XN),(e=>e.getUTCSeconds()));o$.range;const i$=GN((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*XN)}),((e,t)=>{e.setTime(+e+t*JN)}),((e,t)=>(t-e)/JN),(e=>e.getMinutes()));i$.range;const a$=GN((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*JN)}),((e,t)=>(t-e)/JN),(e=>e.getUTCMinutes()));a$.range;const l$=GN((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*XN-e.getMinutes()*JN)}),((e,t)=>{e.setTime(+e+t*QN)}),((e,t)=>(t-e)/QN),(e=>e.getHours()));l$.range;const s$=GN((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*QN)}),((e,t)=>(t-e)/QN),(e=>e.getUTCHours()));s$.range;const u$=GN((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*JN)/e$),(e=>e.getDate()-1));u$.range;const c$=GN((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/e$),(e=>e.getUTCDate()-1));c$.range;const d$=GN((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/e$),(e=>Math.floor(e/e$)));function f$(e){return GN((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*JN)/t$))}d$.range;const p$=f$(0),h$=f$(1),g$=f$(2),m$=f$(3),v$=f$(4),y$=f$(5),b$=f$(6);function w$(e){return GN((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/t$))}p$.range,h$.range,g$.range,m$.range,v$.range,y$.range,b$.range;const x$=w$(0),C$=w$(1),S$=w$(2),k$=w$(3),E$=w$(4),O$=w$(5),D$=w$(6);x$.range,C$.range,S$.range,k$.range,E$.range,O$.range,D$.range;const _$=GN((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));_$.range;const P$=GN((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));P$.range;const T$=GN((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));T$.every=e=>isFinite(e=Math.floor(e))&&e>0?GN((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,T$.range;const A$=GN((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function M$(e,t,n,r,o,i){const a=[[o$,1,XN],[o$,5,5e3],[o$,15,15e3],[o$,30,3e4],[i,1,JN],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,QN],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,e$],[r,2,1728e5],[n,1,t$],[t,1,n$],[t,3,7776e6],[e,1,r$]];function l(t,n,r){const o=Math.abs(n-t)/r,i=II((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(GI(t/r$,n/r$,r));if(0===i)return YN.every(Math.max(GI(t,n,r),1));const[l,s]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return l.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:l(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},l]}A$.every=e=>isFinite(e=Math.floor(e))&&e>0?GN((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,A$.range;const[j$,L$]=M$(A$,P$,x$,d$,s$,a$),[I$,R$]=M$(T$,_$,p$,u$,l$,i$);function N$(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function $$(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function z$(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var B$,F$,K$,V$={"-":"",_:" ",0:"0"},H$=/^\s*\d+/,U$=/^%/,W$=/[\\^$*+?|[\]().{}]/g;function Z$(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function q$(e){return e.replace(W$,"\\$&")}function G$(e){return new RegExp("^(?:"+e.map(q$).join("|")+")","i")}function Y$(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function X$(e,t,n){var r=H$.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function J$(e,t,n){var r=H$.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Q$(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ez(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function tz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function nz(e,t,n){var r=H$.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function oz(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function iz(e,t,n){var r=H$.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function az(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function lz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sz(e,t,n){var r=H$.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function uz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function cz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function dz(e,t,n){var r=H$.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function fz(e,t,n){var r=H$.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function pz(e,t,n){var r=H$.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hz(e,t,n){var r=U$.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function gz(e,t,n){var r=H$.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mz(e,t,n){var r=H$.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vz(e,t){return Z$(e.getDate(),t,2)}function yz(e,t){return Z$(e.getHours(),t,2)}function bz(e,t){return Z$(e.getHours()%12||12,t,2)}function wz(e,t){return Z$(1+u$.count(T$(e),e),t,3)}function xz(e,t){return Z$(e.getMilliseconds(),t,3)}function Cz(e,t){return xz(e,t)+"000"}function Sz(e,t){return Z$(e.getMonth()+1,t,2)}function kz(e,t){return Z$(e.getMinutes(),t,2)}function Ez(e,t){return Z$(e.getSeconds(),t,2)}function Oz(e){var t=e.getDay();return 0===t?7:t}function Dz(e,t){return Z$(p$.count(T$(e)-1,e),t,2)}function _z(e){var t=e.getDay();return t>=4||0===t?v$(e):v$.ceil(e)}function Pz(e,t){return e=_z(e),Z$(v$.count(T$(e),e)+(4===T$(e).getDay()),t,2)}function Tz(e){return e.getDay()}function Az(e,t){return Z$(h$.count(T$(e)-1,e),t,2)}function Mz(e,t){return Z$(e.getFullYear()%100,t,2)}function jz(e,t){return Z$((e=_z(e)).getFullYear()%100,t,2)}function Lz(e,t){return Z$(e.getFullYear()%1e4,t,4)}function Iz(e,t){var n=e.getDay();return Z$((e=n>=4||0===n?v$(e):v$.ceil(e)).getFullYear()%1e4,t,4)}function Rz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Z$(t/60|0,"0",2)+Z$(t%60,"0",2)}function Nz(e,t){return Z$(e.getUTCDate(),t,2)}function $z(e,t){return Z$(e.getUTCHours(),t,2)}function zz(e,t){return Z$(e.getUTCHours()%12||12,t,2)}function Bz(e,t){return Z$(1+c$.count(A$(e),e),t,3)}function Fz(e,t){return Z$(e.getUTCMilliseconds(),t,3)}function Kz(e,t){return Fz(e,t)+"000"}function Vz(e,t){return Z$(e.getUTCMonth()+1,t,2)}function Hz(e,t){return Z$(e.getUTCMinutes(),t,2)}function Uz(e,t){return Z$(e.getUTCSeconds(),t,2)}function Wz(e){var t=e.getUTCDay();return 0===t?7:t}function Zz(e,t){return Z$(x$.count(A$(e)-1,e),t,2)}function qz(e){var t=e.getUTCDay();return t>=4||0===t?E$(e):E$.ceil(e)}function Gz(e,t){return e=qz(e),Z$(E$.count(A$(e),e)+(4===A$(e).getUTCDay()),t,2)}function Yz(e){return e.getUTCDay()}function Xz(e,t){return Z$(C$.count(A$(e)-1,e),t,2)}function Jz(e,t){return Z$(e.getUTCFullYear()%100,t,2)}function Qz(e,t){return Z$((e=qz(e)).getUTCFullYear()%100,t,2)}function eB(e,t){return Z$(e.getUTCFullYear()%1e4,t,4)}function tB(e,t){var n=e.getUTCDay();return Z$((e=n>=4||0===n?E$(e):E$.ceil(e)).getUTCFullYear()%1e4,t,4)}function nB(){return"+0000"}function rB(){return"%"}function oB(e){return+e}function iB(e){return Math.floor(+e/1e3)}function aB(e){return new Date(e)}function lB(e){return e instanceof Date?+e:+new Date(+e)}function sB(e,t,n,r,o,i,a,l,s,u){var c=dN(),d=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),y=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(s(e)<e?p:l(e)<e?h:a(e)<e?g:i(e)<e?m:r(e)<e?o(e)<e?v:y:n(e)<e?b:w)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?f(Array.from(e,lB)):f().map(aB)},c.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?x:u(t)},c.nice=function(e){var n=f();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?f(TN(n,e)):c},c.copy=function(){return uN(c,sB(e,t,n,r,o,i,a,l,s,u))},c}function uB(){var e,t,n,r,o,i=0,a=1,l=iN,s=!1;function u(t){return null==t||isNaN(t=+t)?o:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),u):[l(0),l(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(s=!!e,u):s},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=c(eN),u.rangeRound=c(tN),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function cB(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dB(){var e=HN(uB());return e.copy=function(){return cB(e,dB()).exponent(e.exponent())},nR.apply(e,arguments)}function fB(){var e,t,n,r,o,i,a,l=0,s=.5,u=1,c=1,d=iN,f=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(c*e<c*t?r:o),d(f?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,d=nN(e,[n,r,o]),p):[d(0),d(.5),d(1)]}}return p.domain=function(a){return arguments.length?([l,s,u]=a,e=i(l=+l),t=i(s=+s),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),c=t<e?-1:1,p):[l,s,u]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=h(eN),p.rangeRound=h(tN),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(l),t=a(s),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),c=t<e?-1:1,p}}function pB(){var e=HN(fB());return e.copy=function(){return cB(e,pB()).exponent(e.exponent())},nR.apply(e,arguments)}!function(e){B$=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,s=e.shortMonths,u=G$(o),c=Y$(o),d=G$(i),f=Y$(i),p=G$(a),h=Y$(a),g=G$(l),m=Y$(l),v=G$(s),y=Y$(s),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:vz,e:vz,f:Cz,g:jz,G:Iz,H:yz,I:bz,j:wz,L:xz,m:Sz,M:kz,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:oB,s:iB,S:Ez,u:Oz,U:Dz,V:Pz,w:Tz,W:Az,x:null,X:null,y:Mz,Y:Lz,Z:Rz,"%":rB},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Nz,e:Nz,f:Kz,g:Qz,G:tB,H:$z,I:zz,j:Bz,L:Fz,m:Vz,M:Hz,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:oB,s:iB,S:Uz,u:Wz,U:Zz,V:Gz,w:Yz,W:Xz,x:null,X:null,y:Jz,Y:eB,Z:nB,"%":rB},x={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:lz,e:lz,f:pz,g:rz,G:nz,H:uz,I:uz,j:sz,L:fz,m:az,M:cz,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:iz,Q:gz,s:mz,S:dz,u:J$,U:Q$,V:ez,w:X$,W:tz,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:rz,Y:nz,Z:oz,"%":hz};function C(e,t){return function(n){var r,o,i,a=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(a.push(e.slice(s,l)),null!=(o=V$[r=e.charAt(++l)])?r=e.charAt(++l):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),s=l+1);return a.push(e.slice(s,l)),a.join("")}}function S(e,t){return function(n){var r,o,i=z$(1900,void 0,1);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=$$(z$(i.y,0,1))).getUTCDay(),r=o>4||0===o?C$.ceil(r):C$(r),r=c$.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=N$(z$(i.y,0,1))).getDay(),r=o>4||0===o?h$.ceil(r):h$(r),r=u$.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?$$(z$(i.y,0,1)).getUTCDay():N$(z$(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,$$(i)):N$(i)}}function k(e,t,n,r){for(var o,i,a=0,l=t.length,s=n.length;a<l;){if(r>=s)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in V$?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),F$=B$.format,B$.parse,K$=B$.utcFormat,B$.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 hB=Object.freeze({__proto__:null,scaleBand:iR,scaleDiverging:function e(){var t=_N(fB()(iN));return t.copy=function(){return cB(t,e())},nR.apply(t,arguments)},scaleDivergingLog:function e(){var t=NN(fB()).domain([.1,1,10]);return t.copy=function(){return cB(t,e()).base(t.base())},nR.apply(t,arguments)},scaleDivergingPow:pB,scaleDivergingSqrt:function(){return pB.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=BN(fB());return t.copy=function(){return cB(t,e()).constant(t.constant())},nR.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,rN),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,rN):[0,1],_N(r)},scaleImplicit:rR,scaleLinear:PN,scaleLog:function e(){const t=NN(cN()).domain([1,10]);return t.copy=()=>uN(t,e()).base(t.base()),tR.apply(t,arguments),t},scaleOrdinal:oR,scalePoint:lR,scalePow:UN,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=eR(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[$I(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(jI),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},tR.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function l(e){return null!=e&&e<=e?a[$I(i,e,0,o)]:t}function s(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return l}return l.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,s()):[n,r]},l.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,s()):a.slice()},l.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return i.slice()},l.copy=function(){return e().domain([n,r]).range(a).unknown(t)},tR.apply(_N(l),arguments)},scaleRadial:function e(){var t,n=dN(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(WN(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,rN)).map(WN)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},tR.apply(i,arguments),_N(i)},scaleSequential:function e(){var t=_N(uB()(iN));return t.copy=function(){return cB(t,e())},nR.apply(t,arguments)},scaleSequentialLog:function e(){var t=NN(uB()).domain([1,10]);return t.copy=function(){return cB(t,e()).base(t.base())},nR.apply(t,arguments)},scaleSequentialPow:dB,scaleSequentialQuantile:function e(){var t=[],n=iN;function r(e){if(null!=e&&!isNaN(e=+e))return n(($I(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(jI),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return XI(e);if(t>=1)return YI(e);var r,o=(r-1)*t,i=Math.floor(o),a=YI(JI(e,i).subarray(0,i+1));return a+(XI(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},nR.apply(r,arguments)},scaleSequentialSqrt:function(){return dB.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=BN(uB());return t.copy=function(){return cB(t,e()).constant(t.constant())},nR.apply(t,arguments)},scaleSqrt:function(){return UN.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=BN(cN());return t.copy=function(){return uN(t,e()).constant(t.constant())},tR.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[$I(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},tR.apply(i,arguments)},scaleTime:function(){return tR.apply(sB(I$,R$,T$,_$,p$,u$,l$,i$,o$,F$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return tR.apply(sB(j$,L$,A$,P$,x$,c$,s$,a$,o$,K$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:DN}),gB=iS;var mB=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===l?a==a&&!gB(a):n(a,l)))var l=a,s=i}return s};var vB=function(e,t){return e>t},yB=mB,bB=vB,wB=MA;var xB=function(e){return e&&e.length?yB(e,wB,bB):void 0},CB=Mt(xB);var SB=function(e,t){return e<t},kB=mB,EB=SB,OB=MA;var DB=function(e){return e&&e.length?kB(e,OB,EB):void 0},_B=Mt(DB),PB=Zk,TB=UA,AB=WM,MB=zC;var jB=RM,LB=function(e,t){return(MB(e)?PB:AB)(e,TB(t))};var IB=Mt((function(e,t){return jB(LB(e,t),1)})),RB=QT;var NB,$B=Mt((function(e,t){return RB(e,t)})),zB=1e9,BB=!0,FB="[DecimalError] ",KB=FB+"Invalid argument: ",VB=FB+"Exponent out of range: ",HB=Math.floor,UB=Math.pow,WB=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ZB=1e7,qB=7,GB=9007199254740991,YB=HB(GB/qB),XB={};function JB(e,t){var n,r,o,i,a,l,s,u,c=e.constructor,d=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),BB?sF(t,d):t;if(s=e.d,u=t.d,a=e.e,o=t.e,s=s.slice(),i=a-o){for(i<0?(r=s,i=-i,l=u.length):(r=u,o=a,l=s.length),i>(l=(a=Math.ceil(d/qB))>l?a+1:l+1)&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((l=s.length)-(i=u.length)<0&&(i=l,r=u,u=s,s=r),n=0;i;)n=(s[--i]=s[i]+u[i]+n)/ZB|0,s[i]%=ZB;for(n&&(s.unshift(n),++o),l=s.length;0==s[--l];)s.pop();return t.d=s,t.e=o,BB?sF(t,d):t}function QB(e,t,n){if(e!==~~e||e<t||e>n)throw Error(KB+e)}function eF(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=qB-r.length)&&(i+=iF(n)),i+=r;a=e[t],(n=qB-(r=a+"").length)&&(i+=iF(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}XB.absoluteValue=XB.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},XB.comparedTo=XB.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},XB.decimalPlaces=XB.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*qB;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},XB.dividedBy=XB.div=function(e){return tF(this,new this.constructor(e))},XB.dividedToIntegerBy=XB.idiv=function(e){var t=this.constructor;return sF(tF(this,new t(e),0,1),t.precision)},XB.equals=XB.eq=function(e){return!this.cmp(e)},XB.exponent=function(){return rF(this)},XB.greaterThan=XB.gt=function(e){return this.cmp(e)>0},XB.greaterThanOrEqualTo=XB.gte=function(e){return this.cmp(e)>=0},XB.isInteger=XB.isint=function(){return this.e>this.d.length-2},XB.isNegative=XB.isneg=function(){return this.s<0},XB.isPositive=XB.ispos=function(){return this.s>0},XB.isZero=function(){return 0===this.s},XB.lessThan=XB.lt=function(e){return this.cmp(e)<0},XB.lessThanOrEqualTo=XB.lte=function(e){return this.cmp(e)<1},XB.logarithm=XB.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(NB))throw Error(FB+"NaN");if(n.s<1)throw Error(FB+(n.s?"NaN":"-Infinity"));return n.eq(NB)?new r(0):(BB=!1,t=tF(aF(n,i),aF(e,i),i),BB=!0,sF(t,o))},XB.minus=XB.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uF(t,e):JB(t,(e.s=-e.s,e))},XB.modulo=XB.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(FB+"NaN");return n.s?(BB=!1,t=tF(n,e,0,1).times(e),BB=!0,n.minus(t)):sF(new r(n),o)},XB.naturalExponential=XB.exp=function(){return nF(this)},XB.naturalLogarithm=XB.ln=function(){return aF(this)},XB.negated=XB.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},XB.plus=XB.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?JB(t,e):uF(t,(e.s=-e.s,e))},XB.precision=XB.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(KB+e);if(t=rF(o)+1,n=(r=o.d.length-1)*qB+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},XB.squareRoot=XB.sqrt=function(){var e,t,n,r,o,i,a,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(FB+"NaN")}for(e=rF(l),BB=!1,0==(o=Math.sqrt(+l))||o==1/0?(((t=eF(l.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=HB((e+1)/2)-(e<0||e%2),r=new s(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(o.toString()),o=a=(n=s.precision)+3;;)if(r=(i=r).plus(tF(l,i,a+2)).times(.5),eF(i.d).slice(0,a)===(t=eF(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(sF(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if("9999"!=t)break;a+=4}return BB=!0,sF(r,n)},XB.times=XB.mul=function(e){var t,n,r,o,i,a,l,s,u,c=this,d=c.constructor,f=c.d,p=(e=new d(e)).d;if(!c.s||!e.s)return new d(0);for(e.s*=c.s,n=c.e+e.e,(s=f.length)<(u=p.length)&&(i=f,f=p,p=i,a=s,s=u,u=a),i=[],r=a=s+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=s+r;o>r;)l=i[o]+p[r]*f[o-r-1]+t,i[o--]=l%ZB|0,t=l/ZB|0;i[o]=(i[o]+t)%ZB|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,BB?sF(e,d.precision):e},XB.toDecimalPlaces=XB.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(QB(e,0,zB),void 0===t?t=r.rounding:QB(t,0,8),sF(n,e+rF(n)+1,t))},XB.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=cF(r,!0):(QB(e,0,zB),void 0===t?t=o.rounding:QB(t,0,8),n=cF(r=sF(new o(r),e+1,t),!0,e+1)),n},XB.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?cF(o):(QB(e,0,zB),void 0===t?t=i.rounding:QB(t,0,8),n=cF((r=sF(new i(o),e+rF(o)+1,t)).abs(),!1,e+rF(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},XB.toInteger=XB.toint=function(){var e=this,t=e.constructor;return sF(new t(e),rF(e)+1,t.rounding)},XB.toNumber=function(){return+this},XB.toPower=XB.pow=function(e){var t,n,r,o,i,a,l=this,s=l.constructor,u=+(e=new s(e));if(!e.s)return new s(NB);if(!(l=new s(l)).s){if(e.s<1)throw Error(FB+"Infinity");return l}if(l.eq(NB))return l;if(r=s.precision,e.eq(NB))return sF(l,r);if(a=(t=e.e)>=(n=e.d.length-1),i=l.s,a){if((n=u<0?-u:u)<=GB){for(o=new s(NB),t=Math.ceil(r/qB+4),BB=!1;n%2&&dF((o=o.times(l)).d,t),0!==(n=HB(n/2));)dF((l=l.times(l)).d,t);return BB=!0,e.s<0?new s(NB).div(o):sF(o,r)}}else if(i<0)throw Error(FB+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,l.s=1,BB=!1,o=e.times(aF(l,r+12)),BB=!0,(o=nF(o)).s=i,o},XB.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=cF(o,(n=rF(o))<=i.toExpNeg||n>=i.toExpPos):(QB(e,1,zB),void 0===t?t=i.rounding:QB(t,0,8),r=cF(o=sF(new i(o),e,t),e<=(n=rF(o))||n<=i.toExpNeg,e)),r},XB.toSignificantDigits=XB.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(QB(e,1,zB),void 0===t?t=n.rounding:QB(t,0,8)),sF(new n(this),e,t)},XB.toString=XB.valueOf=XB.val=XB.toJSON=XB[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=rF(e),n=e.constructor;return cF(e,t<=n.toExpNeg||t>=n.toExpPos)};var tF=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%ZB|0,r=n/ZB|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*ZB+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var l,s,u,c,d,f,p,h,g,m,v,y,b,w,x,C,S,k,E=r.constructor,O=r.s==o.s?1:-1,D=r.d,_=o.d;if(!r.s)return new E(r);if(!o.s)throw Error(FB+"Division by zero");for(s=r.e-o.e,S=_.length,x=D.length,h=(p=new E(O)).d=[],u=0;_[u]==(D[u]||0);)++u;if(_[u]>(D[u]||0)&&--s,(y=null==i?i=E.precision:a?i+(rF(r)-rF(o))+1:i)<0)return new E(0);if(y=y/qB+2|0,u=0,1==S)for(c=0,_=_[0],y++;(u<x||c)&&y--;u++)b=c*ZB+(D[u]||0),h[u]=b/_|0,c=b%_|0;else{for((c=ZB/(_[0]+1)|0)>1&&(_=e(_,c),D=e(D,c),S=_.length,x=D.length),w=S,m=(g=D.slice(0,S)).length;m<S;)g[m++]=0;(k=_.slice()).unshift(0),C=_[0],_[1]>=ZB/2&&++C;do{c=0,(l=t(_,g,S,m))<0?(v=g[0],S!=m&&(v=v*ZB+(g[1]||0)),(c=v/C|0)>1?(c>=ZB&&(c=ZB-1),1==(l=t(d=e(_,c),g,f=d.length,m=g.length))&&(c--,n(d,S<f?k:_,f))):(0==c&&(l=c=1),d=_.slice()),(f=d.length)<m&&d.unshift(0),n(g,d,m),-1==l&&(l=t(_,g,S,m=g.length))<1&&(c++,n(g,S<m?k:_,m)),m=g.length):0===l&&(c++,g=[0]),h[u++]=c,l&&g[0]?g[m++]=D[w]||0:(g=[D[w]],m=1)}while((w++<x||void 0!==g[0])&&y--)}return h[0]||h.shift(),p.e=s,sF(p,a?i+rF(p)+1:i)}}();function nF(e,t){var n,r,o,i,a,l=0,s=0,u=e.constructor,c=u.precision;if(rF(e)>16)throw Error(VB+rF(e));if(!e.s)return new u(NB);for(null==t?(BB=!1,a=c):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),s+=5;for(a+=Math.log(UB(2,s))/Math.LN10*2+5|0,n=r=o=new u(NB),u.precision=a;;){if(r=sF(r.times(e),a),n=n.times(++l),eF((i=o.plus(tF(r,n,a))).d).slice(0,a)===eF(o.d).slice(0,a)){for(;s--;)o=sF(o.times(o),a);return u.precision=c,null==t?(BB=!0,sF(o,c)):o}o=i}}function rF(e){for(var t=e.e*qB,n=e.d[0];n>=10;n/=10)t++;return t}function oF(e,t,n){if(t>e.LN10.sd())throw BB=!0,n&&(e.precision=n),Error(FB+"LN10 precision limit exceeded");return sF(new e(e.LN10),t)}function iF(e){for(var t="";e--;)t+="0";return t}function aF(e,t){var n,r,o,i,a,l,s,u,c,d=1,f=e,p=f.d,h=f.constructor,g=h.precision;if(f.s<1)throw Error(FB+(f.s?"NaN":"-Infinity"));if(f.eq(NB))return new h(0);if(null==t?(BB=!1,u=g):u=t,f.eq(10))return null==t&&(BB=!0),oF(h,u);if(u+=10,h.precision=u,r=(n=eF(p)).charAt(0),i=rF(f),!(Math.abs(i)<15e14))return s=oF(h,u+2,g).times(i+""),f=aF(new h(r+"."+n.slice(1)),u-10).plus(s),h.precision=g,null==t?(BB=!0,sF(f,g)):f;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=eF((f=f.times(e)).d)).charAt(0),d++;for(i=rF(f),r>1?(f=new h("0."+n),i++):f=new h(r+"."+n.slice(1)),l=a=f=tF(f.minus(NB),f.plus(NB),u),c=sF(f.times(f),u),o=3;;){if(a=sF(a.times(c),u),eF((s=l.plus(tF(a,new h(o),u))).d).slice(0,u)===eF(l.d).slice(0,u))return l=l.times(2),0!==i&&(l=l.plus(oF(h,u+2,g).times(i+""))),l=tF(l,new h(d),u),h.precision=g,null==t?(BB=!0,sF(l,g)):l;l=s,o+=2}}function lF(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=HB(n/qB),e.d=[],r=(n+1)%qB,n<0&&(r+=qB),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=qB;r<o;)e.d.push(+t.slice(r,r+=qB));t=t.slice(r),r=qB-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),BB&&(e.e>YB||e.e<-YB))throw Error(VB+n)}else e.s=0,e.e=0,e.d=[0];return e}function sF(e,t,n){var r,o,i,a,l,s,u,c,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=qB,o=t,u=d[c=0];else{if((c=Math.ceil((r+1)/qB))>=(i=d.length))return e;for(u=i=d[c],a=1;i>=10;i/=10)a++;o=(r%=qB)-qB+a}if(void 0!==n&&(l=u/(i=UB(10,a-o-1))%10|0,s=t<0||void 0!==d[c+1]||u%i,s=n<4?(l||s)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||s||6==n&&(r>0?o>0?u/UB(10,a-o):0:d[c-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return s?(i=rF(e),d.length=1,t=t-i-1,d[0]=UB(10,(qB-t%qB)%qB),e.e=HB(-t/qB)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(0==r?(d.length=c,i=1,c--):(d.length=c+1,i=UB(10,qB-r),d[c]=o>0?(u/UB(10,a-o)%UB(10,o)|0)*i:0),s)for(;;){if(0==c){(d[0]+=i)==ZB&&(d[0]=1,++e.e);break}if(d[c]+=i,d[c]!=ZB)break;d[c--]=0,i=1}for(r=d.length;0===d[--r];)d.pop();if(BB&&(e.e>YB||e.e<-YB))throw Error(VB+rF(e));return e}function uF(e,t){var n,r,o,i,a,l,s,u,c,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),BB?sF(t,p):t;if(s=e.d,d=t.d,r=t.e,u=e.e,s=s.slice(),a=u-r){for((c=a<0)?(n=s,a=-a,l=d.length):(n=d,r=u,l=s.length),a>(o=Math.max(Math.ceil(p/qB),l)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((c=(o=s.length)<(l=d.length))&&(l=o),o=0;o<l;o++)if(s[o]!=d[o]){c=s[o]<d[o];break}a=0}for(c&&(n=s,s=d,d=n,t.s=-t.s),l=s.length,o=d.length-l;o>0;--o)s[l++]=0;for(o=d.length;o>a;){if(s[--o]<d[o]){for(i=o;i&&0===s[--i];)s[i]=ZB-1;--s[i],s[o]+=ZB}s[o]-=d[o]}for(;0===s[--l];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,BB?sF(t,p):t):new f(0)}function cF(e,t,n){var r,o=rF(e),i=eF(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+iF(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+iF(-o-1)+i,n&&(r=n-a)>0&&(i+=iF(r))):o>=a?(i+=iF(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+iF(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=iF(r))),e.s<0?"-"+i:i}function dF(e,t){if(e.length>t)return e.length=t,!0}function fF(e){if(!e||"object"!=typeof e)throw Error(FB+"Object expected");var t,n,r,o=["precision",1,zB,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(HB(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(KB+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(KB+n+": "+r);this[n]=new this(r)}return this}var pF=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(KB+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):lF(t,e.toString())}if("string"!=typeof e)throw Error(KB+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!WB.test(e))throw Error(KB+e);lF(t,e)}if(i.prototype=XB,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=fF,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});NB=new pF(1);var hF=pF;function gF(e){return function(e){if(Array.isArray(e))return mF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return mF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mF(e,t)}(e)||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 mF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var vF=function(e){return e},yF={"@@functional/placeholder":!0},bF=function(e){return e===yF},wF=function(e){return function t(){return 0===arguments.length||1===arguments.length&&bF(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},xF=function e(t,n){return 1===t?n:wF((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==yF})).length;return a>=t?n.apply(void 0,o):e(t-a,wF((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return bF(e)?t.shift():e}));return n.apply(void 0,gF(i).concat(t))})))}))},CF=function(e){return xF(e.length,e)},SF=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},kF=CF((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),EF=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return vF;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},OF=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},DF=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var _F=CF((function(e,t,n){var r=+e;return r+n*(+t-r)})),PF=CF((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),TF=CF((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),AF={rangeStep:function(e,t,n){for(var r=new hF(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new hF(e).abs().log(10).toNumber())+1},interpolateNumber:_F,uninterpolateNumber:PF,uninterpolateTruncation:TF};function MF(e){return function(e){if(Array.isArray(e))return IF(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||LF(e)||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 jF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||LF(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 LF(e,t){if(e){if("string"==typeof e)return IF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IF(e,t):void 0}}function IF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RF(e){var t=jF(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function NF(e,t,n){if(e.lte(0))return new hF(0);var r=AF.getDigitCount(e.toNumber()),o=new hF(10).pow(r),i=e.div(o),a=1!==r?.05:.1,l=new hF(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?l:new hF(Math.ceil(l))}function $F(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new hF(0),tickMin:new hF(0),tickMax:new hF(0)};var i,a=NF(new hF(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new hF(0):(i=new hF(e).add(t).div(2)).sub(new hF(i).mod(a));var l=Math.ceil(i.sub(e).div(a).toNumber()),s=Math.ceil(new hF(t).sub(i).div(a).toNumber()),u=l+s+1;return u>n?$F(e,t,n,r,o+1):(u<n&&(s=t>0?s+(n-u):s,l=t>0?l:l+(n-u)),{step:a,tickMin:i.sub(new hF(l).mul(a)),tickMax:i.add(new hF(s).mul(a))})}var zF=DF((function(e){var t=jF(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),l=jF(RF([n,r]),2),s=l[0],u=l[1];if(s===-1/0||u===1/0){var c=u===1/0?[s].concat(MF(SF(0,o-1).map((function(){return 1/0})))):[].concat(MF(SF(0,o-1).map((function(){return-1/0}))),[u]);return n>r?OF(c):c}if(s===u)return function(e,t,n){var r=1,o=new hF(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new hF(10).pow(AF.getDigitCount(e)-1),o=new hF(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new hF(Math.floor(e)))}else 0===e?o=new hF(Math.floor((t-1)/2)):n||(o=new hF(Math.floor(e)));var a=Math.floor((t-1)/2),l=EF(kF((function(e){return o.add(new hF(e-a).mul(r)).toNumber()})),SF);return l(0,t)}(s,o,i);var d=$F(s,u,a,i),f=d.step,p=d.tickMin,h=d.tickMax,g=AF.rangeStep(p,h.add(new hF(.1).mul(f)),f);return n>r?OF(g):g})),BF=DF((function(e,t){var n=jF(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=jF(RF([r,o]),2),l=a[0],s=a[1];if(l===-1/0||s===1/0)return[r,o];if(l===s)return[l];var u=Math.max(t,2),c=NF(new hF(s).sub(l).div(u-1),i,0),d=[].concat(MF(AF.rangeStep(new hF(l),new hF(s).sub(new hF(.99).mul(c)),c)),[s]);return r>o?OF(d):d})),FF="production"===process.env.NODE_ENV,KF="Invariant failed";function VF(e,t){if(!e){if(FF)throw new Error(KF);var n="function"==typeof t?t():t,r=n?"".concat(KF,": ").concat(n):KF;throw new Error(r)}}var HF=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function UF(){return UF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UF.apply(this,arguments)}function WF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ZF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZF(e,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 ZF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qF(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function GF(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,l=e.dataPointFormatter,s=e.xAxis,u=e.yAxis,c=qF(e,HF),d=uO(c,!1);"x"===e.direction&&"number"!==s.type&&("production"!==process.env.NODE_ENV?VF(!1,'ErrorBar requires Axis type property to be "number".'):VF(!1));var f=a.map((function(e){var a=l(e,i),c=a.x,f=a.y,p=a.value,h=a.errorVal;if(!h)return null;var g,m,v=[];if(Array.isArray(h)){var y=WF(h,2);g=y[0],m=y[1]}else g=m=h;if("vertical"===n){var b=s.scale,w=f+t,x=w+r,C=w-r,S=b(p-g),k=b(p+m);v.push({x1:k,y1:x,x2:k,y2:C}),v.push({x1:S,y1:w,x2:k,y2:w}),v.push({x1:S,y1:x,x2:S,y2:C})}else if("horizontal"===n){var E=u.scale,O=c+t,D=O-r,_=O+r,P=E(p-g),T=E(p+m);v.push({x1:D,y1:T,x2:_,y2:T}),v.push({x1:O,y1:P,x2:O,y2:T}),v.push({x1:D,y1:P,x2:_,y2:P})}return o.createElement(wO,UF({className:"recharts-errorBar",key:"bar-".concat(v.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},d),v.map((function(e){return o.createElement("line",UF({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return o.createElement(wO,{className:"recharts-errorBars"},f)}function YF(e){return YF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YF(e)}function XF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XF(Object(n),!0).forEach((function(t){QF(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QF(e,t,n){return t=function(e){var t=function(e,t){if("object"!=YF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YF(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}GF.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},GF.displayName="ErrorBar";var eK=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=aO(n,TM);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:uK(t),value:o||r,payload:t.props}})),JF(JF(JF({},a.props),TM.getWithHeight(a,o)),{},{payload:t,item:a})):null};function tK(e){return tK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tK(e)}function nK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nK(Object(n),!0).forEach((function(t){oK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=tK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tK(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iK(e){return function(e){if(Array.isArray(e))return aK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return aK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aK(e,t)}(e)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lK(e,t,n){return gE(e)||gE(t)?n:IE(t)?hE(e,t,n):vS(t)?t(e):n}function sK(e,t,n,r){var o=IB(e,(function(e){return lK(e,t)}));if("number"===n){var i=o.filter((function(e){return LE(e)||parseFloat(e)}));return i.length?[_B(i),CB(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!gE(e)})):o).map((function(e){return IE(e)||e instanceof Date?e:""}))}var uK=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},cK=function(e,t,n,r,o){var i=iO(t.props.children,GF).filter((function(e){return function(e,t,n){return!!gE(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=lK(t,n);if(gE(r))return e;var o=Array.isArray(r)?[_B(r),CB(r)]:[r,r],i=a.reduce((function(e,n){var r=lK(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},dK=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&cK(e,t,i,r)||sK(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},fK=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},pK=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,i,a=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(i=!0),e.coordinate}));return o||a.push(t),i||a.push(n),a},hK=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,l="scaleBand"===e.realScaleType?r.bandwidth()/2:2,s=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/l:0;return s="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*ME(a[0]-a[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+s,value:e,offset:s}})).filter((function(e){return!AE(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+s,value:e,offset:s}})):r.domain().map((function(e,t){return{coordinate:r(e)+s,value:o?o[e]:e,index:t,offset:s}}))},gK=new WeakMap,mK=function(e,t){if("function"!=typeof t)return e;gK.has(e)||gK.set(e,new WeakMap);var n=gK.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},vK=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:iR(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:PN(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:lR(),realScaleType:"point"}:"category"===o?{scale:iR(),realScaleType:"band"}:{scale:PN(),realScaleType:"linear"};if(wE(r)){var l="scale".concat(XO(r));return{scale:(hB[l]||lR)(),realScaleType:hB[l]?l:"point"}}return vS(r)?{scale:r}:{scale:lR(),realScaleType:"point"}},yK=1e-4,bK=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-yK,i=Math.max(r[0],r[1])+yK,a=e(t[0]),l=e(t[n-1]);(a<o||a>i||l<o||l>i)&&e.domain([t[0],t[n-1]])}},wK={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var l=AE(e[a][n][1])?e[a][n][0]:e[a][n][1];l>=0?(e[a][n][0]=o,e[a][n][1]=o+l,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+l,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}JD(e,t)}},none:JD,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,l=0;a<n;++a)l+=e[a][r][1]||0;o[r][1]+=o[r][0]=-l/2}JD(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],d=c[a][1]||0,f=(d-(c[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];f+=(h[a][1]||0)-(h[a-1][1]||0)}s+=d,u+=f*d}n[a-1][1]+=n[a-1][0]=i,s&&(i-=u/s)}n[a-1][1]+=n[a-1][0]=i,JD(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=AE(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},xK=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=wK[n],i=function(){var e=JO([]),t=QD,n=JD,r=e_;function o(o){var i,a,l=Array.from(e.apply(this,arguments),t_),s=l.length,u=-1;for(const e of o)for(i=0,++u;i<s;++i)(l[i][u]=[0,+r(e,l[i].key,u,o)]).data=e;for(i=0,a=dD(t(l));i<s;++i)l[a[i]].index=i;return n(l,a),l}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:JO(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:JO(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?QD:"function"==typeof e?e:JO(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?JD:e,o):n},o}().keys(r).value((function(e,t){return+lK(e,t,0)})).order(QD).offset(o);return i(e)},CK=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,l=n||t.scale;if("auto"!==l&&"linear"!==l)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var s=e.domain();if(!s.length)return null;var u=zF(s,o,a);return e.domain([_B(u),CB(u)]),{niceTicks:u}}if(o&&"number"===r){var c=e.domain();return{niceTicks:BF(c,o,a)}}return null};function SK(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!gE(o[t.dataKey])){var l=FE(n,"value",o[t.dataKey]);if(l)return l.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var s=lK(o,gE(a)?t.dataKey:a);return gE(s)?null:t.scale(s)}var kK=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var l=lK(i,t.dataKey,t.domain[a]);return gE(l)?null:t.scale(l)-o/2+r},EK=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[_B(t.concat([e[0]]).filter(LE)),CB(t.concat([e[1]]).filter(LE))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},OK=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,DK=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_K=function(e,t,n){if(vS(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(LE(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(OK.test(e[0])){var o=+OK.exec(e[0])[1];r[0]=t[0]-o}else vS(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(LE(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(DK.test(e[1])){var i=+DK.exec(e[1])[1];r[1]=t[1]+i}else vS(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},PK=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=Aj(t,(function(e){return e.coordinate})),i=1/0,a=1,l=o.length;a<l;a++){var s=o[a],u=o[a-1];i=Math.min((s.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},TK=function(e,t,n){return e&&e.length?$B(e,hE(n,"type.defaultProps.domain"))?t:e:t},AK=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,l=n.tooltipType,s=n.chartType,u=n.hide;return rK(rK({},uO(e,!1)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:uK(e),value:lK(t,r),type:l,payload:t,chartType:s,hide:u})};function MK(e){return MK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MK(e)}function jK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jK(Object(n),!0).forEach((function(t){IK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=MK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=MK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==MK(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return NK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NK(e,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 NK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $K=Math.PI/180,zK=function(e){return 180*e/Math.PI},BK=function(e,t,n,r){return{x:e+Math.cos(-$K*r)*n,y:t+Math.sin(-$K*r)*n}},FK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},KK=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var l=(n-o)/a,s=Math.acos(l);return r>i&&(s=2*Math.PI-s),{radius:a,angle:zK(s),angleInRadian:s}},VK=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},HK=function(e,t){var n=e.x,r=e.y,o=KK({x:n,y:r},t),i=o.radius,a=o.angle,l=t.innerRadius,s=t.outerRadius;if(i<l||i>s)return!1;if(0===i)return!0;var u,c=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),d=c.startAngle,f=c.endAngle,p=a;if(d<=f){for(;p>f;)p-=360;for(;p<d;)p+=360;u=p>=d&&p<=f}else{for(;p>d;)p-=360;for(;p<f;)p+=360;u=p>=f&&p<=d}return u?LK(LK({},t),{},{radius:i,angle:VK(p,t)}):null},UK=function(e){return p(e)||vS(e)||"boolean"==typeof e?"":e.className};function WK(e){return WK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WK(e)}var ZK=["offset"];function qK(e){return function(e){if(Array.isArray(e))return GK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return GK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GK(e,t)}(e)||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 GK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YK(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function XK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XK(Object(n),!0).forEach((function(t){QK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=WK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=WK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==WK(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eV(){return eV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eV.apply(this,arguments)}var tV=function(e){var t=e.value,n=e.formatter,r=gE(e.children)?t:e.children;return vS(n)?n(r):r},nV=function(e,t,n){var r,i,a=e.position,l=e.viewBox,s=e.offset,u=e.className,c=l,d=c.cx,f=c.cy,p=c.innerRadius,h=c.outerRadius,g=c.startAngle,m=c.endAngle,v=c.clockWise,y=(p+h)/2,b=function(e,t){return ME(t-e)*Math.min(Math.abs(t-e),360)}(g,m),w=b>=0?1:-1;"insideStart"===a?(r=g+w*s,i=v):"insideEnd"===a?(r=m-w*s,i=!v):"end"===a&&(r=m+w*s,i=v),i=b<=0?i:!i;var x=BK(d,f,y,r),C=BK(d,f,y,r+359*(i?1:-1)),S="M".concat(x.x,",").concat(x.y,"\n A").concat(y,",").concat(y,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),k=gE(e.id)?NE("recharts-radial-line-"):e.id;return o.createElement("text",eV({},n,{dominantBaseline:"central",className:$C("recharts-radial-bar-label",u)}),o.createElement("defs",null,o.createElement("path",{id:k,d:S})),o.createElement("textPath",{xlinkHref:"#".concat(k)},t))},rV=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,l=o.innerRadius,s=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var c=BK(i,a,s+n,u),d=c.x;return{x:d,y:c.y,textAnchor:d>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=BK(i,a,(l+s)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},oV=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,l=i.y,s=i.width,u=i.height,c=u>=0?1:-1,d=c*r,f=c>0?"end":"start",p=c>0?"start":"end",h=s>=0?1:-1,g=h*r,m=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return JK(JK({},{x:a+s/2,y:l-c*r,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(l-n.y,0),width:s}:{});if("bottom"===o)return JK(JK({},{x:a+s/2,y:l+u+d,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(l+u),0),width:s}:{});if("left"===o){var y={x:a-g,y:l+u/2,textAnchor:m,verticalAnchor:"middle"};return JK(JK({},y),n?{width:Math.max(y.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+s+g,y:l+u/2,textAnchor:v,verticalAnchor:"middle"};return JK(JK({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:s,height:u}:{};return"insideLeft"===o?JK({x:a+g,y:l+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?JK({x:a+s-g,y:l+u/2,textAnchor:m,verticalAnchor:"middle"},w):"insideTop"===o?JK({x:a+s/2,y:l+d,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?JK({x:a+s/2,y:l+u-d,textAnchor:"middle",verticalAnchor:f},w):"insideTopLeft"===o?JK({x:a+g,y:l+d,textAnchor:v,verticalAnchor:p},w):"insideTopRight"===o?JK({x:a+s-g,y:l+d,textAnchor:m,verticalAnchor:p},w):"insideBottomLeft"===o?JK({x:a+g,y:l+u-d,textAnchor:v,verticalAnchor:f},w):"insideBottomRight"===o?JK({x:a+s-g,y:l+u-d,textAnchor:m,verticalAnchor:f},w):fS(o)&&(LE(o.x)||jE(o.x))&&(LE(o.y)||jE(o.y))?JK({x:a+$E(o.x,s),y:l+$E(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):JK({x:a+s/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},iV=function(e){return"cx"in e&&LE(e.cx)};function aV(e){var t,n=e.offset,r=JK({offset:void 0===n?5:n},YK(e,ZK)),i=r.viewBox,a=r.position,s=r.value,u=r.children,c=r.content,d=r.className,f=void 0===d?"":d,g=r.textBreakAll;if(!i||gE(s)&&gE(u)&&!p(c)&&!vS(c))return null;if(p(c))return h(c,r);if(vS(c)){if(p(t=l(c,r)))return t}else t=tV(r);var m=iV(i),v=uO(r,!0);if(m&&("insideStart"===a||"insideEnd"===a||"end"===a))return nV(r,t,v);var y=m?rV(r):oV(r);return o.createElement(MI,eV({className:$C("recharts-label",f)},v,y,{breakAll:g}),t)}aV.displayName="Label";var lV=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,s=e.innerRadius,u=e.outerRadius,c=e.x,d=e.y,f=e.top,p=e.left,h=e.width,g=e.height,m=e.clockWise,v=e.labelViewBox;if(v)return v;if(LE(h)&&LE(g)){if(LE(c)&&LE(d))return{x:c,y:d,width:h,height:g};if(LE(f)&&LE(p))return{x:f,y:p,width:h,height:g}}return LE(c)&&LE(d)?{x:c,y:d,width:0,height:0}:LE(t)&&LE(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:s||0,outerRadius:u||l||a||0,clockWise:m}:e.viewBox?e.viewBox:{}};aV.parseViewBox=lV,aV.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=lV(e),a=iO(r,aV).map((function(e,n){return h(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return a;var l=function(e,t){return e?!0===e?o.createElement(aV,{key:"label-implicit",viewBox:t}):IE(e)?o.createElement(aV,{key:"label-implicit",viewBox:t,value:e}):p(e)?e.type===aV?h(e,{key:"label-implicit",viewBox:t}):o.createElement(aV,{key:"label-implicit",content:e,viewBox:t}):vS(e)?o.createElement(aV,{key:"label-implicit",content:e,viewBox:t}):fS(e)?o.createElement(aV,eV({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||i);return[l].concat(qK(a))};var sV=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},uV=Mt(sV);function cV(e){return cV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cV(e)}var dV=["valueAccessor"],fV=["data","dataKey","clockWise","id","textBreakAll"];function pV(e){return function(e){if(Array.isArray(e))return hV(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return hV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hV(e,t)}(e)||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 hV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gV(){return gV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gV.apply(this,arguments)}function mV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mV(Object(n),!0).forEach((function(t){yV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=cV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=cV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bV(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var wV=function(e){return Array.isArray(e.value)?uV(e.value):e.value};function xV(e){var t=e.valueAccessor,n=void 0===t?wV:t,r=bV(e,dV),i=r.data,a=r.dataKey,l=r.clockWise,s=r.id,u=r.textBreakAll,c=bV(r,fV);return i&&i.length?o.createElement(wO,{className:"recharts-label-list"},i.map((function(e,t){var r=gE(a)?n(e,t):lK(e&&e.payload,a),i=gE(s)?{}:{id:"".concat(s,"-").concat(t)};return o.createElement(aV,gV({},uO(e,!0),c,i,{parentViewBox:e.parentViewBox,value:r,textBreakAll:u,viewBox:aV.parseViewBox(gE(l)?e:vV(vV({},e),{},{clockWise:l})),key:"label-".concat(t),index:t}))}))):null}function CV(e){return CV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CV(e)}function SV(){return SV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SV.apply(this,arguments)}function kV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kV(Object(n),!0).forEach((function(t){OV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=CV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=CV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==CV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}xV.displayName="LabelList",xV.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=iO(e.children,xV).map((function(e,n){return h(e,{data:t,key:"labelList-".concat(n)})}));return n?[function(e,t){return e?!0===e?o.createElement(xV,{key:"labelList-implicit",data:t}):o.isValidElement(e)||vS(e)?o.createElement(xV,{key:"labelList-implicit",data:t,content:e}):fS(e)?o.createElement(xV,gV({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(pV(r)):r};var DV=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,l=e.cornerRadius,s=e.cornerIsExternal,u=l*(a?1:-1)+r,c=Math.asin(l/u)/$K,d=s?o:o+i*c,f=s?o-i*c:o;return{center:BK(t,n,u,d),circleTangency:BK(t,n,r,d),lineTangency:BK(t,n,u*Math.cos(c*$K),f),theta:c}},_V=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return ME(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),l=i+a,s=BK(t,n,o,i),u=BK(t,n,o,l),c="M ".concat(s.x,",").concat(s.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>l),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var d=BK(t,n,r,i),f=BK(t,n,r,l);c+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=l),",\n ").concat(d.x,",").concat(d.y," Z")}else c+="L ".concat(t,",").concat(n," Z");return c},PV={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},TV=function(e){var t=EV(EV({},PV),e),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,l=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,d=t.endAngle,f=t.className;if(a<i||c===d)return null;var p,h=$C("recharts-sector",f),g=a-i,m=$E(l,g,0,!0);return p=m>0&&Math.abs(c-d)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,u=e.endAngle,c=ME(u-s),d=DV({cx:t,cy:n,radius:o,angle:s,sign:c,cornerRadius:i,cornerIsExternal:l}),f=d.circleTangency,p=d.lineTangency,h=d.theta,g=DV({cx:t,cy:n,radius:o,angle:u,sign:-c,cornerRadius:i,cornerIsExternal:l}),m=g.circleTangency,v=g.lineTangency,y=g.theta,b=l?Math.abs(s-u):Math.abs(s-u)-h-y;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):_V({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:u});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(f.x,",").concat(f.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=DV({cx:t,cy:n,radius:r,angle:s,sign:c,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),C=x.circleTangency,S=x.lineTangency,k=x.theta,E=DV({cx:t,cy:n,radius:r,angle:u,sign:-c,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),O=E.circleTangency,D=E.lineTangency,_=E.theta,P=l?Math.abs(s-u):Math.abs(s-u)-k-_;if(P<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(D.x,",").concat(D.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(P>180),",").concat(+(c>0),",").concat(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,g/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:d}):_V({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:c,endAngle:d}),o.createElement("path",SV({},uO(t,!0),{className:h,d:p,role:"img"}))};function AV(e){return AV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AV(e)}function MV(){return MV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MV.apply(this,arguments)}function jV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jV(Object(n),!0).forEach((function(t){IV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=AV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=AV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RV={curveBasisClosed:function(e){return new zD(e)},curveBasisOpen:function(e){return new BD(e)},curveBasis:function(e){return new $D(e)},curveBumpX:function(e){return new yD(e,!0)},curveBumpY:function(e){return new yD(e,!1)},curveLinearClosed:function(e){return new FD(e)},curveLinear:pD,curveMonotoneX:function(e){return new WD(e)},curveMonotoneY:function(e){return new ZD(e)},curveNatural:function(e){return new GD(e)},curveStep:function(e){return new XD(e,.5)},curveStepAfter:function(e){return new XD(e,1)},curveStepBefore:function(e){return new XD(e,0)}},NV=function(e){return e.x===+e.x&&e.y===+e.y},$V=function(e){return e.x},zV=function(e){return e.y},BV=function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,i=void 0===o?[]:o,a=e.baseLine,l=e.layout,s=e.connectNulls,u=void 0!==s&&s,c=function(e,t){if(vS(e))return e;var n="curve".concat(XO(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?RV[n]||pD:RV["".concat(n).concat("vertical"===t?"Y":"X")]}(r,l),d=u?i.filter((function(e){return NV(e)})):i;if(Array.isArray(a)){var f=u?a.filter((function(e){return NV(e)})):a,p=d.map((function(e,t){return LV(LV({},e),{},{base:f[t]})}));return(t="vertical"===l?vD().y(zV).x1($V).x0((function(e){return e.base.x})):vD().x($V).y1(zV).y0((function(e){return e.base.y}))).defined(NV).curve(c),t(p)}return(t="vertical"===l&&LE(a)?vD().y(zV).x1($V).x0(a):LE(a)?vD().x($V).y1(zV).y0(a):mD().x($V).y(zV)).defined(NV).curve(c),t(d)},FV=function(e){var t=e.className,n=e.points,r=e.path,i=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?BV(e):r;return o.createElement("path",MV({},uO(e,!1),qE(e),{className:$C("recharts-curve",t),d:a,ref:i}))},KV={exports:{}},VV=Object.getOwnPropertySymbols,HV=Object.prototype.hasOwnProperty,UV=Object.prototype.propertyIsEnumerable;var WV,ZV,qV,GV,YV,XV,JV,QV,eH,tH,nH=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))HV.call(n,a)&&(o[a]=n[a]);if(VV){r=VV(n);for(var l=0;l<r.length;l++)UV.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o};function rH(){if(ZV)return WV;ZV=1;return WV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function oH(){return GV?qV:(GV=1,qV=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var iH=EE;KV.exports=function(){if(QV)return JV;QV=1;var e=EE,t=nH,n=rH(),r=oH(),o=function(){if(XV)return YV;XV=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=rH(),n={},r=oH();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,l,s){if("production"!==process.env.NODE_ENV)for(var u in o)if(r(o,u)){var c;try{if("function"!=typeof o[u]){var d=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=o[u](i,u,l,a,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var f=s?s():"";e("Failed "+a+" type: "+c.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},YV=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),JV=function(l,s){var u="function"==typeof Symbol&&Symbol.iterator,c="@@iterator",d="<<anonymous>>",f={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(a),arrayOf:function(e){return g((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+i+" `"+a+"` of type `"+b(l)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<l.length;s++){var u=e(l,s,o,i,a+"["+s+"]",n);if(u instanceof Error)return u}return null}))},element:g((function(e,t,n,r,o){var i=e[t];return l(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+o+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:g((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,i,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[o],u=b(s);if("object"!==u)return new h("Invalid "+a+" `"+l+"` of type `"+u+"` supplied to `"+i+"`, expected an object.");for(var c in s)if(r(s,c)){var d=e(s,c,i,a,l+"."+c,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&i(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(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+t+"."),a}return g((function(t,o,i,a,l){for(var s=[],u=0;u<e.length;u++){var c=(0,e[u])(t,o,i,a,l,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&s.push(c.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,o,i,a){var l=t[r],s=b(l);if("object"!==s)return new h("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return v(o,i,a,u,w(c));var d=c(l,u,o,i,a+"."+u,n);if(d)return d}return null}))},exact:function(e){return g((function(o,i,a,l,s){var u=o[i],c=b(u);if("object"!==c)return new h("Invalid "+l+" `"+s+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var f in d){var p=e[f];if(r(e,f)&&"function"!=typeof p)return v(a,l,s,f,w(p));if(!p)return new h("Invalid "+l+" `"+s+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(u,f,a,l,s+"."+f,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,l,u,c,f,p){if(u=u||d,f=f||l,p!==n){if(s){var g=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 g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=u+":"+l;!t[m]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` 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."),t[m]=!0,r++)}}return null==a[l]?o?null===a[l]?new h("The "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+c+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,l,u,c,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return g((function(t,n,r,o,i,a){var l=t[n];return b(l)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||l(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[c]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},JV}()(iH.isElement,!0)}else KV.exports=function(){if(tH)return eH;tH=1;var e=rH();function t(){}function n(){}return n.resetWarningCache=t,eH=function(){function r(t,n,r,o,i,a){if(a!==e){var l=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 l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},eH}()();var aH=Mt(KV.exports),lH=Object.getOwnPropertyNames,sH=Object.getOwnPropertySymbols,uH=Object.prototype.hasOwnProperty;function cH(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function dH(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var l=e(t,n,r);return o.delete(t),o.delete(n),l}}function fH(e){return lH(e).concat(sH(e))}var pH=Object.hasOwn||function(e,t){return uH.call(e,t)};function hH(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var gH="_owner",mH=Object.getOwnPropertyDescriptor,vH=Object.keys;function yH(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function bH(e,t){return hH(e.getTime(),t.getTime())}function wH(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),l=0;(r=a.next())&&!r.done;){for(var s=t.entries(),u=!1,c=0;(o=s.next())&&!o.done;){var d=r.value,f=d[0],p=d[1],h=o.value,g=h[0],m=h[1];u||i[c]||!(u=n.equals(f,g,l,c,e,t,n)&&n.equals(p,m,f,g,e,t,n))||(i[c]=!0),c++}if(!u)return!1;l++}return!0}function xH(e,t,n){var r,o=vH(e),i=o.length;if(vH(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===gH&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!pH(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function CH(e,t,n){var r,o,i,a=fH(e),l=a.length;if(fH(t).length!==l)return!1;for(;l-- >0;){if((r=a[l])===gH&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!pH(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=mH(e,r),i=mH(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function SH(e,t){return hH(e.valueOf(),t.valueOf())}function kH(e,t){return e.source===t.source&&e.flags===t.flags}function EH(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var l=t.values(),s=!1,u=0;(o=l.next())&&!o.done;)s||i[u]||!(s=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[u]=!0),u++;if(!s)return!1}return!0}function OH(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var DH="[object Arguments]",_H="[object Boolean]",PH="[object Date]",TH="[object Map]",AH="[object Number]",MH="[object Object]",jH="[object RegExp]",LH="[object Set]",IH="[object String]",RH=Array.isArray,NH="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,$H=Object.assign,zH=Object.prototype.toString.call.bind(Object.prototype.toString);var BH=FH();function FH(e){void 0===e&&(e={});var t=e.circular,n=void 0!==t&&t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=void 0!==i&&i,l=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?CH:yH,areDatesEqual:bH,areMapsEqual:r?cH(wH,CH):wH,areObjectsEqual:r?CH:xH,arePrimitiveWrappersEqual:SH,areRegExpsEqual:kH,areSetsEqual:r?cH(EH,CH):EH,areTypedArraysEqual:r?CH:OH};if(n&&(o=$H({},o,n(o))),t){var i=dH(o.areArraysEqual),a=dH(o.areMapsEqual),l=dH(o.areObjectsEqual),s=dH(o.areSetsEqual);o=$H({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:s})}return o}(e),s=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,l=e.areSetsEqual,s=e.areTypedArraysEqual;return function(e,u,c){if(e===u)return!0;if(null==e||null==u||"object"!=typeof e||"object"!=typeof u)return e!=e&&u!=u;var d=e.constructor;if(d!==u.constructor)return!1;if(d===Object)return o(e,u,c);if(RH(e))return t(e,u,c);if(null!=NH&&NH(e))return s(e,u,c);if(d===Date)return n(e,u,c);if(d===RegExp)return a(e,u,c);if(d===Map)return r(e,u,c);if(d===Set)return l(e,u,c);var f=zH(e);return f===PH?n(e,u,c):f===jH?a(e,u,c):f===TH?r(e,u,c):f===LH?l(e,u,c):f===MH?"function"!=typeof e.then&&"function"!=typeof u.then&&o(e,u,c):f===DH?o(e,u,c):(f===_H||f===AH||f===IH)&&i(e,u,c)}}(l),u=r?r(s):function(e){return function(t,n,r,o,i,a,l){return e(t,n,l)}}(s);return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var l=r(),s=l.cache,u=void 0===s?t?new WeakMap:void 0:s,c=l.meta;return n(e,a,{cache:u,equals:o,meta:c,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:n,comparator:s,createState:o,equals:u,strict:a})}function KH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function VH(e){return VH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VH(e)}function HH(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return UH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UH(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 UH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WH(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=HH(r),i=o[0],a=o.slice(1);return"number"==typeof i?void KH(n.bind(null,a),i):(n(i),void KH(n.bind(null,a)))}"object"===VH(r)&&e(r),"function"==typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function ZH(e){return ZH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZH(e)}function qH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qH(Object(n),!0).forEach((function(t){YH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ZH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZH(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}FH({strict:!0}),FH({circular:!0}),FH({circular:!0,strict:!0}),FH({createInternalComparator:function(){return hH}}),FH({strict:!0,createInternalComparator:function(){return hH}}),FH({circular:!0,createInternalComparator:function(){return hH}}),FH({circular:!0,createInternalComparator:function(){return hH},strict:!0});var XH=function(e){return e},JH=function(e,t){return Object.keys(t).reduce((function(n,r){return GH(GH({},n),{},YH({},r,e(r,t[r])))}),{})},QH=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")},eU="production"!==process.env.NODE_ENV,tU=function(e,t,n,r,o,i,a,l){if(eU&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],u=0;console.warn(t.replace(/%s/g,(function(){return s[u++]})))}};function nU(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||oU(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 rU(e){return function(e){if(Array.isArray(e))return iU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||oU(e)||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 oU(e,t){if(e){if("string"==typeof e)return iU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iU(e,t):void 0}}function iU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aU=1e-4,lU=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},sU=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},uU=function(e,t){return function(n){var r=lU(e,t);return sU(r,n)}},cU=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var l=t[0].split("(");if("cubic-bezier"===l[0]&&4===l[1].split(")")[0].split(",").length){var s=l[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),u=nU(s,4);r=u[0],o=u[1],i=u[2],a=u[3]}else tU(!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",t)}tU([r,i,o,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var c,d,f=uU(r,i),p=uU(o,a),h=(c=r,d=i,function(e){var t=lU(c,d),n=[].concat(rU(t.map((function(e,t){return e*t})).slice(1)),[0]);return sU(n,e)}),g=function(e){for(var t,n=e>1?1:e,r=n,o=0;o<8;++o){var i=f(r)-n,a=h(r);if(Math.abs(i-n)<aU||a<aU)return p(r);r=(t=r-i/a)>1?1:t<0?0:t}return p(r)};return g.isStepper=!1,g},dU=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return cU(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,l=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,l=r*a/1e3+e;return Math.abs(l-t)<aU&&Math.abs(i)<aU?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l}();default:if("cubic-bezier"===r.split("(")[0])return cU(r);tU(!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",t)}return"function"==typeof r?r:(tU(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function fU(e){return fU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fU(e)}function pU(e){return function(e){if(Array.isArray(e))return bU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yU(e)||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 hU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hU(Object(n),!0).forEach((function(t){mU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mU(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==fU(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fU(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vU(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||yU(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 yU(e,t){if(e){if("string"==typeof e)return bU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bU(e,t):void 0}}function bU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wU=function(e,t,n){return e+(t-e)*n},xU=function(e){return e.from!==e.to},CU=function e(t,n,r){var o=JH((function(e,n){if(xU(n)){var r=vU(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return gU(gU({},n),{},{from:o,velocity:i})}return n}),n);return r<1?JH((function(e,t){return xU(t)?gU(gU({},t),{},{velocity:wU(t.velocity,o[e].velocity,r),from:wU(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},SU=function(e,t,n,r,o){var i,a,l,s,u=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),c=u.reduce((function(n,r){return gU(gU({},n),{},mU({},r,[e[r],t[r]]))}),{}),d=u.reduce((function(n,r){return gU(gU({},n),{},mU({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),f=-1,p=function(){return null};return p=n.isStepper?function(r){l||(l=r);var i=(r-l)/n.dt;d=CU(n,d,i),o(gU(gU(gU({},e),t),JH((function(e,t){return t.from}),d))),l=r,Object.values(d).filter(xU).length&&(f=requestAnimationFrame(p))}:function(i){s||(s=i);var a=(i-s)/r,l=JH((function(e,t){return wU.apply(void 0,pU(t).concat([n(a)]))}),c);if(o(gU(gU(gU({},e),t),l)),a<1)f=requestAnimationFrame(p);else{var u=JH((function(e,t){return wU.apply(void 0,pU(t).concat([n(1)]))}),c);o(gU(gU(gU({},e),t),u))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}};function kU(e){return kU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kU(e)}var EU=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function OU(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DU(e){return function(e){if(Array.isArray(e))return _U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _U(e,t)}(e)||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 _U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PU(Object(n),!0).forEach((function(t){AU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AU(e,t,n){return(t=jU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MU(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jU(r.key),r)}}function jU(e){var t=function(e,t){if("object"!==kU(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kU(t)?t:String(t)}function LU(e,t){return LU=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LU(e,t)}function IU(e){var t=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(e){return!1}}();return function(){var n,r=$U(e);if(t){var o=$U(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RU(this,n)}}function RU(e,t){if(t&&("object"===kU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NU(e)}function NU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $U(e){return $U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$U(e)}var zU=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LU(e,t)}(a,x);var t,n,r,i=IU(a);function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=i.call(this,e,t)).props,o=r.isActive,l=r.attributeName,s=r.from,u=r.to,c=r.steps,d=r.children,f=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(NU(n)),n.changeStyle=n.changeStyle.bind(NU(n)),!o||f<=0)return n.state={style:{}},"function"==typeof d&&(n.state={style:u}),RU(n);if(c&&c.length)n.state={style:c[0].style};else if(s){if("function"==typeof d)return n.state={style:s},RU(n);n.state={style:l?AU({},l,s):s}}else n.state={style:{}};return n}return t=a,n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,l=t.from,s=this.state.style;if(r)if(n){if(!(BH(e.to,a)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var c=u||i?l:e.to;if(this.state&&s){var d={style:o?AU({},o,c):c};(o&&s[o]!==c||!o&&s!==c)&&this.setState(d)}this.runAnimation(TU(TU({},this.props),{},{from:c,begin:0}))}}else{var f={style:o?AU({},o,a):a};this.state&&s&&(o&&s[o]!==a||!o&&s!==a)&&this.setState(f)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,l=e.onAnimationEnd,s=e.onAnimationStart,u=SU(n,r,dU(i),o,this.changeStyle);this.manager.start([s,a,function(){t.stopJSAnimation=u()},o,l])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,l=i.duration,s=void 0===l?0:l;return this.manager.start([o].concat(DU(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,l=void 0===a?"ease":a,s=r.style,u=r.properties,c=r.onAnimationEnd,d=o>0?n[o-1]:r,f=u||Object.keys(s);if("function"==typeof l||"spring"===l)return[].concat(DU(e),[t.runJSAnimation.bind(t,{from:d.style,to:s,duration:i,easing:l}),i]);var p=QH(f,i,l),h=TU(TU(TU({},d.style),s),{},{transition:p});return[].concat(DU(e),[h,i,c]).filter(XH)}),[a,Math.max(s,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=WH());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,l=e.onAnimationEnd,s=e.steps,u=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof u&&"spring"!==i)if(s.length>1)this.runStepAnimation(e);else{var d=r?AU({},r,o):o,f=QH(Object.keys(d),n,i);c.start([a,t,TU(TU({},d),{},{transition:f}),n,l])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children;e.begin;var n=e.duration;e.attributeName,e.easing;var r=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=OU(e,EU),a=f.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!r||0===a||n<=0)return t;var s=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,o=t.className;return h(e,TU(TU({},i),{},{style:TU(TU({},r),l),className:o}))};return 1===a?s(f.only(t)):o.createElement("div",null,f.map(t,(function(e){return s(e)})))}}],n&&MU(t.prototype,n),r&&MU(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}();function BU(e){return BU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BU(e)}function FU(){return FU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FU.apply(this,arguments)}function KU(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return VU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VU(e,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 VU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HU(Object(n),!0).forEach((function(t){WU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WU(e,t,n){return t=function(e){var t=function(e,t){if("object"!=BU(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BU(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}zU.displayName="Animate",zU.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},zU.propTypes={from:aH.oneOfType([aH.object,aH.string]),to:aH.oneOfType([aH.object,aH.string]),attributeName:aH.string,duration:aH.number,begin:aH.number,easing:aH.oneOfType([aH.string,aH.func]),steps:aH.arrayOf(aH.shape({duration:aH.number.isRequired,style:aH.object.isRequired,easing:aH.oneOfType([aH.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),aH.func]),properties:aH.arrayOf("string"),onAnimationEnd:aH.func})),children:aH.oneOfType([aH.node,aH.func]),isActive:aH.bool,canBegin:aH.bool,onAnimationEnd:aH.func,shouldReAnimate:aH.bool,onAnimationStart:aH.func,onAnimationReStart:aH.func},aH.object,aH.object,aH.object,aH.element,aH.object,aH.object,aH.object,aH.oneOfType([aH.array,aH.element]),aH.any;var ZU=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),l=r>=0?1:-1,s=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var c=[0,0,0,0],d=0;d<4;d++)c[d]=o[d]>a?a:o[d];i="M".concat(e,",").concat(t+l*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(e+s*c[0],",").concat(t)),i+="L ".concat(e+n-s*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,",\n ").concat(e+n,",").concat(t+l*c[1])),i+="L ".concat(e+n,",").concat(t+r-l*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,",\n ").concat(e+n-s*c[2],",").concat(t+r)),i+="L ".concat(e+s*c[3],",").concat(t+r),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,",\n ").concat(e,",").concat(t+r-l*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var f=Math.min(a,o);i="M ".concat(e,",").concat(t+l*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(e+s*f,",").concat(t,"\n L ").concat(e+n-s*f,",").concat(t,"\n A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(e+n,",").concat(t+l*f,"\n L ").concat(e+n,",").concat(t+r-l*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(e+n-s*f,",").concat(t+r,"\n L ").concat(e+s*f,",").concat(t+r,"\n A ").concat(f,",").concat(f,",0,0,").concat(u,",").concat(e,",").concat(t+r-l*f," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},qU=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,l=t.height;if(Math.abs(a)>0&&Math.abs(l)>0){var s=Math.min(o,o+a),u=Math.max(o,o+a),c=Math.min(i,i+l),d=Math.max(i,i+l);return n>=s&&n<=u&&r>=c&&r<=d}return!1},GU={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YU=function(e){var t=UU(UU({},GU),e),n=g(),r=KU(v(-1),2),i=r[0],a=r[1];m((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var l=t.x,s=t.y,u=t.width,c=t.height,d=t.radius,f=t.className,p=t.animationEasing,h=t.animationDuration,y=t.animationBegin,b=t.isAnimationActive,w=t.isUpdateAnimationActive;if(l!==+l||s!==+s||u!==+u||c!==+c||0===u||0===c)return null;var x=$C("recharts-rectangle",f);return w?o.createElement(zU,{canBegin:i>0,from:{width:u,height:c,x:l,y:s},to:{width:u,height:c,x:l,y:s},duration:h,animationEasing:p,isActive:w},(function(e){var r=e.width,a=e.height,l=e.x,s=e.y;return o.createElement(zU,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:h,isActive:b,easing:p},o.createElement("path",FU({},uO(t,!0),{className:x,d:ZU(l,s,r,a,d),ref:n})))})):o.createElement("path",FU({},uO(t,!0),{className:x,d:ZU(l,s,u,c,d)}))},XU=["points","className","baseLinePoints","connectNulls"];function JU(){return JU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JU.apply(this,arguments)}function QU(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function eW(e){return function(e){if(Array.isArray(e))return tW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tW(e,t)}(e)||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 tW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nW=function(e){return e&&e.x===+e.x&&e.y===+e.y},rW=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){nW(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),nW(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(eW(e),eW(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},oW=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,a=QU(e,XU);if(!t||!t.length)return null;var l=$C("recharts-polygon",n);if(r&&r.length){var s=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=rW(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(rW(t.reverse(),n).slice(1))}(t,r,i);return o.createElement("g",{className:l},o.createElement("path",JU({},uO(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),s?o.createElement("path",JU({},uO(a,!0),{fill:"none",d:rW(t,i)})):null,s?o.createElement("path",JU({},uO(a,!0),{fill:"none",d:rW(r,i)})):null)}var c=rW(t,i);return o.createElement("path",JU({},uO(a,!0),{fill:"Z"===c.slice(-1)?a.fill:"none",className:l,d:c}))};function iW(){return iW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iW.apply(this,arguments)}var aW=function(e){var t=e.cx,n=e.cy,r=e.r,i=$C("recharts-dot",e.className);return t===+t&&n===+n&&r===+r?o.createElement("circle",iW({},uO(e,!1),qE(e),{className:i,cx:t,cy:n,r:r})):null};function lW(e){return lW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lW(e)}var sW=["x","y","top","left","width","height","className"];function uW(){return uW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uW.apply(this,arguments)}function cW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dW(e,t,n){return t=function(e){var t=function(e,t){if("object"!=lW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lW(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var pW=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},hW=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.top,l=void 0===a?0:a,s=e.left,u=void 0===s?0:s,c=e.width,d=void 0===c?0:c,f=e.height,p=void 0===f?0:f,h=e.className,g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cW(Object(n),!0).forEach((function(t){dW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:n,y:i,top:l,left:u,width:d,height:p},fW(e,sW));return LE(n)&&LE(i)&&LE(d)&&LE(p)&&LE(l)&&LE(u)?o.createElement("path",uW({},uO(g,!0),{className:$C("recharts-cross",h),d:pW(n,i,d,p,l,u)})):null},gW=mB,mW=vB,vW=UA;var yW=function(e,t){return e&&e.length?gW(e,vW(t),mW):void 0},bW=Mt(yW),wW=mB,xW=UA,CW=SB;var SW=function(e,t){return e&&e.length?wW(e,xW(t),CW):void 0},kW=Mt(SW),EW=["cx","cy","angle","ticks","axisLine"],OW=["ticks","tick","angle","tickFormatter","stroke"];function DW(e){return DW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DW(e)}function _W(){return _W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_W.apply(this,arguments)}function PW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PW(Object(n),!0).forEach((function(t){NW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function MW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$W(r.key),r)}}function jW(e,t,n){return t=IW(t),function(e,t){if(t&&("object"===DW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,LW()?Reflect.construct(t,n||[],IW(e).constructor):t.apply(e,n))}function LW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LW=function(){return!!e})()}function IW(e){return IW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IW(e)}function RW(e,t){return RW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},RW(e,t)}function NW(e,t,n){return(t=$W(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $W(e){var t=function(e,t){if("object"!=DW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=DW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==DW(t)?t:String(t)}var zW=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),jW(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&RW(e,t)}(t,x),n=t,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return BK(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=bW(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:kW(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=e.axisLine,l=AW(e,EW),s=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=BK(t,n,s[0],r),c=BK(t,n,s[1],r),d=TW(TW(TW({},uO(l,!1)),{},{fill:"none"},uO(a,!1)),{},{x1:u.x,y1:u.y,x2:c.x,y2:c.y});return o.createElement("line",_W({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.angle,l=n.tickFormatter,s=n.stroke,u=AW(n,OW),c=this.getTickTextAnchor(),d=uO(u,!1),f=uO(i,!1),p=r.map((function(n,r){var u=e.getTickValueCoord(n),p=TW(TW(TW(TW({textAnchor:c,transform:"rotate(".concat(90-a,", ").concat(u.x,", ").concat(u.y,")")},d),{},{stroke:"none",fill:s},f),{},{index:r},u),{},{payload:n});return o.createElement(wO,_W({className:$C("recharts-polar-radius-axis-tick",UK(i)),key:"tick-".concat(n.coordinate)},GE(e.props,n,r)),t.renderTickItem(i,p,l?l(n.value,r):n.value))}));return o.createElement(wO,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?o.createElement(wO,{className:$C("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),r&&this.renderTicks(),aV.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(MI,_W({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],r&&MW(n.prototype,r),i&&MW(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();function BW(e){return BW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BW(e)}function FW(){return FW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FW.apply(this,arguments)}function KW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KW(Object(n),!0).forEach((function(t){GW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YW(r.key),r)}}function UW(e,t,n){return t=ZW(t),function(e,t){if(t&&("object"===BW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WW()?Reflect.construct(t,n||[],ZW(e).constructor):t.apply(e,n))}function WW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WW=function(){return!!e})()}function ZW(e){return ZW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZW(e)}function qW(e,t){return qW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qW(e,t)}function GW(e,t,n){return(t=YW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YW(e){var t=function(e,t){if("object"!=BW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BW(t)?t:String(t)}NW(zW,"displayName","PolarRadiusAxis"),NW(zW,"axisType","radiusAxis"),NW(zW,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var XW=Math.PI/180,JW=1e-5,QW=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),UW(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qW(e,t)}(t,x),n=t,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,l=BK(n,r,o,e.coordinate),s=BK(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:l.x,y1:l.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*XW);return n>JW?"outer"===t?"start":"end":n<-JW?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,l=VW(VW({},uO(this.props,!1)),{},{fill:"none"},uO(i,!1));if("circle"===a)return o.createElement(aW,FW({className:"recharts-polar-angle-axis-line"},l,{cx:t,cy:n,r:r}));var s=this.props.ticks.map((function(e){return BK(t,n,r,e.coordinate)}));return o.createElement(oW,FW({className:"recharts-polar-angle-axis-line"},l,{points:s}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.tickLine,l=n.tickFormatter,s=n.stroke,u=uO(this.props,!1),c=uO(i,!1),d=VW(VW({},u),{},{fill:"none"},uO(a,!1)),f=r.map((function(n,r){var f=e.getTickLineCoord(n),p=VW(VW(VW({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:s},c),{},{index:r,payload:n,x:f.x2,y:f.y2});return o.createElement(wO,FW({className:$C("recharts-polar-angle-axis-tick",UK(i)),key:"tick-".concat(n.coordinate)},GE(e.props,n,r)),a&&o.createElement("line",FW({className:"recharts-polar-angle-axis-tick-line"},d,f)),i&&t.renderTickItem(i,p,l?l(n.value,r):n.value))}));return o.createElement(wO,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:o.createElement(wO,{className:$C("recharts-polar-angle-axis",this.props.className)},r&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(MI,FW({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],r&&HW(n.prototype,r),i&&HW(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();GW(QW,"displayName","PolarAngleAxis"),GW(QW,"axisType","angleAxis"),GW(QW,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var eZ=XP(Object.getPrototypeOf,Object),tZ=tS,nZ=eZ,rZ=nS,oZ=Function.prototype,iZ=Object.prototype,aZ=oZ.toString,lZ=iZ.hasOwnProperty,sZ=aZ.call(Object);var uZ=Mt((function(e){if(!rZ(e)||"[object Object]"!=tZ(e))return!1;var t=nZ(e);if(null===t)return!0;var n=lZ.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&aZ.call(n)==sZ})),cZ=tS,dZ=nS;var fZ=Mt((function(e){return!0===e||!1===e||dZ(e)&&"[object Boolean]"==cZ(e)}));function pZ(e){return pZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pZ(e)}function hZ(){return hZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hZ.apply(this,arguments)}function gZ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mZ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mZ(e,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 mZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vZ(Object(n),!0).forEach((function(t){bZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bZ(e,t,n){return t=function(e){var t=function(e,t){if("object"!=pZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=pZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pZ(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wZ,xZ=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},CZ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},SZ=function(e){var t=yZ(yZ({},CZ),e),n=g(),r=gZ(v(-1),2),i=r[0],a=r[1];m((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch(e){}}),[]);var l=t.x,s=t.y,u=t.upperWidth,c=t.lowerWidth,d=t.height,f=t.className,p=t.animationEasing,h=t.animationDuration,y=t.animationBegin,b=t.isUpdateAnimationActive;if(l!==+l||s!==+s||u!==+u||c!==+c||d!==+d||0===u&&0===c||0===d)return null;var w=$C("recharts-trapezoid",f);return b?o.createElement(zU,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:u,lowerWidth:c,height:d,x:l,y:s},duration:h,animationEasing:p,isActive:b},(function(e){var r=e.upperWidth,a=e.lowerWidth,l=e.height,s=e.x,u=e.y;return o.createElement(zU,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:h,easing:p},o.createElement("path",hZ({},uO(t,!0),{className:w,d:xZ(s,u,r,a,l),ref:n})))})):o.createElement("g",null,o.createElement("path",hZ({},uO(t,!0),{className:w,d:xZ(l,s,u,c,d)})))},kZ=["option","shapeType","propTransformer","activeClassName","isActive"];function EZ(e){return EZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},EZ(e)}function OZ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DZ(Object(n),!0).forEach((function(t){PZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PZ(e,t,n){return t=function(e){var t=function(e,t){if("object"!=EZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=EZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==EZ(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e,t){return _Z(_Z({},t),e)}function AZ(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return o.createElement(YU,n);case"trapezoid":return o.createElement(SZ,n);case"sector":return o.createElement(TV,n);case"symbols":if(function(e,t){return"symbols"===e}(t))return o.createElement(d_,n);break;default:return null}}function MZ(e){var t,n=e.option,r=e.shapeType,i=e.propTransformer,a=void 0===i?TZ:i,l=e.activeClassName,s=void 0===l?"recharts-active-shape":l,u=e.isActive,c=OZ(e,kZ);if(p(n))t=h(n,_Z(_Z({},c),function(e){return p(e)?e.props:e}(n)));else if(vS(n))t=n(c);else if(uZ(n)&&!fZ(n)){var d=a(n,c);t=o.createElement(AZ,{shapeType:r,elementProps:d})}else{var f=c;t=o.createElement(AZ,{shapeType:r,elementProps:f})}return u?o.createElement(wO,{className:s},t):t}function jZ(e,t){return null!=t&&"trapezoids"in e.props}function LZ(e,t){return null!=t&&"sectors"in e.props}function IZ(e,t){return null!=t&&"points"in e.props}function RZ(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&i}function NZ(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function $Z(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function zZ(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return jZ(e,t)?n="trapezoids":LZ(e,t)?n="sectors":IZ(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return jZ(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:LZ(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:IZ(e,t)?t.payload:{}}(n,t),a=r.filter((function(e,r){var a=$B(i,e),l=n.props[o].filter((function(e){var r=function(e,t){var n;return jZ(e,t)?n=RZ:LZ(e,t)?n=NZ:IZ(e,t)&&(n=$Z),n}(n,t);return r(e,t)})),s=n.props[o].indexOf(l[l.length-1]);return a&&r===s}));return r.indexOf(a[a.length-1])}function BZ(e){return BZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BZ(e)}function FZ(){return FZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FZ.apply(this,arguments)}function KZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KZ(Object(n),!0).forEach((function(t){YZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XZ(r.key),r)}}function UZ(e,t,n){return t=ZZ(t),function(e,t){if(t&&("object"===BZ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qZ(e)}(e,WZ()?Reflect.construct(t,n||[],ZZ(e).constructor):t.apply(e,n))}function WZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WZ=function(){return!!e})()}function ZZ(e){return ZZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZZ(e)}function qZ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GZ(e,t){return GZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GZ(e,t)}function YZ(e,t,n){return(t=XZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XZ(e){var t=function(e,t){if("object"!=BZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BZ(t)?t:String(t)}var JZ=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),YZ(qZ(n=UZ(this,t,[e])),"pieRef",null),YZ(qZ(n),"sectorRefs",[]),YZ(qZ(n),"id",NE("recharts-pie-")),YZ(qZ(n),"handleAnimationEnd",(function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),vS(e)&&e()})),YZ(qZ(n),"handleAnimationStart",(function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),vS(e)&&e()})),n.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&GZ(e,t)}(t,x),n=t,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,a=n.dataKey,l=n.valueKey,s=uO(this.props,!1),u=uO(r,!1),c=uO(i,!1),d=r&&r.offsetRadius||20,f=e.map((function(e,n){var f=(e.startAngle+e.endAngle)/2,p=BK(e.cx,e.cy,e.outerRadius+d,f),h=VZ(VZ(VZ(VZ({},s),e),{},{stroke:"none"},u),{},{index:n,textAnchor:t.getTextAnchor(p.x,e.cx)},p),g=VZ(VZ(VZ(VZ({},s),e),{},{fill:"none",stroke:e.fill},c),{},{index:n,points:[BK(e.cx,e.cy,e.outerRadius,f),p],key:"line"}),m=a;return gE(a)&&gE(l)?m="value":gE(a)&&(m=l),o.createElement(wO,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(n)},i&&t.renderLabelLineItem(i,g),t.renderLabelItem(r,h,lK(e,m)))}));return o.createElement(wO,{className:"recharts-pie-labels"},f)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return e.map((function(n,l){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==e.length)return null;var s=t.isActiveIndex(l),u=a&&t.hasActiveIndex()?a:null,c=s?r:u,d=VZ(VZ({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return o.createElement(wO,FZ({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},GE(t.props,n,l),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(l)}),o.createElement(MZ,FZ({option:c,isActive:s,shapeType:"sector"},d)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,l=t.animationEasing,s=t.animationId,u=this.state,c=u.prevSectors,d=u.prevIsAnimationActive;return o.createElement(zU,{begin:i,duration:a,isActive:r,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=c&&c[t],o=t>0?hE(e,"paddingAngle",0):0;if(n){var l=BE(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=VZ(VZ({},e),{},{startAngle:a+o,endAngle:a+l(r)+o});i.push(s),a=s.endAngle}else{var u=e.endAngle,d=e.startAngle,f=BE(0,u-d)(r),p=VZ(VZ({},e),{},{startAngle:a+o,endAngle:a+f+o});i.push(p),a=p.endAngle}})),o.createElement(wO,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&$B(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,a=t.label,l=t.cx,s=t.cy,u=t.innerRadius,c=t.outerRadius,d=t.isAnimationActive,f=this.state.isAnimationFinished;if(n||!r||!r.length||!LE(l)||!LE(s)||!LE(u)||!LE(c))return null;var p=$C("recharts-pie",i);return o.createElement(wO,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(r),aV.renderCallByParent(this.props,null,!1),(!d||f)&&xV.renderCallByParent(this.props,r,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(vS(e))return e(t);var n=$C("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return o.createElement(FV,FZ({},t,{type:"linear",className:n}))}},{key:"renderLabelItem",value:function(e,t,n){if(o.isValidElement(e))return o.cloneElement(e,t);var r=n;if(vS(e)&&(r=e(t),o.isValidElement(r)))return r;var i=$C("recharts-pie-label-text","boolean"==typeof e||vS(e)?"":e.className);return o.createElement(MI,FZ({},t,{alignmentBaseline:"middle",className:i}),r)}}],r&&HZ(n.prototype,r),i&&HZ(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();wZ=JZ,YZ(JZ,"displayName","Pie"),YZ(JZ,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!iL.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),YZ(JZ,"parseDeltaAngle",(function(e,t){return ME(t-e)*Math.min(Math.abs(t-e),360)})),YZ(JZ,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=uO(e.props,!1),i=iO(r,GL);return n&&n.length?n.map((function(e,t){return VZ(VZ(VZ({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return VZ(VZ({},o),e.props)})):[]})),YZ(JZ,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=FK(o,i);return{cx:r+$E(e.props.cx,o,o/2),cy:n+$E(e.props.cy,i,i/2),innerRadius:$E(e.props.innerRadius,a,0),outerRadius:$E(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),YZ(JZ,"getComposedData",(function(e){var t=e.item,n=e.offset,r=wZ.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,l=o.endAngle,s=o.paddingAngle,u=o.dataKey,c=o.nameKey,d=o.valueKey,f=o.tooltipType,p=Math.abs(t.props.minAngle),h=wZ.parseCoordinateOfPie(t,n),g=wZ.parseDeltaAngle(a,l),m=Math.abs(g),v=u;gE(u)&&gE(d)?(CO(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):gE(u)&&(CO(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=d);var y,b,w=r.filter((function(e){return 0!==lK(e,v,0)})).length,x=m-w*p-(m>=360?w:w-1)*s,C=r.reduce((function(e,t){var n=lK(t,v,0);return e+(LE(n)?n:0)}),0);C>0&&(y=r.map((function(e,t){var n,r=lK(e,v,0),o=lK(e,c,t),l=(LE(r)?r:0)/C,u=(n=t?b.endAngle+ME(g)*s*(0!==r?1:0):a)+ME(g)*((0!==r?p:0)+l*x),d=(n+u)/2,m=(h.innerRadius+h.outerRadius)/2,y=[{name:o,value:r,payload:e,dataKey:v,type:f}],w=BK(h.cx,h.cy,m,d);return b=VZ(VZ(VZ({percent:l,cornerRadius:i,name:o,tooltipPayload:y,midAngle:d,middleRadius:m,tooltipPosition:w},e),h),{},{value:lK(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:ME(g)*s})})));return VZ(VZ({},h),{},{sectors:y,data:r})}));var QZ=Math.ceil,eq=Math.max;var tq=function(e,t,n,r){for(var o=-1,i=eq(QZ((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},nq=AL,rq=1/0;var oq=function(e){return e?(e=nq(e))===rq||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},iq=tq,aq=Dj,lq=oq;var sq=Mt(function(e){return function(t,n,r){return r&&"number"!=typeof r&&aq(t,n,r)&&(n=r=void 0),t=lq(t),void 0===n?(n=t,t=0):n=lq(n),r=void 0===r?t<n?1:-1:lq(r),iq(t,n,r,e)}}());function uq(e){return uq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uq(e)}function cq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cq(Object(n),!0).forEach((function(t){fq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fq(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uq(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pq=["Webkit","Moz","O","ms"];function hq(e){return hq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hq(e)}function gq(){return gq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gq.apply(this,arguments)}function mq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mq(Object(n),!0).forEach((function(t){kq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eq(r.key),r)}}function bq(e,t,n){return t=xq(t),function(e,t){if(t&&("object"===hq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cq(e)}(e,wq()?Reflect.construct(t,n||[],xq(e).constructor):t.apply(e,n))}function wq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wq=function(){return!!e})()}function xq(e){return xq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xq(e)}function Cq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sq(e,t){return Sq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sq(e,t)}function kq(e,t,n){return(t=Eq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eq(e){var t=function(e,t){if("object"!=hq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hq(t)?t:String(t)}var Oq=function(e){return e.changedTouches&&!!e.changedTouches.length},Dq=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kq(Cq(n=bq(this,t,[e])),"handleDrag",(function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)})),kq(Cq(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])})),kq(Cq(n),"handleDragEnd",(function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:t,startIndex:o})})),n.detachDragEndListener()})),kq(Cq(n),"handleLeaveWrapper",(function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))})),kq(Cq(n),"handleEnterSlideOrTraveller",(function(){n.setState({isTextActive:!0})})),kq(Cq(n),"handleLeaveSlideOrTraveller",(function(){n.setState({isTextActive:!1})})),kq(Cq(n),"handleSlideDragStart",(function(e){var t=Oq(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()})),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(Cq(n),"startX"),endX:n.handleTravellerDragStart.bind(Cq(n),"endX")},n.state={},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sq(e,t)}(t,x),n=t,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var n=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,l=i.data.length-1,s=Math.min(n,r),u=Math.max(n,r),c=t.getIndexInRange(o,s),d=t.getIndexInRange(o,u);return{startIndex:c-c%a,endIndex:d===l?l:d-d%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=lK(n[e],o,e);return vS(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,s=i.travellerWidth,u=i.startIndex,c=i.endIndex,d=i.onChange,f=e.pageX-n;f>0?f=Math.min(f,a+l-s-o,a+l-s-r):f<0&&(f=Math.max(f,a-r,a-o));var p=this.getIndex({startX:r+f,endX:o+f});p.startIndex===u&&p.endIndex===c||!d||d(p),this.setState({startX:r+f,endX:o+f,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=Oq(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],l=this.props,s=l.x,u=l.width,c=l.travellerWidth,d=l.onChange,f=l.gap,p=l.data,h={startX:this.state.startX,endX:this.state.endX},g=e.pageX-n;g>0?g=Math.min(g,s+u-c-a):g<0&&(g=Math.max(g,s-a)),h[r]=a+g;var m=this.getIndex(h),v=m.startIndex,y=m.endIndex;this.setState(kq(kq({},r,a+g),"brushMoveStartX",e.pageX),(function(){var e;d&&(e=p.length-1,("startX"===r&&(o>i?v%f==0:y%f==0)||o<i&&y===e||"endX"===r&&(o>i?y%f==0:v%f==0)||o>i&&y===e)&&d(m))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,l=this.state[t],s=o.indexOf(l);if(-1!==s){var u=s+e;if(!(-1===u||u>=o.length)){var c=o[u];"startX"===t&&c>=a||"endX"===t&&c<=i||this.setState(kq({},t,c),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,l=e.stroke;return o.createElement("rect",{stroke:l,fill:a,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,l=e.children,s=e.padding,u=f.only(l);return u?o.cloneElement(u,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r=this,i=this.props,a=i.y,l=i.travellerWidth,s=i.height,u=i.traveller,c=i.ariaLabel,d=i.data,f=i.startIndex,p=i.endIndex,h=Math.max(e,this.props.x),g=vq(vq({},uO(this.props,!1)),{},{x:h,y:a,width:l,height:s}),m=c||"Min value: ".concat(d[f].name,", Max value: ").concat(d[p].name);return o.createElement(wO,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(u,g))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,l=n.travellerWidth,s=Math.min(e,t)+l,u=Math.max(Math.abs(t-e)-l,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:s,y:r,width:u,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,l=e.stroke,s=this.state,u=s.startX,c=s.endX,d={pointerEvents:"none",fill:l};return o.createElement(wO,{className:"recharts-brush-texts"},o.createElement(MI,gq({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,c)-5,y:r+i/2},d),this.getTextOfTick(t)),o.createElement(MI,gq({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,c)+a+5,y:r+i/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,l=e.width,s=e.height,u=e.alwaysShowText,c=this.state,d=c.startX,f=c.endX,p=c.isTextActive,h=c.isSlideMoving,g=c.isTravellerMoving,m=c.isTravellerFocused;if(!t||!t.length||!LE(i)||!LE(a)||!LE(l)||!LE(s)||l<=0||s<=0)return null;var v=$C("recharts-brush",n),y=1===o.Children.count(r),b=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=pq.reduce((function(e,r){return dq(dq({},e),{},fq({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return o.createElement(wO,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(d,f),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||g||m||u)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,l=Math.floor(n+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:n,width:r,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:t+1,y1:l,x2:t+r-1,y2:l,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:l+2,x2:t+r-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return o.isValidElement(e)?o.cloneElement(e,n):vS(e)?e(n):t.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,l=e.startIndex,s=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return vq({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var l=t.length,s=lR().domain(sq(0,l)).range([o,o+i-a]),u=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(r),scale:s,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:l,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&yq(n.prototype,r),i&&yq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();kq(Dq,"displayName","Brush"),kq(Dq,"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 _q=VM;var Pq=function(e,t){var n;return _q(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},Tq=F_,Aq=UA,Mq=Pq,jq=zC,Lq=Dj;var Iq=function(e,t,n){var r=jq(e)?Tq:Mq;return n&&Lq(e,t,n)&&(t=void 0),r(e,Aq(t))},Rq=Mt(Iq),Nq=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},$q=pj;var zq=function(e,t,n){"__proto__"==t&&$q?$q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Bq=zq,Fq=BM,Kq=UA;var Vq=function(e,t){var n={};return t=Kq(t),Fq(e,(function(e,r,o){Bq(n,r,t(e,r,o))})),n},Hq=Mt(Vq);var Uq=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},Wq=VM;var Zq=function(e,t){var n=!0;return Wq(e,(function(e,r,o){return n=!!t(e,r,o)})),n},qq=Uq,Gq=Zq,Yq=UA,Xq=zC,Jq=Dj;var Qq=function(e,t,n){var r=Xq(e)?qq:Gq;return n&&Jq(e,t,n)&&(t=void 0),r(e,Yq(t))},eG=Mt(Qq),tG=["x","y"];function nG(e){return nG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nG(e)}function rG(){return rG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rG.apply(this,arguments)}function oG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oG(Object(n),!0).forEach((function(t){aG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aG(e,t,n){return t=function(e){var t=function(e,t){if("object"!=nG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nG(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lG(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sG(e,t){var n=e.x,r=e.y,o=lG(e,tG),i="".concat(n),a=parseInt(i,10),l="".concat(r),s=parseInt(l,10),u="".concat(t.height||o.height),c=parseInt(u,10),d="".concat(t.width||o.width),f=parseInt(d,10);return iG(iG(iG(iG(iG({},t),o),a?{x:a}:{}),s?{y:s}:{}),{},{height:c,width:f,name:t.name,radius:t.radius})}function uG(e){return o.createElement(MZ,rG({shapeType:"rectangle",propTransformer:sG,activeClassName:"recharts-active-bar"},e))}var cG,dG=["value","background"];function fG(e){return fG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fG(e)}function pG(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function hG(){return hG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hG.apply(this,arguments)}function gG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gG(Object(n),!0).forEach((function(t){SG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kG(r.key),r)}}function yG(e,t,n){return t=wG(t),function(e,t){if(t&&("object"===fG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xG(e)}(e,bG()?Reflect.construct(t,n||[],wG(e).constructor):t.apply(e,n))}function bG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bG=function(){return!!e})()}function wG(e){return wG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wG(e)}function xG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CG(e,t){return CG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CG(e,t)}function SG(e,t,n){return(t=kG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kG(e){var t=function(e,t){if("object"!=fG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fG(t)?t:String(t)}var EG=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SG(xG(e=yG(this,t,[].concat(r))),"state",{isAnimationFinished:!1}),SG(xG(e),"id",NE("recharts-bar-")),SG(xG(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),SG(xG(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CG(e,t)}(t,x),n=t,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.dataKey,a=n.activeIndex,l=n.activeBar,s=uO(this.props,!1);return e&&e.map((function(e,n){var u=n===a,c=u?l:r,d=mG(mG(mG({},s),e),{},{isActive:u,option:c,index:n,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return o.createElement(wO,hG({className:"recharts-bar-rectangle"},GE(t.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),o.createElement(uG,d))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,l=t.animationDuration,s=t.animationEasing,u=t.animationId,c=this.state.prevData;return o.createElement(zU,{begin:a,duration:l,isActive:i,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var i=t.t,a=n.map((function(e,t){var n=c&&c[t];if(n){var o=BE(n.x,e.x),a=BE(n.y,e.y),l=BE(n.width,e.width),s=BE(n.height,e.height);return mG(mG({},e),{},{x:o(i),y:a(i),width:l(i),height:s(i)})}if("horizontal"===r){var u=BE(0,e.height)(i);return mG(mG({},e),{},{y:e.y+e.height-u,height:u})}var d=BE(0,e.width)(i);return mG(mG({},e),{},{width:d})}));return o.createElement(wO,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&$B(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,i=t.activeIndex,a=uO(this.props.background,!1);return n.map((function(t,n){t.value;var l=t.background,s=pG(t,dG);if(!l)return null;var u=mG(mG(mG(mG(mG({},s),{},{fill:"#eee"},l),a),GE(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return o.createElement(uG,hG({option:e.props.background,isActive:n===i},u))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,l=n.layout,s=iO(n.children,GF);if(!s)return null;var u="vertical"===l?r[0].height/2:r[0].width/2,c=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:lK(e,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(wO,d,s.map((function(e){return o.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:i,yAxis:a,layout:l,offset:u,dataPointFormatter:c})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,l=e.left,s=e.top,u=e.width,c=e.height,d=e.isAnimationActive,f=e.background,p=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=$C("recharts-bar",r),m=i&&i.allowDataOverflow,v=a&&a.allowDataOverflow,y=m||v,b=gE(p)?this.id:p;return o.createElement(wO,{className:g},m||v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(b)},o.createElement("rect",{x:m?l:l-u/2,y:v?s:s-c/2,width:m?u:2*u,height:v?c:2*c}))):null,o.createElement(wO,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(b,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,b),(!d||h)&&xV.renderCallByParent(this.props,n))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&vG(n.prototype,r),i&&vG(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();function OG(e){return OG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OG(e)}function DG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AG(r.key),r)}}function _G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_G(Object(n),!0).forEach((function(t){TG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TG(e,t,n){return(t=AG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AG(e){var t=function(e,t){if("object"!=OG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=OG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==OG(t)?t:String(t)}cG=EG,SG(EG,"displayName","Bar"),SG(EG,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!iL.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),SG(EG,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,l=e.xAxisTicks,s=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,d=e.displayedData,f=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,g=n.props,m=g.dataKey,v=g.children,y=g.minPointSize,b="horizontal"===h?a:i,w=u?b.scale.domain():null,x=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),C=iO(v,GL),S=d.map((function(e,t){var r,d,f,g,v,b;u?r=function(e,t){if(!t||2!==t.length||!LE(t[0])||!LE(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!LE(e[0])||e[0]<n)&&(o[0]=n),(!LE(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(u[c+t],w):(r=lK(e,m),Array.isArray(r)||(r=[x,r]));var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||("production"!==process.env.NODE_ENV?VF(!1,"minPointSize callback function received a value with type of ".concat(nG(n),". Currently only numbers are supported.")):VF(!1)),t)}}(y,cG.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var k,E=[a.scale(r[0]),a.scale(r[1])],O=E[0],D=E[1];d=kK({axis:i,ticks:l,bandSize:o,offset:p.offset,entry:e,index:t}),f=null!==(k=null!=D?D:O)&&void 0!==k?k:void 0,g=p.size;var _=O-D;if(v=Number.isNaN(_)?0:_,b={x:d,y:a.y,width:g,height:a.height},Math.abs(S)>0&&Math.abs(v)<Math.abs(S)){var P=ME(v||S)*(Math.abs(S)-Math.abs(v));f-=P,v+=P}}else{var T=[i.scale(r[0]),i.scale(r[1])],A=T[0],M=T[1];if(d=A,f=kK({axis:a,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),g=M-A,v=p.size,b={x:i.x,y:f,width:i.width,height:v},Math.abs(S)>0&&Math.abs(g)<Math.abs(S))g+=ME(g||S)*(Math.abs(S)-Math.abs(g))}return mG(mG(mG({},e),{},{x:d,y:f,width:g,height:v,value:u?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[AK(n,e)],tooltipPosition:{x:d+g/2,y:f+v/2}})}));return mG({data:S,layout:h},f)}));var MG=function(e,t,n,r,o){var i=e.width,a=e.height,l=e.layout,s=e.children,u=Object.keys(t),c={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},d=!!aO(s,EG);return u.reduce((function(i,a){var s,u,f,p,h,g=t[a],m=g.orientation,v=g.domain,y=g.padding,b=void 0===y?{}:y,w=g.mirror,x=g.reversed,C="".concat(m).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var S=v[1]-v[0],k=1/0,E=g.categoricalDomain.sort();if(E.forEach((function(e,t){t>0&&(k=Math.min((e||0)-(E[t-1]||0),k))})),Number.isFinite(k)){var O=k/S,D="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(s=O*D/2),"no-gap"===g.padding){var _=$E(e.barCategoryGap,O*D),P=O*D/2;s=P-_-(P-_)/D*_}}}u="xAxis"===r?[n.left+(b.left||0)+(s||0),n.left+n.width-(b.right||0)-(s||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(s||0),n.top+n.height-(b.bottom||0)-(s||0)]:g.range,x&&(u=[u[1],u[0]]);var T=vK(g,o,d),A=T.scale,M=T.realScaleType;A.domain(v).range(u),bK(A);var j=CK(A,PG(PG({},g),{},{realScaleType:M}));"xAxis"===r?(h="top"===m&&!w||"bottom"===m&&w,f=n.left,p=c[C]-h*g.height):"yAxis"===r&&(h="left"===m&&!w||"right"===m&&w,f=c[C]-h*g.width,p=n.top);var L=PG(PG(PG({},g),j),{},{realScaleType:M,x:f,y:p,scale:A,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return L.bandSize=PK(L,j),g.hide||"xAxis"!==r?g.hide||(c[C]+=(h?-1:1)*L.width):c[C]+=(h?-1:1)*L.height,PG(PG({},i),{},TG({},a,L))}),{})},jG=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},LG=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&DG(t.prototype,n),r&&DG(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();TG(LG,"EPS",1e-4);var IG=function(e){var t=Object.keys(e).reduce((function(t,n){return PG(PG({},t),{},TG({},n,LG.create(e[n])))}),{});return PG(PG({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return Hq(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return eG(e,(function(e,n){return t[n].isInRange(e)}))}})};var RG=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)},NG=UA,$G=iT,zG=uT;var BG=function(e){return function(t,n,r){var o=Object(t);if(!$G(t)){var i=NG(n);t=zG(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},FG=oq;var KG=WA,VG=UA,HG=function(e){var t=FG(e),n=t%1;return t==t?n?t-n:t:0},UG=Math.max;var WG=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:HG(n);return o<0&&(o=UG(r+o,0)),KG(e,VG(t),o)},ZG=Mt(BG(WG)),qG=Bk((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}));function GG(e){return GG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GG(e)}var YG=i(void 0),XG=i(void 0),JG=i(void 0),QG=i({}),eY=i(void 0),tY=i(0),nY=i(0),rY=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,a=e.clipPathId,l=e.children,s=e.width,u=e.height,c=qG(i);return o.createElement(YG.Provider,{value:n},o.createElement(XG.Provider,{value:r},o.createElement(QG.Provider,{value:i},o.createElement(JG.Provider,{value:c},o.createElement(eY.Provider,{value:a},o.createElement(tY.Provider,{value:u},o.createElement(nY.Provider,{value:s},l)))))))};function oY(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var iY=function(e){var t=s(YG);null==t&&("production"!==process.env.NODE_ENV?VF(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):VF(!1));var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?VF(!1,'Could not find xAxis by id "'.concat(e,'" [').concat(GG(e),"]. ").concat(oY(t))):VF(!1)),n},aY=function(e){var t=s(XG);null==t&&("production"!==process.env.NODE_ENV?VF(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):VF(!1));var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?VF(!1,'Could not find yAxis by id "'.concat(e,'" [').concat(GG(e),"]. ").concat(oY(t))):VF(!1)),n},lY=function(){return s(nY)},sY=function(){return s(tY)};function uY(e){return uY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uY(e)}function cY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cY(Object(n),!0).forEach((function(t){fY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hY(e,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 hY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gY(){return gY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gY.apply(this,arguments)}function mY(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,l=e.shape,u=e.className,c=e.alwaysShow,d=s(eY),f=iY(i),p=aY(a),h=s(JG);if(!d||!h)return null;CO(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=function(e,t,n,r,o,i,a,l,s){var u=o.x,c=o.y,d=o.width,f=o.height;if(n){var p=s.y,h=e.y.apply(p,{position:i});if(Nq(s,"discard")&&!e.y.isInRange(h))return null;var g=[{x:u+d,y:h},{x:u,y:h}];return"left"===l?g.reverse():g}if(t){var m=s.x,v=e.x.apply(m,{position:i});if(Nq(s,"discard")&&!e.x.isInRange(v))return null;var y=[{x:v,y:c+f},{x:v,y:c}];return"top"===a?y.reverse():y}if(r){var b=s.segment.map((function(t){return e.apply(t,{position:i})}));return Nq(s,"discard")&&Rq(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(IG({x:f.scale,y:p.scale}),IE(t),IE(n),r&&2===r.length,h,e.position,f.orientation,p.orientation,e);if(!g)return null;var m=pY(g,2),v=m[0],y=v.x,b=v.y,w=m[1],x=w.x,C=w.y,S=dY(dY({clipPath:Nq(e,"hidden")?"url(#".concat(d,")"):void 0},uO(e,!0)),{},{x1:y,y1:b,x2:x,y2:C});return o.createElement(wO,{className:$C("recharts-reference-line",u)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement("line",gY({},t,{className:"recharts-reference-line-line"}))}(l,S),aV.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return jG({x:t,y:n},{x:r,y:o})}({x1:y,y1:b,x2:x,y2:C})))}function vY(e){return vY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vY(e)}function yY(){return yY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yY.apply(this,arguments)}function bY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bY(Object(n),!0).forEach((function(t){xY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=vY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}mY.displayName="ReferenceLine",mY.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function CY(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,a=e.clipPathId,l=IE(t),s=IE(n);if(CO(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!s)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=IG({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return Nq(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!u)return null;var c=u.x,d=u.y,f=e.shape,p=e.className,h=wY(wY({clipPath:Nq(e,"hidden")?"url(#".concat(a,")"):void 0},uO(e,!0)),{},{cx:c,cy:d});return o.createElement(wO,{className:$C("recharts-reference-dot",p)},CY.renderDot(f,h),aV.renderCallByParent(e,{x:c-r,y:d-r,width:2*r,height:2*r}))}function SY(e){return SY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SY(e)}function kY(){return kY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kY.apply(this,arguments)}function EY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EY(Object(n),!0).forEach((function(t){DY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=SY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=SY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==SY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}CY.displayName="ReferenceDot",CY.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},CY.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(aW,yY({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function _Y(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.className,l=e.alwaysShow,s=e.clipPathId;CO(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=IE(t),c=IE(n),d=IE(r),f=IE(i),p=e.shape;if(!(u||c||d||f||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,l=o.y1,s=o.y2,u=o.xAxis,c=o.yAxis;if(!u||!c)return null;var d=IG({x:u.scale,y:c.scale}),f={x:e?d.x.apply(i,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},p={x:t?d.x.apply(a,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(s,{position:"end"}):d.y.rangeMax};return!Nq(o,"discard")||d.isInRange(f)&&d.isInRange(p)?jG(f,p):null}(u,c,d,f,e);if(!h&&!p)return null;var g=Nq(e,"hidden")?"url(#".concat(s,")"):void 0;return o.createElement(wO,{className:$C("recharts-reference-area",a)},_Y.renderRect(p,OY(OY({clipPath:g},uO(e,!0)),h)),aV.renderCallByParent(e,h))}function PY(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function TY(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function AY(e){return AY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AY(e)}function MY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MY(Object(n),!0).forEach((function(t){LY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=AY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=AY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IY(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,l=e.orientation,s=e.interval,u=e.tickFormatter,c=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(LE(s)||iL.isSsr)return function(e,t){return PY(e,t+1)}(o,"number"==typeof s&&LE(s)?s:0);var f=[],p="top"===l||"bottom"===l?"width":"height",h=c&&"width"===p?rI(c,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(e,r){var o=vS(u)?u(e.value,r):e.value;return"width"===p?function(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return RG(r,n)}(rI(o,{fontSize:t,letterSpacing:n}),h,d):rI(o,{fontSize:t,letterSpacing:n})[p]},m=o.length>=2?ME(o[1].coordinate-o[0].coordinate):1,v=function(e,t,n){var r="width"===n,o=e.x,i=e.y,a=e.width,l=e.height;return 1===t?{start:r?o:i,end:r?o+a:i+l}:{start:r?o+a:i+l,end:r?o:i}}(i,m,p);return"equidistantPreserveStart"===s?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),l=t.start,s=t.end,u=0,c=1,d=l,f=function(){var t=null==r?void 0:r[u];if(void 0===t)return{v:PY(r,c)};var i,a=u,f=function(){return void 0===i&&(i=n(t,a)),i},p=t.coordinate,h=0===u||TY(e,p,f,d,s);h||(u=0,d=l,c+=1),h&&(d=p+e*(f()/2+o),u+=c)};c<=a.length;)if(i=f())return i.v;return[]}(m,v,g,o,a):(f="preserveStart"===s||"preserveStartEnd"===s?function(e,t,n,r,o,i){var a=(r||[]).slice(),l=a.length,s=t.start,u=t.end;if(i){var c=r[l-1],d=n(c,l-1),f=e*(c.coordinate+e*d/2-u);a[l-1]=c=jY(jY({},c),{},{tickCoord:f>0?c.coordinate-f*e:c.coordinate}),TY(e,c.tickCoord,(function(){return d}),s,u)&&(u=c.tickCoord-e*(d/2+o),a[l-1]=jY(jY({},c),{},{isShow:!0}))}for(var p=i?l-1:l,h=function(t){var r,i=a[t],l=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var c=e*(i.coordinate-e*l()/2-s);a[t]=i=jY(jY({},i),{},{tickCoord:c<0?i.coordinate-c*e:i.coordinate})}else a[t]=i=jY(jY({},i),{},{tickCoord:i.coordinate});TY(e,i.tickCoord,l,s,u)&&(s=i.tickCoord+e*(l()/2+o),a[t]=jY(jY({},i),{},{isShow:!0}))},g=0;g<p;g++)h(g);return a}(m,v,g,o,a,"preserveStartEnd"===s):function(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,l=t.start,s=t.end,u=function(t){var r,u=i[t],c=function(){return void 0===r&&(r=n(u,t)),r};if(t===a-1){var d=e*(u.coordinate+e*c()/2-s);i[t]=u=jY(jY({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate})}else i[t]=u=jY(jY({},u),{},{tickCoord:u.coordinate});TY(e,u.tickCoord,c,l,s)&&(s=u.tickCoord-e*(c()/2+o),i[t]=jY(jY({},u),{},{isShow:!0}))},c=a-1;c>=0;c--)u(c);return i}(m,v,g,o,a),f.filter((function(e){return e.isShow})))}_Y.displayName="ReferenceArea",_Y.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},_Y.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(YU,kY({},t,{className:"recharts-reference-area-rect"}))};var RY=["viewBox"],NY=["viewBox"],$Y=["ticks"];function zY(e){return zY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zY(e)}function BY(){return BY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BY.apply(this,arguments)}function FY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FY(Object(n),!0).forEach((function(t){GY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VY(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function HY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YY(r.key),r)}}function UY(e,t,n){return t=ZY(t),function(e,t){if(t&&("object"===zY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WY()?Reflect.construct(t,n||[],ZY(e).constructor):t.apply(e,n))}function WY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WY=function(){return!!e})()}function ZY(e){return ZY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZY(e)}function qY(e,t){return qY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qY(e,t)}function GY(e,t,n){return(t=YY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YY(e){var t=function(e,t){if("object"!=zY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zY(t)?t:String(t)}var XY=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=UY(this,t,[e])).state={fontSize:"",letterSpacing:""},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qY(e,t)}(t,C),n=t,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=VY(e,RY),o=this.props,i=o.viewBox,a=VY(o,NY);return!KE(n,i)||!KE(r,a)||!KE(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,l=this.props,s=l.x,u=l.y,c=l.width,d=l.height,f=l.orientation,p=l.tickSize,h=l.mirror,g=l.tickMargin,m=h?-1:1,v=e.tickSize||p,y=LE(e.tickCoord)?e.tickCoord:e.coordinate;switch(f){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*d)-m*v)-m*g,i=y;break;case"left":r=o=e.coordinate,i=(t=(n=s+ +!h*c)-m*v)-m*g,a=y;break;case"right":r=o=e.coordinate,i=(t=(n=s+ +h*c)+m*v)+m*g,a=y;break;default:t=n=e.coordinate,a=(r=(o=u+ +h*d)+m*v)+m*g,i=y}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,l=e.mirror,s=e.axisLine,u=KY(KY(KY({},uO(this.props,!1)),uO(s,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var c=+("top"===a&&!l||"bottom"===a&&l);u=KY(KY({},u),{},{x1:t,y1:n+c*i,x2:t+r,y2:n+c*i})}else{var d=+("left"===a&&!l||"right"===a&&l);u=KY(KY({},u),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return o.createElement("line",BY({},u,{className:$C("recharts-cartesian-axis-line",hE(s,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var i=this,a=this.props,l=a.tickLine,s=a.stroke,u=a.tick,c=a.tickFormatter,d=a.unit,f=IY(KY(KY({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=uO(this.props,!1),m=uO(u,!1),v=KY(KY({},g),{},{fill:"none"},uO(l,!1)),y=f.map((function(e,n){var r=i.getTickLineCoord(e),a=r.line,y=r.tick,b=KY(KY(KY(KY({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:s},m),y),{},{index:n,payload:e,visibleTicksCount:f.length,tickFormatter:c});return o.createElement(wO,BY({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},GE(i.props,e,n)),l&&o.createElement("line",BY({},v,a,{className:$C("recharts-cartesian-axis-tick-line",hE(l,"className"))})),u&&t.renderTickItem(u,b,"".concat(vS(c)?c(e.value,n):e.value).concat(d||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,l=t.className;if(t.hide)return null;var s=this.props,u=s.ticks,c=VY(s,$Y),d=u;return vS(a)&&(d=u&&u.length>0?a(this.props):a(c)),r<=0||i<=0||!d||!d.length?null:o.createElement(wO,{className:$C("recharts-cartesian-axis",l),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),aV.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):vS(e)?e(t):o.createElement(MI,BY({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&HY(n.prototype,r),i&&HY(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();GY(XY,"displayName","CartesianAxis"),GY(XY,"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 JY=["x1","y1","x2","y2","key"],QY=["offset"];function eX(e){return eX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eX(e)}function tX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tX(Object(n),!0).forEach((function(t){rX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rX(e,t,n){return t=function(e){var t=function(e,t){if("object"!=eX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eX(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oX(){return oX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oX.apply(this,arguments)}function iX(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var aX=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,i=e.y,a=e.width,l=e.height;return o.createElement("rect",{x:r,y:i,width:a,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function lX(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(vS(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,l=t.y2,s=t.key,u=iX(t,JY),c=uO(u,!1);c.offset;var d=iX(c,QY);n=o.createElement("line",oX({},d,{x1:r,y1:i,x2:a,y2:l,fill:"none",key:s}))}return n}function sX(e){var t=e.x,n=e.width,r=e.horizontal,i=void 0===r||r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(r,o){var a=nX(nX({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(o),index:o});return lX(i,a)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function uX(e){var t=e.y,n=e.height,r=e.vertical,i=void 0===r||r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(r,o){var a=nX(nX({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(o),index:o});return lX(i,a)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function cX(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,l=e.height,s=e.horizontalPoints,u=e.horizontal;if(!(void 0===u||u)||!t||!t.length)return null;var c=s.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==c[0]&&c.unshift(0);var d=c.map((function(e,s){var u=!c[s+1]?i+l-e:c[s+1]-e;if(u<=0)return null;var d=s%t.length;return o.createElement("rect",{key:"react-".concat(s),y:e,x:r,height:u,width:a,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function dX(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,i=e.fillOpacity,a=e.x,l=e.y,s=e.width,u=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var d=c.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==d[0]&&d.unshift(0);var f=d.map((function(e,t){var n=!d[t+1]?a+s-e:d[t+1]-e;if(n<=0)return null;var c=t%r.length;return o.createElement("rect",{key:"react-".concat(t),x:e,y:l,width:n,height:u,stroke:"none",fill:r[c],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var fX=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return pK(IY(nX(nX(nX({},XY.defaultProps),n),{},{ticks:hK(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},pX=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return pK(IY(nX(nX(nX({},XY.defaultProps),n),{},{ticks:hK(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},hX={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function gX(e){var t,n,r,i,a,l,u,c,d=lY(),f=sY(),p=s(QG),h=nX(nX({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:hX.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:hX.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:hX.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:hX.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:hX.vertical,verticalFill:null!==(l=e.verticalFill)&&void 0!==l?l:hX.verticalFill,x:LE(e.x)?e.x:p.left,y:LE(e.y)?e.y:p.top,width:LE(e.width)?e.width:p.width,height:LE(e.height)?e.height:p.height}),g=h.x,m=h.y,v=h.width,y=h.height,b=h.syncWithTicks,w=h.horizontalValues,x=h.verticalValues,C=(u=s(YG),zE(u)),S=(c=s(XG),ZG(c,(function(e){return eG(e.domain,Number.isFinite)}))||zE(c));if(!LE(v)||v<=0||!LE(y)||y<=0||!LE(g)||g!==+g||!LE(m)||m!==+m)return null;var k=h.verticalCoordinatesGenerator||fX,E=h.horizontalCoordinatesGenerator||pX,O=h.horizontalPoints,D=h.verticalPoints;if((!O||!O.length)&&vS(E)){var _=w&&w.length,P=E({yAxis:S?nX(nX({},S),{},{ticks:_?w:S.ticks}):void 0,width:d,height:f,offset:p},!!_||b);CO(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(eX(P),"]")),Array.isArray(P)&&(O=P)}if((!D||!D.length)&&vS(k)){var T=x&&x.length,A=k({xAxis:C?nX(nX({},C),{},{ticks:T?x:C.ticks}):void 0,width:d,height:f,offset:p},!!T||b);CO(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(eX(A),"]")),Array.isArray(A)&&(D=A)}return o.createElement("g",{className:"recharts-cartesian-grid"},o.createElement(aX,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height}),o.createElement(sX,oX({},h,{offset:p,horizontalPoints:O,xAxis:C,yAxis:S})),o.createElement(uX,oX({},h,{offset:p,verticalPoints:D,xAxis:C,yAxis:S})),o.createElement(cX,oX({},h,{horizontalPoints:O})),o.createElement(dX,oX({},h,{verticalPoints:D})))}gX.displayName="CartesianGrid";var mX=["type","layout","connectNulls","ref"];function vX(e){return vX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vX(e)}function yX(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bX(){return bX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bX.apply(this,arguments)}function wX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wX(Object(n),!0).forEach((function(t){TX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CX(e){return function(e){if(Array.isArray(e))return SX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return SX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SX(e,t)}(e)||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 SX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AX(r.key),r)}}function EX(e,t,n){return t=DX(t),function(e,t){if(t&&("object"===vX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _X(e)}(e,OX()?Reflect.construct(t,n||[],DX(e).constructor):t.apply(e,n))}function OX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(OX=function(){return!!e})()}function DX(e){return DX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},DX(e)}function _X(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PX(e,t){return PX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},PX(e,t)}function TX(e,t,n){return(t=AX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AX(e){var t=function(e,t){if("object"!=vX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vX(t)?t:String(t)}var MX=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return TX(_X(e=EX(this,t,[].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),TX(_X(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),TX(_X(e),"getStrokeDasharray",(function(n,r,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(r,n);for(var a=Math.floor(n/i),l=n%i,s=r-n,u=[],c=0,d=0;c<o.length;d+=o[c],++c)if(d+o[c]>l){u=[].concat(CX(o.slice(0,c)),[l-d]);break}var f=u.length%2==0?[0,s]:[s];return[].concat(CX(t.repeat(o,a)),CX(u),f).map((function(e){return"".concat(e,"px")})).join(", ")})),TX(_X(e),"id",NE("recharts-line-")),TX(_X(e),"pathRef",(function(t){e.mainCurve=t})),TX(_X(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),TX(_X(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PX(e,t)}(t,x),n=t,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,a=n.yAxis,l=n.layout,s=iO(n.children,GF);if(!s)return null;var u=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:lK(e.payload,t)}},c={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(wO,c,s.map((function(e){return o.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:r,xAxis:i,yAxis:a,layout:l,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,l=i.points,s=i.dataKey,u=uO(this.props,!1),c=uO(a,!0),d=l.map((function(e,n){var r=xX(xX(xX({key:"dot-".concat(n),r:3},u),c),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:n,payload:e.payload});return t.renderDotItem(a,r)})),f={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return o.createElement(wO,bX({className:"recharts-line-dots",key:"dots"},f),d)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,a=i.type,l=i.layout,s=i.connectNulls;i.ref;var u=yX(i,mX),c=xX(xX(xX({},uO(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:l,connectNulls:s});return o.createElement(FV,bX({},c,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,a=r.strokeDasharray,l=r.isAnimationActive,s=r.animationBegin,u=r.animationDuration,c=r.animationEasing,d=r.animationId,f=r.animateNewValues,p=r.width,h=r.height,g=this.state,m=g.prevPoints,v=g.totalLength;return o.createElement(zU,{begin:s,duration:u,isActive:l,easing:c,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(m){var l=m.length/i.length,s=i.map((function(e,t){var n=Math.floor(t*l);if(m[n]){var r=m[n],i=BE(r.x,e.x),a=BE(r.y,e.y);return xX(xX({},e),{},{x:i(o),y:a(o)})}if(f){var s=BE(2*p,e.x),u=BE(h/2,e.y);return xX(xX({},e),{},{x:s(o),y:u(o)})}return xX(xX({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(s,e,t)}var u,c=BE(0,v)(o);if(a){var d="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=n.getStrokeDasharray(c,v,d)}else u=n.generateSimpleStrokeDasharray(v,c);return n.renderCurveStatically(i,e,t,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,l=i.totalLength;return o&&r&&r.length&&(!a&&l>0||!$B(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,i=t.points,a=t.className,l=t.xAxis,s=t.yAxis,u=t.top,c=t.left,d=t.width,f=t.height,p=t.isAnimationActive,h=t.id;if(n||!i||!i.length)return null;var g=this.state.isAnimationFinished,m=1===i.length,v=$C("recharts-line",a),y=l&&l.allowDataOverflow,b=s&&s.allowDataOverflow,w=y||b,x=gE(h)?this.id:h,C=null!==(e=uO(r,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=C.r,k=void 0===S?3:S,E=C.strokeWidth,O=void 0===E?2:E,D=(function(e){return e&&"object"===QE(e)&&"cx"in e&&"cy"in e&&"r"in e}(r)?r:{}).clipDot,_=void 0===D||D,P=2*k+O;return o.createElement(wO,{className:v},y||b?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(x)},o.createElement("rect",{x:y?c:c-d/2,y:b?u:u-f/2,width:y?d:2*d,height:b?f:2*f})),!_&&o.createElement("clipPath",{id:"clipPath-dots-".concat(x)},o.createElement("rect",{x:c-P/2,y:u-P/2,width:d+P,height:f+P}))):null,!m&&this.renderCurve(w,x),this.renderErrorBar(w,x),(m||r)&&this.renderDots(w,_,x),(!p||g)&&xV.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(CX(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(CX(r),CX(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(vS(e))n=e(t);else{var r=$C("recharts-line-dot","boolean"!=typeof e?e.className:"");n=o.createElement(aW,bX({},t,{className:r}))}return n}}],r&&kX(n.prototype,r),i&&kX(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();function jX(){return jX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jX.apply(this,arguments)}TX(MX,"displayName","Line"),TX(MX,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!iL.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),TX(MX,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,l=e.bandSize,s=e.displayedData,u=e.offset,c=t.layout,d=s.map((function(e,t){var s=lK(e,a);return"horizontal"===c?{x:SK({axis:n,ticks:o,bandSize:l,entry:e,index:t}),y:gE(s)?null:r.scale(s),value:s,payload:e}:{x:gE(s)?null:n.scale(s),y:SK({axis:r,ticks:i,bandSize:l,entry:e,index:t}),value:s,payload:e}}));return xX({points:d,layout:c},u)}));var LX=function(e){var t=e.xAxisId,n=lY(),r=sY(),i=iY(t);return null==i?null:o.createElement(XY,jX({},i,{className:$C("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return hK(e,!0)}}))};function IX(){return IX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IX.apply(this,arguments)}LX.displayName="XAxis",LX.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 RX=function(e){var t=e.yAxisId,n=lY(),r=sY(),i=aY(t);return null==i?null:o.createElement(XY,IX({},i,{className:$C("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return hK(e,!0)}}))};function NX(e){return function(e){if(Array.isArray(e))return $X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $X(e,t)}(e)||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 $X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}RX.displayName="YAxis",RX.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 zX=function(e,t,n,r,o){var i=iO(e,mY),a=iO(e,CY),l=[].concat(NX(i),NX(a)),s=iO(e,_Y),u="".concat(r,"Id"),c=r[0],d=t;if(l.length&&(d=l.reduce((function(e,t){if(t.props[u]===n&&Nq(t.props,"extendDomain")&&LE(t.props[c])){var r=t.props[c];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),d)),s.length){var f="".concat(c,"1"),p="".concat(c,"2");d=s.reduce((function(e,t){if(t.props[u]===n&&Nq(t.props,"extendDomain")&&LE(t.props[f])&&LE(t.props[p])){var r=t.props[f],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),d)}return o&&o.length&&(d=o.reduce((function(e,t){return LE(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),d)),d},BX={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new o(r,i||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},l.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,o,i,a){var l=n?n+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,o),!0;case 5:return c.fn.call(c.context,t,r,o,i),!0;case 6:return c.fn.call(c.context,t,r,o,i,a),!0}for(u=1,s=new Array(d-1);u<d;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,o);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},l.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var l=this._events[i];if(l.fn)l.fn!==t||o&&!l.once||r&&l.context!==r||a(this,i);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||o&&!l[s].once||r&&l[s].context!==r)&&u.push(l[s]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l}(BX);var FX=new(Mt(BX.exports)),KX="recharts.syncMouseEvents";function VX(e){return VX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VX(e)}function HX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WX(r.key),r)}}function UX(e,t,n){return(t=WX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WX(e){var t=function(e,t){if("object"!=VX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=VX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VX(t)?t:String(t)}var ZX=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),UX(this,"activeIndex",0),UX(this,"coordinateList",[]),UX(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,i=void 0===o?null:o,a=e.layout,l=void 0===a?null:a,s=e.offset,u=void 0===s?null:s,c=e.mouseHandlerCallback,d=void 0===c?null:c;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=l?l:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=d?d: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(e){if(0!==this.coordinateList.length)switch(e.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(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,l=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,s=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,u=r+a+l,c=o+this.offset.top+i/2+s;this.mouseHandlerCallback({pageX:u,pageY:c})}}}],n&&HX(t.prototype,n),r&&HX(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qX(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[BK(t,n,r,o),BK(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function GX(e,t,n){var r,o,i,a;if("horizontal"===e)i=r=t.x,o=n.top,a=n.top+n.height;else if("vertical"===e)a=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return qX(t);var l=t.cx,s=t.cy,u=t.innerRadius,c=t.outerRadius,d=t.angle,f=BK(l,s,u,d),p=BK(l,s,c,d);r=f.x,o=f.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function YX(e){return YX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YX(e)}function XX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XX(Object(n),!0).forEach((function(t){QX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QX(e,t,n){return t=function(e){var t=function(e,t){if("object"!=YX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=YX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==YX(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eJ(e){var t,n=e.element,r=e.tooltipEventType,o=e.isActive,i=e.activeCoordinate,a=e.activePayload,s=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,d=e.layout,f=e.chartName;if(!n||!n.props.cursor||!o||!i||"ScatterChart"!==f&&"axis"!==r)return null;var g=FV;if("ScatterChart"===f)t=i,g=hW;else if("BarChart"===f)t=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(d,i,s,c),g=YU;else if("radial"===d){var m=qX(i),v=m.cx,y=m.cy,b=m.radius;t={cx:v,cy:y,startAngle:m.startAngle,endAngle:m.endAngle,innerRadius:b,outerRadius:b},g=TV}else t={points:GX(d,i,s)},g=FV;var w=JX(JX(JX(JX({stroke:"#ccc",pointerEvents:"none"},s),t),uO(n.props.cursor,!1)),{},{payload:a,payloadIndex:u,className:$C("recharts-tooltip-cursor",n.props.cursor.className)});return p(n.props.cursor)?h(n.props.cursor,w):l(g,w)}var tJ=["item"],nJ=["children","className","width","height","style","compact","title","desc"];function rJ(e){return rJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rJ(e)}function oJ(){return oJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oJ.apply(this,arguments)}function iJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||hJ(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 aJ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bJ(r.key),r)}}function sJ(e,t,n){return t=cJ(t),function(e,t){if(t&&("object"===rJ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dJ(e)}(e,uJ()?Reflect.construct(t,n||[],cJ(e).constructor):t.apply(e,n))}function uJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uJ=function(){return!!e})()}function cJ(e){return cJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cJ(e)}function dJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fJ(e,t){return fJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fJ(e,t)}function pJ(e){return function(e){if(Array.isArray(e))return gJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hJ(e)||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 hJ(e,t){if(e){if("string"==typeof e)return gJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gJ(e,t):void 0}}function gJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mJ(Object(n),!0).forEach((function(t){yJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yJ(e,t,n){return(t=bJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bJ(e){var t=function(e,t){if("object"!=rJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rJ(t)?t:String(t)}var wJ={xAxis:["bottom","top"],yAxis:["left","right"]},xJ={width:"100%",height:"100%"},CJ={x:0,y:0};function SJ(e){return e}var kJ=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,i=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(pJ(e),pJ(n)):e}),[]);return i.length>0?i:e&&e.length&&LE(r)&&LE(o)?e.slice(r,o+1):[]};function EJ(e){return"number"===e?[0,"auto"]:void 0}var OJ=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=kJ(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,l){var s,u,c=null!==(s=l.props.data)&&void 0!==s?s:t;(c&&e.dataStartIndex+e.dataEndIndex!==0&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?u=FE(void 0===c?a:c,i.dataKey,r):u=c&&c[n]||a[n];return u?[].concat(pJ(o),[AK(l,u)]):o}),[])},DJ=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,s=0;s<a;s++){var u=s>0?r[s-1].coordinate:r[a-1].coordinate,c=r[s].coordinate,d=s>=a-1?r[0].coordinate:r[s+1].coordinate,f=void 0;if(ME(c-u)!==ME(d-c)){var p=[];if(ME(d-c)===ME(l[1]-l[0])){f=d;var h=c+l[1]-l[0];p[0]=Math.min(h,(h+u)/2),p[1]=Math.max(h,(h+u)/2)}else{f=u;var g=d+l[1]-l[0];p[0]=Math.min(c,(g+c)/2),p[1]=Math.max(c,(g+c)/2)}var m=[Math.min(c,(f+c)/2),Math.max(c,(f+c)/2)];if(e>m[0]&&e<=m[1]||e>=p[0]&&e<=p[1]){i=r[s].index;break}}else{var v=Math.min(u,d),y=Math.max(u,d);if(e>(v+c)/2&&e<=(y+c)/2){i=r[s].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,s,l);if(u>=0&&s){var c=s[u]&&s[u].value,d=OJ(e,t,u,c),f=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return vJ(vJ(vJ({},r),BK(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var l=o.coordinate,s=r.angle;return vJ(vJ(vJ({},r),BK(r.cx,r.cy,l,s)),{},{angle:s,radius:l})}return CJ}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:c,activePayload:d,activeCoordinate:f}}return null},_J=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,u=e.layout,c=e.children,d=e.stackOffset,f=fK(u,o);return n.reduce((function(t,n){var p,h=n.props,g=h.type,m=h.dataKey,v=h.allowDataOverflow,y=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var S,k,E,O=kJ(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:l,dataEndIndex:s}),D=O.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&LE(r)&&LE(o))return!0}return!1})(n.props.domain,v,g)&&(S=_K(n.props.domain,null,v),!f||"number"!==g&&"auto"===b||(E=sK(O,m,"category")));var _=EJ(g);if(!S||0===S.length){var P,T=null!==(P=n.props.domain)&&void 0!==P?P:_;if(m){if(S=sK(O,m,g),"category"===g&&f){var A=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(S);y&&A?(k=S,S=sq(0,D)):y||(S=TK(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(pJ(e),[t])}),[]))}else if("category"===g)S=y?S.filter((function(e){return""!==e&&!gE(e)})):TK(T,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||gE(t)?e:[].concat(pJ(e),[t])}),[]);else if("number"===g){var M=function(e,t,n,r,o){var i=t.map((function(t){return cK(e,t,n,o,r)})).filter((function(e){return!gE(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(O,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),m,o,u);M&&(S=M)}!f||"number"!==g&&"auto"===b||(E=sK(O,m,"category"))}else S=f?sq(0,D):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===d?[0,1]:EK(a[C].stackGroups,l,s):dK(O,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,u,!0);if("number"===g)S=zX(c,S,C,o,w),T&&(S=_K(T,S,v));else if("category"===g&&T){var j=T;S.every((function(e){return j.indexOf(e)>=0}))&&(S=j)}}return vJ(vJ({},t),{},yJ({},C,vJ(vJ({},n.props),{},{axisType:o,domain:S,categoricalDomain:E,duplicateDomain:k,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:_,isCategorical:f,layout:u})))}),{})},PJ=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,u=e.children,c="".concat(r,"Id"),d=iO(u,o),f={};return d&&d.length?f=_J(e,{axes:d,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:s}):i&&i.length&&(f=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,u=e.layout,c=e.children,d=kJ(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),f=d.length,p=fK(u,o),h=-1;return n.reduce((function(e,t){var g,m=t.props[i],v=EJ("number");return e[m]?e:(h++,p?g=sq(0,f):a&&a[m]&&a[m].hasStack?(g=EK(a[m].stackGroups,l,s),g=zX(c,g,m,o)):(g=_K(v,dK(d,n.filter((function(e){return e.props[i]===m&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=zX(c,g,m,o)),vJ(vJ({},e),{},yJ({},m,vJ(vJ({axisType:o},r.defaultProps),{},{hide:!0,orientation:hE(wJ,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:p,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:s})),f},TJ=function(e){var t=e.children,n=e.defaultShowTooltip,r=aO(t,Dq),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},AJ=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},MJ=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,l=n.width,s=n.height,u=n.children,c=n.margin||{},d=aO(u,Dq),f=aO(u,TM),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:vJ(vJ({},e),{},yJ({},r,e[r]+n.width))}),{left:c.left||0,right:c.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:vJ(vJ({},e),{},yJ({},r,hE(e,"".concat(r))+n.height))}),{top:c.top||0,bottom:c.bottom||0}),g=vJ(vJ({},h),p),m=g.bottom;d&&(g.bottom+=d.props.height||Dq.defaultProps.height),f&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,l=i-(a.left||0)-(a.right||0),s=eK({children:o,legendWidth:l});if(s){var u=r||{},c=u.width,d=u.height,f=s.align,p=s.verticalAlign,h=s.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==f&&LE(e[f]))return rK(rK({},e),{},oK({},f,e[f]+(c||0)));if(("horizontal"===h||"vertical"===h&&"center"===f)&&"middle"!==p&&LE(e[p]))return rK(rK({},e),{},oK({},p,e[p]+(d||0)))}return e}(g,0,n,t));var v=l-g.left-g.right,y=s-g.top-g.bottom;return vJ(vJ({brushBottom:m},g),{},{width:Math.max(v,0),height:Math.max(y,0)})},jJ=function(e){var t,n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,l=e.validateTooltipEventTypes,s=void 0===l?["axis"]:l,u=e.axisComponents,c=e.legendContent,d=e.formatAxisMap,f=e.defaultProps,g=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,d=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,h=AJ(c),g=h.numericAxisName,m=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=tO(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),y=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,l=i.length;a<l;a++)for(var s=r[i[a]].stackGroups,u=Object.keys(s),c=0,d=u.length;c<d;c++){var f=s[u[c]],p=f.items,h=f.cateAxisId,g=p.filter((function(e){return tO(e.type).indexOf("Bar")>=0}));if(g&&g.length){var m=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:gE(m)?t:m})}}return o}({barSize:s,stackGroups:r}),b=[];return n.forEach((function(n,s){var h=kJ(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:l}),v=n.props,w=v.dataKey,x=v.maxBarSize,C=n.props["".concat(g,"Id")],S=n.props["".concat(m,"Id")],k=u.reduce((function(e,r){var o,i,a=t["".concat(r.axisType,"Map")],l=n.props["".concat(r.axisType,"Id")];a&&a[l]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?VF(!1,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==n||null===(i=n.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):VF(!1));var s=a[l];return vJ(vJ({},e),{},yJ(yJ({},r.axisType,s),"".concat(r.axisType,"Ticks"),hK(s)))}),{}),E=k[m],O=k["".concat(m,"Ticks")],D=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(IE(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null}(n,r[C].stackGroups),_=tO(n.type).indexOf("Bar")>=0,P=PK(E,O),T=[];if(_){var A,M,j=gE(x)?p:x,L=null!==(A=null!==(M=PK(E,O,!0))&&void 0!==M?M:j)&&void 0!==A?A:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,l=i.length;if(l<1)return null;var s,u=$E(t,r,0,!0),c=[];if(i[0].barSize===+i[0].barSize){var d=!1,f=r/l,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(l-1)*u)>=r&&(p-=(l-1)*u,u=0),p>=r&&f>0&&(d=!0,p=l*(f*=.9));var h={offset:((r-p)/2>>0)-u,size:0};s=i.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+u,size:d?f:t.barSize}},r=[].concat(iK(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),c)}else{var g=$E(n,r,0,!0);r-2*g-(l-1)*u<=0&&(u=0);var m=(r-2*g-(l-1)*u)/l;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;s=i.reduce((function(e,t,n){var r=[].concat(iK(e),[{item:t.item,position:{offset:g+(m+u)*n+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),c)}return s}({barGap:d,barCategoryGap:f,bandSize:L!==P?L:P,sizeList:y[S],maxBarSize:j}),L!==P&&(T=T.map((function(e){return vJ(vJ({},e),{},{position:vJ(vJ({},e.position),{},{offset:e.position.offset-L/2})})})))}var I,R,N=n&&n.type&&n.type.getComposedData;N&&b.push({props:vJ(vJ({},N(vJ(vJ({},k),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:P,barPosition:T,offset:o,stackedData:D,layout:c,dataStartIndex:a,dataEndIndex:l}))),{},yJ(yJ(yJ({key:n.key||"item-".concat(s)},g,k[g]),m,k[m]),"animationId",i)),childIndex:(I=n,R=e.children,oO(R).indexOf(I)),item:n})})),b},m=function(e,t){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!lO({props:o}))return null;var s=o.children,c=o.layout,f=o.stackOffset,p=o.data,h=o.reverseStackOrder,m=AJ(c),v=m.numericAxisName,y=m.cateAxisName,b=iO(s,r),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],l=e[a]||{hasStack:!1,stackGroups:{}};if(IE(i)){var s=l.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};s.items.push(t),l.hasStack=!0,l.stackGroups[i]=s}else l.stackGroups[NE("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return rK(rK({},e),{},oK({},a,l))}),{});return Object.keys(a).reduce((function(t,i){var l=a[i];return l.hasStack&&(l.stackGroups=Object.keys(l.stackGroups).reduce((function(t,i){var a=l.stackGroups[i];return rK(rK({},t),{},oK({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:xK(e,a.items,o)}))}),{})),rK(rK({},t),{},oK({},i,l))}),{})}(p,b,"".concat(v,"Id"),"".concat(y,"Id"),f,h),x=u.reduce((function(e,t){var n="".concat(t.axisType,"Map");return vJ(vJ({},e),{},yJ({},n,PJ(o,vJ(vJ({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=MJ(vJ(vJ({},x),{},{props:o,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=d(o,x[e],C,e.replace("Map",""),n)}));var S,k,E=x["".concat(y,"Map")],O=(S=zE(E),{tooltipTicks:k=hK(S,!1,!0),orderedTooltipTicks:Aj(k,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:PK(S,k)}),D=g(o,vJ(vJ({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:C}));return vJ(vJ({formattedGraphicalItems:D,graphicalItems:b,offset:C,stackGroups:w},O),x)};return t=function(e){function t(e){var r,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),yJ(dJ(a=sJ(this,t,[e])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),yJ(dJ(a),"accessibilityManager",new ZX),yJ(dJ(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(vJ({legendBBox:e},m({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},vJ(vJ({},a.state),{},{legendBBox:e}))))}})),yJ(dJ(a),"handleReceiveSyncEvent",(function(e,t,n){if(a.props.syncId===e){if(n===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),yJ(dJ(a),"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState((function(){return vJ({dataStartIndex:t,dataEndIndex:n},m({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),yJ(dJ(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var n=vJ(vJ({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;vS(r)&&r(n,e)}})),yJ(dJ(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),n=t?vJ(vJ({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;vS(r)&&r(n,e)})),yJ(dJ(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),yJ(dJ(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),yJ(dJ(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),yJ(dJ(a),"handleMouseLeave",(function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;vS(n)&&n(t,e)})),yJ(dJ(a),"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&eO[t]?eO[t]:null}(e),r=hE(a.props,"".concat(n));n&&vS(r)&&r(null!==(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),yJ(dJ(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var n=vJ(vJ({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;vS(r)&&r(n,e)}})),yJ(dJ(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;vS(t)&&t(a.getMouseInfo(e),e)})),yJ(dJ(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;vS(t)&&t(a.getMouseInfo(e),e)})),yJ(dJ(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),yJ(dJ(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),yJ(dJ(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),yJ(dJ(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&FX.emit(KX,a.props.syncId,e,a.eventEmitterSymbol)})),yJ(dJ(a),"applySyncEvent",(function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(vJ({dataStartIndex:i,dataEndIndex:l},m({props:a.props,dataStartIndex:i,dataEndIndex:l,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,u=e.chartY,c=e.activeTooltipIndex,d=a.state,f=d.offset,p=d.tooltipTicks;if(!f)return;if("function"==typeof r)c=r(p,e);else if("value"===r){c=-1;for(var h=0;h<p.length;h++)if(p[h].value===e.activeLabel){c=h;break}}var g=vJ(vJ({},f),{},{x:f.left,y:f.top}),v=Math.min(s,g.x+g.width),y=Math.min(u,g.y+g.height),b=p[c]&&p[c].value,w=OJ(a.state,a.props.data,c),x=p[c]?{x:"horizontal"===n?p[c].coordinate:v,y:"horizontal"===n?y:p[c].coordinate}:CJ;a.setState(vJ(vJ({},e),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:c}))}else a.setState(e)})),yJ(dJ(a),"renderCursor",(function(e){var t,r=a.state,i=r.isTooltipActive,l=r.activeCoordinate,s=r.activePayload,u=r.offset,c=r.activeTooltipIndex,d=r.tooltipAxisBandSize,f=a.getTooltipEventType(),p=null!==(t=e.props.active)&&void 0!==t?t:i,h=a.props.layout,g=e.key||"_recharts-cursor";return o.createElement(eJ,{key:g,activeCoordinate:l,activePayload:s,activeTooltipIndex:c,chartName:n,element:e,isActive:p,layout:h,offset:u,tooltipAxisBandSize:d,tooltipEventType:f})})),yJ(dJ(a),"renderPolarAxis",(function(e,t,n){var r=hE(e,"type.axisType"),o=hE(a.state,"".concat(r,"Map")),i=o&&o[e.props["".concat(r,"Id")]];return h(e,vJ(vJ({},i),{},{className:$C(r,i.className),key:e.key||"".concat(t,"-").concat(n),ticks:hK(i,!0)}))})),yJ(dJ(a),"renderPolarGrid",(function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,o=t.polarRadius,i=a.state,l=i.radiusAxisMap,s=i.angleAxisMap,u=zE(l),c=zE(s),d=c.cx,f=c.cy,p=c.innerRadius,g=c.outerRadius;return h(e,{polarAngles:Array.isArray(r)?r:hK(c,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(o)?o:hK(u,!0).map((function(e){return e.coordinate})),cx:d,cy:f,innerRadius:p,outerRadius:g,key:e.key||"polar-grid",radialLines:n})})),yJ(dJ(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,t=a.props,n=t.children,r=t.width,o=t.height,i=a.props.margin||{},l=r-(i.left||0)-(i.right||0),s=eK({children:n,formattedGraphicalItems:e,legendWidth:l,legendContent:c});if(!s)return null;var u=s.item,d=aJ(s,tJ);return h(u,vJ(vJ({},d),{},{chartWidth:r,chartHeight:o,margin:i,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),yJ(dJ(a),"renderTooltip",(function(){var e,t=a.props,n=t.children,r=t.accessibilityLayer,o=aO(n,vL);if(!o)return null;var i=a.state,l=i.isTooltipActive,s=i.activeCoordinate,u=i.activePayload,c=i.activeLabel,d=i.offset,f=null!==(e=o.props.active)&&void 0!==e?e:l;return h(o,{viewBox:vJ(vJ({},d),{},{x:d.left,y:d.top}),active:f,label:c,payload:f?u:[],coordinate:s,accessibilityLayer:r})})),yJ(dJ(a),"renderBrush",(function(e){var t=a.props,n=t.margin,r=t.data,o=a.state,i=o.offset,l=o.dataStartIndex,s=o.dataEndIndex,u=o.updateId;return h(e,{key:e.key||"_recharts-brush",onChange:mK(a.handleBrushChange,e.props.onChange),data:r,x:LE(e.props.x)?e.props.x:i.left,y:LE(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(n.bottom||0),width:LE(e.props.width)?e.props.width:i.width,startIndex:l,endIndex:s,updateId:"brush-".concat(u)})})),yJ(dJ(a),"renderReferenceElement",(function(e,t,n){if(!e)return null;var r=dJ(a).clipPathId,o=a.state,i=o.xAxisMap,l=o.yAxisMap,s=o.offset,u=e.props,c=u.xAxisId,d=u.yAxisId;return h(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:i[c],yAxis:l[d],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:r})})),yJ(dJ(a),"renderActivePoints",(function(e){var n=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,l=[],s=n.props.key,u=n.item.props,c=u.activeDot,d=vJ(vJ({index:i,dataKey:u.dataKey,cx:r.x,cy:r.y,r:4,fill:uK(n.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(s,"-activePoint-").concat(i)},uO(c,!1)),qE(c));return l.push(t.renderActiveDot(c,d)),o?l.push(t.renderActiveDot(c,vJ(vJ({},d),{},{cx:o.x,cy:o.y,key:"".concat(s,"-basePoint-").concat(i)}))):a&&l.push(null),l})),yJ(dJ(a),"renderGraphicChild",(function(e,t,n){var r=a.filterFormatItem(e,t,n);if(!r)return null;var o=a.getTooltipEventType(),i=a.state,l=i.isTooltipActive,s=i.tooltipAxis,u=i.activeTooltipIndex,c=i.activeLabel,d=aO(a.props.children,vL),f=r.props,p=f.points,g=f.isRange,m=f.baseLine,v=r.item.props,y=v.activeDot,b=v.hide,w=v.activeBar,x=v.activeShape,C=Boolean(!b&&l&&d&&(y||w||x)),S={};"axis"!==o&&d&&"click"===d.props.trigger?S={onClick:mK(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(S={onMouseLeave:mK(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:mK(a.handleItemMouseEnter,e.props.onMouseEnter)});var k=h(e,vJ(vJ({},r.props),S));if(C){if(!(u>=0)){var E,O=(null!==(E=a.getItemByXY(a.state.activeCoordinate))&&void 0!==E?E:{graphicalItem:k}).graphicalItem,D=O.item,_=void 0===D?e:D,P=O.childIndex,T=vJ(vJ(vJ({},r.props),S),{},{activeIndex:P});return[h(_,T),null,null]}var A,M;if(s.dataKey&&!s.allowDuplicatedCategory){var j="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());A=FE(p,j,c),M=g&&m&&FE(m,j,c)}else A=null==p?void 0:p[u],M=g&&m&&m[u];if(x||w){var L=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[h(e,vJ(vJ(vJ({},r.props),S),{},{activeIndex:L})),null,null]}if(!gE(A))return[k].concat(pJ(a.renderActivePoints({item:r,activePoint:A,basePoint:M,childIndex:u,isRange:g})))}return g?[k,null,null]:[k,null]})),yJ(dJ(a),"renderCustomized",(function(e,t,n){return h(e,vJ(vJ({key:"recharts-customized-".concat(n)},a.props),a.state))})),yJ(dJ(a),"renderMap",{CartesianGrid:{handler:SJ,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:SJ},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:SJ},YAxis:{handler:SJ},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:NE("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=FL(a.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}var r,i,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fJ(e,t)}(t,C),r=t,i=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=aO(t,vL);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var l=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,s=OJ(this.state,n,a,l),u=this.state.tooltipTicks[a].coordinate,c=(this.state.offset.top+r)/2,d="horizontal"===o?{x:u,y:c}:{y:u,x:c},f=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));f&&(d=vJ(vJ({},d),f.props.points[a].tooltipPosition),s=f.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:l,activePayload:s,activeCoordinate:d};this.setState(p),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){cO([aO(e.children,vL)],[aO(this.props.children,vL)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=aO(this.props.children,vL);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return s.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o={top:(t=r).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=r.width/n.offsetWidth||1,l=this.inRange(i.chartX,i.chartY,a);if(!l)return null;var s=this.state,u=s.xAxisMap,c=s.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&c){var d=zE(u).scale,f=zE(c).scale,p=d&&d.invert?d.invert(i.chartX):null,h=f&&f.invert?f.invert(i.chartY):null;return vJ(vJ({},i),{},{xValue:p,yValue:h})}var g=DJ(this.state,this.props.data,this.props.layout,l);return g?vJ(vJ({},i),g):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var l=this.state,s=l.angleAxisMap,u=l.radiusAxisMap;if(s&&u){var c=zE(s);return HK({x:o,y:i},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=aO(e,vL),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),vJ(vJ({},qE(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){FX.on(KX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){FX.removeListener(KX,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===tO(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:n,y:r,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=iJ(t,2),r=n[0],o=n[1];return vJ(vJ({},e),{},yJ({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=iJ(t,2),r=n[0],o=n[1];return vJ(vJ({},e),{},yJ({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],l=a.props,s=a.item,u=tO(s.type);if("Bar"===u){var c=(l.data||[]).find((function(t){return qU(e,t)}));if(c)return{graphicalItem:a,payload:c}}else if("RadialBar"===u){var d=(l.data||[]).find((function(t){return HK(e,t)}));if(d)return{graphicalItem:a,payload:d}}else if(jZ(a,r)||LZ(a,r)||IZ(a,r)){var f=zZ({graphicalItem:a,activeTooltipItem:r,itemData:s.props.data}),p=void 0===s.props.activeIndex?f:s.props.activeIndex;return{graphicalItem:vJ(vJ({},a),{},{childIndex:p}),payload:IZ(a,r)?s.props.data[f]:a.props.data[f]}}}return null}},{key:"render",value:function(){var e=this;if(!lO(this))return null;var t,n,r=this.props,i=r.children,a=r.className,l=r.width,s=r.height,u=r.style,c=r.compact,d=r.title,f=r.desc,p=aJ(r,nJ),h=uO(p,!1);if(c)return o.createElement(rY,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},o.createElement(mO,oJ({},h,{width:l,height:s,title:d,desc:f}),this.renderClipPath(),fO(i,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,h.role=null!==(n=this.props.role)&&void 0!==n?n:"application",h.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){e.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return o.createElement(rY,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},o.createElement("div",oJ({className:$C("recharts-wrapper",a),style:vJ({position:"relative",cursor:"default",width:l,height:s},u)},g,{ref:function(t){e.container=t}}),o.createElement(mO,oJ({},h,{width:l,height:s,title:d,desc:f,style:xJ}),this.renderClipPath(),fO(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&lJ(r.prototype,i),l&&lJ(r,l),Object.defineProperty(r,"prototype",{writable:!1}),t}(),yJ(t,"displayName",n),yJ(t,"defaultProps",vJ({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),yJ(t,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,i=e.width,a=e.height,l=e.layout,s=e.stackOffset,u=e.margin,c=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var f=TJ(e);return vJ(vJ(vJ({},f),{},{updateId:0},m(vJ(vJ({props:e},f),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:s,prevMargin:u,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||l!==t.prevLayout||s!==t.prevStackOffset||!KE(u,t.prevMargin)){var p=TJ(e),h={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},g=vJ(vJ({},DJ(t,r,l)),{},{updateId:t.updateId+1}),v=vJ(vJ(vJ({},p),h),g);return vJ(vJ(vJ({},v),m(vJ({props:e},v),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:s,prevMargin:u,prevChildren:o})}if(!cO(o,t.prevChildren)){var y,b,w,x,C=aO(o,Dq),S=C&&null!==(y=null===(b=C.props)||void 0===b?void 0:b.startIndex)&&void 0!==y?y:c,k=C&&null!==(w=null===(x=C.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:d,E=S!==c||k!==d,O=!gE(r)&&!E?t.updateId:t.updateId+1;return vJ(vJ({updateId:O},m(vJ(vJ({props:e},t),{},{updateId:O,dataStartIndex:S,dataEndIndex:k}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:k})}return null})),yJ(t,"renderActiveDot",(function(e,t){var n;return n=p(e)?h(e,t):vS(e)?e(t):o.createElement(aW,t),o.createElement(wO,{className:"recharts-active-dot",key:t.key},n)})),t},LJ=jJ({chartName:"LineChart",GraphicalChild:MX,axisComponents:[{axisType:"xAxis",AxisComp:LX},{axisType:"yAxis",AxisComp:RX}],formatAxisMap:MG}),IJ=jJ({chartName:"BarChart",GraphicalChild:EG,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:LX},{axisType:"yAxis",AxisComp:RX}],formatAxisMap:MG}),RJ=jJ({chartName:"PieChart",GraphicalChild:JZ,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:QW},{axisType:"radiusAxis",AxisComp:zW}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,l=e.startAngle,s=e.endAngle,u=$E(e.cx,i,i/2),c=$E(e.cy,a,a/2),d=FK(i,a,n),f=$E(e.innerRadius,d,0),p=$E(e.outerRadius,d,.8*d);return Object.keys(t).reduce((function(e,n){var i,a=t[n],d=a.domain,h=a.reversed;if(gE(a.range))"angleAxis"===r?i=[l,s]:"radiusAxis"===r&&(i=[f,p]),h&&(i=[i[1],i[0]]);else{var g=RK(i=a.range,2);l=g[0],s=g[1]}var m=vK(a,o),v=m.realScaleType,y=m.scale;y.domain(d).range(i),bK(y);var b=CK(y,LK(LK({},a),{},{realScaleType:v})),w=LK(LK(LK({},a),b),{},{range:i,radius:p,realScaleType:v,scale:y,cx:u,cy:c,innerRadius:f,outerRadius:p,startAngle:l,endAngle:s});return LK(LK({},e),{},IK({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const NJ=me.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8,minWidth:n||8,minHeight:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),Rn,Nn);function $J(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function zJ(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function BJ(e,t){const n=$J(e);return isNaN(t)?zJ(e,NaN):t?(n.setDate(n.getDate()+t),n):n}const FJ=6048e5,KJ=864e5;let VJ={};function HJ(){return VJ}function UJ(e,t){const n=HJ(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=$J(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function WJ(e){return UJ(e,{weekStartsOn:1})}function ZJ(e){const t=$J(e),n=t.getFullYear(),r=zJ(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=WJ(r),i=zJ(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=WJ(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function qJ(e){const t=$J(e);return t.setHours(0,0,0,0),t}function GJ(e){const t=$J(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function YJ(e,t){const n=qJ(e),r=qJ(t),o=+n-GJ(n),i=+r-GJ(r);return Math.round((o-i)/KJ)}function XJ(e){return zJ(e,Date.now())}function JJ(e,t){return+qJ(e)==+qJ(t)}function QJ(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=$J(e);return!isNaN(Number(n))}function eQ(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function tQ(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function nQ(e,t,n){const r=function(e,t){return+$J(e)-+$J(t)}(e,t)/6e4;return tQ(n?.roundingMethod)(r)}function rQ(e,t,n){const r=function(e,t){const n=$J(e),r=$J(t),o=eQ(n,r),i=Math.abs(YJ(n,r));n.setDate(n.getDate()-o*i);const a=o*(i-Number(eQ(n,r)===-o));return 0===a?0:a}(e,t)/7;return tQ(n?.roundingMethod)(r)}const oQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function iQ(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const aQ={date:iQ({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:iQ({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:iQ({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},lQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function sQ(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const uQ={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:sQ({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:sQ({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:sQ({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:sQ({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:sQ({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function cQ(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(a)));let u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}const dQ={ordinalNumber:(fQ={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(fQ.matchPattern);if(!n)return null;const r=n[0],o=e.match(fQ.parsePattern);if(!o)return null;let i=fQ.valueCallback?fQ.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:cQ({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:cQ({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:cQ({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:cQ({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:cQ({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var fQ;const pQ={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=oQ[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:aQ,formatRelative:(e,t,n,r)=>lQ[e],localize:uQ,match:dQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hQ(e){const t=$J(e),n=YJ(t,function(e){const t=$J(e),n=zJ(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function gQ(e){const t=$J(e),n=+WJ(t)-+function(e){const t=ZJ(e),n=zJ(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),WJ(n)}(t);return Math.round(n/FJ)+1}function mQ(e,t){const n=$J(e),r=n.getFullYear(),o=HJ(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=zJ(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const l=UJ(a,t),s=zJ(e,0);s.setFullYear(r,0,i),s.setHours(0,0,0,0);const u=UJ(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function vQ(e,t){const n=$J(e),r=+UJ(n,t)-+function(e,t){const n=HJ(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=mQ(e,t),i=zJ(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),UJ(i,t)}(n,t);return Math.round(r/FJ)+1}function yQ(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const bQ={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return yQ("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):yQ(n+1,2)},d:(e,t)=>yQ(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>yQ(e.getHours()%12||12,t.length),H:(e,t)=>yQ(e.getHours(),t.length),m:(e,t)=>yQ(e.getMinutes(),t.length),s:(e,t)=>yQ(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return yQ(Math.trunc(r*Math.pow(10,n-3)),t.length)}},wQ="midnight",xQ="noon",CQ="morning",SQ="afternoon",kQ="evening",EQ="night",OQ={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return bQ.y(e,t)},Y:function(e,t,n,r){const o=mQ(e,r),i=o>0?o:1-o;if("YY"===t){return yQ(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):yQ(i,t.length)},R:function(e,t){return yQ(ZJ(e),t.length)},u:function(e,t){return yQ(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return yQ(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return yQ(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return bQ.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return yQ(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=vQ(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):yQ(o,t.length)},I:function(e,t,n){const r=gQ(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):yQ(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):bQ.d(e,t)},D:function(e,t,n){const r=hQ(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):yQ(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return yQ(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return yQ(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return yQ(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?xQ:0===r?wQ:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?kQ:r>=12?SQ:r>=4?CQ:EQ,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return bQ.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):bQ.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):yQ(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):yQ(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):bQ.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):bQ.s(e,t)},S:function(e,t){return bQ.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return _Q(r);case"XXXX":case"XX":return PQ(r);default:return PQ(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return _Q(r);case"xxxx":case"xx":return PQ(r);default:return PQ(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+DQ(r,":");default:return"GMT"+PQ(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+DQ(r,":");default:return"GMT"+PQ(r,":")}},t:function(e,t,n){return yQ(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return yQ(e.getTime(),t.length)}};function DQ(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+yQ(i,2)}function _Q(e,t){if(e%60==0){return(e>0?"-":"+")+yQ(Math.abs(e)/60,2)}return PQ(e,t)}function PQ(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+yQ(Math.trunc(r/60),2)+t+yQ(r%60,2)}const TQ=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},AQ=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},MQ={p:AQ,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return TQ(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",TQ(r,t)).replace("{{time}}",AQ(o,t))}},jQ=/^D+$/,LQ=/^Y+$/,IQ=["D","DD","YY","YYYY"];const RQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,NQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$Q=/^'([^]*?)'?$/,zQ=/''/g,BQ=/[a-zA-Z]/;function FQ(e,t,n){const r=HJ(),o=n?.locale??r.locale??pQ,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=$J(e);if(!QJ(l))throw new RangeError("Invalid time value");let s=t.match(NQ).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,MQ[t])(e,o.formatLong)}return e})).join("").match(RQ).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:KQ(e)};if(OQ[t])return{isToken:!0,value:e};if(t.match(BQ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return s.map((r=>{if(!r.isToken)return r.value;const i=r.value;(!n?.useAdditionalWeekYearTokens&&function(e){return LQ.test(e)}(i)||!n?.useAdditionalDayOfYearTokens&&function(e){return jQ.test(e)}(i))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),IQ.includes(e))throw new RangeError(r)}(i,t,String(e));return(0,OQ[i[0]])(l,i,o.localize,u)})).join("")}function KQ(e){const t=e.match($Q);return t?t[1].replace(zQ,"'"):e}function VQ(e){return function(e,t){const n=$J(e),r=$J(t);return n.getFullYear()===r.getFullYear()}(e,XJ(e))}function HQ(e){return JJ(e,function(e,t){return BJ(e,-t)}(XJ(e),1))}const UQ=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,l="relative"===r||!1,s=new Date,u=FQ(n,"EEEE"),c=FQ(n,"MMM d"),d=FQ(n,"MMM d, y"),f=FQ(n,"h:mm aaa"),p=VQ(n),h=function(e){return+$J(e)>Date.now()}(n),g=function(e){return JJ(e,XJ(e))}(n),m=HQ(n),v=function(e){return JJ(e,BJ(XJ(e),1))}(n),y=nQ(s,n),b=rQ(s,n),w=y>=-10&&y<=10,x=a||l?`, ${f}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(f);if(l){if(0===y)return C("Just now");if(w)return C(h?`Today, in ${-1*y} min.`:`${y} min. ago`);if(g)return C(h?`Today${x}`:f)}return C(g?`Today${x}`:m?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${c}${x}`:`${d}${x}`:`${u}${x}`)},WQ=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},ZQ=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),qQ=()=>e(D,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),GQ=me.div((({width:e,height:t,maxWidth:n,maxHeight:r,responsive:o})=>({width:e||"100%",height:t||"100%",maxWidth:o?n||"100%":void 0,maxHeight:o?r||"100%":void 0})),Rn),YQ=({active:n,payload:r,label:o})=>n&&r&&r.length?t(t1,{children:[e(n1,{children:o}),null==r?void 0:r.map((n=>{var r,o;const i=n.color||(null===(r=n.payload)||void 0===r?void 0:r.color),a=`${null===(o=n.payload)||void 0===o?void 0:o.name}-${n.dataKey}-${n.value}`;return t(e1,{children:[i&&e(NJ,{color:i}),n.name,": ",ZQ(n.value||0)]},a)}))]}):null,XQ=()=>{const{elevation1:t}=O();return e(vL,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e(YQ,{})})},JQ=({payload:n,toggleData:r})=>e(QQ,{children:null==n?void 0:n.map((n=>t(e1,{onClick:r?()=>r(n):void 0,clickable:!!r,inactive:n.inactive,children:[e(NJ,{color:n.color}),n.value]},`${n.dataKey}-${n.value}`)))}),QQ=me.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),e1=me.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),t1=me.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),n1=me.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4}))),r1=n=>{var{data:r,legend:o,keys:i,stacked:a,barGap:l,barCategoryGap:s,barSize:u=16,maxBarSize:c,vertical:d=!1,hideYLabels:f,hideXLabels:p,xAxisHeight:h=22,yAxisWidth:g=45}=n,m=M(n,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:v}=O();return t(GQ,Object.assign({},m,{children:[e(qQ,{}),e(qL,{width:"100%",height:"100%",children:t(IJ,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:d?"vertical":"horizontal",barSize:u,maxBarSize:c,barGap:l,barCategoryGap:s,children:[e(gX,{stroke:v,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e(LX,{stroke:v,tickMargin:4,tickFormatter:e=>d?RC(e):e,tick:!p&&{},height:p?12:h,dataKey:d?void 0:"name",type:d?"number":"category"}),e(RX,{stroke:v,tickMargin:4,tickFormatter:e=>d?e:RC(e),tick:!f&&{},width:f?5:g,dataKey:d?"name":void 0,type:d?"category":"number"}),XQ(),o&&e(TM,{content:e(JQ,{})}),i.map((({key:t,color:n},r)=>e(EG,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},o1=[({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,width:"min-content",padding:8,backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"})],i1=({range:n,initialDate:r})=>t(ib,{children:[e(s1,{children:t=>e(u1,{children:t})}),e(a1,{range:n,children:t=>e(l1,{date:t,current:r?dl(t,r):void 0,range:n})})]}),a1=me(db)({"& > tr > td":{padding:"2px 4px"},"& > tr > td:first-of-type":{paddingLeft:0},"& > tr > td:last-of-type":{paddingRight:0},"& > tr:first-of-type > td":{paddingTop:0},"& > tr:last-of-type > td":{paddingBottom:0},"& > tr > td[aria-disabled]":{cursor:"default"},"& > tr > td[aria-selected]":{position:"relative"}},(({theme:{calendar:e,color:t},range:n})=>n&&{"& > tr > td[aria-selected]::after":{background:e.background.activeRange,content:'""',height:28,left:0,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",zIndex:0},"& > tr > td[aria-selected][aria-invalid]::after":{backgroundColor:t.errorTint2},"& > tr > td[aria-selected]:has(div[data-selection-start])::after":{left:"50%"},"& > tr > td[aria-selected]:has(div[data-selection-end])::after":{right:"50%"},"& > tr:first-of-type > td[aria-selected]::after":{transform:"translateY(calc(-50% - 1px))"},"& > tr:last-of-type > td[aria-selected]::after":{transform:"translateY(calc(-50% + 1px))"}})),l1=me(pb)((({theme:{accent:e,font:t,calendar:n,color:r},range:o=!1})=>({width:28,height:28,lineHeight:"28px",textAlign:"center",borderRadius:"50%",cursor:"pointer",border:"none",fontSize:t.size.md,fontWeight:t.weight.default,color:n.color.default,outline:"none",position:"relative",zIndex:1,"&[data-disabled]":{color:n.color.disabled,cursor:"default","&:hover":{backgroundColor:"transparent"}},"&[data-hovered]":{backgroundColor:n.background.hover},"&[data-focus-visible]":{outline:`${e} solid 1px`,outlineOffset:-1},"&[data-outside-month]":{display:"none"},"&[data-selected]":{backgroundColor:n.background.active,color:n.color.active,"&[data-hovered]":{backgroundColor:n.background.activeHover},"&[data-focus-visible]":{outline:`${e} solid 1px`,outlineOffset:-1}},"&[data-selected]:not([data-selection-start]):not([data-selection-end])":{backgroundColor:o?"transparent":void 0,"&[data-hovered]:not([data-invalid])":{backgroundColor:n.background.activeHover}},"&[data-selected][data-invalid]":{backgroundColor:r.error,"&[data-hovered]":{backgroundColor:r.errorShade2}}})),(({theme:{calendar:e},current:t})=>({color:t?e.color.current:void 0}))),s1=me(lb)((({theme:e})=>({"& > tr > th":{paddingBottom:8,color:e.scale4,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium}}))),u1=me(ub)((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),c1=()=>t(d1,{children:[e(p1,{slot:"previous",children:e(zn,{name:"chevron-left",inheritColor:!0})}),e(f1,{}),e(p1,{slot:"next",children:e(zn,{name:"chevron-right",inheritColor:!0})})]}),d1=me.header({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8}),f1=me(Mw)((({theme:{font:e,calendar:t}})=>({fontSize:e.size.sm,fontWeight:e.weight.default,color:t.color.monthYear,margin:0}))),p1=me(eC)((({theme:e})=>({color:e.calendar.color.iconDefault,outline:"none",borderRadius:4,"&[data-focused]":{outline:`${e.accent} solid 1px`},"&:hover":{color:e.calendar.color.iconHover},"&[data-disabled]":{color:e.calendar.color.iconDisabled,cursor:"not-allowed"}}))),h1=()=>gl(wl()),g1=e=>e.toDate(wl()),m1=e=>function(e){let t=e.match(ls);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new gs(ss(t[1],0,9999),ss(t[2],1,12),1);return n.day=ss(t[3],0,n.calendar.getDaysInMonth(n)),n}(FQ(e,"yyyy-MM-dd")),v1=({past:e,future:t,rel:n})=>({min:a((()=>!0===e?n:e instanceof Date?m1(e):void 0),[e]),max:a((()=>!0===t?n:t instanceof Date?m1(t):void 0),[t])}),y1=h1(),b1=n=>{var{date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:l}=n,s=M(n,["date","onChange","preventPast","preventFuture","noShadow"]);const{current:u}=g(r?m1(r):y1),[c,d]=v(u),{min:f,max:p}=v1({past:i,future:a,rel:u});return t(w1,Object.assign({value:c,onChange:e=>{const{year:t,month:n,day:r}=e,i=new gs(t,n,r);d(i);const a=g1(e);o&&o(a)},minValue:f,maxValue:p,noShadow:l},s,{children:[e(c1,{}),e(i1,{initialDate:u})]}))},w1=me(eb)(o1),x1=me.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),Rn),C1=me.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),S1=me.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),k1=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:l,disabled:s,onChange:u,margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,y=M(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[b,w]=v("checkbox-off"),[x,C]=v(a||!1),S=g(null),k="right"===i,E={margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h};return m((()=>{w(l?"checkbox-partial":x?"checkbox":"checkbox-off")}),[x,l]),m((()=>{C("boolean"==typeof a?a:x)}),[a,x]),t(x1,Object.assign({htmlFor:r,labelRight:k,disabled:s},E,{children:[o&&e(S1,{children:o}),e(C1,Object.assign({ref:S,id:r,type:"checkbox",checked:l?!x:x,disabled:s,onChange:()=>{const e=!!l||!x;C(e),u(e),(null==S?void 0:S.current)&&(S.current.indeterminate=!!l)}},y)),e(zn,{name:b,marginLeft:o&&!k?8:0,marginRight:o&&k?8:0,pointer:!s})]}))};var E1,O1,D1=Object.create,_1=Object.defineProperty,P1=Object.defineProperties,T1=Object.getOwnPropertyDescriptor,A1=Object.getOwnPropertyDescriptors,M1=Object.getOwnPropertyNames,j1=Object.getOwnPropertySymbols,L1=Object.getPrototypeOf,I1=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable,N1=(e,t,n)=>t in e?_1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$1=(e,t)=>{for(var n in t||(t={}))I1.call(t,n)&&N1(e,n,t[n]);if(j1)for(var n of j1(t))R1.call(t,n)&&N1(e,n,t[n]);return e},z1=(e,t)=>P1(e,A1(t)),B1=(e,t)=>{var n={};for(var r in e)I1.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&j1)for(var r of j1(e))t.indexOf(r)<0&&R1.call(e,r)&&(n[r]=e[r]);return n},F1=(E1={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(l)||(a[l]=i[l])}var u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],o||l);var s=t[l],u=r.util.type(s);"Object"!==u||i[a(s)]?"Array"!==u||i[a(s)]||(i[a(s)]=!0,e(s,n,l,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return s(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,l,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var g=p[h],m=g.inside,v=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,C=l.next,S=c;C!==t.tail&&!(d&&S>=d.reach);S+=C.value.length,C=C.next){var k=C.value;if(t.length>e.length)return;if(!(k instanceof o)){var E,O=1;if(y){if(!(E=i(x,S,e,v))||E.index>=e.length)break;var D=E.index,_=E.index+E[0].length,P=S;for(P+=C.value.length;D>=P;)P+=(C=C.next).value.length;if(S=P-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(P<_||"string"==typeof T.value);T=T.next)O++,P+=T.value.length;O--,k=e.slice(S,P),E.index-=S}else if(!(E=i(x,0,k,v)))continue;D=E.index;var A=E[0],M=k.slice(0,D),j=k.slice(D+A.length),L=S+k.length;d&&L>d.reach&&(d.reach=L);var I=C.prev;if(M&&(I=s(t,I,M),S+=M.length),u(t,I,O),C=s(t,I,new o(f,m?r.tokenize(A,m):A,b,A)),j&&s(t,C,j),O>1){var R={cause:f+","+h,reach:L};a(e,t,n,C.prev,S,R),d&&R.reach>d.reach&&(d.reach=R.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var l="";for(var s in i.attributes)l+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+l+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return O1||(0,E1[M1(E1)[0]])((O1={exports:{}}).exports,O1),O1.exports}),K1=((e,t,n)=>(n=null!=e?D1(L1(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of M1(t))I1.call(e,o)||o===n||_1(e,o,{get:()=>t[o],enumerable:!(r=T1(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:_1(n,"default",{value:e,enumerable:!0}),e)))(F1());K1.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},K1.languages.markup.tag.inside["attr-value"].inside.entity=K1.languages.markup.entity,K1.languages.markup.doctype.inside["internal-subset"].inside=K1.languages.markup,K1.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(K1.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:K1.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:K1.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},K1.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(K1.languages.markup.tag,"addAttribute",{value:function(e,t){K1.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:K1.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),K1.languages.html=K1.languages.markup,K1.languages.mathml=K1.languages.markup,K1.languages.svg=K1.languages.markup,K1.languages.xml=K1.languages.extend("markup",{}),K1.languages.ssml=K1.languages.xml,K1.languages.atom=K1.languages.xml,K1.languages.rss=K1.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(K1),K1.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},K1.languages.javascript=K1.languages.extend("clike",{"class-name":[K1.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),K1.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,K1.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:K1.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:K1.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:K1.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:K1.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:K1.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),K1.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:K1.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),K1.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),K1.languages.markup&&(K1.languages.markup.tag.addInlined("script","javascript"),K1.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),K1.languages.js=K1.languages.javascript,K1.languages.actionscript=K1.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),K1.languages.actionscript["class-name"].alias="function",delete K1.languages.actionscript.parameter,delete K1.languages.actionscript["literal-property"],K1.languages.markup&&K1.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:K1.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(K1),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var l=0,s=a.length;l<s;l++)a[l]instanceof RegExp&&(a[l]={pattern:a[l]}),r(a[l]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(K1),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(K1),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(K1),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(K1),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var u,c=e.languages[n];c?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):l[t]||e})),c,n):n&&"none"!==n&&e.plugins.autoloader&&(u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=u,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(u);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(K1),K1.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:K1.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},K1.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(d(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var i=f(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=c(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(d(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),0<o.length)){var l=f(/^\{$/,/^\}$/);if(-1!==l)for(var s=n;s<l;s++){var u=t[s];"variable"===u.type&&0<=o.indexOf(u.content)&&p(u,"variable-input")}}}}function c(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(n+t);if(!r||r.type!==e[n])return}return 1}function f(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],l=a.content;if("punctuation"===a.type&&"string"==typeof l)if(e.test(l))o++;else if(r.test(l)&&0==--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),K1.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function l(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function s(t,n,a){var s=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),u=0,c={},d=(s=l(s.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=u++,n="___"+a.toUpperCase()+"_"+r+"___")););return c[n]=e,n})).join(""),n,a),Object.keys(c));return u=0,function t(n){for(var i=0;i<n.length;i++){if(u>=d.length)return;var a,s,f,p,h,g,m,v=n[i];"string"==typeof v||"string"==typeof v.content?(a=d[u],-1!==(m=(g="string"==typeof v?v:v.content).indexOf(a))&&(++u,s=g.substring(0,m),h=c[a],f=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((f=[1,1]).push.apply(f,l(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,f)),f=new e.Token("interpolation",p,r.alias,h),p=g.substring(m+a.length),h=[],s&&h.push(s),h.push(f),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof v?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):v.content=h)):(m=v.content,Array.isArray(m)?t(m):t([m]))}}(s),new e.Token(a,s,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function c(e){return"string"==typeof e?e:Array.isArray(e)?e.map(c).join(""):c(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in u&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,l,u=n[r];"string"!=typeof u&&(i=u.content,Array.isArray(i)?"template-string"===u.type?(u=i[1],3===i.length&&"string"!=typeof u&&"embedded-code"===u.type&&(a=c(u),u=u.alias,u=Array.isArray(u)?u[0]:u,l=e.languages[u])&&(i[1]=s(a,l,u))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(K1),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(K1),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(K1),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(K1),K1.languages.n4js=K1.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),K1.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),K1.languages.n4jsd=K1.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(K1),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===l(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:l(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=l(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=l(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=l(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(l).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(K1),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(K1),K1.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},K1.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=K1.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(K1),K1.languages.c=K1.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),K1.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),K1.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},K1.languages.c.string],char:K1.languages.c.char,comment:K1.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:K1.languages.c}}}}),K1.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete K1.languages.c.boolean,K1.languages.objectivec=K1.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete K1.languages.objectivec["class-name"],K1.languages.objc=K1.languages.objectivec,K1.languages.reason=K1.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),K1.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete K1.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(K1),K1.languages.go=K1.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),K1.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete K1.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(K1),K1.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},K1.languages.python["string-interpolation"].inside.interpolation.inside.rest=K1.languages.python,K1.languages.py=K1.languages.python;var V1={};((e,t)=>{for(var n in t)_1(e,n,{get:t[n],enumerable:!0})})(V1,{dracula:()=>H1,duotoneDark:()=>U1,duotoneLight:()=>W1,github:()=>Z1,jettwaveDark:()=>a0,jettwaveLight:()=>l0,nightOwl:()=>q1,nightOwlLight:()=>G1,oceanicNext:()=>J1,okaidia:()=>Q1,oneDark:()=>s0,oneLight:()=>u0,palenight:()=>e0,shadesOfPurple:()=>t0,synthwave84:()=>n0,ultramin:()=>r0,vsDark:()=>o0,vsLight:()=>i0});var H1={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},U1={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},W1={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Z1={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},q1={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},G1={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Y1="#c5a5c5",X1="#8dc891",J1={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Y1}},{types:["attr-value"],style:{color:X1}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:X1}},{types:["punctuation"],style:{color:X1}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Y1}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Q1={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},e0={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},t0={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},n0={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},r0={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},o0={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},i0={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},a0={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},l0={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},s0={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},u0={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},c0=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=$1($1({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=z1($1({},n),{backgroundColor:void 0}),r},d0=/\r\n|\r|\n/,f0=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},p0=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},h0=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,l=[];const s=[l];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,u=t[a];const c=n[a][i];if("string"==typeof c?(u=a>0?u:["plain"],e=c):(u=p0(u,c.type),c.alias&&(u=p0(u,c.alias)),e=c.content),"string"!=typeof e){a++,t.push(u),n.push(e),r.push(0),o.push(e.length);continue}const d=e.split(d0),f=d.length;l.push({types:u,content:d[0]});for(let e=1;e<f;e++)f0(l),s.push(l=[]),l.push({types:u,content:d[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return f0(l),s},g0=({children:e,language:t,code:n,theme:r,prism:o})=>{const i=t.toLowerCase(),l=((e,t)=>{const[n,r]=v(c0(t,e)),o=g(),i=g();return m((()=>{t===o.current&&e===i.current||(o.current=t,i.current=e,r(c0(t,e)))}),[e,t]),n})(i,r),s=(e=>u((t=>{var n=t,{className:r,style:o,line:i}=n,a=B1(n,["className","style","line"]);const l=z1($1({},a),{className:$C("token-line",r)});return"object"==typeof e&&"plain"in e&&(l.style=e.plain),"object"==typeof o&&(l.style=$1($1({},l.style||{}),o)),l}),[e]))(l),c=(e=>{const t=u((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return u((e=>{var n=e,{token:r,className:o,style:i}=n,a=B1(n,["token","className","style"]);const l=z1($1({},a),{className:$C("token",...r.types,o),children:r.content,style:t(r)});return null!=i&&(l.style=$1($1({},l.style||{}),i)),l}),[t])})(l),d=(({prism:e,code:t,grammar:n,language:r})=>{const o=g(e);return a((()=>{if(null==n)return h0([t]);const e={code:t,grammar:n,language:r,tokens:[]};return o.current.hooks.run("before-tokenize",e),e.tokens=o.current.tokenize(t,n),o.current.hooks.run("after-tokenize",e),h0(e.tokens)}),[t,n,r])})({prism:o,language:i,code:n,grammar:o.languages[i]});return e({tokens:d,className:`prism-code language-${i}`,style:null!=l?l.root:{},getLineProps:s,getTokenProps:c})},m0=e=>l(g0,z1($1({},e),{prism:e.prism||K1,theme:e.theme||o0,code:e.code,language:e.language}))
|
|
27
27
|
/*! Bundled license information:
|
|
28
28
|
|
|
29
29
|
prismjs/prism.js:
|
|
@@ -50,5 +50,5 @@ prismjs/prism.js:
|
|
|
50
50
|
(c) Sindre Sorhus
|
|
51
51
|
@license MIT
|
|
52
52
|
*/
|
|
53
|
-
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(l[a[c]]=n[a[c]])}}return l}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,l,s,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,c,typeof e[c]),d=e[c](n,c,s,l,null,i)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %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||"React class",l,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";o(!1,"Failed %s type: %s%s",l,d.message,null!=f?f:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,l){l!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?l(e,t):function(e,t,n){return!(10===u(e).length&&!n||i(t))}(e,n,r)?s(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var l=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var l=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+l+i.substring(r)}var s=f(e,i,t,o);return{phoneNumber:d(i),cursorPosition:s}},s=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=c(e,n,t)),a(t)||(o=c(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},c=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=u(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},f=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return d(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var l=/[^0-9]/g;if(a(n)&&l.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&l.test(e[n.start-1]))return n.start-1}var s=e.substring(n.end).match(/[0-9]/g),u=s?s.length:0,c=d(t),f=p(c,u);return c.length-f},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var bse=yse.exports;const wse=(t,n)=>{const r=e=>h(e,n);return"string"==typeof t?e(zn,Object.assign({name:t,inheritColor:!0},n)):"object"==typeof t&&"props"in t&&"trigger"in t.props?h(t,{trigger:r(t.props.trigger)}):"object"==typeof t&&"props"in t?r(t):e(zn,Object.assign({},t,n))},xse=d(((n,r)=>{var{id:o,label:i,placeholder:a,placeholderColor:l,description:s,isLoading:u,search:c,phone:d,textOnly:f,iconLeft:p,iconRight:h,invalid:b,borderRadius:x,borderColor:C,backgroundColor:S,fontSize:k,width:E,height:D,margin:_,marginLeft:P,marginRight:T,marginTop:A,marginBottom:j,padding:L,paddingLeft:I,paddingRight:R,paddingTop:N,paddingBottom:$,containerRef:z,value:B,disabled:F,readOnly:K,preventFocus:V,pointer:H,hideControls:U,onChange:W,onClick:Z,onClear:q,onFocus:G,onBlur:Y}=n,X=M(n,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:J,handleFocus:Q,handleBlur:ee}=zle(G,Y,!V&&!K),te=g(null),{color:ne}=O(),[re,oe]=v(f?50:void 0),ie=g(null),ae={margin:_,marginTop:A,marginBottom:j,marginRight:T,marginLeft:P},le={padding:L,paddingTop:N,paddingBottom:$,paddingRight:R,paddingLeft:I};y((()=>{if(f&&(null==ie?void 0:ie.current)){const{current:e}=ie;B&&(e.innerHTML=B.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&oe(t+3)}}),[f,B,a,ie]);const se=f?B||a:B,ue=(!!B||"number"==typeof B)&&q&&!u;m((()=>{var e,t;if(d&&"string"==typeof B&&10===B.length&&B===bse.normalize(B)){const{current:n}=te;if(n){const r=bse.format(B),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[B]);const ce=()=>{J||Q()},de=()=>{J&&ee()},fe=()=>{ce(),(null==te?void 0:te.current)&&te.current.select()};w(r,(()=>({focus:ce,blur:de,hasFocus:J,select:fe}))),m((()=>{var e;J&&(null===(e=te.current)||void 0===e||e.focus())}),[J]);return t(Fle,Object.assign({ref:z,invalid:b,textOnly:f,borderRadius:x,borderColor:C,backgroundColor:S,width:E,height:D,focused:J,disabled:F,hasLabel:!!i,onClick:e=>{V||K||ce(),Z&&Z(e)},pointer:H,readOnly:K},ae,le,{children:[c&&e(zn,{name:"search",marginRight:8,inheritColor:!0}),p&&wse(p,{marginRight:8}),t(Kle,{readOnly:K||V,children:[f&&e(kse,{ref:ie,fontSize:k,children:se}),i&&!f&&e(Vle,{htmlFor:o||i,filled:Ble(B),focused:J,disabled:F,children:i}),e(Cse,Object.assign({id:o||i,ref:te,value:B,placeholder:a,placeholderColor:l,onChange:e=>{if(d){const{value:t}=e.target,n=bse.normalize(t);if(n.length>10)return;const r=bse.format(n);W&&W(e,r,n)}else W&&W(e)},onFocus:Q,onBlur:ee,disabled:F,hide:!(Ble(B)||!i||J||f),width:re,fontSize:k,hideControls:U},X))]}),h&&wse(h),u&&e(aC,{}),ue&&e(Sse,{onClick:q,children:e(zn,{name:"close-circle-outline",color:ne.brand})}),s&&e(Hle,{invalid:b,children:s})]}))})),Cse=me.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),Sse=me.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),kse=me.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Ese=me("div",{shouldForwardProp:e=>Kx(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Ose=me("div",{shouldForwardProp:e=>Kx(e,["selected","noSelect","contentPosition","color","accented","section"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const l=r?e.color.accent:e.color.inactive;return{color:i?t:n||l,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})),(({theme:e,section:t})=>t&&{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}})),Dse=({id:t,children:n,containerRef:r,parentSelector:o,width:i,maxHeight:a=200,offsetY:l,offsetX:s,centerY:u,centerX:c,direction:d})=>{const[f,p]=v(),h=g(null);y((()=>{const{current:e}=r||h;if(e&&d){const{scrollWidth:t,scrollHeight:n}=e,r="left"===d||"right"===d;p((r?t:n<a?n:a)+((r?s:l)||4))}}),[r,d]);const m=e(_se,{id:t,ref:r||h,offsetX:s,offsetY:l,width:i,maxHeight:a,centerY:u,centerX:c,optionsPosition:{direction:d,amount:f},children:n});if(o){const e=document.querySelector(o);return e?P.createPortal(m,e):m}return m};Dse.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:l,color:s,accented:u,section:c}=t,d=M(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e(Ose,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:c,noSelect:c||a,contentPosition:l,color:s,accented:u,tabIndex:a?-1:0},d,{children:n}))};const _se=me(Ese)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Pse=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Tse=n=>t(c,{children:[n.leftElement||null,n.header&&n.body?t("div",{style:{display:"flex",flexDirection:"column"},children:[e(Mse,{children:n.header}),e(jse,{children:n.body})]}):n.label,n.rightElement&&e("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),Ase=(t,n,r,o,i)=>{const{selected:a}=i,l=((t,n,r,o)=>{if(t&&t.length>0)return Pse(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e(Dse.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:Tse(t)},t.id)}));return[]})(t,r,o,M(i,["selected"])),s=((e,t,n)=>e?dse(e).map((e=>e?h(e,{setValue:t,close:n}):null)):[])(n,r,o);return dse([...l,...s]).map(((e,t)=>e?h(e,{selected:a===t}):null))},Mse=me.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),jse=me.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Lse=e=>f.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),Ise=n=>{var{onChange:r,onTextChange:o,afterShow:i,afterHide:a,onFocus:l,onBlur:s,onError:u,placeholder:c,placeholderColor:d,value:f,options:p,children:h,borderColor:y,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:S,height:k,isLoading:E,margin:D,marginTop:_,marginBottom:P,marginRight:T,marginLeft:A,label:j,id:L,name:I,trigger:R,centerY:N,centerX:$,offsetY:z,offsetX:B,direction:F,fontSize:K,description:V,disabled:H,invalid:U,search:W,filter:Z,restrictInput:q,inputRef:G,optionsParent:Y}=n,X=M(n,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[J,Q]=v(""),[ee,te]=v(""),[ne,re]=v(!1),[oe,ie]=v(!1),[ae,le]=v(!1),se=g(null),{input:ue}=O(),ce={margin:D,marginTop:_,marginBottom:P,marginRight:T,marginLeft:A},de=e=>{e&&e.stopPropagation(),!ne&&i&&i(),ne&&a&&a(),re((e=>!e))};m((()=>{var e;if(ne&&W){null===(e=(G||se).current)||void 0===e||e.focus()}}),[ne,W]),m((()=>{u&&u(ae)}),[ae]),m((()=>{o&&o(ee)}),[ee]);const fe=_t(de,ne,Y?[Y,`${Y} *`]:void 0),pe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},he=e=>{const t=ye().find((t=>{let n=pe(t.label,e);return!n&&"id"in t&&(n=pe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=pe(t.value,e)),n}));return t},ge=e=>"function"==typeof q?!q(e):q,me=e=>ve(null,e),ve=(e,t)=>{let n,o=!1;if("string"==typeof e){n=(e=>{if(ge(e))return he(e)||null;return{id:vse(),label:e,value:e}})(e);const t=ge(e);null===n&&t&&(o=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}ne&&de(t),Q((null==n?void 0:n.label)||""),r&&void 0!==n&&r(n),o?le(!0):(ae&&le(!1),x&&Q(""),te(""))};m((()=>{""!==f&&null!=f||me()}),[f]);const ye=()=>{const e=dse(h).map((e=>{const t=e;let n=t.props.displayText||"";return!j&&t.props.children&&(n=Lse(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Pse(p||[],{search:W,filter:Z,inputText:ee}),...e]},be={options:ye(),select:ve,open:de,close:de,searchText:W?ee:void 0,isOpen:ne,isFocused:oe},[we,xe]=$t(be),Ce=Ase(p||[],h,ve,de,{selected:we,search:W,filter:Z,inputText:ee}),Se=ne?"caret-up":"caret-down",ke=C&&!H?d||ue.color.default:void 0,Ee=M(X,["onClear","phone"]);return e(Rse,Object.assign({textOnly:C,altTrigger:!!R,width:S,height:k,focused:oe,search:W},ce,{children:t(Nse,{ref:fe,children:[R?e($se,{id:L,onClick:de,tabIndex:0,onFocus:()=>ie(!0),onBlur:()=>ie(!1),children:R}):e(Bse,{shake:ae,children:e(xse,Object.assign({},Ee,{ref:G||se,id:L,name:I,label:j,fontSize:K,pointer:!0,preventFocus:!W,value:ee||f||J,placeholder:c||"Select",placeholderColor:ke,iconRight:w||E?void 0:Se,borderColor:y,backgroundColor:b,isLoading:E,textOnly:C,description:V,disabled:H,invalid:ae||U,onClick:de,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(G||se).current)||void 0===t?void 0:t.hasFocus;W?(te(n),!ne&&r&&re(!0),ae&&le(!1)):n||me(e);const o=he(n),i=ge(n),a=""===n||i&&!r;o&&!(W&&(!i||r))?ve(o,e):W&&!a||me(e)},onFocus:e=>{ie(!0),l&&l(e)},onBlur:e=>{var t;if(ie(!1),s&&s(e),W&&ee&&e){const{relatedTarget:n}=e;(null===(t=null==xe?void 0:xe.current)||void 0===t?void 0:t.contains(n))||ve(ee,e)}}}))}),ne&&Ce.length>0&&e(Dse,{containerRef:xe,parentSelector:Y,width:!R&&!C||Y?"100%":void 0,centerY:N,centerX:$,offsetY:z,offsetX:B,direction:F,children:Ce})]})}))};Ise.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:u,id:c,section:d})=>e(Dse.Item,{id:c,contentPosition:a,color:l,onClick:u?e=>{u&&u(e),o&&o()}:e=>{const o={id:c,label:n||Lse(i)||"",value:t};r&&r(o,e)},accented:s,section:d,children:i});const Rse=me.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),Ln,Rn),Nse=me.div({position:"relative",width:"100%",height:"inherit"}),$se=me.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),zse=E({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),Bse=me.div((({shake:e})=>({"& input":{animation:e?`${zse} .5s linear`:void 0}}))),Fse=me.div({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},(({width:e})=>({width:e||"inherit"})),In,Rn),Kse=me.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:u,width:c,height:d})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:l,justifyItems:u,alignContent:a,justifyContent:s,width:c,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),In,Rn);Kse.Item=me.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})),In,Rn);const Vse=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f}=n,p=M(n,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===i,g={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};return t(x1,Object.assign({htmlFor:r,labelRight:h,disabled:l},g,{children:[o&&e(S1,{children:o}),e(C1,Object.assign({id:r,type:"radio",checked:a,disabled:l},p)),e(zn,{name:"radio-button",marginLeft:o&&!h?8:0,marginRight:o&&h?8:0,pointer:!l})]}))},Hse=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,onChange:s,margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p}=n,h=M(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[g,y]=v("toggle-off"),[b,w]=v(a||!1),x="right"===i,C={margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p};return m((()=>{y(b?"toggle-on":"toggle-off")}),[b]),m((()=>{w("boolean"==typeof a?a:b)}),[a,b]),t(x1,Object.assign({htmlFor:r,labelRight:x,disabled:l},C,{children:[o&&e(S1,{children:o}),e(C1,Object.assign({id:r,type:"checkbox",checked:b,disabled:l,onChange:()=>{const e=!b;w(e),s(e)}},h)),e(zn,{name:g,marginLeft:o&&!x?8:0,marginRight:o&&x?8:0,pointer:!l,size:40})]}))},Use=e=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=e,l=M(e,["children","iconLeft","iconRight","disabled","pill"]);return t(Wse,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},l,{children:[r&&wse(r,{marginRight:4,size:"small"}),n,o&&wse(o,{marginLeft:4,size:"small"})]}))},Wse=me.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),Rn),Zse=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:l}=t,s=M(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e(qse,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{l?l(e):e.preventDefault()}},s,{children:n}))};Zse.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:l}=t,s=M(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e(Gse,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:l},s,{children:n}))},Zse.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=M(t,["children","inline","align","disabled"]);return e(Yse,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},Zse.Input=xse,Zse.Dropdown=Ise,Zse.Radio=Vse,Zse.Toggle=Hse,Zse.Checkbox=k1,Zse.Label=Use;const qse=me(Kse)({boxSizing:"border-box"}),Gse=me(Kse)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),Yse=me.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),Rn),Xse=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:u})=>{const[c,d]=v(i),f=_t(r,n,["#prev","#next","#prev *","#next *"]);m((()=>{d(i)}),[i]);const p=()=>d(c>0?c-1:o.length-1),h=()=>c<o.length-1?d(c+1):d(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return m((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,c]),n?t(Jse,{opacity:u,prevNext:o.length>1,children:[e(Qse,{onClick:r,children:e(zn,{name:"close",size:25,color:"white"})}),o.length>1&&e(eue,{id:"prev",onClick:p,children:e(zn,{name:"chevron-left",size:35,color:"white"})}),e(tue,{ref:f,src:o[c],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e(eue,{next:!0,id:"next",onClick:h,children:e(zn,{name:"chevron-right",size:35,color:"white"})})]}):null},Jse=me.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),Qse=me.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),eue=me.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),tue=me.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),nue=me.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),rue=me(Cw)((({theme:e,placeholderColor:t})=>({outline:"none",borderRadius:4,padding:"0 2px","&[data-focused]":{backgroundColor:e.calendar.background.activeRange},"&[data-placeholder]":{color:t||e.input.color.placeholder}}))),oue=({description:n,errorMessage:r})=>n||r?t(iue,{children:[n&&!r&&e(aue,{slot:"description",children:n}),r&&e(lue,{children:r})]}):null,iue=me.div({position:"absolute",left:0,top:"100%"}),aue=me(cv)((({theme:e})=>({color:e.input.color.description,fontSize:e.font.size.sm}))),lue=me(mb)((({theme:e})=>({color:e.input.color.descriptionError,fontSize:e.font.size.sm}))),sue=me(eC)((({theme:{input:e,accent:t},isDisabled:n})=>({color:n?e.labelColor.disabled:e.labelColor.default,outline:"none","&[data-focused]":{outline:`${t} solid 1px`}}))),uue=h1(),cue=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:l,isLoading:s,fontSize:u,placeholderColor:c,disabled:d,description:f,errorMessage:p,preventPast:h,preventFuture:m,onChange:y,afterShow:b,afterHide:w}=n,x=M(n,["value","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[C,S]=v(!1),{current:k}=g(r?m1(r):void 0),[E,O]=v(k),D=g(null),{min:_,max:P}=v1({past:h,future:m,rel:k||uue}),T=e=>{const{year:t,month:n,day:r}=e,o=new gs(t,n,r);O(o);const i=g1(e);y&&y(i)},A=!(E||!o);return t(due,Object.assign({value:E,hasLabel:!!o,isDisabled:d,minValue:_,maxValue:P,onChange:T,onOpenChange:e=>{S(e),b&&e&&b(),w&&!e&&w()},ref:D},x,{children:[a&&wse(a,{marginRight:8}),t(A0,{filled:!!E,disabled:d,children:[o,e(fue,{ref:i,hide:A,fontSize:u,placeholderColor:c,isDisabled:d,children:t=>e(rue,{placeholderColor:c,segment:t})})]}),e(sue,{isDisabled:d,children:e(zn,{name:C?"caret-up":"caret-down",inheritColor:!0})}),l&&wse(l),s&&e(aC,{}),e(oue,{description:f,errorMessage:p}),e(rw,{triggerRef:D,children:e(sw,{children:e(b1,{date:E?g1(E):void 0,onChange:e=>{T(m1(e))},preventPast:h,preventFuture:m})})})]}))},due=me(_w)(T0),fue=me(ww,D0)({display:"flex"},_0),pue=h1(),hue=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:l,noShadow:s}=n,u=M(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:c}=g(r?m1(r):pue),{current:d}=g(o?m1(o):c),[f,p]=v(c),[h,m]=v(d),{min:y,max:b}=v1({past:a,future:l,rel:c});return t(gue,Object.assign({value:{start:f,end:h},onChange:e=>{const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:u}=n,c=new gs(r,o,a);p(c);const d=new gs(l,s,u);m(d);const f=g1(t),h=g1(n);i&&i(f,h)},minValue:y,maxValue:b,noShadow:s},u,{children:[e(c1,{}),e(i1,{range:!0})]}))},gue=me(nb)(o1),mue=h1(),vue=n=>{var{startValue:r,endValue:o,label:i,inputRef:a,iconLeft:l,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h,preventPast:m,preventFuture:y,onChange:b,afterShow:w,afterHide:x}=n,C=M(n,["startValue","endValue","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[S,k]=v(!1),{current:E}=g(r?m1(r):void 0),{current:O}=g(o?m1(o):void 0),[D,_]=v(E),[P,T]=v(O),A=g(null),{min:j,max:L}=v1({past:m,future:y,rel:E||mue}),I=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,u=new gs(r,o,i);_(u);const c=new gs(a,l,s);T(c);const d=g1(t),f=g1(n);b&&b(d,f)},R=!(!D&&!P),N=!(R||!i);return t(yue,Object.assign({value:D&&P?{start:D,end:P}:void 0,hasLabel:!!i,isDisabled:f,minValue:j,maxValue:L,onChange:I,onOpenChange:e=>{k(e),w&&e&&w(),x&&!e&&x()},ref:A},C,{children:[l&&wse(l,{marginRight:8}),t(A0,{filled:R,disabled:f,children:[i,t(wue,{fontSize:c,hide:N,isDisabled:f,children:[e(bue,{slot:"start",ref:a,fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e(rue,{placeholderColor:d,segment:t})}),e("span",{"aria-hidden":"true",children:"–"}),e(bue,{slot:"end",fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e(rue,{placeholderColor:d,segment:t})})]})]}),e(sue,{isDisabled:f,children:e(zn,{name:S?"caret-up":"caret-down",inheritColor:!0})}),s&&wse(s),u&&e(aC,{}),e(oue,{description:p,errorMessage:h}),e(rw,{triggerRef:A,children:e(sw,{children:e(hue,{startDate:D?g1(D):void 0,endDate:P?g1(P):void 0,onChange:(e,t)=>{const n=m1(e),r=m1(t);I({start:n,end:r})},preventPast:m,preventFuture:y})})})]}))},yue=me(Tw)(T0),bue=me(ww,D0)(_0,{display:"flex","&:first-of-type":{marginRight:0}}),wue=me(Qb,D0)((({theme:{input:e,font:t},hide:n,fontSize:r,isDisabled:o})=>({display:"flex",alignItems:"center",gap:4,"& > span":{color:o?e.color.disabled:e.color.default,fontSize:r||t.size.lg},"&:not(:focus):not(:focus-within)":{opacity:n?0:1,position:n?"absolute":void 0}}))),xue=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=n,g=M(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return t(Cue,Object.assign({value:r,hasLabel:!!o,isDisabled:f},g,{children:[l&&wse(l,{marginRight:8}),t(A0,{filled:!!r,disabled:f,children:[o,e(P0,{ref:a,placeholder:i,hide:!(r||!o),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&wse(s),u&&e(aC,{}),t(Sue,{children:[e(kue,{slot:"increment",children:e(zn,{size:o?23.5:19.5,name:"caret-up"})}),e(Eue,{}),e(kue,{slot:"decrement",children:e(zn,{size:o?23.5:19.5,name:"caret-down"})})]}),e(oue,{description:p,errorMessage:h})]}))},Cue=me(Xw)(T0),Sue=me.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder}))),kue=me(eC)((({theme:e})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden","&:hover":{backgroundColor:e.scale1},"&:active":{backgroundColor:e.scale0}}))),Eue=me.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),Oue=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=n,g=M(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return t(Due,Object.assign({value:r,hasLabel:!!o,isDisabled:f},g,{children:[l&&wse(l,{marginRight:8}),t(A0,{filled:!!r,disabled:f,children:[o,e(P0,{ref:a,placeholder:i,hide:!(r||!o),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&wse(s),u&&e(aC,{}),e(oue,{description:p,errorMessage:h})]}))},Due=me(Fx)(T0),_ue=n=>{var{data:r,legend:o,keys:i}=n,a=M(n,["data","legend","keys"]);const[l,s]=v(i),{scale2:u}=O();return t(GQ,Object.assign({},a,{children:[e(qQ,{}),e(qL,{width:"100%",height:"100%",children:t(LJ,{margin:{top:8,left:-14,right:5,bottom:-8},data:r,children:[e(gX,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e(LX,{stroke:u,dataKey:"name",tickMargin:4}),e(RX,{stroke:u,tickMargin:4,tickFormatter:e=>RC(e)}),XQ(),o&&e(TM,{content:e(JQ,{toggleData:i.length>1?e=>{s((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),l.map((({key:t,color:n,hidden:r},o)=>e(MX,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},Pue=({vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:l,paddingRight:s,border:u,borderTop:c,borderBottom:d,borderLeft:f,borderRight:p,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e(Tue,{vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:l,paddingRight:s,border:u,borderTop:c,borderBottom:d,borderLeft:f,borderRight:p,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?dse(w).map((e=>e?h(e,{vertical:t,backgroundColor:b}):null)):null}),Tue=me.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:u})),In),Aue=me.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),Mue=me.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),jue=me.div({marginLeft:"auto",marginRight:8});Pue.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e(Aue,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),Pue.Group=({label:n,defaultOpen:r,vertical:i,selected:a,disabled:l,contentPosition:s,onClick:u,id:c,children:d,indent:f=1,backgroundColor:p})=>{const[g,m]=v(r||a),y=e=>dse(e).map((e=>{if(o.isValidElement(e)){const t=e;return t.props.selected&&!g&&m(!0),Array.isArray(t.props.children)&&y(t.props.children),h(e,{vertical:i,indent:f+1,backgroundColor:p})}return null})),b=y(d),w=()=>m((e=>!e));return t(Mue,{backgroundColor:p,children:[t(Aue,{vertical:i,selected:a||!1,disabled:l,contentPosition:s,onClick:e=>{u?(u(e),g||w()):w()},id:c,role:"menuitem",indent:f,children:[n,e(jue,{onClick:e=>{e.stopPropagation(),w()},children:e(zn,{name:g?"chevron-up":"chevron-down",pointer:!0})})]}),g&&b]})};const Lue=({type:n,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d,children:f})=>{const p=O(),{iconName:h,borderColor:g,backgroundColor:m}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(n||"",p),v={margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d};return t(Nue,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e(zn,{name:h,style:{marginRight:10},color:g}),e($ue,{children:r||f}),o&&e(zn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},Iue=me.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),Rue=me.div((({theme:e})=>({fontWeight:e.font.weight.default})));Lue.Header=Iue,Lue.Body=Rue;const Nue=me.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),Rn),$ue=me.div({width:"100%"}),zue=({text:n,color:r,style:o})=>t(Kue,{children:[e(Fue,{}),e(Bue,{color:r,style:o,children:n}),e(Fue,{})]}),Bue=me.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),Fue=me.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),Kue=me.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),Vue=({children:n,rootSelector:r,visible:o,width:i,height:a,onClose:l,closeIcon:s,preventOverlayClose:u,overlayBlur:c,overlayColor:d,backgroundColor:f,small:p,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:_})=>{const T=_t(u?()=>null:l,o),A={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},M=dse(n).map((e=>e?h(e,{inline:p}):null)),j=e(Wue,{color:d,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:_,blur:c,children:t(Hue,Object.assign({ref:T,width:i,height:a,backgroundColor:f,small:p,noOverlay:g,centerX:m,centerY:v},A,{children:[M,s&&e(Uue,{inline:p,children:e(zn,{name:"close",onClick:l,pointer:!0})})]}))}),L=document.querySelector(r||"#root");return o&&L?P.createPortal(j,L):null};Vue.Header=me.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),Vue.Text=me.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),Vue.Body=me.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),Rn),Vue.Footer=me.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),Rn);const Hue=me.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),In),Uue=me.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),Wue=me.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:u,zIndex:c})=>({position:i||"absolute",top:a||(u||l||s?void 0:0),left:u||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:c||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),Zue=d(((r,o)=>{var{children:i,options:l,items:s,listLabel:u,listText:c,itemsTitle:d,maxItems:f,placeholder:p,width:h,filter:y,restrictInput:b,disabled:x,hideItemsInfo:C,optionsParent:S,compact:k,backgroundColor:E,borderless:D,addItem:_,removeItem:T,onTextChange:A,autoFocus:j}=r,L=M(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[I,R]=v(j||!1),[N,$]=v(!1),[z,B]=v(""),{color:F,font:K,input:V}=O(),H=_t((()=>R(!1)),I,S?[S,`${S} *`]:void 0),U=g(null),W=k&&!!u,Z=e=>{e&&_(e)},q=()=>{const{current:e}=U;I||u||R(!0),null==e||e.focus()},G=()=>{const{current:e}=U;e&&e.blur()};w(o,(()=>({focus:q,blur:G})));const Y=e=>{B(e),A&&A(e)};m((()=>{I||G()}),[I]);Dt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(s.length>0){e.preventDefault();const t=s[s.length-1];T(t)}}),I&&!z,[s]);const X=l.filter((e=>!s.find((t=>t.id===e.id)))),J=a((()=>`multi-select-${vse()}`),[]),Q=a((()=>`multi-select-list-${vse()}`),[]),ee=f?s.length>=f:void 0,te=x||!I||ee,ne=()=>{const n=t(Xue,{id:Q,expanded:I,padTop:I&&s.length>0,labeled:!!u,children:[c&&e(Jue,{expanded:I,labeled:!!u,children:c}),i?i(I,!!x):s.map((t=>e(Use,{pill:!0,iconRight:I&&!x?e(zn,{name:"close-circle",onClick:()=>T(t),pointer:!0}):void 0,disabled:x,children:t.label},t.id))),e(Ise,Object.assign({},L,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:y,backgroundColor:"transparent",restrictInput:b,options:X,fontSize:K.size.md,placeholder:x||s.length>0?" ":p||"Search...",placeholderColor:V.color.placeholder,inputRef:U,onChange:Z,onTextChange:Y,onError:e=>$(e),disabled:te,optionsParent:S?`#${Q}`:`#${J}`,autoFocus:j}))]});if(S){const e=document.querySelector(S);return e?P.createPortal(n,e):n}return n};return t(que,{width:h,ref:H,labeled:!!u,disabled:x,collapse:W,onClick:e=>{e.stopPropagation(),q()},children:[t(Gue,{collapse:W,id:J,expanded:I&&s.length>0,error:N,labeled:!!u,backgroundColor:E,borderless:D,children:[u?e(Yue,{collapse:W,children:u}):ne(),t(Que,{children:[f&&!C&&e(tce,{children:t(n,x&&d?{children:[s.length," ",d]}:{children:[e(ece,{error:s.length>=f,children:s.length}),"/",f," ",d]})}),s.length>0&&e(zn,{name:I?"chevron-up":"chevron-down",color:F.brand,pointer:!0,onClick:e=>{e.stopPropagation(),R(!I)}})]})]}),u&&I&&ne()]})})),que=me.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),Gue=me.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),Yue=me.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),Xue=me.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),Jue=me.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),Que=me.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),ece=me.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),tce=me.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),nce=e=>e?+e:0,rce=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:l}=n,s=M(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,d]=v(nce(o)||1),[f,p]=v(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,nce(a)||h.length),m=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),d(e),r(e)}},y=0!==f,b=f!==g.length-1;return t(oce,Object.assign({width:l},s,{children:[e(ace,{disabled:1===u,onClick:()=>m(1),children:e(zn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e(ace,{disabled:1===u,onClick:()=>m(u-1),children:e(zn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>t(c,{children:[0===r&&y?e(sce,{children:"... "}):"",e(lce,{selected:n===u,onClick:()=>m(n),children:n}),r===o.length-1&&b?e(sce,{children:" ..."}):""]},`pageIndex-${n}`))),e(ace,{disabled:u===i,onClick:()=>m(u+1),children:e(zn,{name:"chevron-right",title:"next",inheritColor:!0})}),e(ace,{disabled:u===i,onClick:()=>m(i),children:e(zn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},oce=me.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),Rn),ice=me.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),ace=me(ice)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),lce=me(ice)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),sce=me.span((({theme:e})=>({color:e.scale6}))),uce=n=>{var{size:r=200,data:o,innerRadius:i,showWhenEmpty:a}=n,l=M(n,["size","data","innerRadius","showWhenEmpty"]);const s=(null==o?void 0:o.length)>0,u=s?o:a?[{name:"1",value:1,color:"#999"}]:void 0,c=r/2-1;return e(GQ,Object.assign({width:r,height:r},l,{children:t(RJ,{width:r,height:r,children:[e(JZ,{dataKey:"value",data:u,innerRadius:i,outerRadius:c,children:null==u?void 0:u.map((t=>e(GL,{fill:t.color||"#999"},t.name)))}),s&&XQ()]})}))},cce=({percent:n,size:r=24,thickness:o=2,color:i,margin:a,marginTop:l,marginBottom:s,marginRight:u,marginLeft:c})=>{const d={margin:a,marginTop:l,marginBottom:s,marginRight:u,marginLeft:c},f=(r-o)/2,p=f*Math.PI*2,h=p-p*n/100,g=r/2;return t(dce,Object.assign({size:r},d,{children:[e(fce,{cx:g,cy:g,r:f,thickness:o}),e(pce,{color:i,cx:g,cy:g,r:f,thickness:o,transform:`rotate(-90 ${g} ${g})`,circ:p,complete:h})]}))},dce=me.svg((({size:e})=>({display:"block",width:e,height:e})),Rn),fce=me.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),pce=me(fce)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),hce=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e(cce,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e(gce,Object.assign({width:o,height:i||l},p,{children:e(mce,{color:n,width:h})}))},gce=me.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),Rn),mce=me.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),vce=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:l,options:s,placeholder:u="Select",placeholderColor:c,textOnly:d,value:f,width:p,onChange:h,afterShow:g,afterHide:y}=n,b=M(n,["backgroundColor","children","fontSize","disabled","label","options","placeholder","placeholderColor","textOnly","value","width","onChange","afterShow","afterHide"]);const[w,x]=v(!1),[C,S]=v(f||""),{margin:k,marginTop:E,marginBottom:O,marginRight:D,marginLeft:_}=b,P={margin:k,marginTop:E,marginBottom:O,marginRight:D,marginLeft:_};m((()=>{f&&f!==C&&S(f)}),[f,C]);const T=!C&&l;return t(tx,Object.assign({placeholder:u,onOpenChange:e=>{x(e),g&&e&&g(),y&&!e&&y()},onSelectionChange:e=>{S(e),h&&h(e)},isDisabled:a,selectedKey:f?C:void 0},b,{children:[t(yce,Object.assign({backgroundColor:r,textOnly:d,width:p,hasLabel:!!l,isDisabled:a,pointer:!0},P,{children:[t(A0,{filled:!!C,disabled:a,children:[l,e(bce,{fontSize:i,placeholderColor:c,isDisabled:a,style:({isPlaceholder:e})=>e&&T?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),e(zn,{name:w?"caret-up":"caret-down",inheritColor:!0})]})),e(mb,{}),e(rw,{offset:2,children:t(M0,{autoWidth:d,shouldFocusWrap:!0,children:[null==s?void 0:s.map((t=>e(j0,Object.assign({},t),t.id||t.value))),o]})})]}))};vce.Item=j0,vce.Section=R0;const yce=me(lv)(T0),bce=me(ox)((({theme:{input:e,font:t},fontSize:n,placeholderColor:r,isDisabled:o})=>({color:o?e.color.disabled:e.color.default,fontFamily:t.family.default,fontSize:n||t.size.lg,"&[data-placeholder]":{color:r||(o?e.color.disabled:e.color.placeholder)}}))),wce=me.div(Ln),xce=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,Cce=e=>{const t={top:0,right:0,bottom:0,left:0},{padding:n,paddingTop:r,paddingRight:o,paddingBottom:i,paddingLeft:a}=e;if(n){const e=("string"==typeof n?n:n.toString()).split(" ").map(xce);switch(e.length){case 1:t.top=t.right=t.bottom=t.left=e[0];break;case 2:t.top=t.bottom=e[0],t.right=t.left=e[1];break;case 3:t.top=e[0],t.right=t.left=e[1],t.bottom=e[2];break;case 4:t.top=e[0],t.right=e[1],t.bottom=e[2],t.left=e[3]}}return void 0!==r&&(t.top=xce(r)),void 0!==o&&(t.right=xce(o)),void 0!==i&&(t.bottom=xce(i)),void 0!==a&&(t.left=xce(a)),t},Sce=t=>{var{children:n,onClick:r,disabled:o}=t,i=M(t,["children","onClick","disabled"]);return e(kce,Object.assign({isDisabled:o,onAction:r&&!o?r:void 0,hoverEffect:!!r&&!o},i,{children:n}))},kce=me(Cx)((({theme:e,backgroundColor:t,isDisabled:n})=>({color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",opacity:n?.3:1,backgroundColor:t,borderTop:`1px solid ${e.table.borderColor}`,outline:"none",transition:"background-color 0.2s",position:"relative",zIndex:0})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"},"&:focus-visible":{backgroundColor:e.scale1}}),(({theme:e,padding:t="16px 24px",paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i,emphasis:a})=>{const l=Cce({padding:t,paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i}),{top:s,right:u,bottom:c,left:d}=l;let f;return!0===a?f=e.color.brand:"string"==typeof a&&(f=a),{"& > td":{padding:0,outline:"none","&:focus-visible":{outline:`${e.accent} solid 1px`}},"& > td > div":{paddingTop:`${s}px`,paddingBottom:`${c}px`},"& > td:first-of-type > div":{paddingLeft:d-2+"px",borderLeft:"2px solid transparent",borderLeftColor:f},"& > td:last-of-type > div":{paddingRight:`${u}px`}}}),(({height:e})=>({height:e}))),Ece=({spinnerSize:t})=>e(Sce,{height:"small"===t?49:57,children:e(Oce,{children:e(aC,{size:t,center:!0})})}),Oce=me(kx)((({theme:e})=>({color:e.scale6}))),Dce=me(wx)((({theme:e})=>({"&[data-empty]":{textAlign:"center",color:e.table.color.body,fontSize:e.font.size.sm,borderTop:`1px solid ${e.table.borderColor}`,"& > tr:first-of-type > td:first-of-type":{paddingTop:16}}}))),_ce=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},Pce=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:_ce(t),alignItems:_ce(n),flexDirection:e,width:"100%",gap:r})],Tce=me(kx)((({showDefault:e})=>e&&{opacity:.3}),In),Ace=me.div(Pce),Mce=me(Ax)((({theme:e})=>({width:9,height:18,backgroundColor:e.scale4,marginLeft:"auto",backgroundClip:"content-box",border:"4px transparent",borderStyle:"none solid","&[data-resizable-direction=both]":{cursor:"col-resize"},"&[data-resizable-direction=left]":{cursor:"e-resize"},"&[data-resizable-direction=right]":{cursor:"w-resize"},"&[data-focus-visible]":{backgroundColor:e.accent}}))),jce=({sortDirection:n})=>{const{color:r,scale4:o}=O(),i="asc"===n?r.brand:o,a="desc"===n?r.brand:o;return t("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M8.71005 14.71L11.3001 17.3C11.6901 17.69 12.3201 17.69 12.7101 17.3L15.3001 14.71C15.9301 14.08 15.4801 13 14.5901 13H9.41005C8.52005 13 8.08005 14.08 8.71005 14.71Z",fill:a}),e("path",{d:"M8.71005 8.88253L11.3001 6.29253C11.6901 5.90253 12.3201 5.90253 12.7101 6.29253L15.3001 8.88253C15.9301 9.51253 15.4801 10.5925 14.5901 10.5925H9.41005C8.52005 10.5925 8.08005 9.51253 8.71005 8.88253Z",fill:i})]})},Lce=i({}),Ice=me(yx)((({theme:e,sorting:t,active:n})=>({textAlign:"left",verticalAlign:"middle",cursor:t?"pointer":void 0,color:n?e.scale10:e.table.color.header,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,"&:hover":{color:t?e.scale8:void 0}})),In),Rce=me.div(Pce),Nce=me(mx)((({theme:e,padding:t="8px 24px",paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i,backgroundColor:a})=>{const{backgroundColor:l}=s(Lce),u=Cce({padding:t,paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i}),{top:c,right:d,bottom:f,left:p}=u;return{"& > tr > th":{padding:0,outline:"none",backgroundColor:a||l||e.background0,position:"sticky",zIndex:1,top:0,"&:focus-visible":{outline:`${e.accent} solid 1px`}},"& > tr > th > div":{paddingTop:`${c}px`,paddingBottom:`${f}px`},"& > tr > th:first-of-type > div":{paddingLeft:`${p}px`},"& > tr > th:last-of-type > div":{paddingRight:`${d}px`}}})),$ce=t=>{var{children:n,data:r,onScrollEnd:o,backgroundColor:i,maxHeight:l}=t,s=M(t,["children","data","onScrollEnd","backgroundColor","maxHeight"]);const[u,c]=v(r),[d,f]=v(),p=r&&"function"==typeof n?n(u):n;m((()=>{let e=r;if(d){const{key:t,dir:n}=d;e=Rt.orderBy(r,t,n)}Rt.isEqual(e,u)||c(e)}),[r,d]);const h=a((()=>({activeColumn:d,setActiveColumn:f,backgroundColor:i})),[d,f,i]);return e(Lce.Provider,{value:h,children:e(zce,{onScroll:e=>{const t=e.target;t.scrollHeight-t.scrollTop===t.clientHeight&&o&&o()},backgroundColor:i,maxHeight:l,children:e(Bce,Object.assign({},s,{children:p}))})})};$ce.Header=Nce,$ce.Column=n=>{var{children:r,sortKey:o,sorted:i,onClick:a,resize:l,direction:u,justify:c,align:d,gap:f}=n,p=M(n,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[h,g]=v(i||"inactive"),{activeColumn:y,setActiveColumn:b}=s(Lce),w=o||i,x="asc"===h||"desc"===h,C={direction:u,justify:c,align:d,gap:f},S=e=>{if(g(e),b&&o){b("inactive"===e?void 0:{key:o,dir:e})}};return m((()=>{!o||"asc"!==i&&"desc"!==i||S(i)}),[]),m((()=>{i&&g(i)}),[i]),m((()=>{const e=!y&&i;o&&y&&y.key!==o&&"inactive"!==h&&!e&&g("inactive")}),[y,h]),e(Ice,Object.assign({sorting:!!w,active:x},p,{children:t(Rce,Object.assign({onClick:w||a?e=>{o?S("inactive"===h?"asc":"asc"===h?"desc":"inactive"):a&&a(e)}:void 0},C,{children:[e(Fse,{children:r}),w&&e("span",{"aria-hidden":"true",children:e(zn,{svg:e(jce,{sortDirection:h}),marginLeft:-8})}),l&&e(Mce,{})]}))}))},$ce.Body=({children:n,emptyFallback:r,fetching:o,loading:i})=>t(Dce,{renderEmptyState:({isEmpty:e})=>e&&r?r:null,children:[i&&e(Ece,{}),!i&&n,o&&e(Ece,{spinnerSize:"small"})]}),$ce.Row=Sce,$ce.Cell=t=>{var{children:n,defaultValue:r,direction:o,justify:i,align:a,gap:l}=t,s=M(t,["children","defaultValue","direction","justify","align","gap"]);const u={direction:o,justify:i,align:a,gap:l},c=n||r;return e(Tce,Object.assign({showDefault:!!r&&!n},s,{children:e(Ace,Object.assign({},u,{children:"string"==typeof c?e(Fse,{paddingRight:2,children:c}):c}))}))};const zce=me(sx)((({theme:e,backgroundColor:t,maxHeight:n})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:n||"100%",backgroundColor:t||e.background0}))),Bce=me(px)(Rn,In),Fce=n=>{var{items:r,activeItem:o,itemWidth:i,itemGap:a,onChange:l}=n,s=M(n,["items","activeItem","itemWidth","itemGap","onChange"]);const u=r.filter((e=>!1!==e.visible));return e(Kce,Object.assign({gap:a},s,{children:u.map((n=>{const{id:r,label:a,icon:s,iconColor:u,iconPosition:c}=n,d=M(n,["id","label","icon","iconColor","iconPosition"]);return t(Vce,Object.assign({active:r===o,itemWidth:i,reverse:"right"===c,onClick:()=>(e=>{l(e)})(n),gap:s?4:void 0},d,{children:[s&&e(zn,{name:s,size:"small",color:u,inheritColor:!u}),a]}),r)}))}))},Kce=me.div((({gap:e=8})=>({display:"flex",gap:e})),Rn),Vce=me.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"})));const Hce="dismissableLayer.update",Uce="dismissableLayer.pointerDownOutside",Wce="dismissableLayer.focusOutside";let Zce;const qce=i({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gce=d(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...d}=e,f=s(qce),[p,h]=v(null),y=null!==(n=null==p?void 0:p.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=v({}),w=xe(t,(e=>h(e))),x=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),S=x.indexOf(C),k=p?x.indexOf(p):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,O=k>=S,D=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Pe(e),r=g(!1),o=g((()=>{}));return m((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){Xce(Uce,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...f.branches].some((e=>e.contains(t)));O&&!n&&(null==i||i(e),null==u||u(e),e.defaultPrevented||null==c||c())}),y),_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Pe(e),r=g(!1);return m((()=>{const e=e=>{if(e.target&&!r.current){Xce(Wce,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...f.branches].some((e=>e.contains(t)))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==c||c())}),y);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Pe(e);m((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{k===f.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),y),m((()=>{if(p)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(Zce=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),Yce(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=Zce)}}),[p,y,r,f]),m((()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),Yce())}),[p,f]),m((()=>{const e=()=>b({});return document.addEventListener(Hce,e),()=>document.removeEventListener(Hce,e)}),[]),l(Ae.div,Ce({},d,{ref:w,style:{pointerEvents:E?O?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,_.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,D.onPointerDownCapture)}))}));function Yce(){const e=new CustomEvent(Hce);document.dispatchEvent(e)}function Xce(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&T((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}const Jce=["top","right","bottom","left"],Qce=Math.min,ede=Math.max,tde=Math.round,nde=Math.floor,rde=e=>({x:e,y:e}),ode={left:"right",right:"left",bottom:"top",top:"bottom"},ide={start:"end",end:"start"};function ade(e,t,n){return ede(e,Qce(t,n))}function lde(e,t){return"function"==typeof e?e(t):e}function sde(e){return e.split("-")[0]}function ude(e){return e.split("-")[1]}function cde(e){return"x"===e?"y":"x"}function dde(e){return"y"===e?"height":"width"}function fde(e){return["top","bottom"].includes(sde(e))?"y":"x"}function pde(e){return cde(fde(e))}function hde(e){return e.replace(/start|end/g,(e=>ide[e]))}function gde(e){return e.replace(/left|right|bottom|top/g,(e=>ode[e]))}function mde(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function vde(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function yde(e,t,n){let{reference:r,floating:o}=e;const i=fde(t),a=pde(t),l=dde(a),s=sde(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ude(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function bde(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=lde(t,e),h=mde(p),g=l[f?"floating"===d?"reference":"floating":d],m=vde(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=vde(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}function wde(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xde(e){return Jce.some((t=>e[t]>=0))}const Cde=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=sde(n),l=ude(n),s="y"===fde(n),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=lde(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}};function Sde(e){return Ode(e)?(e.nodeName||"").toLowerCase():"#document"}function kde(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ede(e){var t;return null==(t=(Ode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ode(e){return e instanceof Node||e instanceof kde(e).Node}function Dde(e){return e instanceof Element||e instanceof kde(e).Element}function _de(e){return e instanceof HTMLElement||e instanceof kde(e).HTMLElement}function Pde(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof kde(e).ShadowRoot)}function Tde(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ide(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ade(e){return["table","td","th"].includes(Sde(e))}function Mde(e){const t=jde(),n=Ide(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function jde(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lde(e){return["html","body","#document"].includes(Sde(e))}function Ide(e){return kde(e).getComputedStyle(e)}function Rde(e){return Dde(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nde(e){if("html"===Sde(e))return e;const t=e.assignedSlot||e.parentNode||Pde(e)&&e.host||Ede(e);return Pde(t)?t.host:t}function $de(e){const t=Nde(e);return Lde(t)?e.ownerDocument?e.ownerDocument.body:e.body:_de(t)&&Tde(t)?t:$de(t)}function zde(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$de(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=kde(o);return i?t.concat(a,a.visualViewport||[],Tde(o)?o:[],a.frameElement&&n?zde(a.frameElement):[]):t.concat(o,zde(o,[],n))}function Bde(e){const t=Ide(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_de(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=tde(n)!==i||tde(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Fde(e){return Dde(e)?e:e.contextElement}function Kde(e){const t=Fde(e);if(!_de(t))return rde(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Bde(t);let a=(i?tde(n.width):n.width)/r,l=(i?tde(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Vde=rde(0);function Hde(e){const t=kde(e);return jde()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Vde}function Ude(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Fde(e);let a=rde(1);t&&(r?Dde(r)&&(a=Kde(r)):a=Kde(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==kde(e))&&t}(i,n,r)?Hde(i):rde(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=kde(i),t=r&&Dde(r)?kde(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Kde(o),t=o.getBoundingClientRect(),r=Ide(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=i,u+=a,n=kde(o),o=n.frameElement}}return vde({width:c,height:d,x:s,y:u})}const Wde=[":popover-open",":modal"];function Zde(e){return Wde.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function qde(e){return Ude(Ede(e)).left+Rde(e).scrollLeft}function Gde(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=kde(e),r=Ede(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=jde();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Ede(e),n=Rde(e),r=e.ownerDocument.body,o=ede(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ede(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+qde(e);const l=-n.scrollTop;return"rtl"===Ide(r).direction&&(a+=ede(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(Ede(e));else if(Dde(t))r=function(e,t){const n=Ude(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=_de(e)?Kde(e):rde(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Hde(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return vde(r)}function Yde(e,t){const n=Nde(e);return!(n===t||!Dde(n)||Lde(n))&&("fixed"===Ide(n).position||Yde(n,t))}function Xde(e,t,n){const r=_de(t),o=Ede(t),i="fixed"===n,a=Ude(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=rde(0);if(r||!r&&!i)if(("body"!==Sde(t)||Tde(o))&&(l=Rde(t)),r){const e=Ude(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=qde(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Jde(e,t){return _de(e)&&"fixed"!==Ide(e).position?t?t(e):e.offsetParent:null}function Qde(e,t){const n=kde(e);if(!_de(e)||Zde(e))return n;let r=Jde(e,t);for(;r&&Ade(r)&&"static"===Ide(r).position;)r=Jde(r,t);return r&&("html"===Sde(r)||"body"===Sde(r)&&"static"===Ide(r).position&&!Mde(r))?n:r||function(e){let t=Nde(e);for(;_de(t)&&!Lde(t);){if(Mde(t))return t;t=Nde(t)}return null}(e)||n}const efe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Ede(r),l=!!t&&Zde(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=rde(1);const c=rde(0),d=_de(r);if((d||!d&&!i)&&(("body"!==Sde(r)||Tde(a))&&(s=Rde(r)),_de(r))){const e=Ude(r);u=Kde(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:Ede,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=zde(e,[],!1).filter((e=>Dde(e)&&"body"!==Sde(e))),o=null;const i="fixed"===Ide(e).position;let a=i?Nde(e):e;for(;Dde(a)&&!Lde(a);){const t=Ide(a),n=Mde(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Tde(a)&&!n&&Yde(e,a))?r=r.filter((e=>e!==a)):o=t,a=Nde(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=Gde(t,n,o);return e.top=ede(r.top,e.top),e.right=Qce(r.right,e.right),e.bottom=Qce(r.bottom,e.bottom),e.left=ede(r.left,e.left),e}),Gde(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Qde,getElementRects:async function(e){const t=this.getOffsetParent||Qde,n=this.getDimensions;return{reference:Xde(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Bde(e);return{width:t,height:n}},getScale:Kde,isElement:Dde,isRTL:function(e){return"rtl"===Ide(e).direction}};function tfe(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=Fde(e),c=o||i?[...u?zde(u):[],...zde(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&l?function(e,t){let n,r=null;const o=Ede(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-nde(c)+"px "+-nde(o.clientWidth-(u+d))+"px "+-nde(o.clientHeight-(c+f))+"px "+-nde(u)+"px",threshold:ede(0,Qce(1,s))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!s&&h.observe(u),h.observe(t));let g=s?Ude(e):null;return s&&function t(){const r=Ude(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const nfe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=lde(e,t),u={x:n,y:r},c=await bde(t,s),d=fde(sde(o)),f=cde(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=ade(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=ade(h+c["y"===d?"top":"left"],h,h-c[e])}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},rfe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=lde(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=sde(o),y=sde(l)===l,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=f||(y||!g?[gde(l)]:function(e){const t=gde(e);return[hde(e),t,hde(t)]}(l));f||"none"===h||w.push(...function(e,t,n,r){const o=ude(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(sde(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(hde)))),i}(l,g,h,b));const x=[l,...w],C=await bde(t,m),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ude(e),o=pde(e),i=dde(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gde(a)),[a,gde(a)]}(o,a,b);S.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,O;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(O=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},ofe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=lde(e,t),s=await bde(t,l),u=sde(n),c=ude(n),d="y"===fde(n),{width:f,height:p}=r.floating;let h,g;"top"===u||"bottom"===u?(h=u,g=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,h="end"===c?"top":"bottom");const m=p-s[h],v=f-s[g],y=!t.middlewareData.shift;let b=m,w=v;if(d){const e=f-s.left-s.right;w=c||y?Qce(v,e):e}else{const e=p-s.top-s.bottom;b=c||y?Qce(m,e):e}if(y&&!c){const e=ede(s.left,0),t=ede(s.right,0),n=ede(s.top,0),r=ede(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:ede(s.left,s.right)):b=p-2*(0!==n||0!==r?n+r:ede(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},ife=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=lde(e,t);switch(r){case"referenceHidden":{const e=wde(await bde(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:xde(e)}}}case"escaped":{const e=wde(await bde(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:xde(e)}}}default:return{}}}}},afe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=lde(e,t)||{};if(null==u)return{};const d=mde(c),f={x:n,y:r},p=pde(o),h=dde(p),g=await a.getDimensions(u),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=C?C[b]:0;S&&await(null==a.isElement?void 0:a.isElement(C))||(S=l.floating[b]||i.floating[h]);const k=w/2-x/2,E=S/2-g[h]/2-1,O=Qce(d[v],E),D=Qce(d[y],E),_=O,P=S-g[h]-D,T=S/2-g[h]/2+k,A=ade(_,T,P),M=!s.arrow&&null!=ude(o)&&T!==A&&i.reference[h]/2-(T<_?O:D)-g[h]/2<0,j=M?T<_?T-_:T-P:0;return{[p]:f[p]+j,data:{[p]:A,centerOffset:T-A-j,...M&&{alignmentOffset:j}},reset:M}}}),lfe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=lde(e,t),c={x:n,y:r},d=fde(o),f=cde(d);let p=c[f],h=c[d];const g=lde(l,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(sde(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},sfe=(e,t,n)=>{const r=new Map,o={platform:efe,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=yde(u,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:m,y:v,data:y,reset:b}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=yde(u,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},ufe=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?afe({element:n.current,padding:r}).fn(t):{}:n?afe({element:n,padding:r}).fn(t):{};var o}});var cfe="undefined"!=typeof document?y:m;function dfe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!dfe(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!dfe(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ffe(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pfe(e,t){const n=ffe(e);return Math.round(t*n)/n}function hfe(e){const t=r.useRef(e);return cfe((()=>{t.current=e})),t}const gfe=d(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l(Ae.svg,Ce({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:l("polygon",{points:"0,0 30,0 15,10"}))}));const mfe="Popper",[vfe,yfe]=ye(mfe),[bfe,wfe]=vfe(mfe),xfe=d(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=wfe("PopperAnchor",n),a=g(null),s=xe(t,a);return m((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:l(Ae.div,Ce({},o,{ref:s}))})),Cfe="PopperContent",[Sfe,kfe]=vfe(Cfe),Efe=d(((e,t)=>{var n,o,i,a,s,u,c,d;const{__scopePopper:f,side:p="bottom",sideOffset:h=0,align:g="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:k="optimized",onPlaced:E,...O}=e,D=wfe(Cfe,f),[P,T]=v(null),A=xe(t,(e=>T(e))),[M,j]=v(null),L=function(e){const[t,n]=v(void 0);return Me((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(M),I=null!==(n=null==L?void 0:L.width)&&void 0!==n?n:0,R=null!==(o=null==L?void 0:L.height)&&void 0!==o?o:0,N=p+("center"!==g?"-"+g:""),$="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},z=Array.isArray(w)?w:[w],B=z.length>0,F={padding:$,boundary:z.filter(Pfe),altBoundary:B},{refs:K,floatingStyles:V,placement:H,isPositioned:U,middlewareData:W}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);dfe(p,o)||h(o);const[g,m]=r.useState(null),[v,y]=r.useState(null),b=r.useCallback((e=>{e!==S.current&&(S.current=e,m(e))}),[]),w=r.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),x=a||g,C=l||v,S=r.useRef(null),k=r.useRef(null),E=r.useRef(d),O=null!=u,D=hfe(u),P=hfe(i),T=r.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),sfe(S.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!dfe(E.current,t)&&(E.current=t,_.flushSync((()=>{f(t)})))}))}),[p,t,n,P]);cfe((()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[c]);const A=r.useRef(!1);cfe((()=>(A.current=!0,()=>{A.current=!1})),[]),cfe((()=>{if(x&&(S.current=x),C&&(k.current=C),x&&C){if(D.current)return D.current(x,C,T);T()}}),[x,C,T,D,O]);const M=r.useMemo((()=>({reference:S,floating:k,setReference:b,setFloating:w})),[b,w]),j=r.useMemo((()=>({reference:x,floating:C})),[x,C]),L=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=pfe(j.floating,d.x),r=pfe(j.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ffe(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,j.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:T,refs:M,elements:j,floatingStyles:L})),[d,T,M,j,L])}({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>tfe(...e,{animationFrame:"always"===k}),elements:{reference:D.anchor},middleware:[Cde({mainAxis:h+R,alignmentAxis:m}),b&&nfe({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?lfe():void 0,...F}),b&&rfe({...F}),ofe({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),M&&ufe({element:M,padding:y}),Tfe({arrowWidth:I,arrowHeight:R}),S&&ife({strategy:"referenceHidden",...F})]}),[Z,q]=Afe(H),G=Pe(E);Me((()=>{U&&(null==G||G())}),[U,G]);const Y=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(a=W.arrow)||void 0===a?void 0:a.y,J=0!==(null===(s=W.arrow)||void 0===s?void 0:s.centerOffset),[Q,ee]=v();return Me((()=>{P&&ee(window.getComputedStyle(P).zIndex)}),[P]),l("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:U?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(u=W.transformOrigin)||void 0===u?void 0:u.x,null===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},l(Sfe,{scope:f,placedSide:Z,onArrowChange:j,arrowX:Y,arrowY:X,shouldHideArrow:J},l(Ae.div,Ce({"data-side":Z,"data-align":q},O,{ref:A,style:{...O.style,animation:U?void 0:"none",opacity:null!==(d=W.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))})),Ofe="PopperArrow",Dfe={top:"bottom",right:"left",bottom:"top",left:"right"},_fe=d((function(e,t){const{__scopePopper:n,...r}=e,o=kfe(Ofe,n),i=Dfe[o.placedSide];return l("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},l(gfe,Ce({},r,{ref:t,style:{...r.style,display:"block"}})))}));function Pfe(e){return null!==e}const Tfe=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Afe(l),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?g:`${m}px`,b=-f+"px"):"top"===p?(y=c?g:`${m}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?g:`${v}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?g:`${v}px`),{data:{x:y,y:b}}}});function Afe(e){const[t,n="center"]=e.split("-");return[t,n]}const Mfe=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v(null);return l(bfe,{scope:t,anchor:r,onAnchorChange:o},n)},jfe=xfe,Lfe=Efe,Ife=_fe,Rfe=d(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?P.createPortal(l(Ae.div,Ce({},o,{ref:t})),r):null})),Nfe=d(((e,t)=>l(Ae.span,Ce({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[$fe,zfe]=ye("Tooltip",[yfe]),Bfe=yfe(),Ffe=700,Kfe="tooltip.open",[Vfe,Hfe]=$fe("TooltipProvider"),Ufe="Tooltip",[Wfe,Zfe]=$fe(Ufe),qfe="TooltipTrigger",Gfe=d(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Zfe(qfe,n),i=Hfe(qfe,n),a=Bfe(n),s=xe(t,g(null),o.onTriggerChange),c=g(!1),d=g(!1),f=u((()=>c.current=!1),[]);return m((()=>()=>document.removeEventListener("pointerup",f)),[f]),l(jfe,ve({asChild:!0},a),l(Ae.button,ve({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:_e(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(d.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))})),onPointerLeave:_e(e.onPointerLeave,(()=>{o.onTriggerLeave(),d.current=!1})),onPointerDown:_e(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:_e(e.onFocus,(()=>{c.current||o.onOpen()})),onBlur:_e(e.onBlur,o.onClose),onClick:_e(e.onClick,o.onClose)})))})),Yfe="TooltipPortal",[Xfe,Jfe]=$fe(Yfe,{forceMount:void 0}),Qfe="TooltipContent",epe=d(((e,t)=>{const n=Jfe(Qfe,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Zfe(Qfe,e.__scopeTooltip);return l(je,{present:r||a.open},a.disableHoverableContent?l(ope,ve({side:o},i,{ref:t})):l(tpe,ve({side:o},i,{ref:t})))})),tpe=d(((e,t)=>{const n=Zfe(Qfe,e.__scopeTooltip),r=Hfe(Qfe,e.__scopeTooltip),o=g(null),i=xe(t,o),[a,s]=v(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,h=u((()=>{s(null),p(!1)}),[p]),y=u(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);s(a),p(!0)}),[p]);return m((()=>()=>h()),[h]),m((()=>{if(c&&f){const e=e=>y(e,f),t=e=>y(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[c,f,y,h]),m((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,s=t[i].x,u=t[i].y;l>r!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,a);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,f,a,d,h]),l(ope,ve({},e,{ref:i}))})),[npe,rpe]=$fe(Ufe,{isInside:!1}),ope=d(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,u=Zfe(Qfe,n),c=Bfe(n),{onClose:d}=u;return m((()=>(document.addEventListener(Kfe,d),()=>document.removeEventListener(Kfe,d))),[d]),m((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,d]),l(Gce,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d},l(Lfe,ve({"data-state":u.stateAttribute},c,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),l(Ee,null,r),l(npe,{scope:n,isInside:!0},l(Nfe,{id:u.contentId,role:"tooltip"},o||r))))}));const ipe=e=>{const{__scopeTooltip:t,delayDuration:n=Ffe,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=v(!0),c=g(!1),d=g(0);return m((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),l(Vfe,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:u((()=>{window.clearTimeout(d.current),s(!1)}),[]),onClose:u((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:u((e=>{c.current=e}),[]),disableHoverableContent:o},i)},ape=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:c}=e,d=Hfe(Ufe,e.__scopeTooltip),f=Bfe(t),[p,h]=v(null),y=Ne(),b=g(0),w=null!=s?s:d.disableHoverableContent,x=null!=c?c:d.delayDuration,C=g(!1),[S=!1,k]=Te({prop:r,defaultProp:o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(Kfe))):d.onClose(),null==i||i(e)}}),E=a((()=>S?C.current?"delayed-open":"instant-open":"closed"),[S]),O=u((()=>{window.clearTimeout(b.current),C.current=!1,k(!0)}),[k]),D=u((()=>{window.clearTimeout(b.current),k(!1)}),[k]),_=u((()=>{window.clearTimeout(b.current),b.current=window.setTimeout((()=>{C.current=!0,k(!0)}),x)}),[x,k]);return m((()=>()=>window.clearTimeout(b.current)),[]),l(Mfe,f,l(Wfe,{scope:t,contentId:y,open:S,stateAttribute:E,trigger:p,onTriggerChange:h,onTriggerEnter:u((()=>{d.isOpenDelayed?_():O()}),[d.isOpenDelayed,_,O]),onTriggerLeave:u((()=>{w?D():window.clearTimeout(b.current)}),[D,w]),onOpen:O,onClose:D,disableHoverableContent:w},n))},lpe=Gfe,spe=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Zfe(Yfe,t);return l(Xfe,{scope:t,forceMount:n},l(je,{present:n||i.open},l(Rfe,{asChild:!0,container:o},r)))},upe=d(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Bfe(n);return rpe("TooltipArrow",n).isInside?null:l(Ife,ve({},o,r,{ref:t}))})),cpe=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},dpe=n=>{var{trigger:r,children:o,content:i,position:a="top",offset:l=4,zIndex:s,width:u,maxWidth:c,textAlign:d,open:f,disabled:p,id:h,bgColor:g,color:m,container:v,afterShow:y,afterHide:b}=n,w=M(n,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e(ipe,{children:t(ape,{delayDuration:0,onOpenChange:e=>{p||(y&&e&&y(),b&&!e&&b())},open:f,children:[e(lpe,{asChild:!0,children:e(ppe,Object.assign({},w,{children:r}))}),e(spe,{container:v,children:!p&&t(fpe,{side:cpe(a).side,align:cpe(a).align,sideOffset:l,zIndex:s,width:u,maxWidth:c,textAlign:d,id:h,bgColor:g,textColor:m,children:[i||o,e(upe,{className:"tooltip-arrow",width:12,height:8})]})})]})})},fpe=me(epe,{shouldForwardProp:e=>Kx(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:l,font:s}=e,u=l.background,c=o||u;return{backgroundColor:c,boxShadow:e.elevation1,color:i||l.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:c,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),ppe=me.div({display:"inline-flex"}),hpe=me.div((({theme:e})=>({color:e.tooltip.color.default}))),gpe=me.div((({theme:e})=>({color:e.tooltip.color.subtext})));dpe.Header=hpe,dpe.Body=gpe;const mpe=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:u,width:c,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:y})=>{const b=g(),[w,x]=v([]),[C,S]=v([]),k={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:y},E=e=>{const t=Object.assign({},e);return delete t.selected,t};m((()=>{if(!Nt.isEqual(n,b.current)){b.current=n;const e=n.filter((e=>e.selected)).map(E),t=n.filter((e=>!e.selected)).map(E);S(e),x(t)}}),[n,b]),m((()=>{r(C)}),[C]);const O=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?S:x;(n?x:S)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},D=e=>{const t="select"===e?x:S,n="select"===e?w:C;("select"===e?S:x)((e=>[...e,...n])),t([])},_=n=>t("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[n.leftElement||null,n.header&&n.body?t("div",{style:{display:"flex",flexDirection:"column"},children:[e(kpe,{children:n.header}),e(Epe,{children:n.body})]}):n.label,n.rightElement&&e("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),P=!(l&&s);return t(vpe,Object.assign({width:c,readOnly:u},k,{children:[i&&e(ype,{children:i}),t(bpe,{children:[!u&&t(wpe,{children:[P&&e(xpe,{children:w.length>0&&!l&&e(hC,{small:!0,outline:!0,onClick:()=>D("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e(Cpe,{children:w.map((n=>t(Spe,{onClick:()=>O(n,"select"),color:n.color,children:[_(n),e(zn,{name:"chevron-right"})]},n.id)))})]}),t(wpe,{children:[P&&!u&&e(xpe,{children:C.length>0&&!s&&!u&&e(hC,{small:!0,outline:!0,secondary:!0,onClick:()=>D("remove"),icon:"arrow-left",children:"All"})}),u&&0===C.length?e("div",{children:a}):e(Cpe,{children:C.map((n=>t(Spe,{onClick:()=>O(n,"remove"),color:n.color,children:[_(n),e(zn,{name:"chevron-left"})]},n.id)))})]})]})]}))},vpe=me.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),Rn),ype=me.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),bpe=me.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),wpe=me.div({display:"flex",flexDirection:"column"}),xpe=me.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Cpe=me.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),Spe=me.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),kpe=me.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Epe=me.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var Ope={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function l(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function s(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function f(e,t,n){function r(){c&&o&&i&&(c(u),c=null)}t=l(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,c=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),s(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=l(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function m(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function S(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function k(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function E(e){if(e.g){var t=d(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),c(e.f,n,r)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,x(n)):e.h[t]())}function D(){this.c={}}function _(e,t){this.c=e,this.f=t,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function P(e){s(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+C(e)+";font-weight:"+e.f+"00;"}function A(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new _(this.c,this.s),this.h=new _(this.c,this.s),this.j=new _(this.c,this.s),this.m=new _(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,P(this.g),P(this.h),P(this.j),P(this.m)}y.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},A.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return C(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var j={D:"serif",C:"sans-serif"},L=null;function I(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function R(e,t,n){for(var r in j)if(j.hasOwnProperty(r)&&t===e.f[j[r]]&&n===e.f[j[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&R(e,n,i)),t?o()-e.A>=e.w?I()&&R(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?$(e,e.v):$(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):$(e,e.v)}function $(e,t){setTimeout(r((function(){u(this.g.a),u(this.h.a),u(this.j.a),u(this.m.a),t(this.a)}),e),0)}function z(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var B=null;function F(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&c(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):E(e.a))}function K(e){this.j=e,this.a=new D,this.h=0,this.f=this.g=!0}function V(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===n.length&&a)E(t.a);else{t.f+=n.length,a&&(t.j=a);var s,u=[];for(s=0;s<n.length;s++){var d=n[s],f=l[d.c],p=t.a,h=d;if(p.g&&c(p.f,[p.a.c("wf",h.c,x(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===B)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);B=h?42<parseInt(h[1],10):!g}else B=!1;p=B?new A(r(t.g,t),r(t.h,t),t.c,d,t.s,f):new M(r(t.g,t),r(t.h,t),t.c,d,t.s,e,f),u.push(p)}for(s=0;s<u.length;s++)u[s].start()}}),0)}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||Z,this.a=[],this.f=[],this.g=t||""}z.prototype.g=function(e){var t=this.a;t.g&&c(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,F(this)},z.prototype.h=function(e){var t=this.a;if(t.g){var n=d(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),c(t.f,r,o)}O(t,"fontinactive",e),F(this)},K.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&c(e.f,[e.a.c("wf","loading")]),O(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new z(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new k(this.c,e),e)},H.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var s=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new b(s,n))):a.push(new b(s))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},U.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)f(this.c,r[t],g(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),u=0;u<s.length;u+=1)l.push(new b(r[0],s[u]));else l.push(new b(r[0]));m(a,(function(){e(l,i)}))};var Z="https://fonts.googleapis.com/css";function q(e){this.f=e,this.a=[],this.c={}}var G={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new q(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,s=(l=l.split(",")).length,u=0;u<s;u++){var c;if((c=l[u]).match(/^[\w-]+$/))if(null==(d=J.exec(c.toLowerCase())))c="";else{if(c=null==(c=d[2])||""==c?"n":X[c],null==(d=d[1])||""==d)d="4";else var d=Y[d]||(isNaN(d)?"4":d.substr(0,1));c=[c,d].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),f(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),m(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new b(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,S("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new K(window);re.a.c.custom=function(e,t){return new U(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new H(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(Ope);var Dpe=Mt(Ope.exports);const _pe=({families:t,fontFamily:n})=>(m((()=>{var e;e=t,Dpe.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[t]),e(D,{styles:{"html,body":{margin:0,fontFamily:n||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),Ppe=()=>{const{scale1:t}=O();return e(D,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},Tpe=()=>{const{font:t,toast:n}=O();return e(D,{styles:{".Toastify__toast":{color:n.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:n.color},".Toastify__toast--default":{background:n.background.deafult,border:`1px solid ${n.border.deafult}`},".Toastify__toast--info":{background:n.background.info,border:`1px solid ${n.border.info}`,"& .Toastify__toast-icon > svg":{fill:n.border.info}},".Toastify__toast--success":{background:n.background.success,border:`1px solid ${n.border.success}`,"& .Toastify__toast-icon > svg":{fill:n.border.success}},".Toastify__toast--warning":{background:n.background.warning,border:`1px solid ${n.border.warning}`,"& .Toastify__toast-icon > svg":{fill:n.border.warning}},".Toastify__toast--error":{background:n.background.error,border:`1px solid ${n.border.error}`,"& .Toastify__toast-icon > svg":{fill:n.border.error}},".Toastify__progress-bar--default":{background:n.border.deafult},".Toastify__progress-bar--info":{background:n.border.info},".Toastify__progress-bar--success":{background:n.border.success},".Toastify__progress-bar--warning":{background:n.border.warning},".Toastify__progress-bar--error":{background:n.border.error}}})},Ape="#0074F4",Mpe="#FF6068",jpe="#FF9900",Lpe="#F0BB00",Ipe="#00C242",Rpe="#001D32",Npe="#FFFFFF",$pe={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:Ape,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:zr(.95,Ape),brandTint1:zr(.9,Ape),brandTint2:zr(.8,Ape),brandTint3:zr(.7,Ape),brandTint4:zr(.6,Ape),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:Mpe,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:zr(.95,Mpe),errorTint1:zr(.9,Mpe),errorTint2:zr(.8,Mpe),warning:jpe,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:zr(.95,jpe),warningTint1:zr(.9,jpe),warningTint2:zr(.8,jpe),alert:Lpe,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:zr(.95,Lpe),alertTint1:zr(.9,Lpe),alertTint2:zr(.8,Lpe),success:Ipe,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:zr(.95,Ipe),successTint1:zr(.9,Ipe),successTint2:zr(.8,Ipe),grayscale0:zr(.95,Rpe),grayscale1:zr(.9,Rpe),grayscale2:zr(.8,Rpe),grayscale3:zr(.7,Rpe),grayscale4:zr(.6,Rpe),grayscale5:zr(.5,Rpe),grayscale6:zr(.4,Rpe),grayscale7:zr(.3,Rpe),grayscale8:zr(.2,Rpe),grayscale9:zr(.1,Rpe),grayscale10:Rpe,contrast0:zr(.95,Npe),contrast1:zr(.9,Npe),contrast2:zr(.8,Npe),contrast3:zr(.7,Npe),contrast4:zr(.6,Npe),contrast5:zr(.5,Npe),contrast6:zr(.4,Npe),contrast7:zr(.3,Npe),contrast8:zr(.2,Npe),contrast9:zr(.1,Npe),contrast10:Npe};var zpe={color:$pe,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:Bpe}=zpe;var Fpe={small:{height:28,iconSize:18,font:Bpe.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:Bpe.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:Bpe.size.lg,padding:14,iconOnlyPadding:6}};const Kpe="#FFFFFF",Vpe={scale0:$pe.grayscale0,scale1:$pe.grayscale1,scale2:$pe.grayscale2,scale3:$pe.grayscale3,scale4:$pe.grayscale4,scale5:$pe.grayscale5,scale6:$pe.grayscale6,scale7:$pe.grayscale7,scale8:$pe.grayscale8,scale9:$pe.grayscale9,scale10:$pe.grayscale10,accent:$pe.brand,accentShade:$pe.brandShade1,background0:Kpe,background1:Kpe,background2:Kpe,background3:Kpe,background4:Kpe,background5:Kpe},Hpe="#FFFFFF",Upe=$pe.grayscale0,Wpe=$pe.grayscale1,Zpe=$pe.grayscale2,qpe=$pe.grayscale3,Gpe=$pe.grayscale4,Ype=$pe.grayscale6,Xpe=$pe.grayscale8,Jpe=$pe.grayscale9,Qpe=$pe.grayscale10,ehe=Object.assign(Object.assign(Object.assign({},zpe),Vpe),{name:"light",button:Object.assign(Object.assign({},Fpe),{primary:{color:{default:Hpe,hover:Hpe,active:Hpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},outlineBackground:{default:$pe.brandTint0,hover:$pe.brandTint1,active:$pe.brandTint2},border:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},divider:Zpe},secondary:{color:{default:Qpe,hover:Qpe,active:Qpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:Wpe,hover:Zpe,active:qpe},outlineBackground:{default:Wpe,hover:Zpe,active:qpe},border:{default:Zpe,hover:Zpe,active:Zpe},divider:Zpe},positive:{color:{default:Hpe,hover:Hpe,active:Hpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},outlineBackground:{default:$pe.successTint0,hover:$pe.successTint1,active:$pe.successTint2},border:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},divider:Zpe},negative:{color:{default:Hpe,hover:Hpe,active:Hpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},outlineBackground:{default:$pe.errorTint0,hover:$pe.errorTint1,active:$pe.errorTint2},border:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},divider:Zpe},caution:{color:{default:Hpe,hover:Hpe,active:Hpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},outlineBackground:{default:$pe.warningTint0,hover:$pe.warningTint1,active:$pe.warningTint2},border:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},divider:Zpe},subtle:{color:{default:$pe.brand,hover:$pe.brand,active:$pe.brand},outlineColor:{default:$pe.brand,hover:$pe.brand,active:$pe.brand},secondaryColor:{default:Qpe,hover:Qpe,active:Qpe},positiveColor:{default:$pe.success,hover:$pe.success,active:$pe.success},negativeColor:{default:$pe.error,hover:$pe.error,active:$pe.error},cautionColor:{default:$pe.warning,hover:$pe.warning,active:$pe.warning},background:{default:"transparent",hover:Wpe,active:Zpe},outlineBackground:{default:"transparent",hover:Wpe,active:Zpe},border:{default:"transparent",hover:Zpe,active:Zpe},divider:Zpe},link:{color:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},outlineColor:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},secondaryColor:{default:Xpe,hover:Jpe,active:Qpe},positiveColor:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},negativeColor:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},cautionColor:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Gpe,hover:Gpe,active:Gpe},outlineColor:{default:Gpe,hover:Gpe,active:Gpe},background:{default:Wpe,hover:Wpe,active:Wpe},outlineBackground:{default:Upe,hover:Upe,active:Upe},border:{default:Wpe,hover:Wpe,active:Wpe},divider:Wpe},color:{default:Hpe}}),calendar:{background:{container:$pe.contrast10,hover:Wpe,active:$pe.brand,activeHover:$pe.brandShade1,activeRange:$pe.brandTint4},color:{disabled:Gpe,default:Qpe,active:$pe.contrast10,current:$pe.brand,outside:Ype,weekday:Xpe,monthYear:Xpe,iconDefault:Ype,iconDisabled:Zpe,iconHover:Qpe}},defaultBorder:`1px solid ${Wpe}`,formControl:{color:{default:Xpe,hover:Qpe,active:$pe.brand,activeHover:$pe.brandShade1,disabled:Gpe}},input:{borderRadius:4,background:{default:Upe,hover:Wpe,focused:Wpe,disabled:Upe},color:{default:Qpe,disabled:Gpe,placeholder:Ype,description:Ype,descriptionError:$pe.error},borderColor:{default:Ype,hover:Xpe,focused:$pe.brand,disabled:Gpe,error:$pe.error},labelColor:{default:Xpe,hover:Xpe,filled:Ype,focused:$pe.brand,disabled:Gpe}},menu:{background:Hpe},menuItem:{borderColor:$pe.brand,background:{active:Upe,hover:Wpe,inactive:"transparent"},color:{active:Qpe,hover:Qpe,inactive:Ype}},modal:{background:$pe.contrast10,color:{header:Qpe,body:Ype}},options:{background:$pe.contrast10},optionItem:{background:{active:Wpe,inactive:"transparent"},color:{active:Qpe,inactive:Qpe,accent:$pe.brand}},table:{color:{header:Ype,body:Qpe},borderColor:Wpe},toast:{color:Qpe,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:Xpe,info:$pe.brand,success:$pe.success,warning:$pe.warning,error:$pe.error}},toggle:{slider:$pe.contrast10},tooltip:{background:"#FFF",color:{default:Qpe,subtext:Ype}}}),the={scale0:$pe.contrast0,scale1:$pe.contrast1,scale2:$pe.contrast2,scale3:$pe.contrast3,scale4:$pe.contrast4,scale5:$pe.contrast5,scale6:$pe.contrast6,scale7:$pe.contrast7,scale8:$pe.contrast8,scale9:$pe.contrast9,scale10:$pe.contrast10,accent:$pe.brandDark,accentShade:$pe.brandDarkShade1,background0:$pe.brandBackground0,background1:$pe.brandBackground1,background2:$pe.brandBackground2,background3:$pe.brandBackground3,background4:$pe.brandBackground4,background5:$pe.brandBackground5},nhe=$pe.contrast0,rhe=$pe.contrast1,ohe=$pe.contrast2,ihe=$pe.contrast3,ahe=$pe.contrast4,lhe=$pe.contrast6,she=$pe.contrast8,uhe=$pe.contrast9,che=$pe.contrast10,dhe=$pe.brandDark,fhe={light:ehe,dark:Object.assign(Object.assign(Object.assign({},zpe),the),{name:"dark",button:Object.assign(Object.assign({},Fpe),{primary:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},outlineBackground:{default:$pe.brandTint0,hover:$pe.brandTint1,active:$pe.brandTint2},border:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},divider:ohe},secondary:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:rhe,hover:ohe,active:ihe},outlineBackground:{default:rhe,hover:ohe,active:ihe},border:{default:ohe,hover:ohe,active:ohe},divider:ohe},positive:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},outlineBackground:{default:$pe.successTint0,hover:$pe.successTint1,active:$pe.successTint2},border:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},divider:ohe},negative:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},outlineBackground:{default:$pe.errorTint0,hover:$pe.errorTint1,active:$pe.errorTint2},border:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},divider:ohe},caution:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},outlineBackground:{default:$pe.warningTint0,hover:$pe.warningTint1,active:$pe.warningTint2},border:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},divider:ohe},subtle:{color:{default:$pe.brand,hover:$pe.brand,active:$pe.brand},outlineColor:{default:$pe.brand,hover:$pe.brand,active:$pe.brand},secondaryColor:{default:che,hover:che,active:che},positiveColor:{default:$pe.success,hover:$pe.success,active:$pe.success},negativeColor:{default:$pe.error,hover:$pe.error,active:$pe.error},cautionColor:{default:$pe.warning,hover:$pe.warning,active:$pe.warning},background:{default:"transparent",hover:rhe,active:ohe},outlineBackground:{default:"transparent",hover:rhe,active:ohe},border:{default:"transparent",hover:ohe,active:ohe},divider:ohe},link:{color:{default:$pe.brandShade2,hover:$pe.brandShade1,active:$pe.brand},outlineColor:{default:$pe.brandShade2,hover:$pe.brandShade1,active:$pe.brand},secondaryColor:{default:she,hover:uhe,active:che},positiveColor:{default:$pe.successShade2,hover:$pe.successShade1,active:$pe.success},negativeColor:{default:$pe.errorShade2,hover:$pe.errorShade1,active:$pe.error},cautionColor:{default:$pe.warningShade2,hover:$pe.warningShade1,active:$pe.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:ahe,hover:ahe,active:ahe},outlineColor:{default:ahe,hover:ahe,active:ahe},background:{default:rhe,hover:rhe,active:rhe},outlineBackground:{default:nhe,hover:nhe,active:nhe},border:{default:rhe,hover:rhe,active:rhe},divider:rhe},color:{default:"#FFFFFF"}}),calendar:{background:{container:$pe.brandBackground3,hover:rhe,active:$pe.brand,activeHover:$pe.brandShade1,activeRange:$pe.brandTint4},color:{disabled:ahe,default:che,active:che,current:dhe,outside:lhe,weekday:she,monthYear:she,iconDefault:lhe,iconDisabled:ohe,iconHover:che}},defaultBorder:`1px solid ${rhe}`,formControl:{color:{default:she,hover:che,active:$pe.brand,activeHover:$pe.brandShade1,disabled:ahe}},input:{borderRadius:4,background:{default:nhe,hover:rhe,focused:rhe,disabled:nhe},color:{default:che,disabled:ahe,placeholder:lhe,description:lhe,descriptionError:$pe.error},borderColor:{default:lhe,hover:she,focused:dhe,disabled:ahe,error:$pe.error},labelColor:{default:she,hover:she,filled:lhe,focused:dhe,disabled:ahe}},menu:{background:$pe.brandBackground2},menuItem:{borderColor:$pe.brand,background:{active:nhe,hover:rhe,inactive:"transparent"},color:{active:che,hover:che,inactive:lhe}},modal:{background:$pe.brandBackground3,color:{header:che,body:lhe}},options:{background:$pe.brandBackground2},optionItem:{background:{active:rhe,inactive:"transparent"},color:{active:che,inactive:che,accent:dhe}},table:{color:{header:lhe,body:che},borderColor:rhe},toast:{color:che,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:she,info:$pe.brand,success:$pe.success,warning:$pe.warning,error:$pe.error}},toggle:{slider:$pe.brandBackground0},tooltip:{background:$pe.brandBackground4,color:{default:che,subtext:lhe}}})},phe=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:u,inputValue:c}={})=>{const[d,f]=v(c||""),[p,h]=v(null),g=()=>h(null);m((()=>{l&&"string"==typeof c&&d!==c&&f(c)}),[p]);const y=()=>{null==p||p.resolve(!l||d),g()},b=()=>{null==p||p.resolve(!1),g()};Dt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":b()}}),!!p,[d]);return[()=>new Promise((e=>{h({resolve:e})})),()=>t(Vue,{visible:!!p,onClose:g,width:400,children:[n&&e(Vue.Header,{children:n}),r&&e(Vue.Text,{children:r}),l&&e(Vue.Body,{marginTop:4,marginBottom:8,children:e(xse,{autoFocus:!0,label:s,placeholder:u,value:d,onChange:({target:e})=>f(e.value)})}),t(Vue.Footer,{children:[e(hC,{secondary:!0,marginRight:8,onClick:b,children:o}),e(hC,{negative:a,onClick:y,children:i})]})]})]};export{Kn as Accordion,SC as Audio,r1 as BarChart,hC as Button,b1 as Calendar,k1 as Checkbox,S0 as Code,N0 as ComboBox,cue as DatePicker,vue as DateRangePicker,z0 as DocTable,rse as DraftEditor,Ise as Dropdown,tC as DropdownMenu,Fse as Ellipsis,Zse as Form,Kse as Grid,zn as Icon,Xse as ImageViewer,nue as InlineCode,xse as Input,Ule as InputUtils,Use as Label,_ue as LineChart,Pue as Menu,Lue as Message,zue as MessageHr,Vue as Modal,Zue as MultiSelect,NJ as Notification,xue as NumberInput,Dse as Options,rce as Pagination,uce as PieChart,hce as Progress,Vse as Radio,hue as RangeCalendar,_pe as ResetStyles,Ppe as ScrollbarStyles,vce as Select,wC as Slider,wce as Spacer,aC as Spinner,$ce as Table,Fce as Tabs,Oue as TextInput,Tpe as ToastStyles,Hse as Toggle,dpe as Tooltip,mpe as TransferList,$pe as colors,WQ as copyToClipboard,the as darkScale,UQ as formatDate,Vpe as lightScale,Rn as marginProps,ZQ as numberWithCommas,In as paddingProps,Nn as positionProps,fhe as theme,phe as useConfirm,Mn as useElementObserver,Dt as useEventListener,_t as useOnClickOutside,jn as usePrevious,$t as useSelect,Tt as useSelectAll,Pt as useWindowSize,Ln as widthHeightProps};
|
|
53
|
+
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(l[a[c]]=n[a[c]])}}return l}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,l,s,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,c,typeof e[c]),d=e[c](n,c,s,l,null,i)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %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||"React class",l,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";o(!1,"Failed %s type: %s%s",l,d.message,null!=f?f:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,l){l!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?l(e,t):function(e,t,n){return!(10===u(e).length&&!n||i(t))}(e,n,r)?s(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var l=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var l=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+l+i.substring(r)}var s=f(e,i,t,o);return{phoneNumber:d(i),cursorPosition:s}},s=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=c(e,n,t)),a(t)||(o=c(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},c=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=u(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},f=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return d(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var l=/[^0-9]/g;if(a(n)&&l.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&l.test(e[n.start-1]))return n.start-1}var s=e.substring(n.end).match(/[0-9]/g),u=s?s.length:0,c=d(t),f=p(c,u);return c.length-f},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var bse=yse.exports;const wse=(t,n)=>{const r=e=>h(e,n);return"string"==typeof t?e(zn,Object.assign({name:t,inheritColor:!0},n)):"object"==typeof t&&"props"in t&&"trigger"in t.props?h(t,{trigger:r(t.props.trigger)}):"object"==typeof t&&"props"in t?r(t):e(zn,Object.assign({},t,n))},xse=d(((n,r)=>{var{id:o,label:i,placeholder:a,placeholderColor:l,description:s,isLoading:u,search:c,phone:d,textOnly:f,iconLeft:p,iconRight:h,invalid:b,borderRadius:x,borderColor:C,backgroundColor:S,fontSize:k,width:E,height:D,margin:_,marginLeft:P,marginRight:T,marginTop:A,marginBottom:j,padding:L,paddingLeft:I,paddingRight:R,paddingTop:N,paddingBottom:$,containerRef:z,value:B,disabled:F,readOnly:K,preventFocus:V,pointer:H,hideControls:U,onChange:W,onClick:Z,onClear:q,onFocus:G,onBlur:Y}=n,X=M(n,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:J,handleFocus:Q,handleBlur:ee}=zle(G,Y,!V&&!K),te=g(null),{color:ne}=O(),[re,oe]=v(f?50:void 0),ie=g(null),ae={margin:_,marginTop:A,marginBottom:j,marginRight:T,marginLeft:P},le={padding:L,paddingTop:N,paddingBottom:$,paddingRight:R,paddingLeft:I};y((()=>{if(f&&(null==ie?void 0:ie.current)){const{current:e}=ie;B&&(e.innerHTML=B.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&oe(t+3)}}),[f,B,a,ie]);const se=f?B||a:B,ue=(!!B||"number"==typeof B)&&q&&!u;m((()=>{var e,t;if(d&&"string"==typeof B&&10===B.length&&B===bse.normalize(B)){const{current:n}=te;if(n){const r=bse.format(B),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[B]);const ce=()=>{J||Q()},de=()=>{J&&ee()},fe=()=>{ce(),(null==te?void 0:te.current)&&te.current.select()};w(r,(()=>({focus:ce,blur:de,hasFocus:J,select:fe}))),m((()=>{var e;J&&(null===(e=te.current)||void 0===e||e.focus())}),[J]);return t(Fle,Object.assign({ref:z,invalid:b,textOnly:f,borderRadius:x,borderColor:C,backgroundColor:S,width:E,height:D,focused:J,disabled:F,hasLabel:!!i,onClick:e=>{V||K||ce(),Z&&Z(e)},pointer:H,readOnly:K},ae,le,{children:[c&&e(zn,{name:"search",marginRight:8,inheritColor:!0}),p&&wse(p,{marginRight:8}),t(Kle,{readOnly:K||V,children:[f&&e(kse,{ref:ie,fontSize:k,children:se}),i&&!f&&e(Vle,{htmlFor:o||i,filled:Ble(B),focused:J,disabled:F,children:i}),e(Cse,Object.assign({id:o||i,ref:te,value:B,placeholder:a,placeholderColor:l,onChange:e=>{if(d){const{value:t}=e.target,n=bse.normalize(t);if(n.length>10)return;const r=bse.format(n);W&&W(e,r,n)}else W&&W(e)},onFocus:Q,onBlur:ee,disabled:F,hide:!(Ble(B)||!i||J||f),width:re,fontSize:k,hideControls:U},X))]}),h&&wse(h),u&&e(aC,{}),ue&&e(Sse,{onClick:q,children:e(zn,{name:"close-circle-outline",color:ne.brand})}),s&&e(Hle,{invalid:b,children:s})]}))})),Cse=me.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),Sse=me.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),kse=me.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Ese=me("div",{shouldForwardProp:e=>Kx(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Ose=me("div",{shouldForwardProp:e=>Kx(e,["selected","noSelect","contentPosition","color","accented","section"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const l=r?e.color.accent:e.color.inactive;return{color:i?t:n||l,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})),(({theme:e,section:t})=>t&&{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}})),Dse=({id:t,children:n,containerRef:r,parentSelector:o,width:i,maxHeight:a=200,offsetY:l,offsetX:s,centerY:u,centerX:c,direction:d})=>{const[f,p]=v(),h=g(null);y((()=>{const{current:e}=r||h;if(e&&d){const{scrollWidth:t,scrollHeight:n}=e,r="left"===d||"right"===d;p((r?t:n<a?n:a)+((r?s:l)||4))}}),[r,d]);const m=e(_se,{id:t,ref:r||h,offsetX:s,offsetY:l,width:i,maxHeight:a,centerY:u,centerX:c,optionsPosition:{direction:d,amount:f},children:n});if(o){const e=document.querySelector(o);return e?P.createPortal(m,e):m}return m};Dse.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:l,color:s,accented:u,section:c}=t,d=M(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e(Ose,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:c,noSelect:c||a,contentPosition:l,color:s,accented:u,tabIndex:a?-1:0},d,{children:n}))};const _se=me(Ese)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Pse=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Tse=n=>t(c,{children:[n.leftElement||null,n.header&&n.body?t("div",{style:{display:"flex",flexDirection:"column"},children:[e(Mse,{children:n.header}),e(jse,{children:n.body})]}):n.label,n.rightElement&&e("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),Ase=(t,n,r,o,i)=>{const{selected:a}=i,l=((t,n,r,o)=>{if(t&&t.length>0)return Pse(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e(Dse.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:Tse(t)},t.id)}));return[]})(t,r,o,M(i,["selected"])),s=((e,t,n)=>e?dse(e).map((e=>e?h(e,{setValue:t,close:n}):null)):[])(n,r,o);return dse([...l,...s]).map(((e,t)=>e?h(e,{selected:a===t}):null))},Mse=me.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),jse=me.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Lse=e=>f.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),Ise=n=>{var{onChange:r,onTextChange:o,afterShow:i,afterHide:a,onFocus:l,onBlur:s,onError:u,placeholder:c,placeholderColor:d,value:f,options:p,children:h,borderColor:y,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:S,height:k,isLoading:E,margin:D,marginTop:_,marginBottom:P,marginRight:T,marginLeft:A,label:j,id:L,name:I,trigger:R,centerY:N,centerX:$,offsetY:z,offsetX:B,direction:F,fontSize:K,description:V,disabled:H,invalid:U,search:W,filter:Z,restrictInput:q,inputRef:G,optionsParent:Y}=n,X=M(n,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[J,Q]=v(""),[ee,te]=v(""),[ne,re]=v(!1),[oe,ie]=v(!1),[ae,le]=v(!1),se=g(null),{input:ue}=O(),ce={margin:D,marginTop:_,marginBottom:P,marginRight:T,marginLeft:A},de=e=>{e&&e.stopPropagation(),!ne&&i&&i(),ne&&a&&a(),re((e=>!e))};m((()=>{var e;if(ne&&W){null===(e=(G||se).current)||void 0===e||e.focus()}}),[ne,W]),m((()=>{u&&u(ae)}),[ae]),m((()=>{o&&o(ee)}),[ee]);const fe=_t(de,ne,Y?[Y,`${Y} *`]:void 0),pe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},he=e=>{const t=ye().find((t=>{let n=pe(t.label,e);return!n&&"id"in t&&(n=pe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=pe(t.value,e)),n}));return t},ge=e=>"function"==typeof q?!q(e):q,me=e=>ve(null,e),ve=(e,t)=>{let n,o=!1;if("string"==typeof e){n=(e=>{if(ge(e))return he(e)||null;return{id:vse(),label:e,value:e}})(e);const t=ge(e);null===n&&t&&(o=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}ne&&de(t),Q((null==n?void 0:n.label)||""),r&&void 0!==n&&r(n),o?le(!0):(ae&&le(!1),x&&Q(""),te(""))};m((()=>{""!==f&&null!=f||me()}),[f]);const ye=()=>{const e=dse(h).map((e=>{const t=e;let n=t.props.displayText||"";return!j&&t.props.children&&(n=Lse(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Pse(p||[],{search:W,filter:Z,inputText:ee}),...e]},be={options:ye(),select:ve,open:de,close:de,searchText:W?ee:void 0,isOpen:ne,isFocused:oe},[we,xe]=$t(be),Ce=Ase(p||[],h,ve,de,{selected:we,search:W,filter:Z,inputText:ee}),Se=ne?"caret-up":"caret-down",ke=C&&!H?d||ue.color.default:void 0,Ee=M(X,["onClear","phone"]);return e(Rse,Object.assign({textOnly:C,altTrigger:!!R,width:S,height:k,focused:oe,search:W},ce,{children:t(Nse,{ref:fe,children:[R?e($se,{id:L,onClick:de,tabIndex:0,onFocus:()=>ie(!0),onBlur:()=>ie(!1),children:R}):e(Bse,{shake:ae,children:e(xse,Object.assign({},Ee,{ref:G||se,id:L,name:I,label:j,fontSize:K,pointer:!0,preventFocus:!W,value:ee||f||J,placeholder:c||"Select",placeholderColor:ke,iconRight:w||E?void 0:Se,borderColor:y,backgroundColor:b,isLoading:E,textOnly:C,description:V,disabled:H,invalid:ae||U,onClick:de,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(G||se).current)||void 0===t?void 0:t.hasFocus;W?(te(n),!ne&&r&&re(!0),ae&&le(!1)):n||me(e);const o=he(n),i=ge(n),a=""===n||i&&!r;o&&!(W&&(!i||r))?ve(o,e):W&&!a||me(e)},onFocus:e=>{ie(!0),l&&l(e)},onBlur:e=>{var t;if(ie(!1),s&&s(e),W&&ee&&e){const{relatedTarget:n}=e;(null===(t=null==xe?void 0:xe.current)||void 0===t?void 0:t.contains(n))||ve(ee,e)}}}))}),ne&&Ce.length>0&&e(Dse,{containerRef:xe,parentSelector:Y,width:!R&&!C||Y?"100%":void 0,centerY:N,centerX:$,offsetY:z,offsetX:B,direction:F,children:Ce})]})}))};Ise.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:u,id:c,section:d})=>e(Dse.Item,{id:c,contentPosition:a,color:l,onClick:u?e=>{u&&u(e),o&&o()}:e=>{const o={id:c,label:n||Lse(i)||"",value:t};r&&r(o,e)},accented:s,section:d,children:i});const Rse=me.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),Ln,Rn),Nse=me.div({position:"relative",width:"100%",height:"inherit"}),$se=me.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),zse=E({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),Bse=me.div((({shake:e})=>({"& input":{animation:e?`${zse} .5s linear`:void 0}}))),Fse=me.div({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},(({width:e})=>({width:e||"auto"})),In,Rn),Kse=me.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:u,width:c,height:d})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:l,justifyItems:u,alignContent:a,justifyContent:s,width:c,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),In,Rn);Kse.Item=me.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})),In,Rn);const Vse=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f}=n,p=M(n,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===i,g={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};return t(x1,Object.assign({htmlFor:r,labelRight:h,disabled:l},g,{children:[o&&e(S1,{children:o}),e(C1,Object.assign({id:r,type:"radio",checked:a,disabled:l},p)),e(zn,{name:"radio-button",marginLeft:o&&!h?8:0,marginRight:o&&h?8:0,pointer:!l})]}))},Hse=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,onChange:s,margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p}=n,h=M(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[g,y]=v("toggle-off"),[b,w]=v(a||!1),x="right"===i,C={margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p};return m((()=>{y(b?"toggle-on":"toggle-off")}),[b]),m((()=>{w("boolean"==typeof a?a:b)}),[a,b]),t(x1,Object.assign({htmlFor:r,labelRight:x,disabled:l},C,{children:[o&&e(S1,{children:o}),e(C1,Object.assign({id:r,type:"checkbox",checked:b,disabled:l,onChange:()=>{const e=!b;w(e),s(e)}},h)),e(zn,{name:g,marginLeft:o&&!x?8:0,marginRight:o&&x?8:0,pointer:!l,size:40})]}))},Use=e=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=e,l=M(e,["children","iconLeft","iconRight","disabled","pill"]);return t(Wse,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},l,{children:[r&&wse(r,{marginRight:4,size:"small"}),n,o&&wse(o,{marginLeft:4,size:"small"})]}))},Wse=me.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),Rn),Zse=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:l}=t,s=M(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e(qse,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{l?l(e):e.preventDefault()}},s,{children:n}))};Zse.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:l}=t,s=M(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e(Gse,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:l},s,{children:n}))},Zse.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=M(t,["children","inline","align","disabled"]);return e(Yse,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},Zse.Input=xse,Zse.Dropdown=Ise,Zse.Radio=Vse,Zse.Toggle=Hse,Zse.Checkbox=k1,Zse.Label=Use;const qse=me(Kse)({boxSizing:"border-box"}),Gse=me(Kse)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),Yse=me.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),Rn),Xse=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:u})=>{const[c,d]=v(i),f=_t(r,n,["#prev","#next","#prev *","#next *"]);m((()=>{d(i)}),[i]);const p=()=>d(c>0?c-1:o.length-1),h=()=>c<o.length-1?d(c+1):d(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return m((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,c]),n?t(Jse,{opacity:u,prevNext:o.length>1,children:[e(Qse,{onClick:r,children:e(zn,{name:"close",size:25,color:"white"})}),o.length>1&&e(eue,{id:"prev",onClick:p,children:e(zn,{name:"chevron-left",size:35,color:"white"})}),e(tue,{ref:f,src:o[c],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e(eue,{next:!0,id:"next",onClick:h,children:e(zn,{name:"chevron-right",size:35,color:"white"})})]}):null},Jse=me.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),Qse=me.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),eue=me.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),tue=me.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),nue=me.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),rue=me(Cw)((({theme:e,placeholderColor:t})=>({outline:"none",borderRadius:4,padding:"0 2px","&[data-focused]":{backgroundColor:e.calendar.background.activeRange},"&[data-placeholder]":{color:t||e.input.color.placeholder}}))),oue=({description:n,errorMessage:r})=>n||r?t(iue,{children:[n&&!r&&e(aue,{slot:"description",children:n}),r&&e(lue,{children:r})]}):null,iue=me.div({position:"absolute",left:0,top:"100%"}),aue=me(cv)((({theme:e})=>({color:e.input.color.description,fontSize:e.font.size.sm}))),lue=me(mb)((({theme:e})=>({color:e.input.color.descriptionError,fontSize:e.font.size.sm}))),sue=me(eC)((({theme:{input:e,accent:t},isDisabled:n})=>({color:n?e.labelColor.disabled:e.labelColor.default,outline:"none","&[data-focused]":{outline:`${t} solid 1px`}}))),uue=h1(),cue=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:l,isLoading:s,fontSize:u,placeholderColor:c,disabled:d,description:f,errorMessage:p,preventPast:h,preventFuture:m,onChange:y,afterShow:b,afterHide:w}=n,x=M(n,["value","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[C,S]=v(!1),{current:k}=g(r?m1(r):void 0),[E,O]=v(k),D=g(null),{min:_,max:P}=v1({past:h,future:m,rel:k||uue}),T=e=>{const{year:t,month:n,day:r}=e,o=new gs(t,n,r);O(o);const i=g1(e);y&&y(i)},A=!(E||!o);return t(due,Object.assign({value:E,hasLabel:!!o,isDisabled:d,minValue:_,maxValue:P,onChange:T,onOpenChange:e=>{S(e),b&&e&&b(),w&&!e&&w()},ref:D},x,{children:[a&&wse(a,{marginRight:8}),t(A0,{filled:!!E,disabled:d,children:[o,e(fue,{ref:i,hide:A,fontSize:u,placeholderColor:c,isDisabled:d,children:t=>e(rue,{placeholderColor:c,segment:t})})]}),e(sue,{isDisabled:d,children:e(zn,{name:C?"caret-up":"caret-down",inheritColor:!0})}),l&&wse(l),s&&e(aC,{}),e(oue,{description:f,errorMessage:p}),e(rw,{triggerRef:D,children:e(sw,{children:e(b1,{date:E?g1(E):void 0,onChange:e=>{T(m1(e))},preventPast:h,preventFuture:m})})})]}))},due=me(_w)(T0),fue=me(ww,D0)({display:"flex"},_0),pue=h1(),hue=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:l,noShadow:s}=n,u=M(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:c}=g(r?m1(r):pue),{current:d}=g(o?m1(o):c),[f,p]=v(c),[h,m]=v(d),{min:y,max:b}=v1({past:a,future:l,rel:c});return t(gue,Object.assign({value:{start:f,end:h},onChange:e=>{const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:u}=n,c=new gs(r,o,a);p(c);const d=new gs(l,s,u);m(d);const f=g1(t),h=g1(n);i&&i(f,h)},minValue:y,maxValue:b,noShadow:s},u,{children:[e(c1,{}),e(i1,{range:!0})]}))},gue=me(nb)(o1),mue=h1(),vue=n=>{var{startValue:r,endValue:o,label:i,inputRef:a,iconLeft:l,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h,preventPast:m,preventFuture:y,onChange:b,afterShow:w,afterHide:x}=n,C=M(n,["startValue","endValue","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[S,k]=v(!1),{current:E}=g(r?m1(r):void 0),{current:O}=g(o?m1(o):void 0),[D,_]=v(E),[P,T]=v(O),A=g(null),{min:j,max:L}=v1({past:m,future:y,rel:E||mue}),I=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,u=new gs(r,o,i);_(u);const c=new gs(a,l,s);T(c);const d=g1(t),f=g1(n);b&&b(d,f)},R=!(!D&&!P),N=!(R||!i);return t(yue,Object.assign({value:D&&P?{start:D,end:P}:void 0,hasLabel:!!i,isDisabled:f,minValue:j,maxValue:L,onChange:I,onOpenChange:e=>{k(e),w&&e&&w(),x&&!e&&x()},ref:A},C,{children:[l&&wse(l,{marginRight:8}),t(A0,{filled:R,disabled:f,children:[i,t(wue,{fontSize:c,hide:N,isDisabled:f,children:[e(bue,{slot:"start",ref:a,fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e(rue,{placeholderColor:d,segment:t})}),e("span",{"aria-hidden":"true",children:"–"}),e(bue,{slot:"end",fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e(rue,{placeholderColor:d,segment:t})})]})]}),e(sue,{isDisabled:f,children:e(zn,{name:S?"caret-up":"caret-down",inheritColor:!0})}),s&&wse(s),u&&e(aC,{}),e(oue,{description:p,errorMessage:h}),e(rw,{triggerRef:A,children:e(sw,{children:e(hue,{startDate:D?g1(D):void 0,endDate:P?g1(P):void 0,onChange:(e,t)=>{const n=m1(e),r=m1(t);I({start:n,end:r})},preventPast:m,preventFuture:y})})})]}))},yue=me(Tw)(T0),bue=me(ww,D0)(_0,{display:"flex","&:first-of-type":{marginRight:0}}),wue=me(Qb,D0)((({theme:{input:e,font:t},hide:n,fontSize:r,isDisabled:o})=>({display:"flex",alignItems:"center",gap:4,"& > span":{color:o?e.color.disabled:e.color.default,fontSize:r||t.size.lg},"&:not(:focus):not(:focus-within)":{opacity:n?0:1,position:n?"absolute":void 0}}))),xue=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=n,g=M(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return t(Cue,Object.assign({value:r,hasLabel:!!o,isDisabled:f},g,{children:[l&&wse(l,{marginRight:8}),t(A0,{filled:!!r,disabled:f,children:[o,e(P0,{ref:a,placeholder:i,hide:!(r||!o),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&wse(s),u&&e(aC,{}),t(Sue,{children:[e(kue,{slot:"increment",children:e(zn,{size:o?23.5:19.5,name:"caret-up"})}),e(Eue,{}),e(kue,{slot:"decrement",children:e(zn,{size:o?23.5:19.5,name:"caret-down"})})]}),e(oue,{description:p,errorMessage:h})]}))},Cue=me(Xw)(T0),Sue=me.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder}))),kue=me(eC)((({theme:e})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden","&:hover":{backgroundColor:e.scale1},"&:active":{backgroundColor:e.scale0}}))),Eue=me.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),Oue=n=>{var{value:r,label:o,placeholder:i,inputRef:a,iconLeft:l,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=n,g=M(n,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return t(Due,Object.assign({value:r,hasLabel:!!o,isDisabled:f},g,{children:[l&&wse(l,{marginRight:8}),t(A0,{filled:!!r,disabled:f,children:[o,e(P0,{ref:a,placeholder:i,hide:!(r||!o),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&wse(s),u&&e(aC,{}),e(oue,{description:p,errorMessage:h})]}))},Due=me(Fx)(T0),_ue=n=>{var{data:r,legend:o,keys:i}=n,a=M(n,["data","legend","keys"]);const[l,s]=v(i),{scale2:u}=O();return t(GQ,Object.assign({},a,{children:[e(qQ,{}),e(qL,{width:"100%",height:"100%",children:t(LJ,{margin:{top:8,left:-14,right:5,bottom:-8},data:r,children:[e(gX,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e(LX,{stroke:u,dataKey:"name",tickMargin:4}),e(RX,{stroke:u,tickMargin:4,tickFormatter:e=>RC(e)}),XQ(),o&&e(TM,{content:e(JQ,{toggleData:i.length>1?e=>{s((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),l.map((({key:t,color:n,hidden:r},o)=>e(MX,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},Pue=({vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:l,paddingRight:s,border:u,borderTop:c,borderBottom:d,borderLeft:f,borderRight:p,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e(Tue,{vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:l,paddingRight:s,border:u,borderTop:c,borderBottom:d,borderLeft:f,borderRight:p,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?dse(w).map((e=>e?h(e,{vertical:t,backgroundColor:b}):null)):null}),Tue=me.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:u})),In),Aue=me.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),Mue=me.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),jue=me.div({marginLeft:"auto",marginRight:8});Pue.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e(Aue,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),Pue.Group=({label:n,defaultOpen:r,vertical:i,selected:a,disabled:l,contentPosition:s,onClick:u,id:c,children:d,indent:f=1,backgroundColor:p})=>{const[g,m]=v(r||a),y=e=>dse(e).map((e=>{if(o.isValidElement(e)){const t=e;return t.props.selected&&!g&&m(!0),Array.isArray(t.props.children)&&y(t.props.children),h(e,{vertical:i,indent:f+1,backgroundColor:p})}return null})),b=y(d),w=()=>m((e=>!e));return t(Mue,{backgroundColor:p,children:[t(Aue,{vertical:i,selected:a||!1,disabled:l,contentPosition:s,onClick:e=>{u?(u(e),g||w()):w()},id:c,role:"menuitem",indent:f,children:[n,e(jue,{onClick:e=>{e.stopPropagation(),w()},children:e(zn,{name:g?"chevron-up":"chevron-down",pointer:!0})})]}),g&&b]})};const Lue=({type:n,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d,children:f})=>{const p=O(),{iconName:h,borderColor:g,backgroundColor:m}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(n||"",p),v={margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d};return t(Nue,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e(zn,{name:h,style:{marginRight:10},color:g}),e($ue,{children:r||f}),o&&e(zn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},Iue=me.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),Rue=me.div((({theme:e})=>({fontWeight:e.font.weight.default})));Lue.Header=Iue,Lue.Body=Rue;const Nue=me.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),Rn),$ue=me.div({width:"100%"}),zue=({text:n,color:r,style:o})=>t(Kue,{children:[e(Fue,{}),e(Bue,{color:r,style:o,children:n}),e(Fue,{})]}),Bue=me.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),Fue=me.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),Kue=me.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),Vue=({children:n,rootSelector:r,visible:o,width:i,height:a,onClose:l,closeIcon:s,preventOverlayClose:u,overlayBlur:c,overlayColor:d,backgroundColor:f,small:p,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:_})=>{const T=_t(u?()=>null:l,o),A={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},M=dse(n).map((e=>e?h(e,{inline:p}):null)),j=e(Wue,{color:d,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:_,blur:c,children:t(Hue,Object.assign({ref:T,width:i,height:a,backgroundColor:f,small:p,noOverlay:g,centerX:m,centerY:v},A,{children:[M,s&&e(Uue,{inline:p,children:e(zn,{name:"close",onClick:l,pointer:!0})})]}))}),L=document.querySelector(r||"#root");return o&&L?P.createPortal(j,L):null};Vue.Header=me.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),Vue.Text=me.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),Vue.Body=me.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),Rn),Vue.Footer=me.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),Rn);const Hue=me.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),In),Uue=me.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),Wue=me.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:u,zIndex:c})=>({position:i||"absolute",top:a||(u||l||s?void 0:0),left:u||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:c||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),Zue=d(((r,o)=>{var{children:i,options:l,items:s,listLabel:u,listText:c,itemsTitle:d,maxItems:f,placeholder:p,width:h,filter:y,restrictInput:b,disabled:x,hideItemsInfo:C,optionsParent:S,compact:k,backgroundColor:E,borderless:D,addItem:_,removeItem:T,onTextChange:A,autoFocus:j}=r,L=M(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[I,R]=v(j||!1),[N,$]=v(!1),[z,B]=v(""),{color:F,font:K,input:V}=O(),H=_t((()=>R(!1)),I,S?[S,`${S} *`]:void 0),U=g(null),W=k&&!!u,Z=e=>{e&&_(e)},q=()=>{const{current:e}=U;I||u||R(!0),null==e||e.focus()},G=()=>{const{current:e}=U;e&&e.blur()};w(o,(()=>({focus:q,blur:G})));const Y=e=>{B(e),A&&A(e)};m((()=>{I||G()}),[I]);Dt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(s.length>0){e.preventDefault();const t=s[s.length-1];T(t)}}),I&&!z,[s]);const X=l.filter((e=>!s.find((t=>t.id===e.id)))),J=a((()=>`multi-select-${vse()}`),[]),Q=a((()=>`multi-select-list-${vse()}`),[]),ee=f?s.length>=f:void 0,te=x||!I||ee,ne=()=>{const n=t(Xue,{id:Q,expanded:I,padTop:I&&s.length>0,labeled:!!u,children:[c&&e(Jue,{expanded:I,labeled:!!u,children:c}),i?i(I,!!x):s.map((t=>e(Use,{pill:!0,iconRight:I&&!x?e(zn,{name:"close-circle",onClick:()=>T(t),pointer:!0}):void 0,disabled:x,children:t.label},t.id))),e(Ise,Object.assign({},L,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:y,backgroundColor:"transparent",restrictInput:b,options:X,fontSize:K.size.md,placeholder:x||s.length>0?" ":p||"Search...",placeholderColor:V.color.placeholder,inputRef:U,onChange:Z,onTextChange:Y,onError:e=>$(e),disabled:te,optionsParent:S?`#${Q}`:`#${J}`,autoFocus:j}))]});if(S){const e=document.querySelector(S);return e?P.createPortal(n,e):n}return n};return t(que,{width:h,ref:H,labeled:!!u,disabled:x,collapse:W,onClick:e=>{e.stopPropagation(),q()},children:[t(Gue,{collapse:W,id:J,expanded:I&&s.length>0,error:N,labeled:!!u,backgroundColor:E,borderless:D,children:[u?e(Yue,{collapse:W,children:u}):ne(),t(Que,{children:[f&&!C&&e(tce,{children:t(n,x&&d?{children:[s.length," ",d]}:{children:[e(ece,{error:s.length>=f,children:s.length}),"/",f," ",d]})}),s.length>0&&e(zn,{name:I?"chevron-up":"chevron-down",color:F.brand,pointer:!0,onClick:e=>{e.stopPropagation(),R(!I)}})]})]}),u&&I&&ne()]})})),que=me.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),Gue=me.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),Yue=me.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),Xue=me.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),Jue=me.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),Que=me.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),ece=me.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),tce=me.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),nce=e=>e?+e:0,rce=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:l}=n,s=M(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,d]=v(nce(o)||1),[f,p]=v(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,nce(a)||h.length),m=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),d(e),r(e)}},y=0!==f,b=f!==g.length-1;return t(oce,Object.assign({width:l},s,{children:[e(ace,{disabled:1===u,onClick:()=>m(1),children:e(zn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e(ace,{disabled:1===u,onClick:()=>m(u-1),children:e(zn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>t(c,{children:[0===r&&y?e(sce,{children:"... "}):"",e(lce,{selected:n===u,onClick:()=>m(n),children:n}),r===o.length-1&&b?e(sce,{children:" ..."}):""]},`pageIndex-${n}`))),e(ace,{disabled:u===i,onClick:()=>m(u+1),children:e(zn,{name:"chevron-right",title:"next",inheritColor:!0})}),e(ace,{disabled:u===i,onClick:()=>m(i),children:e(zn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},oce=me.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),Rn),ice=me.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),ace=me(ice)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),lce=me(ice)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),sce=me.span((({theme:e})=>({color:e.scale6}))),uce=n=>{var{size:r=200,data:o,innerRadius:i,showWhenEmpty:a}=n,l=M(n,["size","data","innerRadius","showWhenEmpty"]);const s=(null==o?void 0:o.length)>0,u=s?o:a?[{name:"1",value:1,color:"#999"}]:void 0,c=r/2-1;return e(GQ,Object.assign({width:r,height:r},l,{children:t(RJ,{width:r,height:r,children:[e(JZ,{dataKey:"value",data:u,innerRadius:i,outerRadius:c,children:null==u?void 0:u.map((t=>e(GL,{fill:t.color||"#999"},t.name)))}),s&&XQ()]})}))},cce=({percent:n,size:r=24,thickness:o=2,color:i,margin:a,marginTop:l,marginBottom:s,marginRight:u,marginLeft:c})=>{const d={margin:a,marginTop:l,marginBottom:s,marginRight:u,marginLeft:c},f=(r-o)/2,p=f*Math.PI*2,h=p-p*n/100,g=r/2;return t(dce,Object.assign({size:r},d,{children:[e(fce,{cx:g,cy:g,r:f,thickness:o}),e(pce,{color:i,cx:g,cy:g,r:f,thickness:o,transform:`rotate(-90 ${g} ${g})`,circ:p,complete:h})]}))},dce=me.svg((({size:e})=>({display:"block",width:e,height:e})),Rn),fce=me.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),pce=me(fce)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),hce=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e(cce,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e(gce,Object.assign({width:o,height:i||l},p,{children:e(mce,{color:n,width:h})}))},gce=me.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),Rn),mce=me.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),vce=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:l,options:s,placeholder:u="Select",placeholderColor:c,textOnly:d,value:f,width:p,onChange:h,afterShow:g,afterHide:y}=n,b=M(n,["backgroundColor","children","fontSize","disabled","label","options","placeholder","placeholderColor","textOnly","value","width","onChange","afterShow","afterHide"]);const[w,x]=v(!1),[C,S]=v(f||""),{margin:k,marginTop:E,marginBottom:O,marginRight:D,marginLeft:_}=b,P={margin:k,marginTop:E,marginBottom:O,marginRight:D,marginLeft:_};m((()=>{f&&f!==C&&S(f)}),[f,C]);const T=!C&&l;return t(tx,Object.assign({placeholder:u,onOpenChange:e=>{x(e),g&&e&&g(),y&&!e&&y()},onSelectionChange:e=>{S(e),h&&h(e)},isDisabled:a,selectedKey:f?C:void 0},b,{children:[t(yce,Object.assign({backgroundColor:r,textOnly:d,width:p,hasLabel:!!l,isDisabled:a,pointer:!0},P,{children:[t(A0,{filled:!!C,disabled:a,children:[l,e(bce,{fontSize:i,placeholderColor:c,isDisabled:a,style:({isPlaceholder:e})=>e&&T?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),e(zn,{name:w?"caret-up":"caret-down",inheritColor:!0})]})),e(mb,{}),e(rw,{offset:2,children:t(M0,{autoWidth:d,shouldFocusWrap:!0,children:[null==s?void 0:s.map((t=>e(j0,Object.assign({},t),t.id||t.value))),o]})})]}))};vce.Item=j0,vce.Section=R0;const yce=me(lv)(T0),bce=me(ox)((({theme:{input:e,font:t},fontSize:n,placeholderColor:r,isDisabled:o})=>({color:o?e.color.disabled:e.color.default,fontFamily:t.family.default,fontSize:n||t.size.lg,"&[data-placeholder]":{color:r||(o?e.color.disabled:e.color.placeholder)}}))),wce=me.div(Ln),xce=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,Cce=e=>{const t={top:0,right:0,bottom:0,left:0},{padding:n,paddingTop:r,paddingRight:o,paddingBottom:i,paddingLeft:a}=e;if(n){const e=("string"==typeof n?n:n.toString()).split(" ").map(xce);switch(e.length){case 1:t.top=t.right=t.bottom=t.left=e[0];break;case 2:t.top=t.bottom=e[0],t.right=t.left=e[1];break;case 3:t.top=e[0],t.right=t.left=e[1],t.bottom=e[2];break;case 4:t.top=e[0],t.right=e[1],t.bottom=e[2],t.left=e[3]}}return void 0!==r&&(t.top=xce(r)),void 0!==o&&(t.right=xce(o)),void 0!==i&&(t.bottom=xce(i)),void 0!==a&&(t.left=xce(a)),t},Sce=t=>{var{children:n,onClick:r,disabled:o}=t,i=M(t,["children","onClick","disabled"]);return e(kce,Object.assign({isDisabled:o,onAction:r&&!o?r:void 0,hoverEffect:!!r&&!o},i,{children:n}))},kce=me(Cx)((({theme:e,backgroundColor:t,isDisabled:n})=>({color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",opacity:n?.3:1,backgroundColor:t,borderTop:`1px solid ${e.table.borderColor}`,outline:"none",transition:"background-color 0.2s",position:"relative",zIndex:0})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"},"&:focus-visible":{backgroundColor:e.scale1}}),(({theme:e,padding:t="16px 24px",paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i,emphasis:a})=>{const l=Cce({padding:t,paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i}),{top:s,right:u,bottom:c,left:d}=l;let f;return!0===a?f=e.color.brand:"string"==typeof a&&(f=a),{"& > td > div":{paddingTop:`${s}px`,paddingBottom:`${c}px`},"& > td:first-of-type > div":{paddingLeft:d-2+"px",borderLeft:"2px solid transparent",borderLeftColor:f},"& > td:last-of-type > div":{paddingRight:`${u}px`}}}),(({height:e})=>({height:e}))),Ece=({spinnerSize:t})=>e(Sce,{height:"small"===t?49:57,children:e(Oce,{children:e(aC,{size:t,center:!0})})}),Oce=me(kx)((({theme:e})=>({color:e.scale6}))),Dce=me(wx)((({theme:e})=>({"&[data-empty]":{textAlign:"center",color:e.table.color.body,fontSize:e.font.size.sm,borderTop:`1px solid ${e.table.borderColor}`,"& > tr:first-of-type > td:first-of-type":{paddingTop:16}}}))),_ce=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},Pce=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:_ce(t),alignItems:_ce(n),flexDirection:e,width:"100%",gap:r})],Tce=me(kx)((({showDefault:e})=>e&&{opacity:.3}),(({theme:e})=>({padding:0,outline:"none","&:focus-visible":{outline:`${e.accent} solid 1px`}})),In),Ace=me.div(Pce),Mce=me(Ax)((({theme:e})=>({width:9,height:18,backgroundColor:e.scale4,marginLeft:"auto",backgroundClip:"content-box",border:"4px transparent",borderStyle:"none solid","&[data-resizable-direction=both]":{cursor:"col-resize"},"&[data-resizable-direction=left]":{cursor:"e-resize"},"&[data-resizable-direction=right]":{cursor:"w-resize"},"&[data-focus-visible]":{backgroundColor:e.accent}}))),jce=({sortDirection:n})=>{const{color:r,scale4:o}=O(),i="asc"===n?r.brand:o,a="desc"===n?r.brand:o;return t("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M8.71005 14.71L11.3001 17.3C11.6901 17.69 12.3201 17.69 12.7101 17.3L15.3001 14.71C15.9301 14.08 15.4801 13 14.5901 13H9.41005C8.52005 13 8.08005 14.08 8.71005 14.71Z",fill:a}),e("path",{d:"M8.71005 8.88253L11.3001 6.29253C11.6901 5.90253 12.3201 5.90253 12.7101 6.29253L15.3001 8.88253C15.9301 9.51253 15.4801 10.5925 14.5901 10.5925H9.41005C8.52005 10.5925 8.08005 9.51253 8.71005 8.88253Z",fill:i})]})},Lce=i({}),Ice=me(yx)((({theme:e,sorting:t,active:n})=>({textAlign:"left",verticalAlign:"middle",cursor:t?"pointer":void 0,color:n?e.scale10:e.table.color.header,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,padding:0,outline:"none",position:"sticky",zIndex:1,top:0,"&:focus-visible":{outline:`${e.accent} solid 1px`},"&:hover":{color:t?e.scale8:void 0}})),In),Rce=me.div(Pce),Nce=me(mx)((({theme:e,padding:t="8px 24px",paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i,backgroundColor:a})=>{const{backgroundColor:l}=s(Lce),u=Cce({padding:t,paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i}),{top:c,right:d,bottom:f,left:p}=u;return{"& > tr > th":{backgroundColor:a||l||e.background0},"& > tr > th > div":{paddingTop:`${c}px`,paddingBottom:`${f}px`},"& > tr > th:first-of-type > div":{paddingLeft:`${p}px`},"& > tr > th:last-of-type > div":{paddingRight:`${d}px`}}})),$ce=t=>{var{children:n,data:r,onScrollEnd:o,backgroundColor:i,maxHeight:l}=t,s=M(t,["children","data","onScrollEnd","backgroundColor","maxHeight"]);const[u,c]=v(r),[d,f]=v(),p=r&&"function"==typeof n?n(u):n;m((()=>{let e=r;if(d){const{key:t,dir:n}=d;e=Rt.orderBy(r,t,n)}Rt.isEqual(e,u)||c(e)}),[r,d]);const h=a((()=>({activeColumn:d,setActiveColumn:f,backgroundColor:i})),[d,f,i]);return e(Lce.Provider,{value:h,children:e(zce,{onScroll:e=>{const t=e.target;t.scrollHeight-t.scrollTop===t.clientHeight&&o&&o()},backgroundColor:i,maxHeight:l,children:e(Bce,Object.assign({},s,{children:p}))})})};$ce.Header=Nce,$ce.Column=n=>{var{children:r,sortKey:o,sorted:i,onClick:a,resize:l,direction:u,justify:c,align:d,gap:f}=n,p=M(n,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[h,g]=v(i||"inactive"),{activeColumn:y,setActiveColumn:b}=s(Lce),w=o||i,x="asc"===h||"desc"===h,C={direction:u,justify:c,align:d,gap:f},S=e=>{if(g(e),b&&o){b("inactive"===e?void 0:{key:o,dir:e})}};return m((()=>{!o||"asc"!==i&&"desc"!==i||S(i)}),[]),m((()=>{i&&g(i)}),[i]),m((()=>{const e=!y&&i;o&&y&&y.key!==o&&"inactive"!==h&&!e&&g("inactive")}),[y,h]),e(Ice,Object.assign({sorting:!!w,active:x},p,{children:t(Rce,Object.assign({onClick:w||a?e=>{o?S("inactive"===h?"asc":"asc"===h?"desc":"inactive"):a&&a(e)}:void 0},C,{children:[e(Fse,{children:r}),w&&e("span",{"aria-hidden":"true",children:e(zn,{svg:e(jce,{sortDirection:h}),marginLeft:-8})}),l&&e(Mce,{})]}))}))},$ce.Body=({children:n,emptyFallback:r,fetching:o,loading:i})=>t(Dce,{renderEmptyState:({isEmpty:e})=>e&&r?r:null,children:[i&&e(Ece,{}),!i&&n,o&&e(Ece,{spinnerSize:"small"})]}),$ce.Row=Sce,$ce.Cell=t=>{var{children:n,defaultValue:r,direction:o,justify:i,align:a,gap:l}=t,s=M(t,["children","defaultValue","direction","justify","align","gap"]);const u={direction:o,justify:i,align:a,gap:l},c=n||r;return e(Tce,Object.assign({showDefault:!!r&&!n},s,{children:e(Ace,Object.assign({},u,{children:"string"==typeof c?e(Fse,{paddingRight:2,children:c}):c}))}))};const zce=me(sx)((({theme:e,backgroundColor:t,maxHeight:n})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:n||"100%",backgroundColor:t||e.background0}))),Bce=me(px)(Rn,In),Fce=n=>{var{items:r,activeItem:o,itemWidth:i,itemGap:a,onChange:l}=n,s=M(n,["items","activeItem","itemWidth","itemGap","onChange"]);const u=r.filter((e=>!1!==e.visible));return e(Kce,Object.assign({gap:a},s,{children:u.map((n=>{const{id:r,label:a,icon:s,iconColor:u,iconPosition:c}=n,d=M(n,["id","label","icon","iconColor","iconPosition"]);return t(Vce,Object.assign({active:r===o,itemWidth:i,reverse:"right"===c,onClick:()=>(e=>{l(e)})(n),gap:s?4:void 0},d,{children:[s&&e(zn,{name:s,size:"small",color:u,inheritColor:!u}),a]}),r)}))}))},Kce=me.div((({gap:e=8})=>({display:"flex",gap:e})),Rn),Vce=me.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"})));const Hce="dismissableLayer.update",Uce="dismissableLayer.pointerDownOutside",Wce="dismissableLayer.focusOutside";let Zce;const qce=i({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gce=d(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...d}=e,f=s(qce),[p,h]=v(null),y=null!==(n=null==p?void 0:p.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=v({}),w=xe(t,(e=>h(e))),x=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),S=x.indexOf(C),k=p?x.indexOf(p):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,O=k>=S,D=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Pe(e),r=g(!1),o=g((()=>{}));return m((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){Xce(Uce,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...f.branches].some((e=>e.contains(t)));O&&!n&&(null==i||i(e),null==u||u(e),e.defaultPrevented||null==c||c())}),y),_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Pe(e),r=g(!1);return m((()=>{const e=e=>{if(e.target&&!r.current){Xce(Wce,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...f.branches].some((e=>e.contains(t)))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==c||c())}),y);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Pe(e);m((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{k===f.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),y),m((()=>{if(p)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(Zce=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),Yce(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=Zce)}}),[p,y,r,f]),m((()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),Yce())}),[p,f]),m((()=>{const e=()=>b({});return document.addEventListener(Hce,e),()=>document.removeEventListener(Hce,e)}),[]),l(Ae.div,Ce({},d,{ref:w,style:{pointerEvents:E?O?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,_.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,D.onPointerDownCapture)}))}));function Yce(){const e=new CustomEvent(Hce);document.dispatchEvent(e)}function Xce(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&T((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}const Jce=["top","right","bottom","left"],Qce=Math.min,ede=Math.max,tde=Math.round,nde=Math.floor,rde=e=>({x:e,y:e}),ode={left:"right",right:"left",bottom:"top",top:"bottom"},ide={start:"end",end:"start"};function ade(e,t,n){return ede(e,Qce(t,n))}function lde(e,t){return"function"==typeof e?e(t):e}function sde(e){return e.split("-")[0]}function ude(e){return e.split("-")[1]}function cde(e){return"x"===e?"y":"x"}function dde(e){return"y"===e?"height":"width"}function fde(e){return["top","bottom"].includes(sde(e))?"y":"x"}function pde(e){return cde(fde(e))}function hde(e){return e.replace(/start|end/g,(e=>ide[e]))}function gde(e){return e.replace(/left|right|bottom|top/g,(e=>ode[e]))}function mde(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function vde(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function yde(e,t,n){let{reference:r,floating:o}=e;const i=fde(t),a=pde(t),l=dde(a),s=sde(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ude(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function bde(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=lde(t,e),h=mde(p),g=l[f?"floating"===d?"reference":"floating":d],m=vde(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=vde(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}function wde(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xde(e){return Jce.some((t=>e[t]>=0))}const Cde=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=sde(n),l=ude(n),s="y"===fde(n),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=lde(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}};function Sde(e){return Ode(e)?(e.nodeName||"").toLowerCase():"#document"}function kde(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ede(e){var t;return null==(t=(Ode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ode(e){return e instanceof Node||e instanceof kde(e).Node}function Dde(e){return e instanceof Element||e instanceof kde(e).Element}function _de(e){return e instanceof HTMLElement||e instanceof kde(e).HTMLElement}function Pde(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof kde(e).ShadowRoot)}function Tde(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ide(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ade(e){return["table","td","th"].includes(Sde(e))}function Mde(e){const t=jde(),n=Ide(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function jde(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Lde(e){return["html","body","#document"].includes(Sde(e))}function Ide(e){return kde(e).getComputedStyle(e)}function Rde(e){return Dde(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nde(e){if("html"===Sde(e))return e;const t=e.assignedSlot||e.parentNode||Pde(e)&&e.host||Ede(e);return Pde(t)?t.host:t}function $de(e){const t=Nde(e);return Lde(t)?e.ownerDocument?e.ownerDocument.body:e.body:_de(t)&&Tde(t)?t:$de(t)}function zde(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=$de(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=kde(o);return i?t.concat(a,a.visualViewport||[],Tde(o)?o:[],a.frameElement&&n?zde(a.frameElement):[]):t.concat(o,zde(o,[],n))}function Bde(e){const t=Ide(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_de(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=tde(n)!==i||tde(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Fde(e){return Dde(e)?e:e.contextElement}function Kde(e){const t=Fde(e);if(!_de(t))return rde(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Bde(t);let a=(i?tde(n.width):n.width)/r,l=(i?tde(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Vde=rde(0);function Hde(e){const t=kde(e);return jde()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Vde}function Ude(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Fde(e);let a=rde(1);t&&(r?Dde(r)&&(a=Kde(r)):a=Kde(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==kde(e))&&t}(i,n,r)?Hde(i):rde(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=kde(i),t=r&&Dde(r)?kde(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Kde(o),t=o.getBoundingClientRect(),r=Ide(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=i,u+=a,n=kde(o),o=n.frameElement}}return vde({width:c,height:d,x:s,y:u})}const Wde=[":popover-open",":modal"];function Zde(e){return Wde.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function qde(e){return Ude(Ede(e)).left+Rde(e).scrollLeft}function Gde(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=kde(e),r=Ede(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=jde();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Ede(e),n=Rde(e),r=e.ownerDocument.body,o=ede(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ede(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+qde(e);const l=-n.scrollTop;return"rtl"===Ide(r).direction&&(a+=ede(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(Ede(e));else if(Dde(t))r=function(e,t){const n=Ude(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=_de(e)?Kde(e):rde(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Hde(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return vde(r)}function Yde(e,t){const n=Nde(e);return!(n===t||!Dde(n)||Lde(n))&&("fixed"===Ide(n).position||Yde(n,t))}function Xde(e,t,n){const r=_de(t),o=Ede(t),i="fixed"===n,a=Ude(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=rde(0);if(r||!r&&!i)if(("body"!==Sde(t)||Tde(o))&&(l=Rde(t)),r){const e=Ude(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=qde(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Jde(e,t){return _de(e)&&"fixed"!==Ide(e).position?t?t(e):e.offsetParent:null}function Qde(e,t){const n=kde(e);if(!_de(e)||Zde(e))return n;let r=Jde(e,t);for(;r&&Ade(r)&&"static"===Ide(r).position;)r=Jde(r,t);return r&&("html"===Sde(r)||"body"===Sde(r)&&"static"===Ide(r).position&&!Mde(r))?n:r||function(e){let t=Nde(e);for(;_de(t)&&!Lde(t);){if(Mde(t))return t;t=Nde(t)}return null}(e)||n}const efe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Ede(r),l=!!t&&Zde(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=rde(1);const c=rde(0),d=_de(r);if((d||!d&&!i)&&(("body"!==Sde(r)||Tde(a))&&(s=Rde(r)),_de(r))){const e=Ude(r);u=Kde(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:Ede,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=zde(e,[],!1).filter((e=>Dde(e)&&"body"!==Sde(e))),o=null;const i="fixed"===Ide(e).position;let a=i?Nde(e):e;for(;Dde(a)&&!Lde(a);){const t=Ide(a),n=Mde(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Tde(a)&&!n&&Yde(e,a))?r=r.filter((e=>e!==a)):o=t,a=Nde(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=Gde(t,n,o);return e.top=ede(r.top,e.top),e.right=Qce(r.right,e.right),e.bottom=Qce(r.bottom,e.bottom),e.left=ede(r.left,e.left),e}),Gde(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Qde,getElementRects:async function(e){const t=this.getOffsetParent||Qde,n=this.getDimensions;return{reference:Xde(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Bde(e);return{width:t,height:n}},getScale:Kde,isElement:Dde,isRTL:function(e){return"rtl"===Ide(e).direction}};function tfe(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=Fde(e),c=o||i?[...u?zde(u):[],...zde(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&l?function(e,t){let n,r=null;const o=Ede(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-nde(c)+"px "+-nde(o.clientWidth-(u+d))+"px "+-nde(o.clientHeight-(c+f))+"px "+-nde(u)+"px",threshold:ede(0,Qce(1,s))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!s&&h.observe(u),h.observe(t));let g=s?Ude(e):null;return s&&function t(){const r=Ude(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const nfe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=lde(e,t),u={x:n,y:r},c=await bde(t,s),d=fde(sde(o)),f=cde(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=ade(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=ade(h+c["y"===d?"top":"left"],h,h-c[e])}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},rfe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=lde(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=sde(o),y=sde(l)===l,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=f||(y||!g?[gde(l)]:function(e){const t=gde(e);return[hde(e),t,hde(t)]}(l));f||"none"===h||w.push(...function(e,t,n,r){const o=ude(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(sde(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(hde)))),i}(l,g,h,b));const x=[l,...w],C=await bde(t,m),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ude(e),o=pde(e),i=dde(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=gde(a)),[a,gde(a)]}(o,a,b);S.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,O;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(O=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},ofe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=lde(e,t),s=await bde(t,l),u=sde(n),c=ude(n),d="y"===fde(n),{width:f,height:p}=r.floating;let h,g;"top"===u||"bottom"===u?(h=u,g=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,h="end"===c?"top":"bottom");const m=p-s[h],v=f-s[g],y=!t.middlewareData.shift;let b=m,w=v;if(d){const e=f-s.left-s.right;w=c||y?Qce(v,e):e}else{const e=p-s.top-s.bottom;b=c||y?Qce(m,e):e}if(y&&!c){const e=ede(s.left,0),t=ede(s.right,0),n=ede(s.top,0),r=ede(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:ede(s.left,s.right)):b=p-2*(0!==n||0!==r?n+r:ede(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},ife=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=lde(e,t);switch(r){case"referenceHidden":{const e=wde(await bde(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:xde(e)}}}case"escaped":{const e=wde(await bde(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:xde(e)}}}default:return{}}}}},afe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=lde(e,t)||{};if(null==u)return{};const d=mde(c),f={x:n,y:r},p=pde(o),h=dde(p),g=await a.getDimensions(u),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=C?C[b]:0;S&&await(null==a.isElement?void 0:a.isElement(C))||(S=l.floating[b]||i.floating[h]);const k=w/2-x/2,E=S/2-g[h]/2-1,O=Qce(d[v],E),D=Qce(d[y],E),_=O,P=S-g[h]-D,T=S/2-g[h]/2+k,A=ade(_,T,P),M=!s.arrow&&null!=ude(o)&&T!==A&&i.reference[h]/2-(T<_?O:D)-g[h]/2<0,j=M?T<_?T-_:T-P:0;return{[p]:f[p]+j,data:{[p]:A,centerOffset:T-A-j,...M&&{alignmentOffset:j}},reset:M}}}),lfe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=lde(e,t),c={x:n,y:r},d=fde(o),f=cde(d);let p=c[f],h=c[d];const g=lde(l,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(sde(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},sfe=(e,t,n)=>{const r=new Map,o={platform:efe,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=yde(u,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:m,y:v,data:y,reset:b}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=yde(u,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},ufe=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?afe({element:n.current,padding:r}).fn(t):{}:n?afe({element:n,padding:r}).fn(t):{};var o}});var cfe="undefined"!=typeof document?y:m;function dfe(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!dfe(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!dfe(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ffe(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pfe(e,t){const n=ffe(e);return Math.round(t*n)/n}function hfe(e){const t=r.useRef(e);return cfe((()=>{t.current=e})),t}const gfe=d(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l(Ae.svg,Ce({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:l("polygon",{points:"0,0 30,0 15,10"}))}));const mfe="Popper",[vfe,yfe]=ye(mfe),[bfe,wfe]=vfe(mfe),xfe=d(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=wfe("PopperAnchor",n),a=g(null),s=xe(t,a);return m((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:l(Ae.div,Ce({},o,{ref:s}))})),Cfe="PopperContent",[Sfe,kfe]=vfe(Cfe),Efe=d(((e,t)=>{var n,o,i,a,s,u,c,d;const{__scopePopper:f,side:p="bottom",sideOffset:h=0,align:g="center",alignOffset:m=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:k="optimized",onPlaced:E,...O}=e,D=wfe(Cfe,f),[P,T]=v(null),A=xe(t,(e=>T(e))),[M,j]=v(null),L=function(e){const[t,n]=v(void 0);return Me((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(M),I=null!==(n=null==L?void 0:L.width)&&void 0!==n?n:0,R=null!==(o=null==L?void 0:L.height)&&void 0!==o?o:0,N=p+("center"!==g?"-"+g:""),$="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},z=Array.isArray(w)?w:[w],B=z.length>0,F={padding:$,boundary:z.filter(Pfe),altBoundary:B},{refs:K,floatingStyles:V,placement:H,isPositioned:U,middlewareData:W}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);dfe(p,o)||h(o);const[g,m]=r.useState(null),[v,y]=r.useState(null),b=r.useCallback((e=>{e!==S.current&&(S.current=e,m(e))}),[]),w=r.useCallback((e=>{e!==k.current&&(k.current=e,y(e))}),[]),x=a||g,C=l||v,S=r.useRef(null),k=r.useRef(null),E=r.useRef(d),O=null!=u,D=hfe(u),P=hfe(i),T=r.useCallback((()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),sfe(S.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!dfe(E.current,t)&&(E.current=t,_.flushSync((()=>{f(t)})))}))}),[p,t,n,P]);cfe((()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[c]);const A=r.useRef(!1);cfe((()=>(A.current=!0,()=>{A.current=!1})),[]),cfe((()=>{if(x&&(S.current=x),C&&(k.current=C),x&&C){if(D.current)return D.current(x,C,T);T()}}),[x,C,T,D,O]);const M=r.useMemo((()=>({reference:S,floating:k,setReference:b,setFloating:w})),[b,w]),j=r.useMemo((()=>({reference:x,floating:C})),[x,C]),L=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=pfe(j.floating,d.x),r=pfe(j.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ffe(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,j.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:T,refs:M,elements:j,floatingStyles:L})),[d,T,M,j,L])}({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>tfe(...e,{animationFrame:"always"===k}),elements:{reference:D.anchor},middleware:[Cde({mainAxis:h+R,alignmentAxis:m}),b&&nfe({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?lfe():void 0,...F}),b&&rfe({...F}),ofe({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),M&&ufe({element:M,padding:y}),Tfe({arrowWidth:I,arrowHeight:R}),S&&ife({strategy:"referenceHidden",...F})]}),[Z,q]=Afe(H),G=Pe(E);Me((()=>{U&&(null==G||G())}),[U,G]);const Y=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(a=W.arrow)||void 0===a?void 0:a.y,J=0!==(null===(s=W.arrow)||void 0===s?void 0:s.centerOffset),[Q,ee]=v();return Me((()=>{P&&ee(window.getComputedStyle(P).zIndex)}),[P]),l("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:U?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(u=W.transformOrigin)||void 0===u?void 0:u.x,null===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},l(Sfe,{scope:f,placedSide:Z,onArrowChange:j,arrowX:Y,arrowY:X,shouldHideArrow:J},l(Ae.div,Ce({"data-side":Z,"data-align":q},O,{ref:A,style:{...O.style,animation:U?void 0:"none",opacity:null!==(d=W.hide)&&void 0!==d&&d.referenceHidden?0:void 0}}))))})),Ofe="PopperArrow",Dfe={top:"bottom",right:"left",bottom:"top",left:"right"},_fe=d((function(e,t){const{__scopePopper:n,...r}=e,o=kfe(Ofe,n),i=Dfe[o.placedSide];return l("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0}},l(gfe,Ce({},r,{ref:t,style:{...r.style,display:"block"}})))}));function Pfe(e){return null!==e}const Tfe=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Afe(l),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?g:`${m}px`,b=-f+"px"):"top"===p?(y=c?g:`${m}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?g:`${v}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?g:`${v}px`),{data:{x:y,y:b}}}});function Afe(e){const[t,n="center"]=e.split("-");return[t,n]}const Mfe=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v(null);return l(bfe,{scope:t,anchor:r,onAnchorChange:o},n)},jfe=xfe,Lfe=Efe,Ife=_fe,Rfe=d(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?P.createPortal(l(Ae.div,Ce({},o,{ref:t})),r):null})),Nfe=d(((e,t)=>l(Ae.span,Ce({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[$fe,zfe]=ye("Tooltip",[yfe]),Bfe=yfe(),Ffe=700,Kfe="tooltip.open",[Vfe,Hfe]=$fe("TooltipProvider"),Ufe="Tooltip",[Wfe,Zfe]=$fe(Ufe),qfe="TooltipTrigger",Gfe=d(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Zfe(qfe,n),i=Hfe(qfe,n),a=Bfe(n),s=xe(t,g(null),o.onTriggerChange),c=g(!1),d=g(!1),f=u((()=>c.current=!1),[]);return m((()=>()=>document.removeEventListener("pointerup",f)),[f]),l(jfe,ve({asChild:!0},a),l(Ae.button,ve({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:s,onPointerMove:_e(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(d.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))})),onPointerLeave:_e(e.onPointerLeave,(()=>{o.onTriggerLeave(),d.current=!1})),onPointerDown:_e(e.onPointerDown,(()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:_e(e.onFocus,(()=>{c.current||o.onOpen()})),onBlur:_e(e.onBlur,o.onClose),onClick:_e(e.onClick,o.onClose)})))})),Yfe="TooltipPortal",[Xfe,Jfe]=$fe(Yfe,{forceMount:void 0}),Qfe="TooltipContent",epe=d(((e,t)=>{const n=Jfe(Qfe,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Zfe(Qfe,e.__scopeTooltip);return l(je,{present:r||a.open},a.disableHoverableContent?l(ope,ve({side:o},i,{ref:t})):l(tpe,ve({side:o},i,{ref:t})))})),tpe=d(((e,t)=>{const n=Zfe(Qfe,e.__scopeTooltip),r=Hfe(Qfe,e.__scopeTooltip),o=g(null),i=xe(t,o),[a,s]=v(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,h=u((()=>{s(null),p(!1)}),[p]),y=u(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);s(a),p(!0)}),[p]);return m((()=>()=>h()),[h]),m((()=>{if(c&&f){const e=e=>y(e,f),t=e=>y(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[c,f,y,h]),m((()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,s=t[i].x,u=t[i].y;l>r!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,a);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[c,f,a,d,h]),l(ope,ve({},e,{ref:i}))})),[npe,rpe]=$fe(Ufe,{isInside:!1}),ope=d(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,u=Zfe(Qfe,n),c=Bfe(n),{onClose:d}=u;return m((()=>(document.addEventListener(Kfe,d),()=>document.removeEventListener(Kfe,d))),[d]),m((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,d]),l(Gce,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d},l(Lfe,ve({"data-state":u.stateAttribute},c,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),l(Ee,null,r),l(npe,{scope:n,isInside:!0},l(Nfe,{id:u.contentId,role:"tooltip"},o||r))))}));const ipe=e=>{const{__scopeTooltip:t,delayDuration:n=Ffe,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=v(!0),c=g(!1),d=g(0);return m((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),l(Vfe,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:u((()=>{window.clearTimeout(d.current),s(!1)}),[]),onClose:u((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:u((e=>{c.current=e}),[]),disableHoverableContent:o},i)},ape=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:c}=e,d=Hfe(Ufe,e.__scopeTooltip),f=Bfe(t),[p,h]=v(null),y=Ne(),b=g(0),w=null!=s?s:d.disableHoverableContent,x=null!=c?c:d.delayDuration,C=g(!1),[S=!1,k]=Te({prop:r,defaultProp:o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(Kfe))):d.onClose(),null==i||i(e)}}),E=a((()=>S?C.current?"delayed-open":"instant-open":"closed"),[S]),O=u((()=>{window.clearTimeout(b.current),C.current=!1,k(!0)}),[k]),D=u((()=>{window.clearTimeout(b.current),k(!1)}),[k]),_=u((()=>{window.clearTimeout(b.current),b.current=window.setTimeout((()=>{C.current=!0,k(!0)}),x)}),[x,k]);return m((()=>()=>window.clearTimeout(b.current)),[]),l(Mfe,f,l(Wfe,{scope:t,contentId:y,open:S,stateAttribute:E,trigger:p,onTriggerChange:h,onTriggerEnter:u((()=>{d.isOpenDelayed?_():O()}),[d.isOpenDelayed,_,O]),onTriggerLeave:u((()=>{w?D():window.clearTimeout(b.current)}),[D,w]),onOpen:O,onClose:D,disableHoverableContent:w},n))},lpe=Gfe,spe=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Zfe(Yfe,t);return l(Xfe,{scope:t,forceMount:n},l(je,{present:n||i.open},l(Rfe,{asChild:!0,container:o},r)))},upe=d(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Bfe(n);return rpe("TooltipArrow",n).isInside?null:l(Ife,ve({},o,r,{ref:t}))})),cpe=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},dpe=n=>{var{trigger:r,children:o,content:i,position:a="top",offset:l=4,zIndex:s,width:u,maxWidth:c,textAlign:d,open:f,disabled:p,id:h,bgColor:g,color:m,container:v,afterShow:y,afterHide:b}=n,w=M(n,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e(ipe,{children:t(ape,{delayDuration:0,onOpenChange:e=>{p||(y&&e&&y(),b&&!e&&b())},open:f,children:[e(lpe,{asChild:!0,children:e(ppe,Object.assign({},w,{children:r}))}),e(spe,{container:v,children:!p&&t(fpe,{side:cpe(a).side,align:cpe(a).align,sideOffset:l,zIndex:s,width:u,maxWidth:c,textAlign:d,id:h,bgColor:g,textColor:m,children:[i||o,e(upe,{className:"tooltip-arrow",width:12,height:8})]})})]})})},fpe=me(epe,{shouldForwardProp:e=>Kx(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:l,font:s}=e,u=l.background,c=o||u;return{backgroundColor:c,boxShadow:e.elevation1,color:i||l.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:c,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),ppe=me.div({display:"inline-flex"}),hpe=me.div((({theme:e})=>({color:e.tooltip.color.default}))),gpe=me.div((({theme:e})=>({color:e.tooltip.color.subtext})));dpe.Header=hpe,dpe.Body=gpe;const mpe=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:u,width:c,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:y})=>{const b=g(),[w,x]=v([]),[C,S]=v([]),k={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:y},E=e=>{const t=Object.assign({},e);return delete t.selected,t};m((()=>{if(!Nt.isEqual(n,b.current)){b.current=n;const e=n.filter((e=>e.selected)).map(E),t=n.filter((e=>!e.selected)).map(E);S(e),x(t)}}),[n,b]),m((()=>{r(C)}),[C]);const O=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?S:x;(n?x:S)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},D=e=>{const t="select"===e?x:S,n="select"===e?w:C;("select"===e?S:x)((e=>[...e,...n])),t([])},_=n=>t("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[n.leftElement||null,n.header&&n.body?t("div",{style:{display:"flex",flexDirection:"column"},children:[e(kpe,{children:n.header}),e(Epe,{children:n.body})]}):n.label,n.rightElement&&e("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),P=!(l&&s);return t(vpe,Object.assign({width:c,readOnly:u},k,{children:[i&&e(ype,{children:i}),t(bpe,{children:[!u&&t(wpe,{children:[P&&e(xpe,{children:w.length>0&&!l&&e(hC,{small:!0,outline:!0,onClick:()=>D("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e(Cpe,{children:w.map((n=>t(Spe,{onClick:()=>O(n,"select"),color:n.color,children:[_(n),e(zn,{name:"chevron-right"})]},n.id)))})]}),t(wpe,{children:[P&&!u&&e(xpe,{children:C.length>0&&!s&&!u&&e(hC,{small:!0,outline:!0,secondary:!0,onClick:()=>D("remove"),icon:"arrow-left",children:"All"})}),u&&0===C.length?e("div",{children:a}):e(Cpe,{children:C.map((n=>t(Spe,{onClick:()=>O(n,"remove"),color:n.color,children:[_(n),e(zn,{name:"chevron-left"})]},n.id)))})]})]})]}))},vpe=me.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),Rn),ype=me.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),bpe=me.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),wpe=me.div({display:"flex",flexDirection:"column"}),xpe=me.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Cpe=me.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),Spe=me.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),kpe=me.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Epe=me.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var Ope={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function l(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function s(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function u(e){e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function f(e,t,n){function r(){c&&o&&i&&(c(u),c=null)}t=l(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,c=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),s(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=l(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function m(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function S(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function k(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function E(e){if(e.g){var t=d(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),c(e.f,n,r)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,x(n)):e.h[t]())}function D(){this.c={}}function _(e,t){this.c=e,this.f=t,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function P(e){s(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+C(e)+";font-weight:"+e.f+"00;"}function A(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function M(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new _(this.c,this.s),this.h=new _(this.c,this.s),this.j=new _(this.c,this.s),this.m=new _(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,P(this.g),P(this.h),P(this.j),P(this.m)}y.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},A.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return C(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var j={D:"serif",C:"sans-serif"},L=null;function I(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function R(e,t,n){for(var r in j)if(j.hasOwnProperty(r)&&t===e.f[j[r]]&&n===e.f[j[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&R(e,n,i)),t?o()-e.A>=e.w?I()&&R(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?$(e,e.v):$(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):$(e,e.v)}function $(e,t){setTimeout(r((function(){u(this.g.a),u(this.h.a),u(this.j.a),u(this.m.a),t(this.a)}),e),0)}function z(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var B=null;function F(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&c(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):E(e.a))}function K(e){this.j=e,this.a=new D,this.h=0,this.f=this.g=!0}function V(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===n.length&&a)E(t.a);else{t.f+=n.length,a&&(t.j=a);var s,u=[];for(s=0;s<n.length;s++){var d=n[s],f=l[d.c],p=t.a,h=d;if(p.g&&c(p.f,[p.a.c("wf",h.c,x(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===B)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);B=h?42<parseInt(h[1],10):!g}else B=!1;p=B?new A(r(t.g,t),r(t.h,t),t.c,d,t.s,f):new M(r(t.g,t),r(t.h,t),t.c,d,t.s,e,f),u.push(p)}for(s=0;s<u.length;s++)u[s].start()}}),0)}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||Z,this.a=[],this.f=[],this.g=t||""}z.prototype.g=function(e){var t=this.a;t.g&&c(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,F(this)},z.prototype.h=function(e){var t=this.a;if(t.g){var n=d(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),c(t.f,r,o)}O(t,"fontinactive",e),F(this)},K.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&c(e.f,[e.a.c("wf","loading")]),O(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new z(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new k(this.c,e),e)},H.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var s=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new b(s,n))):a.push(new b(s))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},U.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)f(this.c,r[t],g(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),u=0;u<s.length;u+=1)l.push(new b(r[0],s[u]));else l.push(new b(r[0]));m(a,(function(){e(l,i)}))};var Z="https://fonts.googleapis.com/css";function q(e){this.f=e,this.a=[],this.c={}}var G={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new q(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,s=(l=l.split(",")).length,u=0;u<s;u++){var c;if((c=l[u]).match(/^[\w-]+$/))if(null==(d=J.exec(c.toLowerCase())))c="";else{if(c=null==(c=d[2])||""==c?"n":X[c],null==(d=d[1])||""==d)d="4";else var d=Y[d]||(isNaN(d)?"4":d.substr(0,1));c=[c,d].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),f(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),m(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new b(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,S("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new K(window);re.a.c.custom=function(e,t){return new U(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new H(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(Ope);var Dpe=Mt(Ope.exports);const _pe=({families:t,fontFamily:n})=>(m((()=>{var e;e=t,Dpe.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[t]),e(D,{styles:{"html,body":{margin:0,fontFamily:n||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),Ppe=()=>{const{scale1:t}=O();return e(D,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},Tpe=()=>{const{font:t,toast:n}=O();return e(D,{styles:{".Toastify__toast":{color:n.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:n.color},".Toastify__toast--default":{background:n.background.deafult,border:`1px solid ${n.border.deafult}`},".Toastify__toast--info":{background:n.background.info,border:`1px solid ${n.border.info}`,"& .Toastify__toast-icon > svg":{fill:n.border.info}},".Toastify__toast--success":{background:n.background.success,border:`1px solid ${n.border.success}`,"& .Toastify__toast-icon > svg":{fill:n.border.success}},".Toastify__toast--warning":{background:n.background.warning,border:`1px solid ${n.border.warning}`,"& .Toastify__toast-icon > svg":{fill:n.border.warning}},".Toastify__toast--error":{background:n.background.error,border:`1px solid ${n.border.error}`,"& .Toastify__toast-icon > svg":{fill:n.border.error}},".Toastify__progress-bar--default":{background:n.border.deafult},".Toastify__progress-bar--info":{background:n.border.info},".Toastify__progress-bar--success":{background:n.border.success},".Toastify__progress-bar--warning":{background:n.border.warning},".Toastify__progress-bar--error":{background:n.border.error}}})},Ape="#0074F4",Mpe="#FF6068",jpe="#FF9900",Lpe="#F0BB00",Ipe="#00C242",Rpe="#001D32",Npe="#FFFFFF",$pe={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:Ape,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:zr(.95,Ape),brandTint1:zr(.9,Ape),brandTint2:zr(.8,Ape),brandTint3:zr(.7,Ape),brandTint4:zr(.6,Ape),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:Mpe,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:zr(.95,Mpe),errorTint1:zr(.9,Mpe),errorTint2:zr(.8,Mpe),warning:jpe,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:zr(.95,jpe),warningTint1:zr(.9,jpe),warningTint2:zr(.8,jpe),alert:Lpe,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:zr(.95,Lpe),alertTint1:zr(.9,Lpe),alertTint2:zr(.8,Lpe),success:Ipe,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:zr(.95,Ipe),successTint1:zr(.9,Ipe),successTint2:zr(.8,Ipe),grayscale0:zr(.95,Rpe),grayscale1:zr(.9,Rpe),grayscale2:zr(.8,Rpe),grayscale3:zr(.7,Rpe),grayscale4:zr(.6,Rpe),grayscale5:zr(.5,Rpe),grayscale6:zr(.4,Rpe),grayscale7:zr(.3,Rpe),grayscale8:zr(.2,Rpe),grayscale9:zr(.1,Rpe),grayscale10:Rpe,contrast0:zr(.95,Npe),contrast1:zr(.9,Npe),contrast2:zr(.8,Npe),contrast3:zr(.7,Npe),contrast4:zr(.6,Npe),contrast5:zr(.5,Npe),contrast6:zr(.4,Npe),contrast7:zr(.3,Npe),contrast8:zr(.2,Npe),contrast9:zr(.1,Npe),contrast10:Npe};var zpe={color:$pe,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:Bpe}=zpe;var Fpe={small:{height:28,iconSize:18,font:Bpe.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:Bpe.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:Bpe.size.lg,padding:14,iconOnlyPadding:6}};const Kpe="#FFFFFF",Vpe={scale0:$pe.grayscale0,scale1:$pe.grayscale1,scale2:$pe.grayscale2,scale3:$pe.grayscale3,scale4:$pe.grayscale4,scale5:$pe.grayscale5,scale6:$pe.grayscale6,scale7:$pe.grayscale7,scale8:$pe.grayscale8,scale9:$pe.grayscale9,scale10:$pe.grayscale10,accent:$pe.brand,accentShade:$pe.brandShade1,background0:Kpe,background1:Kpe,background2:Kpe,background3:Kpe,background4:Kpe,background5:Kpe},Hpe="#FFFFFF",Upe=$pe.grayscale0,Wpe=$pe.grayscale1,Zpe=$pe.grayscale2,qpe=$pe.grayscale3,Gpe=$pe.grayscale4,Ype=$pe.grayscale6,Xpe=$pe.grayscale8,Jpe=$pe.grayscale9,Qpe=$pe.grayscale10,ehe=Object.assign(Object.assign(Object.assign({},zpe),Vpe),{name:"light",button:Object.assign(Object.assign({},Fpe),{primary:{color:{default:Hpe,hover:Hpe,active:Hpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},outlineBackground:{default:$pe.brandTint0,hover:$pe.brandTint1,active:$pe.brandTint2},border:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},divider:Zpe},secondary:{color:{default:Qpe,hover:Qpe,active:Qpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:Wpe,hover:Zpe,active:qpe},outlineBackground:{default:Wpe,hover:Zpe,active:qpe},border:{default:Zpe,hover:Zpe,active:Zpe},divider:Zpe},positive:{color:{default:Hpe,hover:Hpe,active:Hpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},outlineBackground:{default:$pe.successTint0,hover:$pe.successTint1,active:$pe.successTint2},border:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},divider:Zpe},negative:{color:{default:Hpe,hover:Hpe,active:Hpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},outlineBackground:{default:$pe.errorTint0,hover:$pe.errorTint1,active:$pe.errorTint2},border:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},divider:Zpe},caution:{color:{default:Hpe,hover:Hpe,active:Hpe},outlineColor:{default:Qpe,hover:Qpe,active:Qpe},background:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},outlineBackground:{default:$pe.warningTint0,hover:$pe.warningTint1,active:$pe.warningTint2},border:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},divider:Zpe},subtle:{color:{default:$pe.brand,hover:$pe.brand,active:$pe.brand},outlineColor:{default:$pe.brand,hover:$pe.brand,active:$pe.brand},secondaryColor:{default:Qpe,hover:Qpe,active:Qpe},positiveColor:{default:$pe.success,hover:$pe.success,active:$pe.success},negativeColor:{default:$pe.error,hover:$pe.error,active:$pe.error},cautionColor:{default:$pe.warning,hover:$pe.warning,active:$pe.warning},background:{default:"transparent",hover:Wpe,active:Zpe},outlineBackground:{default:"transparent",hover:Wpe,active:Zpe},border:{default:"transparent",hover:Zpe,active:Zpe},divider:Zpe},link:{color:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},outlineColor:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},secondaryColor:{default:Xpe,hover:Jpe,active:Qpe},positiveColor:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},negativeColor:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},cautionColor:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Gpe,hover:Gpe,active:Gpe},outlineColor:{default:Gpe,hover:Gpe,active:Gpe},background:{default:Wpe,hover:Wpe,active:Wpe},outlineBackground:{default:Upe,hover:Upe,active:Upe},border:{default:Wpe,hover:Wpe,active:Wpe},divider:Wpe},color:{default:Hpe}}),calendar:{background:{container:$pe.contrast10,hover:Wpe,active:$pe.brand,activeHover:$pe.brandShade1,activeRange:$pe.brandTint4},color:{disabled:Gpe,default:Qpe,active:$pe.contrast10,current:$pe.brand,outside:Ype,weekday:Xpe,monthYear:Xpe,iconDefault:Ype,iconDisabled:Zpe,iconHover:Qpe}},defaultBorder:`1px solid ${Wpe}`,formControl:{color:{default:Xpe,hover:Qpe,active:$pe.brand,activeHover:$pe.brandShade1,disabled:Gpe}},input:{borderRadius:4,background:{default:Upe,hover:Wpe,focused:Wpe,disabled:Upe},color:{default:Qpe,disabled:Gpe,placeholder:Ype,description:Ype,descriptionError:$pe.error},borderColor:{default:Ype,hover:Xpe,focused:$pe.brand,disabled:Gpe,error:$pe.error},labelColor:{default:Xpe,hover:Xpe,filled:Ype,focused:$pe.brand,disabled:Gpe}},menu:{background:Hpe},menuItem:{borderColor:$pe.brand,background:{active:Upe,hover:Wpe,inactive:"transparent"},color:{active:Qpe,hover:Qpe,inactive:Ype}},modal:{background:$pe.contrast10,color:{header:Qpe,body:Ype}},options:{background:$pe.contrast10},optionItem:{background:{active:Wpe,inactive:"transparent"},color:{active:Qpe,inactive:Qpe,accent:$pe.brand}},table:{color:{header:Ype,body:Qpe},borderColor:Wpe},toast:{color:Qpe,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:Xpe,info:$pe.brand,success:$pe.success,warning:$pe.warning,error:$pe.error}},toggle:{slider:$pe.contrast10},tooltip:{background:"#FFF",color:{default:Qpe,subtext:Ype}}}),the={scale0:$pe.contrast0,scale1:$pe.contrast1,scale2:$pe.contrast2,scale3:$pe.contrast3,scale4:$pe.contrast4,scale5:$pe.contrast5,scale6:$pe.contrast6,scale7:$pe.contrast7,scale8:$pe.contrast8,scale9:$pe.contrast9,scale10:$pe.contrast10,accent:$pe.brandDark,accentShade:$pe.brandDarkShade1,background0:$pe.brandBackground0,background1:$pe.brandBackground1,background2:$pe.brandBackground2,background3:$pe.brandBackground3,background4:$pe.brandBackground4,background5:$pe.brandBackground5},nhe=$pe.contrast0,rhe=$pe.contrast1,ohe=$pe.contrast2,ihe=$pe.contrast3,ahe=$pe.contrast4,lhe=$pe.contrast6,she=$pe.contrast8,uhe=$pe.contrast9,che=$pe.contrast10,dhe=$pe.brandDark,fhe={light:ehe,dark:Object.assign(Object.assign(Object.assign({},zpe),the),{name:"dark",button:Object.assign(Object.assign({},Fpe),{primary:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},outlineBackground:{default:$pe.brandTint0,hover:$pe.brandTint1,active:$pe.brandTint2},border:{default:$pe.brand,hover:$pe.brandShade1,active:$pe.brandShade2},divider:ohe},secondary:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:rhe,hover:ohe,active:ihe},outlineBackground:{default:rhe,hover:ohe,active:ihe},border:{default:ohe,hover:ohe,active:ohe},divider:ohe},positive:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},outlineBackground:{default:$pe.successTint0,hover:$pe.successTint1,active:$pe.successTint2},border:{default:$pe.success,hover:$pe.successShade1,active:$pe.successShade2},divider:ohe},negative:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},outlineBackground:{default:$pe.errorTint0,hover:$pe.errorTint1,active:$pe.errorTint2},border:{default:$pe.error,hover:$pe.errorShade1,active:$pe.errorShade2},divider:ohe},caution:{color:{default:che,hover:che,active:che},outlineColor:{default:che,hover:che,active:che},background:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},outlineBackground:{default:$pe.warningTint0,hover:$pe.warningTint1,active:$pe.warningTint2},border:{default:$pe.warning,hover:$pe.warningShade1,active:$pe.warningShade2},divider:ohe},subtle:{color:{default:$pe.brand,hover:$pe.brand,active:$pe.brand},outlineColor:{default:$pe.brand,hover:$pe.brand,active:$pe.brand},secondaryColor:{default:che,hover:che,active:che},positiveColor:{default:$pe.success,hover:$pe.success,active:$pe.success},negativeColor:{default:$pe.error,hover:$pe.error,active:$pe.error},cautionColor:{default:$pe.warning,hover:$pe.warning,active:$pe.warning},background:{default:"transparent",hover:rhe,active:ohe},outlineBackground:{default:"transparent",hover:rhe,active:ohe},border:{default:"transparent",hover:ohe,active:ohe},divider:ohe},link:{color:{default:$pe.brandShade2,hover:$pe.brandShade1,active:$pe.brand},outlineColor:{default:$pe.brandShade2,hover:$pe.brandShade1,active:$pe.brand},secondaryColor:{default:she,hover:uhe,active:che},positiveColor:{default:$pe.successShade2,hover:$pe.successShade1,active:$pe.success},negativeColor:{default:$pe.errorShade2,hover:$pe.errorShade1,active:$pe.error},cautionColor:{default:$pe.warningShade2,hover:$pe.warningShade1,active:$pe.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:ahe,hover:ahe,active:ahe},outlineColor:{default:ahe,hover:ahe,active:ahe},background:{default:rhe,hover:rhe,active:rhe},outlineBackground:{default:nhe,hover:nhe,active:nhe},border:{default:rhe,hover:rhe,active:rhe},divider:rhe},color:{default:"#FFFFFF"}}),calendar:{background:{container:$pe.brandBackground3,hover:rhe,active:$pe.brand,activeHover:$pe.brandShade1,activeRange:$pe.brandTint4},color:{disabled:ahe,default:che,active:che,current:dhe,outside:lhe,weekday:she,monthYear:she,iconDefault:lhe,iconDisabled:ohe,iconHover:che}},defaultBorder:`1px solid ${rhe}`,formControl:{color:{default:she,hover:che,active:$pe.brand,activeHover:$pe.brandShade1,disabled:ahe}},input:{borderRadius:4,background:{default:nhe,hover:rhe,focused:rhe,disabled:nhe},color:{default:che,disabled:ahe,placeholder:lhe,description:lhe,descriptionError:$pe.error},borderColor:{default:lhe,hover:she,focused:dhe,disabled:ahe,error:$pe.error},labelColor:{default:she,hover:she,filled:lhe,focused:dhe,disabled:ahe}},menu:{background:$pe.brandBackground2},menuItem:{borderColor:$pe.brand,background:{active:nhe,hover:rhe,inactive:"transparent"},color:{active:che,hover:che,inactive:lhe}},modal:{background:$pe.brandBackground3,color:{header:che,body:lhe}},options:{background:$pe.brandBackground2},optionItem:{background:{active:rhe,inactive:"transparent"},color:{active:che,inactive:che,accent:dhe}},table:{color:{header:lhe,body:che},borderColor:rhe},toast:{color:che,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:she,info:$pe.brand,success:$pe.success,warning:$pe.warning,error:$pe.error}},toggle:{slider:$pe.brandBackground0},tooltip:{background:$pe.brandBackground4,color:{default:che,subtext:lhe}}})},phe=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:u,inputValue:c}={})=>{const[d,f]=v(c||""),[p,h]=v(null),g=()=>h(null);m((()=>{l&&"string"==typeof c&&d!==c&&f(c)}),[p]);const y=()=>{null==p||p.resolve(!l||d),g()},b=()=>{null==p||p.resolve(!1),g()};Dt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":b()}}),!!p,[d]);return[()=>new Promise((e=>{h({resolve:e})})),()=>t(Vue,{visible:!!p,onClose:g,width:400,children:[n&&e(Vue.Header,{children:n}),r&&e(Vue.Text,{children:r}),l&&e(Vue.Body,{marginTop:4,marginBottom:8,children:e(xse,{autoFocus:!0,label:s,placeholder:u,value:d,onChange:({target:e})=>f(e.value)})}),t(Vue.Footer,{children:[e(hC,{secondary:!0,marginRight:8,onClick:b,children:o}),e(hC,{negative:a,onClick:y,children:i})]})]})]};export{Kn as Accordion,SC as Audio,r1 as BarChart,hC as Button,b1 as Calendar,k1 as Checkbox,S0 as Code,N0 as ComboBox,cue as DatePicker,vue as DateRangePicker,z0 as DocTable,rse as DraftEditor,Ise as Dropdown,tC as DropdownMenu,Fse as Ellipsis,Zse as Form,Kse as Grid,zn as Icon,Xse as ImageViewer,nue as InlineCode,xse as Input,Ule as InputUtils,Use as Label,_ue as LineChart,Pue as Menu,Lue as Message,zue as MessageHr,Vue as Modal,Zue as MultiSelect,NJ as Notification,xue as NumberInput,Dse as Options,rce as Pagination,uce as PieChart,hce as Progress,Vse as Radio,hue as RangeCalendar,_pe as ResetStyles,Ppe as ScrollbarStyles,vce as Select,wC as Slider,wce as Spacer,aC as Spinner,$ce as Table,Fce as Tabs,Oue as TextInput,Tpe as ToastStyles,Hse as Toggle,dpe as Tooltip,mpe as TransferList,$pe as colors,WQ as copyToClipboard,the as darkScale,UQ as formatDate,Vpe as lightScale,Rn as marginProps,ZQ as numberWithCommas,In as paddingProps,Nn as positionProps,fhe as theme,phe as useConfirm,Mn as useElementObserver,Dt as useEventListener,_t as useOnClickOutside,jn as usePrevious,$t as useSelect,Tt as useSelectAll,Pt as useWindowSize,Ln as widthHeightProps};
|
|
54
54
|
//# sourceMappingURL=index.js.map
|