@tsiky/components-r19 1.6.18 → 1.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SimpleBarChart-BzHNNwd6.cjs +134 -0
- package/dist/SimpleBarChart-CCePRx-C.js +18730 -0
- package/dist/chart.cjs.js +13 -13
- package/dist/chart.js +304 -303
- package/dist/index.cjs.js +5 -5
- package/dist/index.js +166 -158
- package/dist/src/components/AreaChartV2/AreaChartV2.d.ts.map +1 -1
- package/dist/src/components/ChartV2/ChartV2.d.ts.map +1 -1
- package/dist/src/components/SimpleBarChart/SimpleBarChart.d.ts +1 -0
- package/dist/src/components/SimpleBarChart/SimpleBarChart.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableHeader.d.ts +2 -1
- package/dist/src/components/TableauxComponent/TableHeader.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/TableLayout.d.ts +1 -1
- package/dist/src/components/TableauxComponent/TableLayout.d.ts.map +1 -1
- package/dist/src/components/TableauxComponent/types.d.ts +1 -0
- package/dist/src/components/TableauxComponent/types.d.ts.map +1 -1
- package/package.json +99 -99
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";const S=require("react"),B=require("react/jsx-runtime"),rm=require("react-dom");function gw(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const w=gw(S);/**
|
|
2
|
+
* @license lucide-react v0.540.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const bw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ww=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),cf=e=>{const t=ww(e);return t.charAt(0).toUpperCase()+t.slice(1)},nm=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),xw=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
7
|
+
* @license lucide-react v0.540.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var Ow={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.540.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const im=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...u},s)=>S.createElement("svg",{ref:s,...Ow,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:nm("lucide",i),...!a&&!xw(u)&&{"aria-hidden":"true"},...u},[...o.map(([c,l])=>S.createElement(c,l)),...Array.isArray(a)?a:[a]]));/**
|
|
17
|
+
* @license lucide-react v0.540.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const am=(e,t)=>{const r=S.forwardRef(({className:n,...i},a)=>S.createElement(im,{ref:a,iconNode:t,className:nm(`lucide-${bw(cf(e))}`,`lucide-${e}`,n),...i}));return r.displayName=cf(e),r};/**
|
|
22
|
+
* @license lucide-react v0.540.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const Pw=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],Sw=am("move",Pw);var Ew=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _w(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}const Aw="_wrapper_1ogd3_1",Cw="_label_1ogd3_14",Iw="_labelText_1ogd3_22",Tw="_calendarIcon_1ogd3_26",jw="_rangeRow_1ogd3_31",kw="_dateWrap_1ogd3_39",Mw="_innerLabel_1ogd3_47",Dw="_dateInput_1ogd3_52",Nw="_sepWrap_1ogd3_65",$w="_separator_1ogd3_72",Rw="_samplingWrap_1ogd3_77",Lw="_samplingLabel_1ogd3_86",zw="_samplingSelect_1ogd3_90",Ie={wrapper:Aw,label:Cw,labelText:Iw,calendarIcon:Tw,rangeRow:jw,dateWrap:kw,innerLabel:Mw,dateInput:Dw,sepWrap:Nw,separator:$w,samplingWrap:Rw,samplingLabel:Lw,samplingSelect:zw};function Bw({start:e="",end:t="",onChange:r,sampling:n="day",onSamplingChange:i,labels:a={},samplingOptions:o={},className:u=""}){const s={period:"Période",start:"Début",end:"Fin",sampling:"Échantillonnage",...a},c={hour:"Par heure",day:"Par jour",week:"Par semaine",month:"Par mois",...o},[l,f]=S.useState(e),[d,v]=S.useState(t),[h,m]=S.useState(n),p=S.useRef(null);S.useEffect(()=>f(e),[e]),S.useEffect(()=>v(t),[t]),S.useEffect(()=>m(n),[n]),S.useEffect(()=>{function g(b){const x=b.target;p.current&&x&&p.current.contains(x)}return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]),S.useEffect(()=>{r?.({start:l,end:d})},[l,d,r]);const y=g=>{m(g),i?.(g)};return B.jsxs("div",{className:`${Ie.wrapper} ${u}`,ref:p,children:[B.jsxs("label",{className:Ie.label,"aria-hidden":!0,children:[B.jsxs("svg",{className:Ie.calendarIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":!0,children:[B.jsx("path",{fill:"currentColor",d:"M7 10h5v5H7z",opacity:"0"}),B.jsx("path",{fill:"currentColor",d:"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v12a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zM5 20V9h14l.002 11H5z"})]}),B.jsx("span",{className:Ie.labelText,children:s.period})]}),B.jsxs("div",{className:Ie.rangeRow,children:[B.jsxs("div",{className:Ie.dateWrap,children:[B.jsx("label",{className:Ie.innerLabel,htmlFor:"period-from",children:s.start}),B.jsx("input",{id:"period-from",className:Ie.dateInput,type:"date",value:l,onChange:g=>f(g.target.value),"aria-label":s.start})]}),B.jsx("div",{className:Ie.sepWrap,"aria-hidden":!0,children:B.jsx("span",{className:Ie.separator,children:"—"})}),B.jsxs("div",{className:Ie.dateWrap,children:[B.jsx("label",{className:Ie.innerLabel,htmlFor:"period-to",children:s.end}),B.jsx("div",{className:Ie.inputWithIcon,children:B.jsx("input",{id:"period-to",className:Ie.dateInput,type:"date",value:d,onChange:g=>v(g.target.value),"aria-label":s.end})})]}),B.jsxs("div",{className:Ie.samplingWrap,children:[B.jsx("label",{className:Ie.samplingLabel,htmlFor:"period-sampling",children:s.sampling}),B.jsxs("select",{id:"period-sampling",className:Ie.samplingSelect,value:h,onChange:g=>y(g.target.value),"aria-label":s.sampling,children:[B.jsx("option",{value:"hour",children:c.hour}),B.jsx("option",{value:"day",children:c.day}),B.jsx("option",{value:"week",children:c.week}),B.jsx("option",{value:"month",children:c.month})]})]})]})]})}function om(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=om(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ne(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=om(e))&&(n&&(n+=" "),n+=t);return n}var Fw=["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"];function Xs(e){if(typeof e!="string")return!1;var t=Fw;return t.includes(e)}var Ww=["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"],qw=new Set(Ww);function um(e){return typeof e!="string"?!1:qw.has(e)}function sm(e){return typeof e=="string"&&e.startsWith("data-")}function Ot(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(um(r)||sm(r))&&(t[r]=e[r]);return t}function Aa(e){if(e==null)return null;if(S.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Ot(t)}return typeof e=="object"&&!Array.isArray(e)?Ot(e):null}function We(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(um(r)||sm(r)||Xs(r))&&(t[r]=e[r]);return t}function Uw(e){return e==null?null:S.isValidElement(e)?We(e.props):typeof e=="object"&&!Array.isArray(e)?We(e):null}var Vw=["children","width","height","viewBox","className","style","title","desc"];function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zu.apply(null,arguments)}function Kw(e,t){if(e==null)return{};var r,n,i=Hw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Hw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Zs=S.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:s,desc:c}=e,l=Kw(e,Vw),f=a||{width:n,height:i,x:0,y:0},d=ne("recharts-surface",o);return w.createElement("svg",Zu({},We(l),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),w.createElement("title",null,s),w.createElement("desc",null,c),r)}),Gw=["children","className"];function Qu(){return Qu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qu.apply(null,arguments)}function Yw(e,t){if(e==null)return{};var r,n,i=Xw(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Xw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Pt=w.forwardRef((e,t)=>{var{children:r,className:n}=e,i=Yw(e,Gw),a=ne("recharts-layer",n);return w.createElement("g",Qu({className:a},We(i),{ref:t}),r)}),cm=S.createContext(null),Zw=()=>S.useContext(cm);function re(e){return function(){return e}}const lm=Math.cos,Ni=Math.sin,pt=Math.sqrt,$i=Math.PI,Ca=2*$i,Ju=Math.PI,es=2*Ju,cr=1e-6,Qw=es-cr;function fm(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Jw(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return fm;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class ex{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?fm:Jw(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,l=o-t,f=u-r,d=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>cr)if(!(Math.abs(f*s-c*l)>cr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,h=i-u,m=s*s+c*c,p=v*v+h*h,y=Math.sqrt(m),g=Math.sqrt(d),b=a*Math.tan((Ju-Math.acos((m+d-p)/(2*y*g)))/2),x=b/g,P=b/y;Math.abs(x-1)>cr&&this._append`L${t+x*l},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*v>l*h)},${this._x1=t+P*s},${this._y1=r+P*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,l=r+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>cr||Math.abs(this._y1-l)>cr)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%es+es),d>Qw?this._append`A${n},${n},0,1,${f},${t-u},${r-s}A${n},${n},0,1,${f},${this._x1=c},${this._y1=l}`:d>cr&&this._append`A${n},${n},0,${+(d>=Ju)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Qs(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new ex(t)}function Js(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function dm(e){this._context=e}dm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ia(e){return new dm(e)}function vm(e){return e[0]}function hm(e){return e[1]}function pm(e,t){var r=re(!0),n=null,i=Ia,a=null,o=Qs(u);e=typeof e=="function"?e:e===void 0?vm:re(e),t=typeof t=="function"?t:t===void 0?hm:re(t);function u(s){var c,l=(s=Js(s)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),c=0;c<=l;++c)!(c<l&&r(f=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,s),+t(f,c,s));if(v)return a=null,v+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:re(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:re(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:re(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function ui(e,t,r){var n=null,i=re(!0),a=null,o=Ia,u=null,s=Qs(c);e=typeof e=="function"?e:e===void 0?vm:re(+e),t=typeof t=="function"?t:re(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?hm:re(+r);function c(f){var d,v,h,m=(f=Js(f)).length,p,y=!1,g,b=new Array(m),x=new Array(m);for(a==null&&(u=o(g=s())),d=0;d<=m;++d){if(!(d<m&&i(p=f[d],d,f))===y)if(y=!y)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(b[h],x[h]);u.lineEnd(),u.areaEnd()}y&&(b[d]=+e(p,d,f),x[d]=+t(p,d,f),u.point(n?+n(p,d,f):b[d],r?+r(p,d,f):x[d]))}if(g)return u=null,g+""||null}function l(){return pm().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:re(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:re(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:re(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:re(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:re(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:re(+f),c):r},c.lineX0=c.lineY0=function(){return l().x(e).y(t)},c.lineY1=function(){return l().x(e).y(r)},c.lineX1=function(){return l().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:re(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),c):a},c}class mm{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function tx(e){return new mm(e,!0)}function rx(e){return new mm(e,!1)}const ec={draw(e,t){const r=pt(t/$i);e.moveTo(r,0),e.arc(0,0,r,0,Ca)}},nx={draw(e,t){const r=pt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},ym=pt(1/3),ix=ym*2,ax={draw(e,t){const r=pt(t/ix),n=r*ym;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},ox={draw(e,t){const r=pt(t),n=-r/2;e.rect(n,n,r,r)}},ux=.8908130915292852,gm=Ni($i/10)/Ni(7*$i/10),sx=Ni(Ca/10)*gm,cx=-lm(Ca/10)*gm,lx={draw(e,t){const r=pt(t*ux),n=sx*r,i=cx*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ca*a/5,u=lm(o),s=Ni(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},yo=pt(3),fx={draw(e,t){const r=-pt(t/(yo*3));e.moveTo(0,r*2),e.lineTo(-yo*r,-r),e.lineTo(yo*r,-r),e.closePath()}},rt=-.5,nt=pt(3)/2,ts=1/pt(12),dx=(ts/2+1)*3,vx={draw(e,t){const r=pt(t/dx),n=r/2,i=r*ts,a=n,o=r*ts+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(rt*n-nt*i,nt*n+rt*i),e.lineTo(rt*a-nt*o,nt*a+rt*o),e.lineTo(rt*u-nt*s,nt*u+rt*s),e.lineTo(rt*n+nt*i,rt*i-nt*n),e.lineTo(rt*a+nt*o,rt*o-nt*a),e.lineTo(rt*u+nt*s,rt*s-nt*u),e.closePath()}};function hx(e,t){let r=null,n=Qs(i);e=typeof e=="function"?e:re(e||ec),t=typeof t=="function"?t:re(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:re(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:re(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ri(){}function Li(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function bm(e){this._context=e}bm.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:Li(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Li(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function px(e){return new bm(e)}function wm(e){this._context=e}wm.prototype={areaStart:Ri,areaEnd:Ri,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Li(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mx(e){return new wm(e)}function xm(e){this._context=e}xm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Li(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yx(e){return new xm(e)}function Om(e){this._context=e}Om.prototype={areaStart:Ri,areaEnd:Ri,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function gx(e){return new Om(e)}function lf(e){return e<0?-1:1}function ff(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(lf(a)+lf(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function df(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function go(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function zi(e){this._context=e}zi.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:go(this,this._t0,df(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,go(this,df(this,r=ff(this,e,t)),r);break;default:go(this,this._t0,r=ff(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Pm(e){this._context=new Sm(e)}(Pm.prototype=Object.create(zi.prototype)).point=function(e,t){zi.prototype.point.call(this,t,e)};function Sm(e){this._context=e}Sm.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function bx(e){return new zi(e)}function wx(e){return new Pm(e)}function Em(e){this._context=e}Em.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=vf(e),i=vf(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function vf(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function xx(e){return new Em(e)}function Ta(e,t){this._context=e,this._t=t}Ta.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Ox(e){return new Ta(e,.5)}function Px(e){return new Ta(e,0)}function Sx(e){return new Ta(e,1)}function xr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function rs(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Ex(e,t){return e[t]}function _x(e){const t=[];return t.key=e,t}function Ax(){var e=re([]),t=rs,r=xr,n=Ex;function i(a){var o=Array.from(e.apply(this,arguments),_x),u,s=o.length,c=-1,l;for(const f of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(f,o[u].key,c,a)]).data=f;for(u=0,l=Js(t(o));u<s;++u)o[l[u]].index=u;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:re(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:re(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?rs:typeof a=="function"?a:re(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??xr,i):r},i}function Cx(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}xr(e,t)}}function Ix(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}xr(e,t)}}function Tx(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var l=e[t[u]],f=l[n][1]||0,d=l[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var m=e[t[h]],p=m[n][1]||0,y=m[n-1][1]||0;v+=p-y}s+=f,c+=v*f}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,xr(e,t)}}var bo={},wo={},hf;function jx(){return hf||(hf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t}(wo)),wo}var xo={},pf;function _m(){return pf||(pf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t}(xo)),xo}var Oo={},mf;function tc(){return mf||(mf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t}(Oo)),Oo}var Po={},So={},yf;function kx(){return yf||(yf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t}(So)),So}var gf;function rc(){return gf||(gf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kx(),r=tc();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],o=i.length;if(o===0)return a;let u=0,s="",c="",l=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<o;){const f=i[u];c?f==="\\"&&u+1<o?(u++,s+=i[u]):f===c?c="":s+=f:l?f==='"'||f==="'"?c=f:f==="]"?(l=!1,a.push(s),s=""):s+=f:f==="["?(l=!0,s&&(a.push(s),s="")):f==="."?s&&(a.push(s),s=""):s+=f,u++}return s&&a.push(s),a}e.toPath=n}(Po)),Po}var bf;function nc(){return bf||(bf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jx(),r=_m(),n=tc(),i=rc();function a(u,s,c){if(u==null)return c;switch(typeof s){case"string":{if(t.isUnsafeProperty(s))return c;const l=u[s];return l===void 0?r.isDeepKey(s)?a(u,i.toPath(s),c):c:l}case"number":case"symbol":{typeof s=="number"&&(s=n.toKey(s));const l=u[s];return l===void 0?c:l}default:{if(Array.isArray(s))return o(u,s,c);if(Object.is(s?.valueOf(),-0)?s="-0":s=String(s),t.isUnsafeProperty(s))return c;const l=u[s];return l===void 0?c:l}}}function o(u,s,c){if(s.length===0)return c;let l=u;for(let f=0;f<s.length;f++){if(l==null||t.isUnsafeProperty(s[f]))return c;l=l[s[f]]}return l===void 0?c:l}e.get=a}(bo)),bo}var Eo,wf;function Mx(){return wf||(wf=1,Eo=nc().get),Eo}var Dx=Mx();const Or=zt(Dx);var Nx=4;function Jt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nx,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function ce(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((i,a,o)=>{var u=r[o-1];return typeof u=="string"?i+u+a:u!==void 0?i+Jt(u)+a:i+a},"")}var ze=e=>e===0?0:e>0?1:-1,dt=e=>typeof e=="number"&&e!=+e,Pr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,R=e=>(typeof e=="number"||e instanceof Number)&&!dt(e),St=e=>R(e)||typeof e=="string",$x=0,En=e=>{var t=++$x;return"".concat(e||"").concat(t)},ot=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!R(t)&&typeof t!="string")return n;var a;if(Pr(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return dt(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},Am=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function Se(e,t,r){return R(e)&&R(t)?Jt(e+r*(t-e)):t}function Cm(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Or(n,t))===r)}var Rx=e=>{for(var t=e.length,r=0,n=0,i=0,a=0,o=1/0,u=-1/0,s=0,c=0,l=0;l<t;l++){var f,d;s=((f=e[l])===null||f===void 0?void 0:f.cx)||0,c=((d=e[l])===null||d===void 0?void 0:d.cy)||0,r+=s,n+=c,i+=s*c,a+=s*s,o=Math.min(o,s),u=Math.max(u,s)}var v=t*a!==r*r?(t*i-r*n)/(t*a-r*r):0;return{xmin:o,xmax:u,a:v,b:(n-v*r)/t}},le=e=>e===null||typeof e>"u",Fn=e=>le(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Be(e){return e!=null}function Dr(){}var Lx=["type","size","sizeType"];function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ns.apply(null,arguments)}function xf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Of(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xf(Object(r),!0).forEach(function(n){zx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zx(e,t,r){return(t=Bx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bx(e){var t=Fx(e,"string");return typeof t=="symbol"?t:t+""}function Fx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wx(e,t){if(e==null)return{};var r,n,i=qx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function qx(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Im={symbolCircle:ec,symbolCross:nx,symbolDiamond:ax,symbolSquare:ox,symbolStar:lx,symbolTriangle:fx,symbolWye:vx},Ux=Math.PI/180,Vx=e=>{var t="symbol".concat(Fn(e));return Im[t]||ec},Kx=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*Ux;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**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}},Hx=(e,t)=>{Im["symbol".concat(Fn(e))]=t},ic=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=Wx(e,Lx),a=Of(Of({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=Vx(o),v=hx().type(d).size(Kx(r,n,o)),h=v();if(h!==null)return h},{className:s,cx:c,cy:l}=a,f=We(a);return R(c)&&R(l)&&R(r)?w.createElement("path",ns({},f,{className:ne("recharts-symbols",s),transform:"translate(".concat(c,", ").concat(l,")"),d:u()})):null};ic.registerSymbol=Hx;var Tm=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,jm=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(S.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{Xs(i)&&(n[i]=a=>r[i](r,a))}),n},Gx=(e,t,r)=>n=>(e(t,r,n),null),ja=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];Xs(i)&&typeof a=="function"&&(n||(n={}),n[i]=Gx(a,t,r))}),n},Yx=e=>Array.isArray(e)&&e.length>0;function Pf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pf(Object(r),!0).forEach(function(n){Zx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zx(e,t,r){return(t=Qx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qx(e){var t=Jx(e,"string");return typeof t=="symbol"?t:t+""}function Jx(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function He(e,t){var r=Xx({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}var _o={},Ao={},Sf;function eO(){return Sf||(Sf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const o=r[a],u=n(o,a,r);i.has(u)||i.set(u,o)}return Array.from(i.values())}e.uniqBy=t}(Ao)),Ao}var Co={},Ef;function tO(){return Ef||(Ef=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...i){return r.apply(this,i.slice(0,n))}}e.ary=t}(Co)),Co}var Io={},_f;function ac(){return _f||(_f=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t}(Io)),Io}var To={},jo={},ko={},Af;function rO(){return Af||(Af=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t}(ko)),ko}var Cf;function oc(){return Cf||(Cf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rO();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r}(jo)),jo}var Mo={},If;function nO(){return If||(If=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t}(Mo)),Mo}var Tf;function iO(){return Tf||(Tf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oc(),r=nO();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n}(To)),To}var Do={},No={},jf;function aO(){return jf||(jf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nc();function r(n){return function(i){return t.get(i,n)}}e.property=r}(No)),No}var $o={},Ro={},Lo={},zo={},kf;function km(){return kf||(kf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t}(zo)),zo}var Bo={},Mf;function Mm(){return Mf||(Mf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t}(Bo)),Bo}var Fo={},Df;function Dm(){return Df||(Df=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t}(Fo)),Fo}var Nf;function oO(){return Nf||(Nf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=km(),r=Mm(),n=Dm();function i(l,f,d){return typeof d!="function"?i(l,f,()=>{}):a(l,f,function v(h,m,p,y,g,b){const x=d(h,m,p,y,g,b);return x!==void 0?!!x:a(h,m,v,b)},new Map)}function a(l,f,d,v){if(f===l)return!0;switch(typeof f){case"object":return o(l,f,d,v);case"function":return Object.keys(f).length>0?a(l,{...f},d,v):n.isEqualsSameValueZero(l,f);default:return t.isObject(l)?typeof f=="string"?f==="":!0:n.isEqualsSameValueZero(l,f)}}function o(l,f,d,v){if(f==null)return!0;if(Array.isArray(f))return s(l,f,d,v);if(f instanceof Map)return u(l,f,d,v);if(f instanceof Set)return c(l,f,d,v);const h=Object.keys(f);if(l==null||r.isPrimitive(l))return h.length===0;if(h.length===0)return!0;if(v?.has(f))return v.get(f)===l;v?.set(f,l);try{for(let m=0;m<h.length;m++){const p=h[m];if(!r.isPrimitive(l)&&!(p in l)||f[p]===void 0&&l[p]!==void 0||f[p]===null&&l[p]!==null||!d(l[p],f[p],p,l,f,v))return!1}return!0}finally{v?.delete(f)}}function u(l,f,d,v){if(f.size===0)return!0;if(!(l instanceof Map))return!1;for(const[h,m]of f.entries()){const p=l.get(h);if(d(p,m,h,l,f,v)===!1)return!1}return!0}function s(l,f,d,v){if(f.length===0)return!0;if(!Array.isArray(l))return!1;const h=new Set;for(let m=0;m<f.length;m++){const p=f[m];let y=!1;for(let g=0;g<l.length;g++){if(h.has(g))continue;const b=l[g];let x=!1;if(d(b,p,m,l,f,v)&&(x=!0),x){h.add(g),y=!0;break}}if(!y)return!1}return!0}function c(l,f,d,v){return f.size===0?!0:l instanceof Set?s([...l],[...f],d,v):!1}e.isMatchWith=i,e.isSetMatch=c}(Lo)),Lo}var $f;function Nm(){return $f||($f=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oO();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r}(Ro)),Ro}var Wo={},qo={},Uo={},Rf;function uO(){return Rf||(Rf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t}(Uo)),Uo}var Vo={},Lf;function uc(){return Lf||(Lf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t}(Vo)),Vo}var Ko={},zf;function $m(){return zf||(zf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",o="[object Symbol]",u="[object Date]",s="[object Map]",c="[object Set]",l="[object Array]",f="[object Function]",d="[object ArrayBuffer]",v="[object Object]",h="[object Error]",m="[object DataView]",p="[object Uint8Array]",y="[object Uint8ClampedArray]",g="[object Uint16Array]",b="[object Uint32Array]",x="[object BigUint64Array]",P="[object Int8Array]",O="[object Int16Array]",E="[object Int32Array]",A="[object BigInt64Array]",k="[object Float32Array]",N="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=d,e.arrayTag=l,e.bigInt64ArrayTag=A,e.bigUint64ArrayTag=x,e.booleanTag=i,e.dataViewTag=m,e.dateTag=u,e.errorTag=h,e.float32ArrayTag=k,e.float64ArrayTag=N,e.functionTag=f,e.int16ArrayTag=O,e.int32ArrayTag=E,e.int8ArrayTag=P,e.mapTag=s,e.numberTag=n,e.objectTag=v,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=g,e.uint32ArrayTag=b,e.uint8ArrayTag=p,e.uint8ClampedArrayTag=y}(Ko)),Ko}var Ho={},Bf;function sO(){return Bf||(Bf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t}(Ho)),Ho}var Ff;function Rm(){return Ff||(Ff=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uO(),r=uc(),n=$m(),i=Mm(),a=sO();function o(l,f){return u(l,void 0,l,new Map,f)}function u(l,f,d,v=new Map,h=void 0){const m=h?.(l,f,d,v);if(m!==void 0)return m;if(i.isPrimitive(l))return l;if(v.has(l))return v.get(l);if(Array.isArray(l)){const p=new Array(l.length);v.set(l,p);for(let y=0;y<l.length;y++)p[y]=u(l[y],y,d,v,h);return Object.hasOwn(l,"index")&&(p.index=l.index),Object.hasOwn(l,"input")&&(p.input=l.input),p}if(l instanceof Date)return new Date(l.getTime());if(l instanceof RegExp){const p=new RegExp(l.source,l.flags);return p.lastIndex=l.lastIndex,p}if(l instanceof Map){const p=new Map;v.set(l,p);for(const[y,g]of l)p.set(y,u(g,y,d,v,h));return p}if(l instanceof Set){const p=new Set;v.set(l,p);for(const y of l)p.add(u(y,void 0,d,v,h));return p}if(typeof Buffer<"u"&&Buffer.isBuffer(l))return l.subarray();if(a.isTypedArray(l)){const p=new(Object.getPrototypeOf(l)).constructor(l.length);v.set(l,p);for(let y=0;y<l.length;y++)p[y]=u(l[y],y,d,v,h);return p}if(l instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&l instanceof SharedArrayBuffer)return l.slice(0);if(l instanceof DataView){const p=new DataView(l.buffer.slice(0),l.byteOffset,l.byteLength);return v.set(l,p),s(p,l,d,v,h),p}if(typeof File<"u"&&l instanceof File){const p=new File([l],l.name,{type:l.type});return v.set(l,p),s(p,l,d,v,h),p}if(typeof Blob<"u"&&l instanceof Blob){const p=new Blob([l],{type:l.type});return v.set(l,p),s(p,l,d,v,h),p}if(l instanceof Error){const p=new l.constructor;return v.set(l,p),p.message=l.message,p.name=l.name,p.stack=l.stack,p.cause=l.cause,s(p,l,d,v,h),p}if(l instanceof Boolean){const p=new Boolean(l.valueOf());return v.set(l,p),s(p,l,d,v,h),p}if(l instanceof Number){const p=new Number(l.valueOf());return v.set(l,p),s(p,l,d,v,h),p}if(l instanceof String){const p=new String(l.valueOf());return v.set(l,p),s(p,l,d,v,h),p}if(typeof l=="object"&&c(l)){const p=Object.create(Object.getPrototypeOf(l));return v.set(l,p),s(p,l,d,v,h),p}return l}function s(l,f,d=l,v,h){const m=[...Object.keys(f),...t.getSymbols(f)];for(let p=0;p<m.length;p++){const y=m[p],g=Object.getOwnPropertyDescriptor(l,y);(g==null||g.writable)&&(l[y]=u(f[y],y,d,v,h))}}function c(l){switch(r.getTag(l)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=o,e.cloneDeepWithImpl=u,e.copyProperties=s}(qo)),qo}var Wf;function cO(){return Wf||(Wf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rm();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r}(Wo)),Wo}var qf;function lO(){return qf||(qf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nm(),r=cO();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n}($o)),$o}var Go={},Yo={},Xo={},Uf;function fO(){return Uf||(Uf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rm(),r=uc(),n=$m();function i(a,o){return t.cloneDeepWith(a,(u,s,c,l)=>{const f=o?.(u,s,c,l);if(f!==void 0)return f;if(typeof a=="object"){if(r.getTag(a)===n.objectTag&&typeof a.constructor!="function"){const d={};return l.set(a,d),t.copyProperties(d,a,c,l),d}switch(Object.prototype.toString.call(a)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new a.constructor(a?.valueOf());return t.copyProperties(d,a),d}case n.argumentsTag:{const d={};return t.copyProperties(d,a),d.length=a.length,d[Symbol.iterator]=a[Symbol.iterator],d}default:return}}})}e.cloneDeepWith=i}(Xo)),Xo}var Vf;function dO(){return Vf||(Vf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fO();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r}(Yo)),Yo}var Zo={},Qo={},Kf;function Lm(){return Kf||(Kf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r}(Qo)),Qo}var Jo={},Hf;function vO(){return Hf||(Hf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uc();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r}(Jo)),Jo}var Gf;function hO(){return Gf||(Gf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_m(),r=Lm(),n=vO(),i=rc();function a(o,u){let s;if(Array.isArray(u)?s=u:typeof u=="string"&&t.isDeepKey(u)&&o?.[u]==null?s=i.toPath(u):s=[u],s.length===0)return!1;let c=o;for(let l=0;l<s.length;l++){const f=s[l];if((c==null||!Object.hasOwn(c,f))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(f)&&f<c.length))return!1;c=c[f]}return!0}e.has=a}(Zo)),Zo}var Yf;function pO(){return Yf||(Yf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nm(),r=tc(),n=dO(),i=nc(),a=hO();function o(u,s){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return s=n.cloneDeep(s),function(c){const l=i.get(c,u);return l===void 0?a.has(c,u):s===void 0?l===void 0:t.isMatch(l,s)}}e.matchesProperty=o}(Go)),Go}var Xf;function zm(){return Xf||(Xf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ac(),r=aO(),n=lO(),i=pO();function a(o){if(o==null)return t.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?i.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}e.iteratee=a}(Do)),Do}var Zf;function mO(){return Zf||(Zf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eO(),r=tO(),n=ac(),i=iO(),a=zm();function o(u,s=n.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),r.ary(a.iteratee(s),1)):[]}e.uniqBy=o}(_o)),_o}var eu,Qf;function yO(){return Qf||(Qf=1,eu=mO().uniqBy),eu}var gO=yO();const Jf=zt(gO);function Bm(e,t,r){return t===!0?Jf(e,r):typeof t=="function"?Jf(e,t):e}var si={exports:{}},tu={},ci={exports:{}},ru={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* use-sync-external-store-shim.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var ed;function bO(){if(ed)return ru;ed=1;var e=S;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function u(f,d){var v=d(),h=n({inst:{value:v,getSnapshot:d}}),m=h[0].inst,p=h[1];return a(function(){m.value=v,m.getSnapshot=d,s(m)&&p({inst:m})},[f,v,d]),i(function(){return s(m)&&p({inst:m}),f(function(){s(m)&&p({inst:m})})},[f]),o(v),v}function s(f){var d=f.getSnapshot;f=f.value;try{var v=d();return!r(f,v)}catch{return!0}}function c(f,d){return d()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:u;return ru.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,ru}var nu={};/**
|
|
35
|
+
* @license React
|
|
36
|
+
* use-sync-external-store-shim.development.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var td;function wO(){return td||(td=1,process.env.NODE_ENV!=="production"&&function(){function e(v,h){return v===h&&(v!==0||1/v===1/h)||v!==v&&h!==h}function t(v,h){l||i.startTransition===void 0||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=h();if(!f){var p=h();a(m,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}p=o({inst:{value:m,getSnapshot:h}});var y=p[0].inst,g=p[1];return s(function(){y.value=m,y.getSnapshot=h,r(y)&&g({inst:y})},[v,m,h]),u(function(){return r(y)&&g({inst:y}),v(function(){r(y)&&g({inst:y})})},[v]),c(m),m}function r(v){var h=v.getSnapshot;v=v.value;try{var m=h();return!a(v,m)}catch{return!0}}function n(v,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=S,a=typeof Object.is=="function"?Object.is:e,o=i.useState,u=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue,l=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;nu.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),nu}var rd;function Fm(){return rd||(rd=1,process.env.NODE_ENV==="production"?ci.exports=bO():ci.exports=wO()),ci.exports}/**
|
|
43
|
+
* @license React
|
|
44
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var nd;function xO(){if(nd)return tu;nd=1;var e=S,t=Fm();function r(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,u=e.useMemo,s=e.useDebugValue;return tu.useSyncExternalStoreWithSelector=function(c,l,f,d,v){var h=a(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=u(function(){function y(O){if(!g){if(g=!0,b=O,O=d(O),v!==void 0&&m.hasValue){var E=m.value;if(v(E,O))return x=E}return x=O}if(E=x,n(b,O))return E;var A=d(O);return v!==void 0&&v(E,A)?(b=O,E):(b=O,x=A)}var g=!1,b,x,P=f===void 0?null:f;return[function(){return y(l())},P===null?void 0:function(){return y(P())}]},[l,f,d,v]);var p=i(c,h[0],h[1]);return o(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},tu}var iu={};/**
|
|
51
|
+
* @license React
|
|
52
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var id;function OO(){return id||(id=1,process.env.NODE_ENV!=="production"&&function(){function e(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=S,r=Fm(),n=typeof Object.is=="function"?Object.is:e,i=r.useSyncExternalStore,a=t.useRef,o=t.useEffect,u=t.useMemo,s=t.useDebugValue;iu.useSyncExternalStoreWithSelector=function(c,l,f,d,v){var h=a(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=u(function(){function y(O){if(!g){if(g=!0,b=O,O=d(O),v!==void 0&&m.hasValue){var E=m.value;if(v(E,O))return x=E}return x=O}if(E=x,n(b,O))return E;var A=d(O);return v!==void 0&&v(E,A)?(b=O,E):(b=O,x=A)}var g=!1,b,x,P=f===void 0?null:f;return[function(){return y(l())},P===null?void 0:function(){return y(P())}]},[l,f,d,v]);var p=i(c,h[0],h[1]);return o(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),iu}var ad;function PO(){return ad||(ad=1,process.env.NODE_ENV==="production"?si.exports=xO():si.exports=OO()),si.exports}var SO=PO(),sc=S.createContext(null),EO=e=>e,ie=()=>{var e=S.useContext(sc);return e?e.store.dispatch:EO},Ii=()=>{},_O=()=>Ii,AO=(e,t)=>e===t;function L(e){var t=S.useContext(sc),r=S.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ii,[t,e]);return SO.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:_O,t?t.store.getState:Ii,t?t.store.getState:Ii,r,AO)}var CO=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const i={};e(i)===i&&(n=!0)}catch{}if(n){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
59
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
60
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
61
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},IO=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,u=n(()=>({}),...i);if(!(u.apply(null,a)===u.apply(null,o))){let c;try{throw new Error}catch(l){({stack:c}=l)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
62
|
+
This means your output selector will likely run more frequently than intended.
|
|
63
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
64
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:a,secondInputs:o,stack:c})}},TO={inputStabilityCheck:"once",identityFunctionCheck:"once"};function jO(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function kO(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function MO(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var od=e=>Array.isArray(e)?e:[e];function DO(e){const t=Array.isArray(e[0])?e[0]:e;return MO(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ud(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var NO=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...TO,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:CO},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:IO}}},$O=class{constructor(e){this.value=e}deref(){return this.value}},RO=typeof WeakRef<"u"?WeakRef:$O,LO=0,sd=1;function li(){return{s:LO,v:void 0,o:null,p:null}}function Wm(e,t={}){let r=li();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:s}=arguments;for(let f=0,d=s;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let h=u.o;h===null&&(u.o=h=new WeakMap);const m=h.get(v);m===void 0?(u=li(),h.set(v,u)):u=m}else{let h=u.p;h===null&&(u.p=h=new Map);const m=h.get(v);m===void 0?(u=li(),h.set(v,u)):u=m}}const c=u;let l;if(u.s===sd)l=u.v;else if(l=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,l)&&(l=f,a!==0&&a--),i=typeof l=="object"&&l!==null||typeof l=="function"?new RO(l):l}return c.s=sd,c.v=l,l}return o.clearCache=()=>{r=li(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function zO(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),jO(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...s},{memoize:f,memoizeOptions:d=[],argsMemoize:v=Wm,argsMemoizeOptions:h=[],devModeChecks:m={}}=l,p=od(d),y=od(h),g=DO(i),b=f(function(){return a++,c.apply(null,arguments)},...p);let x=!0;const P=v(function(){o++;const E=ud(g,arguments);if(u=b.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:A,inputStabilityCheck:k}=NO(x,m);if(A.shouldRun&&A.run(c,E,u),k.shouldRun){const N=ud(g,arguments);k.run({inputSelectorResults:E,inputSelectorResultsCopy:N},{memoize:f,memoizeOptions:p},arguments)}x&&(x=!1)}return u},...y);return Object.assign(P,{resultFunc:c,memoizedResultFunc:b,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var _=zO(Wm),BO=Object.assign((e,t=_)=>{kO(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,s)=>(o[r[s]]=u,o),{}))},{withTypes:()=>BO}),au={},ou={},uu={},cd;function FO(){return cd||(cd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),u=t(i);if(o===u&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?u-o:o-u}return 0};e.compareValues=r}(uu)),uu}var su={},cu={},ld;function qm(){return ld||(ld=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t}(cu)),cu}var fd;function WO(){return fd||(fd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qm(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i}(su)),su}var dd;function qO(){return dd||(dd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=FO(),r=WO(),n=rc();function i(a,o,u,s){if(a==null)return[];u=s?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const c=(v,h)=>{let m=v;for(let p=0;p<h.length&&m!=null;++p)m=m[h[p]];return m},l=(v,h)=>h==null||v==null?h:typeof v=="object"&&"key"in v?Object.hasOwn(h,v.key)?h[v.key]:c(h,v.path):typeof v=="function"?v(h):Array.isArray(v)?c(h,v):typeof h=="object"?h[v]:h,f=o.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return a.map(v=>({original:v,criteria:f.map(h=>l(h,v))})).slice().sort((v,h)=>{for(let m=0;m<f.length;m++){const p=t.compareValues(v.criteria[m],h.criteria[m],u[m]);if(p!==0)return p}return 0}).map(v=>v.original)}e.orderBy=i}(ou)),ou}var lu={},vd;function UO(){return vd||(vd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,s)=>{for(let c=0;c<u.length;c++){const l=u[c];Array.isArray(l)&&s<a?o(l,s+1):i.push(l)}};return o(r,0),i}e.flatten=t}(lu)),lu}var fu={},hd;function Um(){return hd||(hd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Lm(),r=oc(),n=km(),i=Dm();function a(o,u,s){return n.isObject(s)&&(typeof u=="number"&&r.isArrayLike(s)&&t.isIndex(u)&&u<s.length||typeof u=="string"&&u in s)?i.isEqualsSameValueZero(s[u],o):!1}e.isIterateeCall=a}(fu)),fu}var pd;function VO(){return pd||(pd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qO(),r=UO(),n=Um();function i(a,...o){const u=o.length;return u>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:u>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i}(au)),au}var du,md;function KO(){return md||(md=1,du=VO().sortBy),du}var HO=KO();const ka=zt(HO);var Vm=e=>e.legend.settings,GO=e=>e.legend.size,YO=e=>e.legend.payload,XO=_([YO,Vm],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?ka(n,r):n}),fi=1;function Km(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=S.useState({height:0,left:0,top:0,width:0}),n=S.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>fi||Math.abs(o.left-t.left)>fi||Math.abs(o.top-t.top)>fi||Math.abs(o.width-t.width)>fi)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Te(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ZO=typeof Symbol=="function"&&Symbol.observable||"@@observable",yd=ZO,vu=()=>Math.random().toString(36).substring(7).split("").join("."),QO={INIT:`@@redux/INIT${vu()}`,REPLACE:`@@redux/REPLACE${vu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vu()}`},yr=QO;function Wn(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function JO(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(r1(e))return"date";if(t1(e))return"error";const r=e1(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function e1(e){return typeof e.constructor=="function"?e.constructor.name:null}function t1(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function r1(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Yt(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=JO(e)),t}function Hm(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Te(2):`Expected the root reducer to be a function. Instead, received: '${Yt(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Te(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Te(1):`Expected the enhancer to be a function. Instead, received: '${Yt(r)}'`);return r(Hm)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,s=!1;function c(){o===a&&(o=new Map,a.forEach((p,y)=>{o.set(y,p)}))}function l(){if(s)throw new Error(process.env.NODE_ENV==="production"?Te(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Te(4):`Expected the listener to be a function. Instead, received: '${Yt(p)}'`);if(s)throw new Error(process.env.NODE_ENV==="production"?Te(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;c();const g=u++;return o.set(g,p),function(){if(y){if(s)throw new Error(process.env.NODE_ENV==="production"?Te(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,c(),o.delete(g),a=null}}}function d(p){if(!Wn(p))throw new Error(process.env.NODE_ENV==="production"?Te(7):`Actions must be plain objects. Instead, the actual type was: '${Yt(p)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof p.type>"u")throw new Error(process.env.NODE_ENV==="production"?Te(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof p.type!="string")throw new Error(process.env.NODE_ENV==="production"?Te(17):`Action "type" property must be a string. Instead, the actual type was: '${Yt(p.type)}'. Value was: '${p.type}' (stringified)`);if(s)throw new Error(process.env.NODE_ENV==="production"?Te(9):"Reducers may not dispatch actions.");try{s=!0,i=n(i,p)}finally{s=!1}return(a=o).forEach(g=>{g()}),p}function v(p){if(typeof p!="function")throw new Error(process.env.NODE_ENV==="production"?Te(10):`Expected the nextReducer to be a function. Instead, received: '${Yt(p)}`);n=p,d({type:yr.REPLACE})}function h(){const p=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?Te(11):`Expected the observer to be an object. Instead, received: '${Yt(y)}'`);function g(){const x=y;x.next&&x.next(l())}return g(),{unsubscribe:p(g)}},[yd](){return this}}}return d({type:yr.INIT}),{dispatch:d,subscribe:f,getState:l,replaceReducer:v,[yd]:h}}function gd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function n1(e,t,r,n){const i=Object.keys(t),a=r&&r.type===yr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Wn(e))return`The ${a} has unexpected type of "${Yt(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(u=>!t.hasOwnProperty(u)&&!n[u]);if(o.forEach(u=>{n[u]=!0}),!(r&&r.type===yr.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function i1(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:yr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Te(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:yr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Te(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${yr.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Gm(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const u=t[o];process.env.NODE_ENV!=="production"&&typeof e[u]>"u"&&gd(`No reducer provided for key "${u}"`),typeof e[u]=="function"&&(r[u]=e[u])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{i1(r)}catch(o){a=o}return function(u={},s){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=n1(u,r,s,i);f&&gd(f)}let c=!1;const l={};for(let f=0;f<n.length;f++){const d=n[f],v=r[d],h=u[d],m=v(h,s);if(typeof m>"u"){const p=s&&s.type;throw new Error(process.env.NODE_ENV==="production"?Te(14):`When called with an action of type ${p?`"${String(p)}"`:"(unknown type)"}, the slice reducer for key "${d}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}l[d]=m,c=c||m!==h}return c=c||n.length!==Object.keys(u).length,c?l:u}}function Bi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function a1(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?Te(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(s,...c)=>a(s,...c)},u=e.map(s=>s(o));return a=Bi(...u)(i.dispatch),{...i,dispatch:a}}}function cc(e){return Wn(e)&&"type"in e&&typeof e.type=="string"}var Ym=Symbol.for("immer-nothing"),bd=Symbol.for("immer-draftable"),qe=Symbol.for("immer-state"),o1=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Qe(e,...t){if(process.env.NODE_ENV!=="production"){const r=o1[e],n=dr(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var et=Object,Yr=et.getPrototypeOf,Fi="constructor",Ma="prototype",is="configurable",Wi="enumerable",Ti="writable",_n="value",Dt=e=>!!e&&!!e[qe];function vt(e){return e?Xm(e)||Na(e)||!!e[bd]||!!e[Fi]?.[bd]||$a(e)||Ra(e):!1}var u1=et[Ma][Fi].toString(),wd=new WeakMap;function Xm(e){if(!e||!lc(e))return!1;const t=Yr(e);if(t===null||t===et[Ma])return!0;const r=et.hasOwnProperty.call(t,Fi)&&t[Fi];if(r===Object)return!0;if(!dr(r))return!1;let n=wd.get(r);return n===void 0&&(n=Function.toString.call(r),wd.set(r,n)),n===u1}function Da(e,t,r=!0){qn(e)===0?(r?Reflect.ownKeys(e):et.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function qn(e){const t=e[qe];return t?t.type_:Na(e)?1:$a(e)?2:Ra(e)?3:0}var xd=(e,t,r=qn(e))=>r===2?e.has(t):et[Ma].hasOwnProperty.call(e,t),as=(e,t,r=qn(e))=>r===2?e.get(t):e[t],qi=(e,t,r,n=qn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function s1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Na=Array.isArray,$a=e=>e instanceof Map,Ra=e=>e instanceof Set,lc=e=>typeof e=="object",dr=e=>typeof e=="function",hu=e=>typeof e=="boolean";function c1(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Ct=e=>e.copy_||e.base_,fc=e=>e.modified_?e.copy_:e.base_;function os(e,t){if($a(e))return new Map(e);if(Ra(e))return new Set(e);if(Na(e))return Array[Ma].slice.call(e);const r=Xm(e);if(t===!0||t==="class_only"&&!r){const n=et.getOwnPropertyDescriptors(e);delete n[qe];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Ti]===!1&&(u[Ti]=!0,u[is]=!0),(u.get||u.set)&&(n[o]={[is]:!0,[Ti]:!0,[Wi]:u[Wi],[_n]:e[o]})}return et.create(Yr(e),n)}else{const n=Yr(e);if(n!==null&&r)return{...e};const i=et.create(n);return et.assign(i,e)}}function dc(e,t=!1){return La(e)||Dt(e)||!vt(e)||(qn(e)>1&&et.defineProperties(e,{set:di,add:di,clear:di,delete:di}),et.freeze(e),t&&Da(e,(r,n)=>{dc(n,!0)},!1)),e}function l1(){Qe(2)}var di={[_n]:l1};function La(e){return e===null||!lc(e)?!0:et.isFrozen(e)}var Ui="MapSet",us="Patches",Od="ArrayMethods",Zm={};function Sr(e){const t=Zm[e];return t||Qe(0,e),t}var Pd=e=>!!Zm[e],An,Qm=()=>An,f1=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Pd(Ui)?Sr(Ui):void 0,arrayMethodsPlugin_:Pd(Od)?Sr(Od):void 0});function Sd(e,t){t&&(e.patchPlugin_=Sr(us),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ss(e){cs(e),e.drafts_.forEach(d1),e.drafts_=null}function cs(e){e===An&&(An=e.parent_)}var Ed=e=>An=f1(An,e);function d1(e){const t=e[qe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _d(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[qe].modified_&&(ss(t),Qe(4)),vt(e)&&(e=Ad(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[qe].base_,e,t)}else e=Ad(t,r);return v1(t,e,!0),ss(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ym?e:void 0}function Ad(e,t){if(La(t))return t;const r=t[qe];if(!r)return Vi(t,e.handledSet_,e);if(!za(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);ty(r,e)}return r.copy_}function v1(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&dc(t,r)}function Jm(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var za=(e,t)=>e.scope_===t,h1=[];function ey(e,t,r,n){const i=Ct(e),a=e.type_;if(n!==void 0&&as(i,n,a)===t){qi(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Da(i,(s,c)=>{if(Dt(c)){const l=u.get(c)||[];l.push(s),u.set(c,l)}})}const o=e.draftLocations_.get(t)??h1;for(const u of o)qi(i,u,r,a)}function p1(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!za(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=fc(a);ey(e,a.draft_??a,o,r),ty(a,i)})}function ty(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const i=n.getPath(e);i&&n.generatePatches_(e,i,t)}Jm(e)}}function m1(e,t,r){const{scope_:n}=e;if(Dt(r)){const i=r[qe];za(i,n)&&i.callbacks_.push(function(){ji(e);const o=fc(i);ey(e,r,o,t)})}else vt(r)&&e.callbacks_.push(function(){const a=Ct(e);e.type_===3?a.has(r)&&Vi(r,n.handledSet_,n):as(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Vi(as(e.copy_,t,e.type_),n.handledSet_,n)})}function Vi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Dt(e)||t.has(e)||!vt(e)||La(e)||(t.add(e),Da(e,(n,i)=>{if(Dt(i)){const a=i[qe];if(za(a,r)){const o=fc(a);qi(e,n,o,e.type_),Jm(a)}}else vt(i)&&Vi(i,t,r)})),e}function y1(e,t){const r=Na(e),n={type_:r?1:0,scope_:t?t.scope_:Qm(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=Ki;r&&(i=[n],a=Cn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var Ki={get(e,t){if(t===qe)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=Ct(e);if(!xd(i,t,e.type_))return g1(e,i,t);const a=i[t];if(e.finalized_||!vt(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&c1(t))return a;if(a===pu(e.base_,t)){ji(e);const o=e.type_===1?+t:t,u=fs(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in Ct(e)},ownKeys(e){return Reflect.ownKeys(Ct(e))},set(e,t,r){const n=ry(Ct(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=pu(Ct(e),t),a=i?.[qe];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(s1(r,i)&&(r!==void 0||xd(e.base_,t,e.type_)))return!0;ji(e),ls(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),m1(e,t,r)),!0},deleteProperty(e,t){return ji(e),pu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ls(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ct(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Ti]:!0,[is]:e.type_!==1||t!=="length",[Wi]:n[Wi],[_n]:r[t]}},defineProperty(){Qe(11)},getPrototypeOf(e){return Yr(e.base_)},setPrototypeOf(){Qe(12)}},Cn={};for(let e in Ki){let t=Ki[e];Cn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Cn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Qe(13),Cn.set.call(this,e,t,void 0)};Cn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Qe(14),Ki.set.call(this,e[0],t,r,e[0])};function pu(e,t){const r=e[qe];return(r?Ct(r):e)[t]}function g1(e,t,r){const n=ry(t,r);return n?_n in n?n[_n]:n.get?.call(e.draft_):void 0}function ry(e,t){if(!(t in e))return;let r=Yr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Yr(r)}}function ls(e){e.modified_||(e.modified_=!0,e.parent_&&ls(e.parent_))}function ji(e){e.copy_||(e.assigned_=new Map,e.copy_=os(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var b1=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(dr(r)&&!dr(n)){const o=n;n=r;const u=this;return function(c=o,...l){return u.produce(c,f=>n.call(this,f,...l))}}dr(n)||Qe(6),i!==void 0&&!dr(i)&&Qe(7);let a;if(vt(r)){const o=Ed(this),u=fs(o,r,void 0);let s=!0;try{a=n(u),s=!1}finally{s?ss(o):cs(o)}return Sd(o,i),_d(a,o)}else if(!r||!lc(r)){if(a=n(r),a===void 0&&(a=r),a===Ym&&(a=void 0),this.autoFreeze_&&dc(a,!0),i){const o=[],u=[];Sr(us).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else Qe(1,r)},this.produceWithPatches=(r,n)=>{if(dr(r))return(u,...s)=>this.produceWithPatches(u,c=>r(c,...s));let i,a;return[this.produce(r,n,(u,s)=>{i=u,a=s}),i,a]},hu(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),hu(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),hu(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){vt(t)||Qe(8),Dt(t)&&(t=ft(t));const r=Ed(this),n=fs(r,t,void 0);return n[qe].isManual_=!0,cs(r),n}finishDraft(t,r){const n=t&&t[qe];(!n||!n.isManual_)&&Qe(9);const{scope_:i}=n;return Sd(i,r),_d(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const a=r[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(r=r.slice(n+1));const i=Sr(us).applyPatches_;return Dt(t)?i(t,r):this.produce(t,a=>i(a,r))}};function fs(e,t,r,n){const[i,a]=$a(t)?Sr(Ui).proxyMap_(t,r):Ra(t)?Sr(Ui).proxySet_(t,r):y1(t,r);return(r?.scope_??Qm()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?p1(r,a,n):a.callbacks_.push(function(s){s.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:c}=s;a.modified_&&c&&c.generatePatches_(a,[],s)}),i}function ft(e){return Dt(e)||Qe(10,e),ny(e)}function ny(e){if(!vt(e)||La(e))return e;const t=e[qe];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=os(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=os(e,!0);return Da(r,(i,a)=>{qi(r,i,ny(a))},n),t&&(t.finalized_=!1),r}var w1=new b1,iy=w1.produce;function ay(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var x1=ay(),O1=ay,P1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bi:Bi.apply(null,arguments)},S1=e=>e&&typeof e.match=="function";function ut(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?G(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>cc(n)&&n.type===e,r}function E1(e){return typeof e=="function"&&"type"in e&&S1(e)}function _1(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
65
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function A1(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=E1}=e;return()=>r=>n=>(t(n)&&console.warn(_1(n.type)),r(n))}function oy(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const a=Date.now();r+=a-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
|
|
66
|
+
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
67
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var uy=class xn extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,xn.prototype)}static get[Symbol.species](){return xn}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new xn(...t[0].concat(this)):new xn(...t.concat(this))}};function Cd(e){return vt(e)?iy(e,()=>{}):e}function vi(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function C1(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function I1(e,t,r){const n=sy(e,t,r);return{detectMutations(){return cy(e,t,n,r)}}}function sy(e,t=[],r,n="",i=new Set){const a={value:r};if(!e(r)&&!i.has(r)){i.add(r),a.children={};const o=t.length>0;for(const u in r){const s=n?n+"."+u:u;o&&t.some(l=>l instanceof RegExp?l.test(s):s===l)||(a.children[u]=sy(e,t,r[u],s))}}return a}function cy(e,t=[],r,n,i=!1,a=""){const o=r?r.value:void 0,u=o===n;if(i&&!u&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};const s={};for(let l in r.children)s[l]=!0;for(let l in n)s[l]=!0;const c=t.length>0;for(let l in s){const f=a?a+"."+l:l;if(c&&t.some(h=>h instanceof RegExp?h.test(f):f===h))continue;const d=cy(e,t,r.children[l],n[l],u,f);if(d.wasMutated)return d}return{wasMutated:!1}}function T1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(u,s,c,l){return JSON.stringify(u,r(s,l),c)},r=function(u,s){let c=[],l=[];return s||(s=function(f,d){return c[0]===d?"[Circular ~]":"[Circular ~."+l.slice(0,c.indexOf(d)).join(".")+"]"}),function(f,d){if(c.length>0){var v=c.indexOf(this);~v?c.splice(v+1):c.push(this),~v?l.splice(v,1/0,f):l.push(f),~c.indexOf(d)&&(d=s.call(this,f,d))}else c.push(d);return u==null?d:u.call(this,f,d)}},{isImmutable:n=C1,ignoredPaths:i,warnAfter:a=32}=e;const o=I1.bind(null,n,i);return({getState:u})=>{let s=u(),c=o(s),l;return f=>d=>{const v=oy(a,"ImmutableStateInvariantMiddleware");v.measureTime(()=>{if(s=u(),l=c.detectMutations(),c=o(s),l.wasMutated)throw new Error(process.env.NODE_ENV==="production"?G(19):`A state mutation was detected between dispatches, in the path '${l.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const h=f(d);return v.measureTime(()=>{if(s=u(),l=c.detectMutations(),c=o(s),l.wasMutated)throw new Error(process.env.NODE_ENV==="production"?G(20):`A state mutation was detected inside a dispatch, in the path: ${l.path||""}. Take a look at the reducer(s) handling the action ${t(d)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),v.warnIfExceeded(),h}}}}function ly(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Wn(e)}function ds(e,t="",r=ly,n,i=[],a){let o;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a?.has(e))return!1;const u=n!=null?n(e):Object.entries(e),s=i.length>0;for(const[c,l]of u){const f=t?t+"."+c:c;if(!(s&&i.some(v=>v instanceof RegExp?v.test(f):f===v))){if(!r(l))return{keyPath:f,value:l};if(typeof l=="object"&&(o=ds(l,f,r,n,i,a),o))return o}}return a&&fy(e)&&a.add(e),!1}function fy(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!fy(t))return!1;return!0}function j1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=ly,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:o=32,ignoreState:u=!1,ignoreActions:s=!1,disableCache:c=!1}=e,l=!c&&WeakSet?new WeakSet:void 0;return f=>d=>v=>{if(!cc(v))return d(v);const h=d(v),m=oy(o,"SerializableStateInvariantMiddleware");return!s&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const p=ds(v,"",t,r,i,l);if(p){const{keyPath:y,value:g}=p;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,g,`
|
|
68
|
+
Take a look at the logic that dispatched this action: `,v,`
|
|
69
|
+
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
70
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),u||(m.measureTime(()=>{const p=f.getState(),y=ds(p,"",t,r,a,l);if(y){const{keyPath:g,value:b}=y;console.error(`A non-serializable value was detected in the state, in the path: \`${g}\`. Value:`,b,`
|
|
71
|
+
Take a look at the reducer(s) handling this action type: ${v.type}.
|
|
72
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),h}}}function hi(e){return typeof e=="boolean"}var k1=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new uy;if(r&&(hi(r)?o.push(x1):o.push(O1(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let u={};hi(n)||(u=n),o.unshift(T1(u))}if(i){let u={};hi(i)||(u=i),o.push(j1(u))}if(a){let u={};hi(a)||(u=a),o.unshift(A1(u))}}return o},dy="RTK_autoBatch",oe=()=>e=>({payload:e,meta:{[dy]:!0}}),Id=e=>t=>{setTimeout(t,e)},vy=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Id(10):e.type==="callback"?e.queueNotification:Id(e.timeout),c=()=>{o=!1,a&&(a=!1,u.forEach(l=>l()))};return Object.assign({},n,{subscribe(l){const f=()=>i&&l(),d=n.subscribe(f);return u.add(l),()=>{d(),u.delete(l)}},dispatch(l){try{return i=!l?.meta?.[dy],a=!i,a&&(o||(o=!0,s(c))),n.dispatch(l)}finally{i=!0}}})},M1=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new uy(e);return n&&i.push(vy(typeof n=="object"?n:void 0)),i};function D1(e){const t=k1(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:u=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(Wn(r))s=Gm(r);else throw new Error(process.env.NODE_ENV==="production"?G(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?G(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?G(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?G(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let m=new Set;c.forEach(p=>{if(m.has(p))throw new Error(process.env.NODE_ENV==="production"?G(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(p)})}let l=Bi;i&&(l=P1({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=a1(...c),d=M1(f);if(process.env.NODE_ENV!=="production"&&u&&typeof u!="function")throw new Error(process.env.NODE_ENV==="production"?G(5):"`enhancers` field must be a callback");let v=typeof u=="function"?u(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(v))throw new Error(process.env.NODE_ENV==="production"?G(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&v.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?G(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!v.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const h=l(...v);return Hm(s,o,h)}function hy(e){const t={},r=[];let n;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?G(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?G(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const u=typeof a=="string"?a:a.type;if(!u)throw new Error(process.env.NODE_ENV==="production"?G(28):"`builder.addCase` cannot be called with an empty action type");if(u in t)throw new Error(process.env.NODE_ENV==="production"?G(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${u}'`);return t[u]=o,i},addAsyncThunk(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?G(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?G(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?G(31):"`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function N1(e){return typeof e=="function"}function $1(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?G(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=hy(t),a;if(N1(e))a=()=>Cd(e());else{const u=Cd(e);a=()=>u}function o(u=a(),s){let c=[r[s.type],...n.filter(({matcher:l})=>l(s)).map(({reducer:l})=>l)];return c.filter(l=>!!l).length===0&&(c=[i]),c.reduce((l,f)=>{if(f)if(Dt(l)){const v=f(l,s);return v===void 0?l:v}else{if(vt(l))return iy(l,d=>f(d,s));{const d=f(l,s);if(d===void 0){if(l===null)return l;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return l},u)}return o.getInitialState=a,o}var R1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",L1=(e=21)=>{let t="",r=e;for(;r--;)t+=R1[Math.random()*64|0];return t},z1=Symbol.for("rtk-slice-createasyncthunk");function B1(e,t){return`${e}/${t}`}function F1({creators:e}={}){const t=e?.asyncThunk?.[z1];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(process.env.NODE_ENV==="production"?G(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=(typeof n.reducers=="function"?n.reducers(q1()):n.reducers)||{},u=Object.keys(o),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,x){const P=typeof b=="string"?b:b.type;if(!P)throw new Error(process.env.NODE_ENV==="production"?G(12):"`context.addCase` cannot be called with an empty action type");if(P in s.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?G(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return s.sliceCaseReducersByType[P]=x,c},addMatcher(b,x){return s.sliceMatchers.push({matcher:b,reducer:x}),c},exposeAction(b,x){return s.actionCreators[b]=x,c},exposeCaseReducer(b,x){return s.sliceCaseReducersByName[b]=x,c}};u.forEach(b=>{const x=o[b],P={reducerName:b,type:B1(i,b),createNotation:typeof n.reducers=="function"};V1(x)?H1(P,x,c,t):U1(P,x,c)});function l(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?G(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[b={},x=[],P=void 0]=typeof n.extraReducers=="function"?hy(n.extraReducers):[n.extraReducers],O={...b,...s.sliceCaseReducersByType};return $1(n.initialState,E=>{for(let A in O)E.addCase(A,O[A]);for(let A of s.sliceMatchers)E.addMatcher(A.matcher,A.reducer);for(let A of x)E.addMatcher(A.matcher,A.reducer);P&&E.addDefaultCase(P)})}const f=b=>b,d=new Map,v=new WeakMap;let h;function m(b,x){return h||(h=l()),h(b,x)}function p(){return h||(h=l()),h.getInitialState()}function y(b,x=!1){function P(E){let A=E[b];if(typeof A>"u"){if(x)A=vi(v,P,p);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?G(15):"selectSlice returned undefined for an uninjected slice reducer")}return A}function O(E=f){const A=vi(d,x,()=>new WeakMap);return vi(A,E,()=>{const k={};for(const[N,I]of Object.entries(n.selectors??{}))k[N]=W1(I,E,()=>vi(v,E,p),x);return k})}return{reducerPath:b,getSelectors:O,get selectors(){return O(P)},selectSlice:P}}const g={name:i,reducer:m,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:p,...y(a),injectInto(b,{reducerPath:x,...P}={}){const O=x??a;return b.inject({reducerPath:O,reducer:m},P),{...g,...y(O,!0)}}};return g}}function W1(e,t,r,n){function i(a,...o){let u=t(a);if(typeof u>"u"){if(n)u=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?G(16):"selectState returned undefined for an uninjected slice reducer")}return e(u,...o)}return i.unwrapped=e,i}var Ge=F1();function q1(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function U1({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!K1(n))throw new Error(process.env.NODE_ENV==="production"?G(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?ut(e,o):ut(e))}function V1(e){return e._reducerDefinitionType==="asyncThunk"}function K1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function H1({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?G(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:u,rejected:s,settled:c,options:l}=r,f=i(e,a,l);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),s&&n.addCase(f.rejected,s),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||pi,pending:u||pi,rejected:s||pi,settled:c||pi})}function pi(){}var G1="task",py="listener",my="completed",vc="cancelled",Y1=`task-${vc}`,X1=`task-${my}`,vs=`${py}-${vc}`,Z1=`${py}-${my}`,Ba=class{constructor(e){this.code=e,this.message=`${G1} ${vc} (reason: ${e})`}name="TaskAbortError";message},hc=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?G(32):`${t} is not a function`)},Hi=()=>{},yy=(e,t=Hi)=>(e.catch(t),e),gy=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),gr=e=>{if(e.aborted)throw new Ba(e.reason)};function by(e,t){let r=Hi;return new Promise((n,i)=>{const a=()=>i(new Ba(e.reason));if(e.aborted){a();return}r=gy(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Hi})}var Q1=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Ba?"cancelled":"rejected",error:r}}finally{t?.()}},Gi=e=>t=>yy(by(e,t).then(r=>(gr(e),r))),wy=e=>{const t=Gi(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Hr}=Object,Td={},Un="listenerMiddleware",J1=(e,t)=>{const r=n=>gy(e,()=>n.abort(e.reason));return(n,i)=>{hc(n,"taskExecutor");const a=new AbortController;r(a);const o=Q1(async()=>{gr(e),gr(a.signal);const u=await n({pause:Gi(a.signal),delay:wy(a.signal),signal:a.signal});return gr(a.signal),u},()=>a.abort(X1));return i?.autoJoin&&t.push(o.catch(Hi)),{result:Gi(e)(o),cancel(){a.abort(Y1)}}}},eP=(e,t)=>{const r=async(n,i)=>{gr(t);let a=()=>{};const u=[new Promise((s,c)=>{let l=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),s([f,d.getState(),d.getOriginalState()])}});a=()=>{l(),c()}})];i!=null&&u.push(new Promise(s=>setTimeout(s,i,null)));try{const s=await by(t,Promise.race(u));return gr(t),s}finally{a()}};return(n,i)=>yy(r(n,i))},xy=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=ut(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(process.env.NODE_ENV==="production"?G(21):"Creating or removing a listener requires one of the known fields for matching an action");return hc(a,"options.listener"),{predicate:i,type:t,effect:a}},Oy=Hr(e=>{const{type:t,predicate:r,effect:n}=xy(e);return{id:L1(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?G(22):"Unsubscribe not initialized")}}},{withTypes:()=>Oy}),jd=(e,t)=>{const{type:r,effect:n,predicate:i}=xy(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},hs=e=>{e.pending.forEach(t=>{t.abort(vs)})},tP=(e,t)=>()=>{for(const r of t.keys())hs(r);e.clear()},kd=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Py=Hr(ut(`${Un}/add`),{withTypes:()=>Py}),rP=ut(`${Un}/removeAll`),Sy=Hr(ut(`${Un}/remove`),{withTypes:()=>Sy}),nP=(...e)=>{console.error(`${Un}/error`,...e)},Vn=(e={})=>{const t=new Map,r=new Map,n=v=>{const h=r.get(v)??0;r.set(v,h+1)},i=v=>{const h=r.get(v)??1;h===1?r.delete(v):r.set(v,h-1)},{extra:a,onError:o=nP}=e;hc(o,"onError");const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),h=>{v.unsubscribe(),h?.cancelActive&&hs(v)}),s=v=>{const h=jd(t,v)??Oy(v);return u(h)};Hr(s,{withTypes:()=>s});const c=v=>{const h=jd(t,v);return h&&(h.unsubscribe(),v.cancelActive&&hs(h)),!!h};Hr(c,{withTypes:()=>c});const l=async(v,h,m,p)=>{const y=new AbortController,g=eP(s,y.signal),b=[];try{v.pending.add(y),n(v),await Promise.resolve(v.effect(h,Hr({},m,{getOriginalState:p,condition:(x,P)=>g(x,P).then(Boolean),take:g,delay:wy(y.signal),pause:Gi(y.signal),extra:a,signal:y.signal,fork:J1(y.signal,b),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((x,P,O)=>{x!==y&&(x.abort(vs),O.delete(x))})},cancel:()=>{y.abort(vs),v.pending.delete(y)},throwIfCancelled:()=>{gr(y.signal)}})))}catch(x){x instanceof Ba||kd(o,x,{raisedBy:"effect"})}finally{await Promise.all(b),y.abort(Z1),i(v),v.pending.delete(y)}},f=tP(t,r);return{middleware:v=>h=>m=>{if(!cc(m))return h(m);if(Py.match(m))return s(m.payload);if(rP.match(m)){f();return}if(Sy.match(m))return c(m.payload);let p=v.getState();const y=()=>{if(p===Td)throw new Error(process.env.NODE_ENV==="production"?G(23):`${Un}: getOriginalState can only be called synchronously`);return p};let g;try{if(g=h(m),t.size>0){const b=v.getState(),x=Array.from(t.values());for(const P of x){let O=!1;try{O=P.predicate(m,b,p)}catch(E){O=!1,kd(o,E,{raisedBy:"predicate"})}O&&l(P,m,v,y)}}}finally{p=Td}return g},startListening:s,stopListening:c,clearListeners:f}};function G(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var iP={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Ey=Ge({name:"chartLayout",initialState:iP,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:_y,setLayout:aP,setChartSize:oP,setScale:uP}=Ey.actions,sP=Ey.reducer;function Ay(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function U(e){return Number.isFinite(e)}function ht(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Md(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Md(Object(r),!0).forEach(function(n){cP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Md(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cP(e,t,r){return(t=lP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lP(e){var t=fP(e,"string");return typeof t=="symbol"?t:t+""}function fP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function me(e,t,r){return le(e)||le(t)?r:St(t)?Or(e,t,r):typeof t=="function"?t(e):r}var dP=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&R(e[a]))return Vr(Vr({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&R(e[o]))return Vr(Vr({},e),{},{[o]:e[o]+(i||0)})}return e},Bt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",Cy=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},Iy=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:s,categoricalDomain:c,tickCount:l,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var h=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/h:0;if(m=v==="angleAxis"&&a&&a.length>=2?ze(a[0]-a[1])*2*m:m,f||d){var p=(f||d||[]).map((y,g)=>{var b=n?n.indexOf(y):y,x=o.map(b);return U(x)?{coordinate:x+m,value:y,offset:m,index:g}:null}).filter(Be);return p}return s&&c?c.map((y,g)=>{var b=o.map(y);return U(b)?{coordinate:b+m,value:y,index:g,offset:m}:null}).filter(Be):o.ticks&&l!=null?o.ticks(l).map((y,g)=>{var b=o.map(y);return U(b)?{coordinate:b+m,value:y,index:g,offset:m}:null}).filter(Be):o.domain().map((y,g)=>{var b=o.map(y);return U(b)?{coordinate:b+m,value:n?n[y]:y,index:g,offset:m}:null}).filter(Be)},vP=(e,t)=>{if(!t||t.length!==2||!R(t[0])||!R(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!R(e[0])||e[0]<r)&&(i[0]=r),(!R(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},hP=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,u=0;u<r;++u){var s=e[u],c=s?.[i];if(c!=null){var l=c[1],f=c[0],d=dt(l)?f:l;d>=0?(c[0]=a,a+=d,c[1]=a):(c[0]=o,o+=d,c[1]=o)}}}},pP=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var u=e[o],s=u?.[i];if(s!=null){var c=dt(s[1])?s[0]:s[1];c>=0?(s[0]=a,a+=c,s[1]=a):(s[0]=0,s[1]=0)}}}},mP={sign:hP,expand:Cx,none:xr,silhouette:Ix,wiggle:Tx,positive:pP},yP=(e,t,r)=>{var n,i=(n=mP[r])!==null&&n!==void 0?n:xr,a=Ax().keys(t).value((u,s)=>Number(me(u,s,0))).order(rs).offset(i),o=a(e);return o.forEach((u,s)=>{u.forEach((c,l)=>{var f=me(e[l],t[s],0);Array.isArray(f)&&f.length===2&&R(f[0])&&R(f[1])&&(c[0]=f[0],c[1]=f[1])})}),o};function Ty(e){return e==null?void 0:String(e)}function gP(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!le(i[t.dataKey])){var u=Cm(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var s=me(i,le(o)?t.dataKey:o),c=t.scale.map(s);return R(c)?c:null}var Dd=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=me(a,t.dataKey,t.scale.domain()[o]);if(le(u))return null;var s=t.scale.map(u);return R(s)?s-i/2+n:null},bP=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},wP=e=>{var t=e.flat(2).filter(R);return[Math.min(...t),Math.max(...t)]},xP=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],OP=(e,t,r)=>{if(e!=null)return xP(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((s,c)=>{var l=Ay(c,t,r),f=wP(l);return!U(f[0])||!U(f[1])?s:[Math.min(s[0],f[0]),Math.max(s[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},Nd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$d=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,In=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=ka(t,l=>l.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var s=i[o],c=i[o-1];a=Math.min((s?.coordinate||0)-(c?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function Rd(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Vr(Vr({},t),{},{dataKey:r,payload:n,value:i,name:a})}function pc(e,t){if(e)return String(e);if(typeof t=="string")return t}var PP=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},SP=(e,t)=>t==="centric"?e.angle:e.radius,Ft=e=>e.layout.width,Wt=e=>e.layout.height,EP=e=>e.layout.scale,jy=e=>e.layout.margin,Fa=_(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Wa=_(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),ky="data-recharts-item-index",My="data-recharts-item-id",Kn=60;function Ld(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ld(Object(r),!0).forEach(function(n){_P(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ld(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _P(e,t,r){return(t=AP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AP(e){var t=CP(e,"string");return typeof t=="symbol"?t:t+""}function CP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IP=e=>e.brush.height;function TP(e){var t=Wa(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Kn;return r+i}return r},0)}function jP(e){var t=Wa(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Kn;return r+i}return r},0)}function kP(e){var t=Fa(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function MP(e){var t=Fa(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ye=_([Ft,Wt,jy,IP,TP,jP,kP,MP,Vm,GO],(e,t,r,n,i,a,o,u,s,c)=>{var l={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=mi(mi({},f),l),v=d.bottom;d.bottom+=n,d=dP(d,s,c);var h=e-d.left-d.right,m=t-d.top-d.bottom;return mi(mi({brushBottom:v},d),{},{width:Math.max(h,0),height:Math.max(m,0)})}),DP=_(ye,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),mc=_(Ft,Wt,(e,t)=>({x:0,y:0,width:e,height:t})),NP=S.createContext(null),Ue=()=>S.useContext(NP)!=null,qa=e=>e.brush,Ua=_([qa,ye,jy],(e,t,r)=>({height:e.height,x:R(e.x)?e.x:t.left,y:R(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:R(e.width)?e.width:t.width})),mu={},yu={},gu={},zd;function $P(){return zd||(zd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const s=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),l=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{c&&l(),m()};let d=null;const v=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},h=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{h(),o=void 0,u=null},p=()=>{l()},y=function(...g){if(i?.aborted)return;o=this,u=g;const b=d==null;v(),s&&b&&l()};return y.schedule=v,y.cancel=m,y.flush=p,i?.addEventListener("abort",m,{once:!0}),y}e.debounce=t}(gu)),gu}var Bd;function RP(){return Bd||(Bd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$P();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:s}=a,c=Array(2);o&&(c[0]="leading"),u&&(c[1]="trailing");let l,f=null;const d=t.debounce(function(...m){l=n.apply(this,m),f=null},i,{edges:c}),v=function(...m){return s!=null&&(f===null&&(f=Date.now()),Date.now()-f>=s)?(l=n.apply(this,m),f=Date.now(),d.cancel(),d.schedule(),l):(d.apply(this,m),l)},h=()=>(d.flush(),l);return v.cancel=d.cancel,v.flush=h,v}e.debounce=r}(yu)),yu}var Fd;function LP(){return Fd||(Fd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=RP();function r(n,i=0,a={}){const{leading:o=!0,trailing:u=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:u})}e.throttle=r}(mu)),mu}var bu,Wd;function zP(){return Wd||(Wd=1,bu=LP().throttle),bu}var BP=zP();const FP=zt(BP);var Yi=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}},bt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Dy=(e,t,r)=>{var{width:n=bt.width,height:i=bt.height,aspect:a,maxHeight:o}=r,u=Pr(n)?e:Number(n),s=Pr(i)?t:Number(i);return a&&a>0&&(u?s=u/a:s&&(u=s*a),o&&s!=null&&s>o&&(s=o)),{calculatedWidth:u,calculatedHeight:s}},WP={width:0,height:0,overflow:"visible"},qP={width:0,overflowX:"visible"},UP={height:0,overflowY:"visible"},VP={},KP=e=>{var{width:t,height:r}=e,n=Pr(t),i=Pr(r);return n&&i?WP:n?qP:i?UP:VP};function HP(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=bt.width,a=bt.height):i===void 0?i=n&&n>0?void 0:bt.width:a===void 0&&(a=n&&n>0?void 0:bt.height),{width:i,height:a}}function ps(){return ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ps.apply(null,arguments)}function qd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ud(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qd(Object(r),!0).forEach(function(n){GP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GP(e,t,r){return(t=YP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YP(e){var t=XP(e,"string");return typeof t=="symbol"?t:t+""}function XP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ny=S.createContext(bt.initialDimension);function ZP(e){return ht(e.width)&&ht(e.height)}function $y(e){var{children:t,width:r,height:n}=e,i=S.useMemo(()=>({width:r,height:n}),[r,n]);return ZP(i)?w.createElement(Ny.Provider,{value:i},t):null}var yc=()=>S.useContext(Ny),QP=S.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=bt.initialDimension,width:i,height:a,minWidth:o=bt.minWidth,minHeight:u,maxHeight:s,children:c,debounce:l=bt.debounce,id:f,className:d,onResize:v,style:h={}}=e,m=S.useRef(null),p=S.useRef();p.current=v,S.useImperativeHandle(t,()=>m.current);var[y,g]=S.useState({containerWidth:n.width,containerHeight:n.height}),b=S.useCallback((A,k)=>{g(N=>{var I=Math.round(A),M=Math.round(k);return N.containerWidth===I&&N.containerHeight===M?N:{containerWidth:I,containerHeight:M}})},[]);S.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Dr;var A=M=>{var C,z=M[0];if(z!=null){var{width:H,height:V}=z.contentRect;b(H,V),(C=p.current)===null||C===void 0||C.call(p,H,V)}};l>0&&(A=FP(A,l,{trailing:!0,leading:!1}));var k=new ResizeObserver(A),{width:N,height:I}=m.current.getBoundingClientRect();return b(N,I),k.observe(m.current),()=>{k.disconnect()}},[b,l]);var{containerWidth:x,containerHeight:P}=y;Yi(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:E}=Dy(x,P,{width:i,height:a,aspect:r,maxHeight:s});return Yi(O!=null&&O>0||E!=null&&E>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
73
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
74
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
75
|
+
height and width.`,O,E,i,a,o,u,r),w.createElement("div",{id:f?"".concat(f):void 0,className:ne("recharts-responsive-container",d),style:Ud(Ud({},h),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:s}),ref:m},w.createElement("div",{style:KP({width:i,height:a})},w.createElement($y,{width:O,height:E},c)))}),Ry=S.forwardRef((e,t)=>{var r=yc();if(ht(r.width)&&ht(r.height))return e.children;var{width:n,height:i}=HP({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=Dy(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return R(a)&&R(o)?w.createElement($y,{width:a,height:o},e.children):w.createElement(QP,ps({},e,{width:n,height:i,ref:t}))});function gc(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Hn=()=>{var e,t=Ue(),r=L(DP),n=L(Ua),i=(e=L(qa))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},JP={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Ly=()=>{var e;return(e=L(ye))!==null&&e!==void 0?e:JP},bc=()=>L(Ft),wc=()=>L(Wt),eS=()=>L(e=>e.layout.margin),Q=e=>e.layout.layoutType,Nr=()=>L(Q),xc=()=>{var e=Nr();if(e==="horizontal"||e==="vertical")return e},zy=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},tS=()=>{var e=Nr();return e!==void 0},en=e=>{var t=ie(),r=Ue(),{width:n,height:i}=e,a=yc(),o=n,u=i;return a&&(o=a.width>0?a.width:n,u=a.height>0?a.height:i),S.useEffect(()=>{!r&&ht(o)&&ht(u)&&t(oP({width:o,height:u}))},[t,r,o,u]),null},rS=e=>{var{margin:t}=e,r=ie();return S.useEffect(()=>{r(_y(t))},[r,t]),null},By=Symbol.for("immer-nothing"),Vd=Symbol.for("immer-draftable"),tt=Symbol.for("immer-state"),nS=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Ve(e,...t){if(process.env.NODE_ENV!=="production"){const r=nS[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Tn=Object.getPrototypeOf;function Xr(e){return!!e&&!!e[tt]}function Er(e){return e?Fy(e)||Array.isArray(e)||!!e[Vd]||!!e.constructor?.[Vd]||Gn(e)||Ka(e):!1}var iS=Object.prototype.constructor.toString(),Kd=new WeakMap;function Fy(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=Kd.get(r);return n===void 0&&(n=Function.toString.call(r),Kd.set(r,n)),n===iS}function Xi(e,t,r=!0){Va(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Va(e){const t=e[tt];return t?t.type_:Array.isArray(e)?1:Gn(e)?2:Ka(e)?3:0}function ms(e,t){return Va(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Wy(e,t,r){const n=Va(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function aS(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Gn(e){return e instanceof Map}function Ka(e){return e instanceof Set}function lr(e){return e.copy_||e.base_}function ys(e,t){if(Gn(e))return new Map(e);if(Ka(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Fy(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[tt];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(Tn(e),n)}else{const n=Tn(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Oc(e,t=!1){return Ha(e)||Xr(e)||!Er(e)||(Va(e)>1&&Object.defineProperties(e,{set:yi,add:yi,clear:yi,delete:yi}),Object.freeze(e),t&&Object.values(e).forEach(r=>Oc(r,!0))),e}function oS(){Ve(2)}var yi={value:oS};function Ha(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var uS={};function _r(e){const t=uS[e];return t||Ve(0,e),t}var jn;function qy(){return jn}function sS(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Hd(e,t){t&&(_r("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function gs(e){bs(e),e.drafts_.forEach(cS),e.drafts_=null}function bs(e){e===jn&&(jn=e.parent_)}function Gd(e){return jn=sS(jn,e)}function cS(e){const t=e[tt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Yd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[tt].modified_&&(gs(t),Ve(4)),Er(e)&&(e=Zi(t,e),t.parent_||Qi(t,e)),t.patches_&&_r("Patches").generateReplacementPatches_(r[tt].base_,e,t.patches_,t.inversePatches_)):e=Zi(t,r,[]),gs(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==By?e:void 0}function Zi(e,t,r){if(Ha(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[tt];if(!i)return Xi(t,(a,o)=>Xd(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return Qi(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let o=a,u=!1;i.type_===3&&(o=new Set(a),a.clear(),u=!0),Xi(o,(s,c)=>Xd(e,i,a,s,c,r,u),n),Qi(e,a,!1),r&&e.patches_&&_r("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function Xd(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const u=Ha(i);if(!(u&&!o)){if(process.env.NODE_ENV!=="production"&&i===r&&Ve(5),Xr(i)){const s=a&&t&&t.type_!==3&&!ms(t.assigned_,n)?a.concat(n):void 0,c=Zi(e,i,s);if(Wy(r,n,c),Xr(c))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Er(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&u)return;Zi(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Gn(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Qi(e,i)}}}function Qi(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Oc(t,r)}function lS(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:qy(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Pc;r&&(i=[n],a=kn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var Pc={get(e,t){if(t===tt)return e;const r=lr(e);if(!ms(r,t))return fS(e,r,t);const n=r[t];return e.finalized_||!Er(n)?n:n===wu(e.base_,t)?(xu(e),e.copy_[t]=xs(n,e)):n},has(e,t){return t in lr(e)},ownKeys(e){return Reflect.ownKeys(lr(e))},set(e,t,r){const n=Uy(lr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=wu(lr(e),t),a=i?.[tt];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(aS(r,i)&&(r!==void 0||ms(e.base_,t)))return!0;xu(e),ws(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return wu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xu(e),ws(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=lr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Ve(11)},getPrototypeOf(e){return Tn(e.base_)},setPrototypeOf(){Ve(12)}},kn={};Xi(Pc,(e,t)=>{kn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});kn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ve(13),kn.set.call(this,e,t,void 0)};kn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ve(14),Pc.set.call(this,e[0],t,r,e[0])};function wu(e,t){const r=e[tt];return(r?lr(r):e)[t]}function fS(e,t,r){const n=Uy(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function Uy(e,t){if(!(t in e))return;let r=Tn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Tn(r)}}function ws(e){e.modified_||(e.modified_=!0,e.parent_&&ws(e.parent_))}function xu(e){e.copy_||(e.copy_=ys(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var dS=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(s=a,...c){return o.produce(s,l=>r.call(this,l,...c))}}typeof r!="function"&&Ve(6),n!==void 0&&typeof n!="function"&&Ve(7);let i;if(Er(t)){const a=Gd(this),o=xs(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?gs(a):bs(a)}return Hd(a,n),Yd(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===By&&(i=void 0),this.autoFreeze_&&Oc(i,!0),n){const a=[],o=[];_r("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Ve(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,s=>t(s,...u));let n,i;return[this.produce(t,r,(o,u)=>{n=o,i=u}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Er(e)||Ve(8),Xr(e)&&(e=vS(e));const t=Gd(this),r=xs(e,void 0);return r[tt].isManual_=!0,bs(t),r}finishDraft(e,t){const r=e&&e[tt];(!r||!r.isManual_)&&Ve(9);const{scope_:n}=r;return Hd(n,t),Yd(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=_r("Patches").applyPatches_;return Xr(e)?n(e,t):this.produce(e,i=>n(i,t))}};function xs(e,t){const r=Gn(e)?_r("MapSet").proxyMap_(e,t):Ka(e)?_r("MapSet").proxySet_(e,t):lS(e,t);return(t?t.scope_:qy()).drafts_.push(r),r}function vS(e){return Xr(e)||Ve(10,e),Vy(e)}function Vy(e){if(!Er(e)||Ha(e))return e;const t=e[tt];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=ys(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=ys(e,!0);return Xi(r,(i,a)=>{Wy(r,i,Vy(a))},n),t&&(t.finalized_=!1),r}var hS=new dS;hS.produce;var pS={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Ky=Ge({name:"legend",initialState:pS,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:oe()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ft(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:oe()},removeLegendPayload:{reducer(e,t){var r=ft(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:oe()}}}),{setLegendSize:mS,setLegendSettings:yS,addLegendPayload:Hy,replaceLegendPayload:Gy,removeLegendPayload:Yy}=Ky.actions,gS=Ky.reducer;function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Os.apply(null,arguments)}function Zd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zd(Object(r),!0).forEach(function(n){bS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bS(e,t,r){return(t=wS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wS(e){var t=xS(e,"string");return typeof t=="symbol"?t:t+""}function xS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OS(e){return Array.isArray(e)&&St(e[0])&&St(e[1])?e.join(" ~ "):e}var Fr={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},PS=e=>{var{separator:t=Fr.separator,contentStyle:r,itemStyle:n,labelStyle:i=Fr.labelStyle,payload:a,formatter:o,itemSorter:u,wrapperClassName:s,labelClassName:c,label:l,labelFormatter:f,accessibilityLayer:d=Fr.accessibilityLayer}=e,v=()=>{if(a&&a.length){var P={padding:0,margin:0},O=(u?ka(a,u):a).map((E,A)=>{if(E.type==="none")return null;var k=E.formatter||o||OS,{value:N,name:I}=E,M=N,C=I;if(k){var z=k(N,I,E,A,a);if(Array.isArray(z))[M,C]=z;else if(z!=null)M=z;else return null}var H=dn(dn({},Fr.itemStyle),{},{color:E.color||Fr.itemStyle.color},n);return w.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(A),style:H},St(C)?w.createElement("span",{className:"recharts-tooltip-item-name"},C):null,St(C)?w.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,w.createElement("span",{className:"recharts-tooltip-item-value"},M),w.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return w.createElement("ul",{className:"recharts-tooltip-item-list",style:P},O)}return null},h=dn(dn({},Fr.contentStyle),r),m=dn({margin:0},i),p=!le(l),y=p?l:"",g=ne("recharts-default-tooltip",s),b=ne("recharts-tooltip-label",c);p&&f&&a!==void 0&&a!==null&&(y=f(l,a));var x=d?{role:"status","aria-live":"assertive"}:{};return w.createElement("div",Os({className:g,style:h},x),w.createElement("p",{className:b,style:m},w.isValidElement(y)?y:"".concat(y)),v())},vn="recharts-tooltip-wrapper",SS={visibility:"hidden"};function ES(e){var{coordinate:t,translateX:r,translateY:n}=e;return ne(vn,{["".concat(vn,"-right")]:R(r)&&t&&R(t.x)&&r>=t.x,["".concat(vn,"-left")]:R(r)&&t&&R(t.x)&&r<t.x,["".concat(vn,"-bottom")]:R(n)&&t&&R(t.y)&&n>=t.y,["".concat(vn,"-top")]:R(n)&&t&&R(t.y)&&n<t.y})}function Qd(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:u,viewBox:s,viewBoxDimension:c}=e;if(a&&R(a[n]))return a[n];var l=r[n]-u-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?l:f;var d=s[n];if(d==null)return 0;if(o[n]){var v=l,h=d;return v<h?Math.max(f,d):Math.max(l,d)}if(c==null)return 0;var m=f+u,p=d+c;return m>p?Math.max(l,d):Math.max(f,d)}function _S(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function AS(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:u,useTranslate3d:s,viewBox:c}=e,l,f,d;return u.height>0&&u.width>0&&r?(f=Qd({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:a,reverseDirection:o,tooltipDimension:u.width,viewBox:c,viewBoxDimension:c.width}),d=Qd({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:a,reverseDirection:o,tooltipDimension:u.height,viewBox:c,viewBoxDimension:c.height}),l=_S({translateX:f,translateY:d,useTranslate3d:s})):l=SS,{cssProperties:l,cssClasses:ES({translateX:f,translateY:d,coordinate:r})}}function Jd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jd(Object(r),!0).forEach(function(n){Ps(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ps(e,t,r){return(t=CS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CS(e){var t=IS(e,"string");return typeof t=="symbol"?t:t+""}function IS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class TS extends S.PureComponent{constructor(){super(...arguments),Ps(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Ps(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:o,hasPayload:u,isAnimationActive:s,offset:c,position:l,reverseDirection:f,useTranslate3d:d,viewBox:v,wrapperStyle:h,lastBoundingBox:m,innerRef:p,hasPortalFromProps:y}=this.props,g=typeof c=="number"?c:c.x,b=typeof c=="number"?c:c.y,{cssClasses:x,cssProperties:P}=AS({allowEscapeViewBox:r,coordinate:o,offsetLeft:g,offsetTop:b,position:l,reverseDirection:f,tooltipBox:{height:m.height,width:m.width},useTranslate3d:d,viewBox:v}),O=y?{}:gi(gi({transition:s&&t?"transform ".concat(n,"ms ").concat(i):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&u?"visible":"hidden",position:"absolute",top:0,left:0}),E=gi(gi({},O),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},h);return w.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:x,style:E,ref:p},a)}}var Xy=()=>{var e;return(e=L(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ss.apply(null,arguments)}function ev(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ev(Object(r),!0).forEach(function(n){jS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ev(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jS(e,t,r){return(t=kS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kS(e){var t=MS(e,"string");return typeof t=="symbol"?t:t+""}function MS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rv={curveBasisClosed:mx,curveBasisOpen:yx,curveBasis:px,curveBumpX:tx,curveBumpY:rx,curveLinearClosed:gx,curveLinear:Ia,curveMonotoneX:bx,curveMonotoneY:wx,curveNatural:xx,curveStep:Ox,curveStepAfter:Sx,curveStepBefore:Px},Ji=e=>U(e.x)&&U(e.y),nv=e=>e.base!=null&&Ji(e.base)&&Ji(e),hn=e=>e.x,pn=e=>e.y,DS=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Fn(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=rv["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return rv[r]||Ia},iv={connectNulls:!1,type:"linear"},NS=e=>{var{type:t=iv.type,points:r=[],baseLine:n,layout:i,connectNulls:a=iv.connectNulls}=e,o=DS(t,i),u=a?r.filter(Ji):r;if(Array.isArray(n)){var s,c=r.map((h,m)=>tv(tv({},h),{},{base:n[m]}));i==="vertical"?s=ui().y(pn).x1(hn).x0(h=>h.base.x):s=ui().x(hn).y1(pn).y0(h=>h.base.y);var l=s.defined(nv).curve(o),f=a?c.filter(nv):c;return l(f)}var d;i==="vertical"&&R(n)?d=ui().y(pn).x1(hn).x0(n):R(n)?d=ui().x(hn).y1(pn).y0(n):d=pm().x(hn).y(pn);var v=d.defined(Ji).curve(o);return v(u)},Sc=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=Nr();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},u=r&&r.length?NS(o):n;return w.createElement("path",Ss({},Ot(e),jm(e),{className:ne("recharts-curve",t),d:u===null?void 0:u,ref:i}))},$S=["x","y","top","left","width","height","className"];function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Es.apply(null,arguments)}function av(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function RS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?av(Object(r),!0).forEach(function(n){LS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):av(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LS(e,t,r){return(t=zS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zS(e){var t=BS(e,"string");return typeof t=="symbol"?t:t+""}function BS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FS(e,t){if(e==null)return{};var r,n,i=WS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function WS(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var qS=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),US=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:u}=e,s=FS(e,$S),c=RS({x:t,y:r,top:n,left:i,width:a,height:o},s);return!R(t)||!R(r)||!R(a)||!R(o)||!R(n)||!R(i)?null:w.createElement("path",Es({},We(c),{className:ne("recharts-cross",u),d:qS(t,r,a,o,n,i)}))};function VS(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function ov(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ov(Object(r),!0).forEach(function(n){KS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ov(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KS(e,t,r){return(t=HS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HS(e){var t=GS(e,"string");return typeof t=="symbol"?t:t+""}function GS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YS=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Zy=(e,t,r)=>e.map(n=>"".concat(YS(n)," ").concat(t,"ms ").concat(r)).join(","),XS=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Mn=(e,t)=>Object.keys(t).reduce((r,n)=>uv(uv({},r),{},{[n]:e(n,t[n])}),{});function sv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sv(Object(r),!0).forEach(function(n){ZS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZS(e,t,r){return(t=QS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QS(e){var t=JS(e,"string");return typeof t=="symbol"?t:t+""}function JS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ea=(e,t,r)=>e+(t-e)*r,_s=e=>{var{from:t,to:r}=e;return t!==r},Qy=(e,t,r)=>{var n=Mn((i,a)=>{if(_s(a)){var[o,u]=e(a.from,a.to,a.velocity);return pe(pe({},a),{},{from:o,velocity:u})}return a},t);return r<1?Mn((i,a)=>_s(a)&&n[i]!=null?pe(pe({},a),{},{velocity:ea(a.velocity,n[i].velocity,r),from:ea(a.from,n[i].from,r)}):a,t):Qy(e,n,r-1)};function eE(e,t,r,n,i,a){var o,u=n.reduce((d,v)=>pe(pe({},d),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),s=()=>Mn((d,v)=>v.from,u),c=()=>!Object.values(u).filter(_s).length,l=null,f=d=>{o||(o=d);var v=d-o,h=v/r.dt;u=Qy(r,u,h),i(pe(pe(pe({},e),t),s())),o=d,c()||(l=a.setTimeout(f))};return()=>(l=a.setTimeout(f),()=>{var d;(d=l)===null||d===void 0||d()})}function tE(e,t,r,n,i,a,o){var u=null,s=i.reduce((f,d)=>{var v=e[d],h=t[d];return v==null||h==null?f:pe(pe({},f),{},{[d]:[v,h]})},{}),c,l=f=>{c||(c=f);var d=(f-c)/n,v=Mn((m,p)=>ea(...p,r(d)),s);if(a(pe(pe(pe({},e),t),v)),d<1)u=o.setTimeout(l);else{var h=Mn((m,p)=>ea(...p,r(1)),s);a(pe(pe(pe({},e),t),h))}};return()=>(u=o.setTimeout(l),()=>{var f;(f=u)===null||f===void 0||f()})}const rE=(e,t,r,n,i,a)=>{var o=XS(e,t);return r==null?()=>(i(pe(pe({},e),t)),()=>{}):r.isStepper===!0?eE(e,t,r,o,i,a):tE(e,t,r,n,o,i,a)};var ta=1e-4,Jy=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],eg=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),cv=(e,t)=>r=>{var n=Jy(e,t);return eg(n,r)},nE=(e,t)=>r=>{var n=Jy(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return eg(i,r)},iE=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var i=n.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},aE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=iE(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},oE=(e,t,r,n)=>{var i=cv(e,r),a=cv(t,n),o=nE(e,r),u=c=>c>1?1:c<0?0:c,s=c=>{for(var l=c>1?1:c,f=l,d=0;d<8;++d){var v=i(f)-l,h=o(f);if(Math.abs(v-l)<ta||h<ta)return a(f);f=u(f-v/h)}return a(f)};return s.isStepper=!1,s},lv=function(){return oE(...aE(...arguments))},uE=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,u,s)=>{var c=-(o-u)*r,l=s*n,f=s+(c-l)*i/1e3,d=s*i/1e3+o;return Math.abs(d-u)<ta&&Math.abs(f)<ta?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},sE=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return lv(e);case"spring":return uE();default:if(e.split("(")[0]==="cubic-bezier")return lv(e)}return typeof e=="function"?e:null};function cE(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[s,...c]=u;if(typeof s=="number"){i=e.setTimeout(a.bind(null,c),s);return}a(s),i=e.setTimeout(a.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class lE{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function fE(){return cE(new lE)}var dE=S.createContext(fE);function vE(e,t){var r=S.useContext(dE);return S.useMemo(()=>t??r(e),[e,t,r])}var hE=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Yn={isSsr:hE()},pE={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},fv={t:0},Ou={t:1};function Ga(e){var t=He(e,pE),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:s,children:c}=t,l=r==="auto"?!Yn.isSsr:r,f=vE(t.animationId,t.animationManager),[d,v]=S.useState(l?fv:Ou),h=S.useRef(null);return S.useEffect(()=>{l||v(Ou)},[l]),S.useEffect(()=>{if(!l||!n)return Dr;var m=rE(fv,Ou,sE(a),i,v,f.getTimeoutController()),p=()=>{h.current=m()};return f.start([s,o,p,i,u]),()=>{f.stop(),h.current&&h.current(),u()}},[l,n,i,a,o,s,u,f]),c(d.t)}function Ya(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=S.useRef(En(t)),n=S.useRef(e);return n.current!==e&&(r.current=En(t),n.current=e),r.current}var mE=["radius"],yE=["radius"],dv,vv,hv,pv,mv,yv,gv,bv,wv,xv;function Ov(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ov(Object(r),!0).forEach(function(n){gE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ov(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gE(e,t,r){return(t=bE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bE(e){var t=wE(e,"string");return typeof t=="symbol"?t:t+""}function wE(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ra.apply(null,arguments)}function Sv(e,t){if(e==null)return{};var r,n,i=xE(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function xE(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function mt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ev=(e,t,r,n,i)=>{var a=Jt(r),o=Jt(n),u=Math.min(Math.abs(a)/2,Math.abs(o)/2),s=o>=0?1:-1,c=a>=0?1:-1,l=o>=0&&a>=0||o<0&&a<0?1:0,f;if(u>0&&Array.isArray(i)){for(var d=[0,0,0,0],v=0,h=4;v<h;v++){var m,p=(m=i[v])!==null&&m!==void 0?m:0;d[v]=p>u?u:p}f=ce(dv||(dv=mt(["M",",",""])),e,t+s*d[0]),d[0]>0&&(f+=ce(vv||(vv=mt(["A ",",",",0,0,",",",",",""])),d[0],d[0],l,e+c*d[0],t)),f+=ce(hv||(hv=mt(["L ",",",""])),e+r-c*d[1],t),d[1]>0&&(f+=ce(pv||(pv=mt(["A ",",",",0,0,",`,
|
|
76
|
+
`,",",""])),d[1],d[1],l,e+r,t+s*d[1])),f+=ce(mv||(mv=mt(["L ",",",""])),e+r,t+n-s*d[2]),d[2]>0&&(f+=ce(yv||(yv=mt(["A ",",",",0,0,",`,
|
|
77
|
+
`,",",""])),d[2],d[2],l,e+r-c*d[2],t+n)),f+=ce(gv||(gv=mt(["L ",",",""])),e+c*d[3],t+n),d[3]>0&&(f+=ce(bv||(bv=mt(["A ",",",",0,0,",`,
|
|
78
|
+
`,",",""])),d[3],d[3],l,e,t+n-s*d[3])),f+="Z"}else if(u>0&&i===+i&&i>0){var y=Math.min(u,i);f=ce(wv||(wv=mt(["M ",",",`
|
|
79
|
+
A `,",",",0,0,",",",",",`
|
|
80
|
+
L `,",",`
|
|
81
|
+
A `,",",",0,0,",",",",",`
|
|
82
|
+
L `,",",`
|
|
83
|
+
A `,",",",0,0,",",",",",`
|
|
84
|
+
L `,",",`
|
|
85
|
+
A `,",",",0,0,",",",","," Z"])),e,t+s*y,y,y,l,e+c*y,t,e+r-c*y,t,y,y,l,e+r,t+s*y,e+r,t+n-s*y,y,y,l,e+r-c*y,t+n,e+c*y,t+n,y,y,l,e,t+n-s*y)}else f=ce(xv||(xv=mt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},_v={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ec=e=>{var t=He(e,_v),r=S.useRef(null),[n,i]=S.useState(-1);S.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var F=r.current.getTotalLength();F&&i(F)}catch{}},[]);var{x:a,y:o,width:u,height:s,radius:c,className:l}=t,{animationEasing:f,animationDuration:d,animationBegin:v,isAnimationActive:h,isUpdateAnimationActive:m}=t,p=S.useRef(u),y=S.useRef(s),g=S.useRef(a),b=S.useRef(o),x=S.useMemo(()=>({x:a,y:o,width:u,height:s,radius:c}),[a,o,u,s,c]),P=Ya(x,"rectangle-");if(a!==+a||o!==+o||u!==+u||s!==+s||u===0||s===0)return null;var O=ne("recharts-rectangle",l);if(!m){var E=We(t),{radius:A}=E,k=Sv(E,mE);return w.createElement("path",ra({},k,{x:Jt(a),y:Jt(o),width:Jt(u),height:Jt(s),radius:typeof c=="number"?c:void 0,className:O,d:Ev(a,o,u,s,c)}))}var N=p.current,I=y.current,M=g.current,C=b.current,z="0px ".concat(n===-1?1:n,"px"),H="".concat(n,"px 0px"),V=Zy(["strokeDasharray"],d,typeof f=="string"?f:_v.animationEasing);return w.createElement(Ga,{animationId:P,key:P,canBegin:n>0,duration:d,easing:f,isActive:m,begin:v},F=>{var Y=Se(N,u,F),W=Se(I,s,F),ve=Se(M,a,F),fe=Se(C,o,F);r.current&&(p.current=Y,y.current=W,g.current=ve,b.current=fe);var Ce;h?F>0?Ce={transition:V,strokeDasharray:H}:Ce={strokeDasharray:z}:Ce={strokeDasharray:H};var Ye=We(t),{radius:ke}=Ye,At=Sv(Ye,yE);return w.createElement("path",ra({},At,{radius:typeof c=="number"?c:void 0,className:O,d:Ev(ve,fe,Y,W,c),ref:r,style:Pv(Pv({},Ce),t.style)}))})};function Av(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Av(Object(r),!0).forEach(function(n){OE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Av(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OE(e,t,r){return(t=PE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PE(e){var t=SE(e,"string");return typeof t=="symbol"?t:t+""}function SE(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var na=Math.PI/180,EE=e=>e*180/Math.PI,Ee=(e,t,r,n)=>({x:e+Math.cos(-na*n)*r,y:t+Math.sin(-na*n)*r}),tg=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},_E=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},AE=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=_E({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var u=(r-i)/o,s=Math.acos(u);return n>a&&(s=2*Math.PI-s),{radius:o,angle:EE(s),angleInRadian:s}},CE=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},IE=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},TE=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=AE({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(i<o||i>u||i===0)return null;var{startAngle:s,endAngle:c}=CE(t),l=a,f;if(s<=c){for(;l>c;)l-=360;for(;l<s;)l+=360;f=l>=s&&l<=c}else{for(;l>s;)l-=360;for(;l<c;)l+=360;f=l>=c&&l<=s}return f?Cv(Cv({},t),{},{radius:i,angle:IE(l,t)}):null};function rg(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=Ee(t,r,n,i),u=Ee(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}var Iv,Tv,jv,kv,Mv,Dv,Nv;function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},As.apply(null,arguments)}function vr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var jE=(e,t)=>{var r=ze(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},bi=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:u,cornerIsExternal:s}=e,c=u*(o?1:-1)+n,l=Math.asin(u/c)/na,f=s?i:i+a*l,d=Ee(t,r,c,f),v=Ee(t,r,n,f),h=s?i-a*l:i,m=Ee(t,r,c*Math.cos(l*na),h);return{center:d,circleTangency:v,lineTangency:m,theta:l}},ng=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,u=jE(a,o),s=a+u,c=Ee(t,r,i,a),l=Ee(t,r,i,s),f=ce(Iv||(Iv=vr(["M ",",",`
|
|
86
|
+
A `,",",`,0,
|
|
87
|
+
`,",",`,
|
|
88
|
+
`,",",`
|
|
89
|
+
`])),c.x,c.y,i,i,+(Math.abs(u)>180),+(a>s),l.x,l.y);if(n>0){var d=Ee(t,r,n,a),v=Ee(t,r,n,s);f+=ce(Tv||(Tv=vr(["L ",",",`
|
|
90
|
+
A `,",",`,0,
|
|
91
|
+
`,",",`,
|
|
92
|
+
`,","," Z"])),v.x,v.y,n,n,+(Math.abs(u)>180),+(a<=s),d.x,d.y)}else f+=ce(jv||(jv=vr(["L ",","," Z"])),t,r);return f},kE=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:u,startAngle:s,endAngle:c}=e,l=ze(c-s),{circleTangency:f,lineTangency:d,theta:v}=bi({cx:t,cy:r,radius:i,angle:s,sign:l,cornerRadius:a,cornerIsExternal:u}),{circleTangency:h,lineTangency:m,theta:p}=bi({cx:t,cy:r,radius:i,angle:c,sign:-l,cornerRadius:a,cornerIsExternal:u}),y=u?Math.abs(s-c):Math.abs(s-c)-v-p;if(y<0)return o?ce(kv||(kv=vr(["M ",",",`
|
|
93
|
+
a`,",",",0,0,1,",`,0
|
|
94
|
+
a`,",",",0,0,1,",`,0
|
|
95
|
+
`])),d.x,d.y,a,a,a*2,a,a,-a*2):ng({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:c});var g=ce(Mv||(Mv=vr(["M ",",",`
|
|
96
|
+
A`,",",",0,0,",",",",",`
|
|
97
|
+
A`,",",",0,",",",",",",",`
|
|
98
|
+
A`,",",",0,0,",",",",",`
|
|
99
|
+
`])),d.x,d.y,a,a,+(l<0),f.x,f.y,i,i,+(y>180),+(l<0),h.x,h.y,a,a,+(l<0),m.x,m.y);if(n>0){var{circleTangency:b,lineTangency:x,theta:P}=bi({cx:t,cy:r,radius:n,angle:s,sign:l,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:O,lineTangency:E,theta:A}=bi({cx:t,cy:r,radius:n,angle:c,sign:-l,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),k=u?Math.abs(s-c):Math.abs(s-c)-P-A;if(k<0&&a===0)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=ce(Dv||(Dv=vr(["L",",",`
|
|
100
|
+
A`,",",",0,0,",",",",",`
|
|
101
|
+
A`,",",",0,",",",",",",",`
|
|
102
|
+
A`,",",",0,0,",",",",","Z"])),E.x,E.y,a,a,+(l<0),O.x,O.y,n,n,+(k>180),+(l>0),b.x,b.y,a,a,+(l<0),x.x,x.y)}else g+=ce(Nv||(Nv=vr(["L",",","Z"])),t,r);return g},ME={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ig=e=>{var t=He(e,ME),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:s,startAngle:c,endAngle:l,className:f}=t;if(a<i||c===l)return null;var d=ne("recharts-sector",f),v=a-i,h=ot(o,v,0,!0),m;return h>0&&Math.abs(c-l)<360?m=kE({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(h,v/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:c,endAngle:l}):m=ng({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:l}),w.createElement("path",As({},We(t),{className:d,d:m}))};function DE(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(Tm(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:u}=t,s=Ee(n,i,a,u),c=Ee(n,i,o,u);return[{x:s.x,y:s.y},{x:c.x,y:c.y}]}return rg(t)}}var Pu={},Su={},Eu={},$v;function NE(){return $v||($v=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qm();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r}(Eu)),Eu}var Rv;function $E(){return Rv||(Rv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=NE();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r}(Su)),Su}var Lv;function RE(){return Lv||(Lv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Um(),r=$E();function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const u=Math.max(Math.ceil((a-i)/(o||1)),0),s=new Array(u);for(let c=0;c<u;c++)s[c]=i,i+=o;return s}e.range=n}(Pu)),Pu}var _u,zv;function LE(){return zv||(zv=1,_u=RE().range),_u}var zE=LE();const ag=zt(zE);function er(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function BE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function _c(e){let t,r,n;e.length!==2?(t=er,r=(u,s)=>er(e(u),s),n=(u,s)=>e(u)-s):(t=e===er||e===BE?e:FE,r=e,n=e);function i(u,s,c=0,l=u.length){if(c<l){if(t(s,s)!==0)return l;do{const f=c+l>>>1;r(u[f],s)<0?c=f+1:l=f}while(c<l)}return c}function a(u,s,c=0,l=u.length){if(c<l){if(t(s,s)!==0)return l;do{const f=c+l>>>1;r(u[f],s)<=0?c=f+1:l=f}while(c<l)}return c}function o(u,s,c=0,l=u.length){const f=i(u,s,c,l-1);return f>c&&n(u[f-1],s)>-n(u[f],s)?f-1:f}return{left:i,center:o,right:a}}function FE(){return 0}function og(e){return e===null?NaN:+e}function*WE(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const qE=_c(er),Xn=qE.right;_c(og).center;class Bv extends Map{constructor(t,r=KE){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Fv(this,t))}has(t){return super.has(Fv(this,t))}set(t,r){return super.set(UE(this,t),r)}delete(t){return super.delete(VE(this,t))}}function Fv({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function UE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function VE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function KE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function HE(e=er){if(e===er)return ug;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function ug(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const GE=Math.sqrt(50),YE=Math.sqrt(10),XE=Math.sqrt(2);function ia(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=GE?10:a>=YE?5:a>=XE?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?ia(e,t,r*2):[u,s,c]}function Cs(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?ia(t,e,r):ia(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function Is(e,t,r){return t=+t,e=+e,r=+r,ia(e,t,r)[2]}function Ts(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Is(t,e,r):Is(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Wv(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function qv(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function sg(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?ug:HE(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,l=Math.log(s),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(s-f)/s)*(c-s/2<0?-1:1),v=Math.max(r,Math.floor(t-c*f/s+d)),h=Math.min(n,Math.floor(t+(s-c)*f/s+d));sg(e,t,v,h,i)}const a=e[t];let o=r,u=n;for(mn(e,r,t),i(e[n],a)>0&&mn(e,r,n);o<u;){for(mn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?mn(e,r,u):(++u,mn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function mn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function ZE(e,t,r){if(e=Float64Array.from(WE(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return qv(e);if(t>=1)return Wv(e);var n,i=(n-1)*t,a=Math.floor(i),o=Wv(sg(e,a).subarray(0,a+1)),u=qv(e.subarray(a+1));return o+(u-o)*(i-a)}}function QE(e,t,r=og){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function JE(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function ct(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function qt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const js=Symbol("implicit");function Ac(){var e=new Bv,t=[],r=[],n=js;function i(a){let o=e.get(a);if(o===void 0){if(n!==js)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Bv;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Ac(t,r).unknown(n)},ct.apply(i,arguments),i}function Cc(){var e=Ac().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,l=.5;delete e.unknown;function f(){var d=t().length,v=i<n,h=v?i:n,m=v?n:i;a=(m-h)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),h+=(m-h-a*(d-s))*l,o=a*(1-s),u&&(h=Math.round(h),o=Math.round(o));var p=JE(d).map(function(y){return h+a*y});return r(v?p.reverse():p)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,f()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return Cc(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(l)},ct.apply(f(),arguments)}function cg(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return cg(t())},e}function e_(){return cg(Cc.apply(null,arguments).paddingInner(1))}function Ic(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function lg(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Zn(){}var Dn=.7,aa=1/Dn,Gr="\\s*([+-]?\\d+)\\s*",Nn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",t_=/^#([0-9a-f]{3,8})$/,r_=new RegExp(`^rgb\\(${Gr},${Gr},${Gr}\\)$`),n_=new RegExp(`^rgb\\(${xt},${xt},${xt}\\)$`),i_=new RegExp(`^rgba\\(${Gr},${Gr},${Gr},${Nn}\\)$`),a_=new RegExp(`^rgba\\(${xt},${xt},${xt},${Nn}\\)$`),o_=new RegExp(`^hsl\\(${Nn},${xt},${xt}\\)$`),u_=new RegExp(`^hsla\\(${Nn},${xt},${xt},${Nn}\\)$`),Uv={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};Ic(Zn,$n,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vv,formatHex:Vv,formatHex8:s_,formatHsl:c_,formatRgb:Kv,toString:Kv});function Vv(){return this.rgb().formatHex()}function s_(){return this.rgb().formatHex8()}function c_(){return fg(this).formatHsl()}function Kv(){return this.rgb().formatRgb()}function $n(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=t_.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Hv(t):r===3?new Ke(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=r_.exec(e))?new Ke(t[1],t[2],t[3],1):(t=n_.exec(e))?new Ke(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=i_.exec(e))?wi(t[1],t[2],t[3],t[4]):(t=a_.exec(e))?wi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=o_.exec(e))?Xv(t[1],t[2]/100,t[3]/100,1):(t=u_.exec(e))?Xv(t[1],t[2]/100,t[3]/100,t[4]):Uv.hasOwnProperty(e)?Hv(Uv[e]):e==="transparent"?new Ke(NaN,NaN,NaN,0):null}function Hv(e){return new Ke(e>>16&255,e>>8&255,e&255,1)}function wi(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ke(e,t,r,n)}function l_(e){return e instanceof Zn||(e=$n(e)),e?(e=e.rgb(),new Ke(e.r,e.g,e.b,e.opacity)):new Ke}function ks(e,t,r,n){return arguments.length===1?l_(e):new Ke(e,t,r,n??1)}function Ke(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ic(Ke,ks,lg(Zn,{brighter(e){return e=e==null?aa:Math.pow(aa,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dn:Math.pow(Dn,e),new Ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ke(br(this.r),br(this.g),br(this.b),oa(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:Gv,formatHex:Gv,formatHex8:f_,formatRgb:Yv,toString:Yv}));function Gv(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}`}function f_(){return`#${hr(this.r)}${hr(this.g)}${hr(this.b)}${hr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yv(){const e=oa(this.opacity);return`${e===1?"rgb(":"rgba("}${br(this.r)}, ${br(this.g)}, ${br(this.b)}${e===1?")":`, ${e})`}`}function oa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function br(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hr(e){return e=br(e),(e<16?"0":"")+e.toString(16)}function Xv(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new lt(e,t,r,n)}function fg(e){if(e instanceof lt)return new lt(e.h,e.s,e.l,e.opacity);if(e instanceof Zn||(e=$n(e)),!e)return new lt;if(e instanceof lt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new lt(o,u,s,e.opacity)}function d_(e,t,r,n){return arguments.length===1?fg(e):new lt(e,t,r,n??1)}function lt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ic(lt,d_,lg(Zn,{brighter(e){return e=e==null?aa:Math.pow(aa,e),new lt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dn:Math.pow(Dn,e),new lt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ke(Au(e>=240?e-240:e+120,i,n),Au(e,i,n),Au(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new lt(Zv(this.h),xi(this.s),xi(this.l),oa(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=oa(this.opacity);return`${e===1?"hsl(":"hsla("}${Zv(this.h)}, ${xi(this.s)*100}%, ${xi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zv(e){return e=(e||0)%360,e<0?e+360:e}function xi(e){return Math.max(0,Math.min(1,e||0))}function Au(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Tc=e=>()=>e;function v_(e,t){return function(r){return e+r*t}}function h_(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function p_(e){return(e=+e)==1?dg:function(t,r){return r-t?h_(t,r,e):Tc(isNaN(t)?r:t)}}function dg(e,t){var r=t-e;return r?v_(e,r):Tc(isNaN(e)?t:e)}const Qv=function e(t){var r=p_(t);function n(i,a){var o=r((i=ks(i)).r,(a=ks(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=dg(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=u(l),i.b=s(l),i.opacity=c(l),i+""}}return n.gamma=e,n}(1);function m_(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function y_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function g_(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=tn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function b_(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ua(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function w_(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=tn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Ms=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cu=new RegExp(Ms.source,"g");function x_(e){return function(){return e}}function O_(e){return function(t){return e(t)+""}}function P_(e,t){var r=Ms.lastIndex=Cu.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Ms.exec(e))&&(i=Cu.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:ua(n,i)})),r=Cu.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?O_(s[0].x):x_(t):(t=s.length,function(c){for(var l=0,f;l<t;++l)u[(f=s[l]).i]=f.x(c);return u.join("")})}function tn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Tc(t):(r==="number"?ua:r==="string"?(n=$n(t))?(t=n,Qv):P_:t instanceof $n?Qv:t instanceof Date?b_:y_(t)?m_:Array.isArray(t)?g_:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?w_:ua)(e,t)}function jc(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function S_(e,t){t===void 0&&(t=e,e=tn);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function E_(e){return function(){return e}}function sa(e){return+e}var Jv=[0,1];function Fe(e){return e}function Ds(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:E_(isNaN(t)?NaN:.5)}function __(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function A_(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Ds(i,n),a=r(o,a)):(n=Ds(n,i),a=r(a,o)),function(u){return a(n(u))}}function C_(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Ds(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Xn(e,u,1,n)-1;return a[s](i[s](u))}}function Qn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xa(){var e=Jv,t=Jv,r=tn,n,i,a,o=Fe,u,s,c;function l(){var d=Math.min(e.length,t.length);return o!==Fe&&(o=__(e[0],e[d-1])),u=d>2?C_:A_,s=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((c||(c=u(t,e.map(n),ua)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,sa),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=jc,l()},f.clamp=function(d){return arguments.length?(o=d?!0:Fe,l()):o!==Fe},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,v){return n=d,i=v,l()}}function kc(){return Xa()(Fe,Fe)}function I_(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ca(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Zr(e){return e=ca(Math.abs(e)),e?e[1]:NaN}function T_(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function j_(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var k_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rn(e){if(!(t=k_.exec(e)))throw new Error("invalid format: "+e);var t;return new Mc({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]})}Rn.prototype=Mc.prototype;function Mc(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Mc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function M_(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var vg;function D_(e,t){var r=ca(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(vg=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ca(e,Math.max(0,t+a-1))[0]}function eh(e,t){var r=ca(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const th={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:I_,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return eh(e*100,t)},r:eh,s:D_,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function rh(e){return e}var nh=Array.prototype.map,ih=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function N_(e){var t=e.grouping===void 0||e.thousands===void 0?rh:T_(nh.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal+"",a=e.numerals===void 0?rh:j_(nh.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(f){f=Rn(f);var d=f.fill,v=f.align,h=f.sign,m=f.symbol,p=f.zero,y=f.width,g=f.comma,b=f.precision,x=f.trim,P=f.type;P==="n"?(g=!0,P="g"):th[P]||(b===void 0&&(b=12),x=!0,P="g"),(p||d==="0"&&v==="=")&&(p=!0,d="0",v="=");var O=m==="$"?r:m==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",E=m==="$"?n:/[%p]/.test(P)?o:"",A=th[P],k=/[defgprs%]/.test(P);b=b===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function N(I){var M=O,C=E,z,H,V;if(P==="c")C=A(I)+C,I="";else{I=+I;var F=I<0||1/I<0;if(I=isNaN(I)?s:A(Math.abs(I),b),x&&(I=M_(I)),F&&+I==0&&h!=="+"&&(F=!1),M=(F?h==="("?h:u:h==="-"||h==="("?"":h)+M,C=(P==="s"?ih[8+vg/3]:"")+C+(F&&h==="("?")":""),k){for(z=-1,H=I.length;++z<H;)if(V=I.charCodeAt(z),48>V||V>57){C=(V===46?i+I.slice(z+1):I.slice(z))+C,I=I.slice(0,z);break}}}g&&!p&&(I=t(I,1/0));var Y=M.length+I.length+C.length,W=Y<y?new Array(y-Y+1).join(d):"";switch(g&&p&&(I=t(W+I,W.length?y-C.length:1/0),W=""),v){case"<":I=M+I+C+W;break;case"=":I=M+W+I+C;break;case"^":I=W.slice(0,Y=W.length>>1)+M+I+C+W.slice(Y);break;default:I=W+M+I+C;break}return a(I)}return N.toString=function(){return f+""},N}function l(f,d){var v=c((f=Rn(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(Zr(d)/3)))*3,m=Math.pow(10,-h),p=ih[8+h/3];return function(y){return v(m*y)+p}}return{format:c,formatPrefix:l}}var Oi,Dc,hg;$_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function $_(e){return Oi=N_(e),Dc=Oi.format,hg=Oi.formatPrefix,Oi}function R_(e){return Math.max(0,-Zr(Math.abs(e)))}function L_(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Zr(t)/3)))*3-Zr(Math.abs(e)))}function z_(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Zr(t)-Zr(e))+1}function pg(e,t,r,n){var i=Ts(e,t,r),a;switch(n=Rn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=L_(i,o))&&(n.precision=a),hg(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=z_(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=R_(i))&&(n.precision=a-(n.type==="%")*2);break}}return Dc(n)}function rr(e){var t=e.domain;return e.ticks=function(r){var n=t();return Cs(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return pg(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,l=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);l-- >0;){if(c=Is(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function mg(){var e=kc();return e.copy=function(){return Qn(e,mg())},ct.apply(e,arguments),rr(e)}function yg(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,sa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return yg(e).unknown(t)},e=arguments.length?Array.from(e,sa):[0,1],rr(r)}function gg(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function ah(e){return Math.log(e)}function oh(e){return Math.exp(e)}function B_(e){return-Math.log(-e)}function F_(e){return-Math.exp(-e)}function W_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function q_(e){return e===10?W_:e===Math.E?Math.exp:t=>Math.pow(e,t)}function U_(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function uh(e){return(t,r)=>-e(-t,r)}function Nc(e){const t=e(ah,oh),r=t.domain;let n=10,i,a;function o(){return i=U_(n),a=q_(n),r()[0]<0?(i=uh(i),a=uh(a),e(B_,F_)):e(ah,oh),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],l=s[s.length-1];const f=l<c;f&&([c,l]=[l,c]);let d=i(c),v=i(l),h,m;const p=u==null?10:+u;let y=[];if(!(n%1)&&v-d<p){if(d=Math.floor(d),v=Math.ceil(v),c>0){for(;d<=v;++d)for(h=1;h<n;++h)if(m=d<0?h/a(-d):h*a(d),!(m<c)){if(m>l)break;y.push(m)}}else for(;d<=v;++d)for(h=n-1;h>=1;--h)if(m=d>0?h/a(-d):h*a(d),!(m<c)){if(m>l)break;y.push(m)}y.length*2<p&&(y=Cs(c,l,p))}else y=Cs(d,v,Math.min(v-d,p)).map(a);return f?y.reverse():y},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=Rn(s)).precision==null&&(s.trim=!0),s=Dc(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=c?s(l):""}},t.nice=()=>r(gg(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function bg(){const e=Nc(Xa()).domain([1,10]);return e.copy=()=>Qn(e,bg()).base(e.base()),ct.apply(e,arguments),e}function sh(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ch(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function $c(e){var t=1,r=e(sh(t),ch(t));return r.constant=function(n){return arguments.length?e(sh(t=+n),ch(t)):t},rr(r)}function wg(){var e=$c(Xa());return e.copy=function(){return Qn(e,wg()).constant(e.constant())},ct.apply(e,arguments)}function lh(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function V_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function K_(e){return e<0?-e*e:e*e}function Rc(e){var t=e(Fe,Fe),r=1;function n(){return r===1?e(Fe,Fe):r===.5?e(V_,K_):e(lh(r),lh(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},rr(t)}function Lc(){var e=Rc(Xa());return e.copy=function(){return Qn(e,Lc()).exponent(e.exponent())},ct.apply(e,arguments),e}function H_(){return Lc.apply(null,arguments).exponent(.5)}function fh(e){return Math.sign(e)*e*e}function G_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function xg(){var e=kc(),t=[0,1],r=!1,n;function i(a){var o=G_(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(fh(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,sa)).map(fh)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return xg(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},ct.apply(i,arguments),rr(i)}function Og(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=QE(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Xn(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(er),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Og().domain(e).range(t).unknown(n)},ct.apply(a,arguments)}function Pg(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Xn(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Pg().domain([e,t]).range(i).unknown(a)},ct.apply(rr(o),arguments)}function Sg(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Xn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Sg().domain(e).range(t).unknown(r)},ct.apply(i,arguments)}const Iu=new Date,Tu=new Date;function ge(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>ge(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Iu.setTime(+a),Tu.setTime(+o),e(Iu),e(Tu),Math.floor(r(Iu,Tu))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const la=ge(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);la.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ge(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):la);la.range;const Tt=1e3,at=Tt*60,jt=at*60,Nt=jt*24,zc=Nt*7,dh=Nt*30,ju=Nt*365,pr=ge(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getUTCSeconds());pr.range;const Bc=ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tt)},(e,t)=>{e.setTime(+e+t*at)},(e,t)=>(t-e)/at,e=>e.getMinutes());Bc.range;const Fc=ge(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*at)},(e,t)=>(t-e)/at,e=>e.getUTCMinutes());Fc.range;const Wc=ge(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Tt-e.getMinutes()*at)},(e,t)=>{e.setTime(+e+t*jt)},(e,t)=>(t-e)/jt,e=>e.getHours());Wc.range;const qc=ge(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*jt)},(e,t)=>(t-e)/jt,e=>e.getUTCHours());qc.range;const Uc=ge(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*at)/Nt,e=>e.getDate()-1);Uc.range;const Eg=ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nt,e=>e.getUTCDate()-1);Eg.range;const _g=ge(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nt,e=>Math.floor(e/Nt));_g.range;function $r(e){return ge(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*at)/zc)}const Vc=$r(0),Y_=$r(1),X_=$r(2),Z_=$r(3),Q_=$r(4),J_=$r(5),eA=$r(6);Vc.range;Y_.range;X_.range;Z_.range;Q_.range;J_.range;eA.range;function Rr(e){return ge(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/zc)}const Kc=Rr(0),tA=Rr(1),rA=Rr(2),nA=Rr(3),iA=Rr(4),aA=Rr(5),oA=Rr(6);Kc.range;tA.range;rA.range;nA.range;iA.range;aA.range;oA.range;const Hc=ge(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Hc.range;const Gc=ge(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Gc.range;const Za=ge(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());Za.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ge(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Za.range;const Qa=ge(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());Qa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ge(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Qa.range;function Ag(e,t,r,n,i,a){const o=[[pr,1,Tt],[pr,5,5*Tt],[pr,15,15*Tt],[pr,30,30*Tt],[a,1,at],[a,5,5*at],[a,15,15*at],[a,30,30*at],[i,1,jt],[i,3,3*jt],[i,6,6*jt],[i,12,12*jt],[n,1,Nt],[n,2,2*Nt],[r,1,zc],[t,1,dh],[t,3,3*dh],[e,1,ju]];function u(c,l,f){const d=l<c;d&&([c,l]=[l,c]);const v=f&&typeof f.range=="function"?f:s(c,l,f),h=v?v.range(c,+l+1):[];return d?h.reverse():h}function s(c,l,f){const d=Math.abs(l-c)/f,v=_c(([,,p])=>p).right(o,d);if(v===o.length)return e.every(Ts(c/ju,l/ju,f));if(v===0)return la.every(Math.max(Ts(c,l,f),1));const[h,m]=o[d/o[v-1][2]<o[v][2]/d?v-1:v];return h.every(m)}return[u,s]}const[uA,sA]=Ag(Qa,Gc,Kc,_g,qc,Fc),[cA,lA]=Ag(Za,Hc,Vc,Uc,Wc,Bc);var ku=new Date,Mu=new Date;function Ut(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,u){var s=[],c;if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=function(a){return Ut(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,u){if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return ku.setTime(+a),Mu.setTime(+o),e(ku),e(Mu),Math.floor(r(ku,Mu))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}const fA=1e3,Yc=fA*60,dA=Yc*60,Xc=dA*24,Cg=Xc*7;var Zc=Ut(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yc)/Xc,e=>e.getDate()-1);Zc.range;function Lr(e){return Ut(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Yc)/Cg})}var Ig=Lr(0),fa=Lr(1),vA=Lr(2),hA=Lr(3),Qr=Lr(4),pA=Lr(5),mA=Lr(6);Ig.range;fa.range;vA.range;hA.range;Qr.range;pA.range;mA.range;var Ar=Ut(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Ar.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ut(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};Ar.range;var Qc=Ut(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Xc},function(e){return e.getUTCDate()-1});Qc.range;function zr(e){return Ut(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/Cg})}var Tg=zr(0),da=zr(1),yA=zr(2),gA=zr(3),Jr=zr(4),bA=zr(5),wA=zr(6);Tg.range;da.range;yA.range;gA.range;Jr.range;bA.range;wA.range;var Cr=Ut(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Cr.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ut(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};Cr.range;function Du(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 Nu(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 yn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function xA(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=gn(i),l=bn(i),f=gn(a),d=bn(a),v=gn(o),h=bn(o),m=gn(u),p=bn(u),y=gn(s),g=bn(s),b={a:F,A:Y,b:W,B:ve,c:null,d:gh,e:gh,f:UA,g:eC,G:rC,H:FA,I:WA,j:qA,L:jg,m:VA,M:KA,p:fe,q:Ce,Q:xh,s:Oh,S:HA,u:GA,U:YA,V:XA,w:ZA,W:QA,x:null,X:null,y:JA,Y:tC,Z:nC,"%":wh},x={a:Ye,A:ke,b:At,B:or,c:null,d:bh,e:bh,f:uC,g:yC,G:bC,H:iC,I:aC,j:oC,L:Mg,m:sC,M:cC,p:Me,q:fn,Q:xh,s:Oh,S:lC,u:fC,U:dC,V:vC,w:hC,W:pC,x:null,X:null,y:mC,Y:gC,Z:wC,"%":wh},P={a:N,A:I,b:M,B:C,c:z,d:mh,e:mh,f:RA,g:ph,G:hh,H:yh,I:yh,j:MA,L:$A,m:kA,M:DA,p:k,q:jA,Q:zA,s:BA,S:NA,u:_A,U:AA,V:CA,w:EA,W:IA,x:H,X:V,y:ph,Y:hh,Z:TA,"%":LA};b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),x.x=O(r,x),x.X=O(n,x),x.c=O(t,x);function O(T,q){return function(D){var j=[],he=-1,X=0,Xe=T.length,Ze,ur,sf;for(D instanceof Date||(D=new Date(+D));++he<Xe;)T.charCodeAt(he)===37&&(j.push(T.slice(X,he)),(ur=vh[Ze=T.charAt(++he)])!=null?Ze=T.charAt(++he):ur=Ze==="e"?" ":"0",(sf=q[Ze])&&(Ze=sf(D,ur)),j.push(Ze),X=he+1);return j.push(T.slice(X,he)),j.join("")}}function E(T,q){return function(D){var j=yn(1900,void 0,1),he=A(j,T,D+="",0),X,Xe;if(he!=D.length)return null;if("Q"in j)return new Date(j.Q);if("s"in j)return new Date(j.s*1e3+("L"in j?j.L:0));if(q&&!("Z"in j)&&(j.Z=0),"p"in j&&(j.H=j.H%12+j.p*12),j.m===void 0&&(j.m="q"in j?j.q:0),"V"in j){if(j.V<1||j.V>53)return null;"w"in j||(j.w=1),"Z"in j?(X=Nu(yn(j.y,0,1)),Xe=X.getUTCDay(),X=Xe>4||Xe===0?da.ceil(X):da(X),X=Qc.offset(X,(j.V-1)*7),j.y=X.getUTCFullYear(),j.m=X.getUTCMonth(),j.d=X.getUTCDate()+(j.w+6)%7):(X=Du(yn(j.y,0,1)),Xe=X.getDay(),X=Xe>4||Xe===0?fa.ceil(X):fa(X),X=Zc.offset(X,(j.V-1)*7),j.y=X.getFullYear(),j.m=X.getMonth(),j.d=X.getDate()+(j.w+6)%7)}else("W"in j||"U"in j)&&("w"in j||(j.w="u"in j?j.u%7:"W"in j?1:0),Xe="Z"in j?Nu(yn(j.y,0,1)).getUTCDay():Du(yn(j.y,0,1)).getDay(),j.m=0,j.d="W"in j?(j.w+6)%7+j.W*7-(Xe+5)%7:j.w+j.U*7-(Xe+6)%7);return"Z"in j?(j.H+=j.Z/100|0,j.M+=j.Z%100,Nu(j)):Du(j)}}function A(T,q,D,j){for(var he=0,X=q.length,Xe=D.length,Ze,ur;he<X;){if(j>=Xe)return-1;if(Ze=q.charCodeAt(he++),Ze===37){if(Ze=q.charAt(he++),ur=P[Ze in vh?q.charAt(he++):Ze],!ur||(j=ur(T,D,j))<0)return-1}else if(Ze!=D.charCodeAt(j++))return-1}return j}function k(T,q,D){var j=c.exec(q.slice(D));return j?(T.p=l.get(j[0].toLowerCase()),D+j[0].length):-1}function N(T,q,D){var j=v.exec(q.slice(D));return j?(T.w=h.get(j[0].toLowerCase()),D+j[0].length):-1}function I(T,q,D){var j=f.exec(q.slice(D));return j?(T.w=d.get(j[0].toLowerCase()),D+j[0].length):-1}function M(T,q,D){var j=y.exec(q.slice(D));return j?(T.m=g.get(j[0].toLowerCase()),D+j[0].length):-1}function C(T,q,D){var j=m.exec(q.slice(D));return j?(T.m=p.get(j[0].toLowerCase()),D+j[0].length):-1}function z(T,q,D){return A(T,t,q,D)}function H(T,q,D){return A(T,r,q,D)}function V(T,q,D){return A(T,n,q,D)}function F(T){return o[T.getDay()]}function Y(T){return a[T.getDay()]}function W(T){return s[T.getMonth()]}function ve(T){return u[T.getMonth()]}function fe(T){return i[+(T.getHours()>=12)]}function Ce(T){return 1+~~(T.getMonth()/3)}function Ye(T){return o[T.getUTCDay()]}function ke(T){return a[T.getUTCDay()]}function At(T){return s[T.getUTCMonth()]}function or(T){return u[T.getUTCMonth()]}function Me(T){return i[+(T.getUTCHours()>=12)]}function fn(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var q=O(T+="",b);return q.toString=function(){return T},q},parse:function(T){var q=E(T+="",!1);return q.toString=function(){return T},q},utcFormat:function(T){var q=O(T+="",x);return q.toString=function(){return T},q},utcParse:function(T){var q=E(T+="",!0);return q.toString=function(){return T},q}}}var vh={"-":"",_:" ",0:"0"},_e=/^\s*\d+/,OA=/^%/,PA=/[\\^$*+?|[\]().{}]/g;function K(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function SA(e){return e.replace(PA,"\\$&")}function gn(e){return new RegExp("^(?:"+e.map(SA).join("|")+")","i")}function bn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function EA(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function _A(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function AA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function CA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function IA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function hh(e,t,r){var n=_e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ph(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function TA(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function jA(e,t,r){var n=_e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function kA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function mh(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function MA(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function yh(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function DA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function NA(e,t,r){var n=_e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function $A(e,t,r){var n=_e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function RA(e,t,r){var n=_e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function LA(e,t,r){var n=OA.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function zA(e,t,r){var n=_e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function BA(e,t,r){var n=_e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function gh(e,t){return K(e.getDate(),t,2)}function FA(e,t){return K(e.getHours(),t,2)}function WA(e,t){return K(e.getHours()%12||12,t,2)}function qA(e,t){return K(1+Zc.count(Ar(e),e),t,3)}function jg(e,t){return K(e.getMilliseconds(),t,3)}function UA(e,t){return jg(e,t)+"000"}function VA(e,t){return K(e.getMonth()+1,t,2)}function KA(e,t){return K(e.getMinutes(),t,2)}function HA(e,t){return K(e.getSeconds(),t,2)}function GA(e){var t=e.getDay();return t===0?7:t}function YA(e,t){return K(Ig.count(Ar(e)-1,e),t,2)}function kg(e){var t=e.getDay();return t>=4||t===0?Qr(e):Qr.ceil(e)}function XA(e,t){return e=kg(e),K(Qr.count(Ar(e),e)+(Ar(e).getDay()===4),t,2)}function ZA(e){return e.getDay()}function QA(e,t){return K(fa.count(Ar(e)-1,e),t,2)}function JA(e,t){return K(e.getFullYear()%100,t,2)}function eC(e,t){return e=kg(e),K(e.getFullYear()%100,t,2)}function tC(e,t){return K(e.getFullYear()%1e4,t,4)}function rC(e,t){var r=e.getDay();return e=r>=4||r===0?Qr(e):Qr.ceil(e),K(e.getFullYear()%1e4,t,4)}function nC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+K(t/60|0,"0",2)+K(t%60,"0",2)}function bh(e,t){return K(e.getUTCDate(),t,2)}function iC(e,t){return K(e.getUTCHours(),t,2)}function aC(e,t){return K(e.getUTCHours()%12||12,t,2)}function oC(e,t){return K(1+Qc.count(Cr(e),e),t,3)}function Mg(e,t){return K(e.getUTCMilliseconds(),t,3)}function uC(e,t){return Mg(e,t)+"000"}function sC(e,t){return K(e.getUTCMonth()+1,t,2)}function cC(e,t){return K(e.getUTCMinutes(),t,2)}function lC(e,t){return K(e.getUTCSeconds(),t,2)}function fC(e){var t=e.getUTCDay();return t===0?7:t}function dC(e,t){return K(Tg.count(Cr(e)-1,e),t,2)}function Dg(e){var t=e.getUTCDay();return t>=4||t===0?Jr(e):Jr.ceil(e)}function vC(e,t){return e=Dg(e),K(Jr.count(Cr(e),e)+(Cr(e).getUTCDay()===4),t,2)}function hC(e){return e.getUTCDay()}function pC(e,t){return K(da.count(Cr(e)-1,e),t,2)}function mC(e,t){return K(e.getUTCFullYear()%100,t,2)}function yC(e,t){return e=Dg(e),K(e.getUTCFullYear()%100,t,2)}function gC(e,t){return K(e.getUTCFullYear()%1e4,t,4)}function bC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Jr(e):Jr.ceil(e),K(e.getUTCFullYear()%1e4,t,4)}function wC(){return"+0000"}function wh(){return"%"}function xh(e){return+e}function Oh(e){return Math.floor(+e/1e3)}var Wr,Ng,$g;xC({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function xC(e){return Wr=xA(e),Ng=Wr.format,Wr.parse,$g=Wr.utcFormat,Wr.utcParse,Wr}function OC(e){return new Date(e)}function PC(e){return e instanceof Date?+e:+new Date(+e)}function Jc(e,t,r,n,i,a,o,u,s,c){var l=kc(),f=l.invert,d=l.domain,v=c(".%L"),h=c(":%S"),m=c("%I:%M"),p=c("%I %p"),y=c("%a %d"),g=c("%b %d"),b=c("%B"),x=c("%Y");function P(O){return(s(O)<O?v:u(O)<O?h:o(O)<O?m:a(O)<O?p:n(O)<O?i(O)<O?y:g:r(O)<O?b:x)(O)}return l.invert=function(O){return new Date(f(O))},l.domain=function(O){return arguments.length?d(Array.from(O,PC)):d().map(OC)},l.ticks=function(O){var E=d();return e(E[0],E[E.length-1],O??10)},l.tickFormat=function(O,E){return E==null?P:c(E)},l.nice=function(O){var E=d();return(!O||typeof O.range!="function")&&(O=t(E[0],E[E.length-1],O??10)),O?d(gg(E,O)):l},l.copy=function(){return Qn(l,Jc(e,t,r,n,i,a,o,u,s,c))},l}function SC(){return ct.apply(Jc(cA,lA,Za,Hc,Vc,Uc,Wc,Bc,pr,Ng).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function EC(){return ct.apply(Jc(uA,sA,Qa,Gc,Kc,Eg,qc,Fc,pr,$g).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ja(){var e=0,t=1,r,n,i,a,o=Fe,u=!1,s;function c(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-r)*i,u?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(u=!!f,c):u},c.interpolator=function(f){return arguments.length?(o=f,c):o};function l(f){return function(d){var v,h;return arguments.length?([v,h]=d,o=f(v,h),c):[o(0),o(1)]}}return c.range=l(tn),c.rangeRound=l(jc),c.unknown=function(f){return arguments.length?(s=f,c):s},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function nr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Rg(){var e=rr(Ja()(Fe));return e.copy=function(){return nr(e,Rg())},qt.apply(e,arguments)}function Lg(){var e=Nc(Ja()).domain([1,10]);return e.copy=function(){return nr(e,Lg()).base(e.base())},qt.apply(e,arguments)}function zg(){var e=$c(Ja());return e.copy=function(){return nr(e,zg()).constant(e.constant())},qt.apply(e,arguments)}function el(){var e=Rc(Ja());return e.copy=function(){return nr(e,el()).exponent(e.exponent())},qt.apply(e,arguments)}function _C(){return el.apply(null,arguments).exponent(.5)}function Bg(){var e=[],t=Fe;function r(n){if(n!=null&&!isNaN(n=+n))return t((Xn(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(er),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>ZE(e,a/n))},r.copy=function(){return Bg(t).domain(e)},qt.apply(r,arguments)}function eo(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Fe,l,f=!1,d;function v(m){return isNaN(m=+m)?d:(m=.5+((m=+l(m))-a)*(n*m<n*a?u:s),c(f?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,i=l(e=+e),a=l(t=+t),o=l(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,v):[e,t,r]},v.clamp=function(m){return arguments.length?(f=!!m,v):f},v.interpolator=function(m){return arguments.length?(c=m,v):c};function h(m){return function(p){var y,g,b;return arguments.length?([y,g,b]=p,c=S_(m,[y,g,b]),v):[c(0),c(.5),c(1)]}}return v.range=h(tn),v.rangeRound=h(jc),v.unknown=function(m){return arguments.length?(d=m,v):d},function(m){return l=m,i=m(e),a=m(t),o=m(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function Fg(){var e=rr(eo()(Fe));return e.copy=function(){return nr(e,Fg())},qt.apply(e,arguments)}function Wg(){var e=Nc(eo()).domain([.1,1,10]);return e.copy=function(){return nr(e,Wg()).base(e.base())},qt.apply(e,arguments)}function qg(){var e=$c(eo());return e.copy=function(){return nr(e,qg()).constant(e.constant())},qt.apply(e,arguments)}function tl(){var e=Rc(eo());return e.copy=function(){return nr(e,tl()).exponent(e.exponent())},qt.apply(e,arguments)}function AC(){return tl.apply(null,arguments).exponent(.5)}const On=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Cc,scaleDiverging:Fg,scaleDivergingLog:Wg,scaleDivergingPow:tl,scaleDivergingSqrt:AC,scaleDivergingSymlog:qg,scaleIdentity:yg,scaleImplicit:js,scaleLinear:mg,scaleLog:bg,scaleOrdinal:Ac,scalePoint:e_,scalePow:Lc,scaleQuantile:Og,scaleQuantize:Pg,scaleRadial:xg,scaleSequential:Rg,scaleSequentialLog:Lg,scaleSequentialPow:el,scaleSequentialQuantile:Bg,scaleSequentialSqrt:_C,scaleSequentialSymlog:zg,scaleSqrt:H_,scaleSymlog:wg,scaleThreshold:Sg,scaleTime:SC,scaleUtc:EC,tickFormat:pg},Symbol.toStringTag,{value:"Module"}));var Vt=e=>e.chartData,rl=_([Vt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),nl=(e,t,r,n)=>n?rl(e):Vt(e),Ug=(e,t,r)=>r?rl(e):Vt(e);function $t(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(U(t)&&U(r))return!0}return!1}function Ph(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Vg(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(U(r))i=r;else if(typeof r=="function")return;if(U(n))a=n;else if(typeof n=="function")return;var o=[i,a];if($t(o))return o}}function CC(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if($t(n))return Ph(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,u;if(i==="auto")t!=null&&(o=Math.min(...t));else if(R(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&Nd.test(i)){var s=Nd.exec(i);if(s==null||s[1]==null||t==null)o=void 0;else{var c=+s[1];o=t[0]-c}}else o=t?.[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if(R(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t?.[1]))}catch{}else if(typeof a=="string"&&$d.test(a)){var l=$d.exec(a);if(l==null||l[1]==null||t==null)u=void 0;else{var f=+l[1];u=t[1]+f}}else u=t?.[1];var d=[o,u];if($t(d))return t==null?d:Ph(d,t,r)}}}var rn=1e9,IC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},al,ue=!0,st="[DecimalError] ",wr=st+"Invalid argument: ",il=st+"Exponent out of range: ",nn=Math.floor,fr=Math.pow,TC=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Je,Pe=1e7,ae=7,Kg=9007199254740991,va=nn(Kg/ae),$={};$.absoluteValue=$.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};$.comparedTo=$.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};$.decimalPlaces=$.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ae;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};$.dividedBy=$.div=function(e){return kt(this,new this.constructor(e))};$.dividedToIntegerBy=$.idiv=function(e){var t=this,r=t.constructor;return te(kt(t,new r(e),0,1),r.precision)};$.equals=$.eq=function(e){return!this.cmp(e)};$.exponent=function(){return de(this)};$.greaterThan=$.gt=function(e){return this.cmp(e)>0};$.greaterThanOrEqualTo=$.gte=function(e){return this.cmp(e)>=0};$.isInteger=$.isint=function(){return this.e>this.d.length-2};$.isNegative=$.isneg=function(){return this.s<0};$.isPositive=$.ispos=function(){return this.s>0};$.isZero=function(){return this.s===0};$.lessThan=$.lt=function(e){return this.cmp(e)<0};$.lessThanOrEqualTo=$.lte=function(e){return this.cmp(e)<1};$.logarithm=$.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Je))throw Error(st+"NaN");if(r.s<1)throw Error(st+(r.s?"NaN":"-Infinity"));return r.eq(Je)?new n(0):(ue=!1,t=kt(Ln(r,a),Ln(e,a),a),ue=!0,te(t,i))};$.minus=$.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Yg(t,e):Hg(t,(e.s=-e.s,e))};$.modulo=$.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(st+"NaN");return r.s?(ue=!1,t=kt(r,e,0,1).times(e),ue=!0,r.minus(t)):te(new n(r),i)};$.naturalExponential=$.exp=function(){return Gg(this)};$.naturalLogarithm=$.ln=function(){return Ln(this)};$.negated=$.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};$.plus=$.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Hg(t,e):Yg(t,(e.s=-e.s,e))};$.precision=$.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(wr+e);if(t=de(i)+1,n=i.d.length-1,r=n*ae+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};$.squareRoot=$.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(st+"NaN")}for(e=de(u),ue=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=wt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=nn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(kt(u,a,o+2)).times(.5),wt(a.d).slice(0,o)===(t=wt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(te(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ue=!0,te(n,r)};$.times=$.mul=function(e){var t,r,n,i,a,o,u,s,c,l=this,f=l.constructor,d=l.d,v=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,s=d.length,c=v.length,s<c&&(a=d,d=v,v=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+v[n]*d[i-n-1]+t,a[i--]=u%Pe|0,t=u/Pe|0;a[i]=(a[i]+t)%Pe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ue?te(e,f.precision):e};$.toDecimalPlaces=$.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Et(e,0,rn),t===void 0?t=n.rounding:Et(t,0,8),te(r,e+de(r)+1,t))};$.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ir(n,!0):(Et(e,0,rn),t===void 0?t=i.rounding:Et(t,0,8),n=te(new i(n),e+1,t),r=Ir(n,!0,e+1)),r};$.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Ir(i):(Et(e,0,rn),t===void 0?t=a.rounding:Et(t,0,8),n=te(new a(i),e+de(i)+1,t),r=Ir(n.abs(),!1,e+de(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};$.toInteger=$.toint=function(){var e=this,t=e.constructor;return te(new t(e),de(e)+1,t.rounding)};$.toNumber=function(){return+this};$.toPower=$.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,l=+(e=new s(e));if(!e.s)return new s(Je);if(u=new s(u),!u.s){if(e.s<1)throw Error(st+"Infinity");return u}if(u.eq(Je))return u;if(n=s.precision,e.eq(Je))return te(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=l<0?-l:l)<=Kg){for(i=new s(Je),t=Math.ceil(n/ae+4),ue=!1;r%2&&(i=i.times(u),Eh(i.d,t)),r=nn(r/2),r!==0;)u=u.times(u),Eh(u.d,t);return ue=!0,e.s<0?new s(Je).div(i):te(i,n)}}else if(a<0)throw Error(st+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ue=!1,i=e.times(Ln(u,n+c)),ue=!0,i=Gg(i),i.s=a,i};$.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=de(i),n=Ir(i,r<=a.toExpNeg||r>=a.toExpPos)):(Et(e,1,rn),t===void 0?t=a.rounding:Et(t,0,8),i=te(new a(i),e,t),r=de(i),n=Ir(i,e<=r||r<=a.toExpNeg,e)),n};$.toSignificantDigits=$.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Et(e,1,rn),t===void 0?t=n.rounding:Et(t,0,8)),te(new n(r),e,t)};$.toString=$.valueOf=$.val=$.toJSON=$[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=de(e),r=e.constructor;return Ir(e,t<=r.toExpNeg||t>=r.toExpPos)};function Hg(e,t){var r,n,i,a,o,u,s,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),ue?te(t,f):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(f/ae),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Pe|0,s[a]%=Pe;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,ue?te(t,f):t}function Et(e,t,r){if(e!==~~e||e<t||e>r)throw Error(wr+e)}function wt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ae-n.length,r&&(a+=Xt(r)),a+=n;o=e[t],n=o+"",r=ae-n.length,r&&(a+=Xt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var kt=function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Pe|0,o=a/Pe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Pe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,l,f,d,v,h,m,p,y,g,b,x,P,O,E,A,k=n.constructor,N=n.s==i.s?1:-1,I=n.d,M=i.d;if(!n.s)return new k(n);if(!i.s)throw Error(st+"Division by zero");for(s=n.e-i.e,E=M.length,P=I.length,v=new k(N),h=v.d=[],c=0;M[c]==(I[c]||0);)++c;if(M[c]>(I[c]||0)&&--s,a==null?g=a=k.precision:o?g=a+(de(n)-de(i))+1:g=a,g<0)return new k(0);if(g=g/ae+2|0,c=0,E==1)for(l=0,M=M[0],g++;(c<P||l)&&g--;c++)b=l*Pe+(I[c]||0),h[c]=b/M|0,l=b%M|0;else{for(l=Pe/(M[0]+1)|0,l>1&&(M=e(M,l),I=e(I,l),E=M.length,P=I.length),x=E,m=I.slice(0,E),p=m.length;p<E;)m[p++]=0;A=M.slice(),A.unshift(0),O=M[0],M[1]>=Pe/2&&++O;do l=0,u=t(M,m,E,p),u<0?(y=m[0],E!=p&&(y=y*Pe+(m[1]||0)),l=y/O|0,l>1?(l>=Pe&&(l=Pe-1),f=e(M,l),d=f.length,p=m.length,u=t(f,m,d,p),u==1&&(l--,r(f,E<d?A:M,d))):(l==0&&(u=l=1),f=M.slice()),d=f.length,d<p&&f.unshift(0),r(m,f,p),u==-1&&(p=m.length,u=t(M,m,E,p),u<1&&(l++,r(m,E<p?A:M,p))),p=m.length):u===0&&(l++,m=[0]),h[c++]=l,u&&m[0]?m[p++]=I[x]||0:(m=[I[x]],p=1);while((x++<P||m[0]!==void 0)&&g--)}return h[0]||h.shift(),v.e=s,te(v,o?a+de(v)+1:a)}}();function Gg(e,t){var r,n,i,a,o,u,s=0,c=0,l=e.constructor,f=l.precision;if(de(e)>16)throw Error(il+de(e));if(!e.s)return new l(Je);for(ue=!1,u=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(fr(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new l(Je),l.precision=u;;){if(i=te(i.times(e),u),r=r.times(++s),o=a.plus(kt(i,r,u)),wt(o.d).slice(0,u)===wt(a.d).slice(0,u)){for(;c--;)a=te(a.times(a),u);return l.precision=f,t==null?(ue=!0,te(a,f)):a}a=o}}function de(e){for(var t=e.e*ae,r=e.d[0];r>=10;r/=10)t++;return t}function $u(e,t,r){if(t>e.LN10.sd())throw ue=!0,r&&(e.precision=r),Error(st+"LN10 precision limit exceeded");return te(new e(e.LN10),t)}function Xt(e){for(var t="";e--;)t+="0";return t}function Ln(e,t){var r,n,i,a,o,u,s,c,l,f=1,d=10,v=e,h=v.d,m=v.constructor,p=m.precision;if(v.s<1)throw Error(st+(v.s?"NaN":"-Infinity"));if(v.eq(Je))return new m(0);if(t==null?(ue=!1,c=p):c=t,v.eq(10))return t==null&&(ue=!0),$u(m,c);if(c+=d,m.precision=c,r=wt(h),n=r.charAt(0),a=de(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=wt(v.d),n=r.charAt(0),f++;a=de(v),n>1?(v=new m("0."+r),a++):v=new m(n+"."+r.slice(1))}else return s=$u(m,c+2,p).times(a+""),v=Ln(new m(n+"."+r.slice(1)),c-d).plus(s),m.precision=p,t==null?(ue=!0,te(v,p)):v;for(u=o=v=kt(v.minus(Je),v.plus(Je),c),l=te(v.times(v),c),i=3;;){if(o=te(o.times(l),c),s=u.plus(kt(o,new m(i),c)),wt(s.d).slice(0,c)===wt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus($u(m,c+2,p).times(a+""))),u=kt(u,new m(f),c),m.precision=p,t==null?(ue=!0,te(u,p)):u;u=s,i+=2}}function Sh(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=nn(r/ae),e.d=[],n=(r+1)%ae,r<0&&(n+=ae),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ae;n<i;)e.d.push(+t.slice(n,n+=ae));t=t.slice(n),n=ae-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ue&&(e.e>va||e.e<-va))throw Error(il+r)}else e.s=0,e.e=0,e.d=[0];return e}function te(e,t,r){var n,i,a,o,u,s,c,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ae,i=t,c=f[l=0];else{if(l=Math.ceil((n+1)/ae),a=f.length,l>=a)return e;for(c=a=f[l],o=1;a>=10;a/=10)o++;n%=ae,i=n-ae+o}if(r!==void 0&&(a=fr(10,o-i-1),u=c/a%10|0,s=t<0||f[l+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/fr(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return s?(a=de(e),f.length=1,t=t-a-1,f[0]=fr(10,(ae-t%ae)%ae),e.e=nn(-t/ae)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=fr(10,ae-n),f[l]=i>0?(c/fr(10,o-i)%fr(10,i)|0)*a:0),s)for(;;)if(l==0){(f[0]+=a)==Pe&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=Pe)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ue&&(e.e>va||e.e<-va))throw Error(il+de(e));return e}function Yg(e,t){var r,n,i,a,o,u,s,c,l,f,d=e.constructor,v=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ue?te(t,v):t;if(s=e.d,f=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(l=o<0,l?(r=s,o=-o,u=f.length):(r=f,n=c,u=s.length),i=Math.max(Math.ceil(v/ae),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=f.length,l=i<u,l&&(u=i),i=0;i<u;i++)if(s[i]!=f[i]){l=s[i]<f[i];break}o=0}for(l&&(r=s,s=f,f=r,t.s=-t.s),u=s.length,i=f.length-u;i>0;--i)s[u++]=0;for(i=f.length;i>o;){if(s[--i]<f[i]){for(a=i;a&&s[--a]===0;)s[a]=Pe-1;--s[a],s[i]+=Pe}s[i]-=f[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,ue?te(t,v):t):new d(0)}function Ir(e,t,r){var n,i=de(e),a=wt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Xt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Xt(-i-1)+a,r&&(n=r-o)>0&&(a+=Xt(n))):i>=o?(a+=Xt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Xt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Xt(n))),e.s<0?"-"+a:a}function Eh(e,t){if(e.length>t)return e.length=t,!0}function Xg(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(wr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Sh(o,a.toString())}else if(typeof a!="string")throw Error(wr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,TC.test(a))Sh(o,a);else throw Error(wr+a)}if(i.prototype=$,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=Xg,i.config=i.set=jC,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function jC(e){if(!e||typeof e!="object")throw Error(st+"Object expected");var t,r,n,i=["precision",1,rn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(nn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(wr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(wr+r+": "+n);return this}var al=Xg(IC);Je=new al(1);const Z=al;function Zg(e){var t;return e===0?t=1:t=Math.floor(new Z(e).abs().log(10).toNumber())+1,t}function Qg(e,t,r){for(var n=new Z(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Jg=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},e0=(e,t,r)=>{if(e.lte(0))return new Z(0);var n=Zg(e.toNumber()),i=new Z(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new Z(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?new Z(s.toNumber()):new Z(Math.ceil(s.toNumber()))},kC=(e,t,r)=>{var n=new Z(1),i=new Z(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Z(10).pow(Zg(e)-1),i=new Z(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Z(Math.floor(e)))}else e===0?i=new Z(Math.floor((t-1)/2)):r||(i=new Z(Math.floor(e)));for(var o=Math.floor((t-1)/2),u=[],s=0;s<t;s++)u.push(i.add(new Z(s-o).mul(n)).toNumber());return u},t0=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new Z(0),tickMin:new Z(0),tickMax:new Z(0)};var o=e0(new Z(r).sub(t).div(n-1),i,a),u;t<=0&&r>=0?u=new Z(0):(u=new Z(t).add(r).div(2),u=u.sub(new Z(u).mod(o)));var s=Math.ceil(u.sub(t).div(o).toNumber()),c=Math.ceil(new Z(r).sub(u).div(o).toNumber()),l=s+c+1;return l>n?t0(t,r,n,i,a+1):(l<n&&(c=r>0?c+(n-l):c,s=r>0?s:s+(n-l)),{step:o,tickMin:u.sub(new Z(s).mul(o)),tickMax:u.add(new Z(c).mul(o))})},MC=function(t){var[r,n]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),[u,s]=Jg([r,n]);if(u===-1/0||s===1/0){var c=s===1/0?[u,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),s];return r>n?c.reverse():c}if(u===s)return kC(u,i,a);var{step:l,tickMin:f,tickMax:d}=t0(u,s,o,a,0),v=Qg(f,d.add(new Z(.1).mul(l)),l);return r>n?v.reverse():v},DC=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,u]=Jg([n,i]);if(o===-1/0||u===1/0)return[n,i];if(o===u)return[o];var s=Math.max(r,2),c=e0(new Z(u).sub(o).div(s-1),a,0),l=[...Qg(new Z(o),new Z(u),c),u];return a===!1&&(l=l.map(f=>Math.round(f))),n>i?l.reverse():l},r0=e=>e.rootProps.maxBarSize,NC=e=>e.rootProps.barGap,n0=e=>e.rootProps.barCategoryGap,$C=e=>e.rootProps.barSize,Jn=e=>e.rootProps.stackOffset,i0=e=>e.rootProps.reverseStackOrder,ol=e=>e.options.chartName,ul=e=>e.rootProps.syncId,a0=e=>e.rootProps.syncMethod,sl=e=>e.options.eventEmitter,RC=e=>e.rootProps.baseValue,$e={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},sr={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},yt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},to=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function ro(e,t,r){if(r!=="auto")return r;if(e!=null)return Bt(e,t)?"category":"number"}function _h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ha(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_h(Object(r),!0).forEach(function(n){LC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LC(e,t,r){return(t=zC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zC(e){var t=BC(e,"string");return typeof t=="symbol"?t:t+""}function BC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ah={allowDataOverflow:sr.allowDataOverflow,allowDecimals:sr.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:sr.angleAxisId,includeHidden:!1,name:void 0,reversed:sr.reversed,scale:sr.scale,tick:sr.tick,tickCount:void 0,ticks:void 0,type:sr.type,unit:void 0},Ch={allowDataOverflow:yt.allowDataOverflow,allowDecimals:yt.allowDecimals,allowDuplicatedCategory:yt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:yt.radiusAxisId,includeHidden:yt.includeHidden,name:void 0,reversed:yt.reversed,scale:yt.scale,tick:yt.tick,tickCount:yt.tickCount,ticks:void 0,type:yt.type,unit:void 0},FC=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},cl=_([FC,zy],(e,t)=>{var r;if(e!=null)return e;var n=(r=ro(t,"angleAxis",Ah.type))!==null&&r!==void 0?r:"category";return ha(ha({},Ah),{},{type:n})}),WC=(e,t)=>e.polarAxis.radiusAxis[t],ll=_([WC,zy],(e,t)=>{var r;if(e!=null)return e;var n=(r=ro(t,"radiusAxis",Ch.type))!==null&&r!==void 0?r:"category";return ha(ha({},Ch),{},{type:n})}),no=e=>e.polarOptions,fl=_([Ft,Wt,ye],tg),o0=_([no,fl],(e,t)=>{if(e!=null)return ot(e.innerRadius,t,0)}),u0=_([no,fl],(e,t)=>{if(e!=null)return ot(e.outerRadius,t,t*.8)}),qC=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},s0=_([no],qC);_([cl,s0],to);var c0=_([fl,o0,u0],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});_([ll,c0],to);var l0=_([Q,no,o0,u0,Ft,Wt],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:u,startAngle:s,endAngle:c}=t;return{cx:ot(o,i,i/2),cy:ot(u,a,a/2),innerRadius:r,outerRadius:n,startAngle:s,endAngle:c,clockWise:!1}}}),be=(e,t)=>t,ei=(e,t,r)=>r;function io(e){return e?.id}function f0(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(u=>{var s,c=(s=u.data)!==null&&s!==void 0?s:n;if(!(c==null||c.length===0)){var l=io(u);c.forEach((f,d)=>{var v=a==null||i?d:String(me(f,a,null)),h=me(f,u.dataKey,0),m;o.has(v)?m=o.get(v):m={},Object.assign(m,{[l]:h}),o.set(v,m)})}}),Array.from(o.values())}function ao(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var oo=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function uo(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function UC(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var Ae=e=>{var t=Q(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},an=e=>e.tooltip.settings.axisId;function VC(e){if(e in On)return On[e]();var t="scale".concat(Fn(e));if(t in On)return On[t]()}function Ih(e){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(a){function o(){return a.apply(this,arguments)}return o.toString=function(){return a.toString()},o}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var o=i[0],u=i[1];return o<=u?a>=o&&a<=u:a>=u&&a<=o},bandwidth:r?()=>r.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,o)=>{var u=e(a);if(u!=null){if(e.bandwidth&&o!==null&&o!==void 0&&o.position){var s=e.bandwidth();switch(o.position){case"middle":u+=s/2;break;case"end":u+=s;break}}return u}}}}function Th(e,t,r){if(typeof e=="function")return Ih(e.copy().domain(t).range(r));if(e!=null){var n=VC(e);if(n!=null)return n.domain(t).range(r),Ih(n)}}var d0=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!$t(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];U(a)&&((r===void 0||a<r)&&(r=a),(n===void 0||a>n)&&(n=a))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function jh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jh(Object(r),!0).forEach(function(n){KC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KC(e,t,r){return(t=HC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HC(e){var t=GC(e,"string");return typeof t=="symbol"?t:t+""}function GC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ns=[0,"auto"],xe={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},v0=(e,t)=>e.cartesianAxis.xAxis[t],Kt=(e,t)=>{var r=v0(e,t);return r??xe},Oe={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Ns,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Kn},h0=(e,t)=>e.cartesianAxis.yAxis[t],Ht=(e,t)=>{var r=h0(e,t);return r??Oe},p0={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},dl=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??p0},Re=(e,t,r)=>{switch(t){case"xAxis":return Kt(e,r);case"yAxis":return Ht(e,r);case"zAxis":return dl(e,r);case"angleAxis":return cl(e,r);case"radiusAxis":return ll(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},YC=(e,t,r)=>{switch(t){case"xAxis":return Kt(e,r);case"yAxis":return Ht(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},on=(e,t,r)=>{switch(t){case"xAxis":return Kt(e,r);case"yAxis":return Ht(e,r);case"angleAxis":return cl(e,r);case"radiusAxis":return ll(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},m0=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function vl(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var so=e=>e.graphicalItems.cartesianItems,XC=_([be,ei],vl),hl=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),ti=_([so,Re,XC],hl,{memoizeOptions:{resultEqualityCheck:uo}}),y0=_([ti],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(ao)),g0=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),ZC=_([ti],g0),pl=e=>e.map(t=>t.data).filter(Boolean).flat(1),QC=_([ti],pl,{memoizeOptions:{resultEqualityCheck:uo}}),ml=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},yl=_([QC,nl],ml),gl=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:me(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:me(i,n)}))):e.map(n=>({value:n})),co=_([yl,Re,ti],gl);function b0(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function ki(e){if(St(e)||e instanceof Date){var t=Number(e);if(U(t))return t}}function kh(e){if(Array.isArray(e)){var t=[ki(e[0]),ki(e[1])];return $t(t)?t:void 0}var r=ki(e);if(r!=null)return[r,r]}function Rt(e){return e.map(ki).filter(Be)}function JC(e,t,r){return!r||typeof t!="number"||dt(t)?[]:r.length?Rt(r.flatMap(n=>{var i=me(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!U(a)||!U(o)))return[t-a,t+o]})):[]}var we=e=>{var t=Ae(e),r=an(e);return on(e,t,r)},ri=_([we],e=>e?.dataKey),eI=_([y0,nl,we],f0),w0=(e,t,r,n)=>{var i={},a=t.reduce((o,u)=>{if(u.stackId==null)return o;var s=o[u.stackId];return s==null&&(s=[]),s.push(u),o[u.stackId]=s,o},i);return Object.fromEntries(Object.entries(a).map(o=>{var[u,s]=o,c=n?[...s].reverse():s,l=c.map(io);return[u,{stackedData:yP(e,l,r),graphicalItems:c}]}))},ma=_([eI,y0,Jn,i0],w0),x0=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=OP(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},tI=_([Re],e=>e.allowDataOverflow),bl=e=>{var t;if(e==null||!("domain"in e))return Ns;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Rt(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Ns},wl=_([Re],bl),xl=_([wl,tI],Vg),rI=_([ma,Vt,be,xl],x0,{memoizeOptions:{resultEqualityCheck:oo}}),lo=e=>e.errorBars,nI=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>b0(r,n)),ya=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),u=Math.max(...a);return[o,u]}},Ol=(e,t,r,n,i)=>{var a,o;if(r.length>0&&e.forEach(u=>{r.forEach(s=>{var c,l,f=(c=n[s.id])===null||c===void 0?void 0:c.filter(y=>b0(i,y)),d=me(u,(l=t.dataKey)!==null&&l!==void 0?l:s.dataKey),v=JC(u,d,f);if(v.length>=2){var h=Math.min(...v),m=Math.max(...v);(a==null||h<a)&&(a=h),(o==null||m>o)&&(o=m)}var p=kh(d);p!=null&&(a=a==null?p[0]:Math.min(a,p[0]),o=o==null?p[1]:Math.max(o,p[1]))})}),t?.dataKey!=null&&e.forEach(u=>{var s=kh(me(u,t.dataKey));s!=null&&(a=a==null?s[0]:Math.min(a,s[0]),o=o==null?s[1]:Math.max(o,s[1]))}),U(a)&&U(o))return[a,o]},iI=_([yl,Re,ZC,lo,be],Ol,{memoizeOptions:{resultEqualityCheck:oo}});function aI(e){var{value:t}=e;if(St(t)||t instanceof Date)return t}var oI=(e,t,r)=>{var n=e.map(aI).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&Am(n))?ag(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},O0=e=>e.referenceElements.dots,un=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),uI=_([O0,be,ei],un),P0=e=>e.referenceElements.areas,sI=_([P0,be,ei],un),S0=e=>e.referenceElements.lines,cI=_([S0,be,ei],un),E0=(e,t)=>{if(e!=null){var r=Rt(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},lI=_(uI,be,E0),_0=(e,t)=>{if(e!=null){var r=Rt(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},fI=_([sI,be],_0);function dI(e){var t;if(e.x!=null)return Rt([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Rt(r)}function vI(e){var t;if(e.y!=null)return Rt([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Rt(r)}var A0=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?dI(n):vI(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},hI=_([cI,be],A0),pI=_(lI,hI,fI,(e,t,r)=>ya(e,r,t)),Pl=(e,t,r,n,i,a,o,u)=>{if(r!=null)return r;var s=o==="vertical"&&u==="xAxis"||o==="horizontal"&&u==="yAxis",c=s?ya(n,a,i):ya(a,i);return CC(t,c,e.allowDataOverflow)},mI=_([Re,wl,xl,rI,iI,pI,Q,be],Pl,{memoizeOptions:{resultEqualityCheck:oo}}),yI=[0,1],Sl=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:u,type:s}=e,c=Bt(t,a);if(c&&u==null){var l;return ag(0,(l=r?.length)!==null&&l!==void 0?l:0)}return s==="category"?oI(n,e,c):i==="expand"?yI:o}},El=_([Re,Q,yl,co,Jn,be,mI],Sl);function gI(e){return e in On}var C0=(e,t,r)=>{if(e!=null){var{scale:n,type:i}=e;if(n==="auto")return i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof n=="string"){var a="scale".concat(Fn(n));return gI(a)?a:"point"}}},Br=_([Re,m0,ol],C0);function _l(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?Th(e.scale,r,n):Th(t,r,n)}var Al=(e,t,r)=>{var n=bl(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&$t(e))return MC(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&$t(e))return DC(e,t.tickCount,t.allowDecimals)}},Cl=_([El,on,Br],Al),Il=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&$t(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],u=(i=r[0])!==null&&i!==void 0?i:0,s=t[1],c=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(o,u),Math.max(s,c)]}return t},bI=_([Re,El,Cl,be],Il),wI=_(co,Re,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Rt(e.map(f=>f.value))).sort((f,d)=>f-d),i=n[0],a=n[n.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var u=0;u<n.length-1;u++){var s=n[u],c=n[u+1];if(!(s==null||c==null)){var l=c-s;r=Math.min(r,l)}}return r/o}}),I0=_(wI,Q,n0,ye,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!U(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=ot(r,e*a),u=e*a/2;return u-o-(u-o)/a*o}return 0}),xI=(e,t,r)=>{var n=Kt(e,t);return n==null||typeof n.padding!="string"?0:I0(e,"xAxis",t,r,n.padding)},OI=(e,t,r)=>{var n=Ht(e,t);return n==null||typeof n.padding!="string"?0:I0(e,"yAxis",t,r,n.padding)},PI=_(Kt,xI,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),SI=_(Ht,OI,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),EI=_([ye,PI,Ua,qa,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),_I=_([ye,Q,SI,Ua,qa,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),ni=(e,t,r,n)=>{var i;switch(t){case"xAxis":return EI(e,r,n);case"yAxis":return _I(e,r,n);case"zAxis":return(i=dl(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return s0(e);case"radiusAxis":return c0(e,r);default:return}},T0=_([Re,ni],to),AI=_([Br,bI],d0),fo=_([Re,Br,AI,T0],_l);_([ti,lo,be],nI);function j0(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var vo=(e,t)=>t,ho=(e,t,r)=>r,CI=_(Fa,vo,ho,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(j0)),II=_(Wa,vo,ho,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(j0)),k0=(e,t)=>({width:e.width,height:t.height}),TI=(e,t)=>{var r=typeof t.width=="number"?t.width:Kn;return{width:r,height:e.height}},M0=_(ye,Kt,k0),jI=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},kI=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},MI=_(Wt,ye,CI,vo,ho,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var s=k0(t,u);o==null&&(o=jI(t,n,e));var c=n==="top"&&!i||n==="bottom"&&i;a[u.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),DI=_(Ft,ye,II,vo,ho,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var s=TI(t,u);o==null&&(o=kI(t,n,e));var c=n==="left"&&!i||n==="right"&&i;a[u.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),NI=(e,t)=>{var r=Kt(e,t);if(r!=null)return MI(e,r.orientation,r.mirror)},$I=_([ye,Kt,NI,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),RI=(e,t)=>{var r=Ht(e,t);if(r!=null)return DI(e,r.orientation,r.mirror)},LI=_([ye,Ht,RI,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),D0=_(ye,Ht,(e,t)=>{var r=typeof t.width=="number"?t.width:Kn;return{width:r,height:e.height}}),Mh=(e,t,r)=>{switch(t){case"xAxis":return M0(e,r).width;case"yAxis":return D0(e,r).height;default:return}},N0=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,u=Bt(e,n),s=t.map(c=>c.value);if(o&&u&&a==="category"&&i&&Am(s))return s}},Tl=_([Q,co,Re,be],N0),$0=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=Bt(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},jl=_([Q,co,on,be],$0),Dh=_([Q,YC,Br,fo,Tl,jl,ni,Cl,be],(e,t,r,n,i,a,o,u,s)=>{if(t!=null){var c=Bt(e,s);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:s,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:u,range:o,realScaleType:r,scale:n}}}),zI=(e,t,r,n,i,a,o,u,s)=>{if(!(t==null||n==null)){var c=Bt(e,s),{type:l,ticks:f,tickCount:d}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,h=l==="category"&&n.bandwidth?n.bandwidth()/v:0;h=s==="angleAxis"&&a!=null&&a.length>=2?ze(a[0]-a[1])*2*h:h;var m=f||i;return m?m.map((p,y)=>{var g=o?o.indexOf(p):p,b=n.map(g);return U(b)?{index:y,coordinate:b+h,value:p,offset:h}:null}).filter(Be):c&&u?u.map((p,y)=>{var g=n.map(p);return U(g)?{coordinate:g+h,value:p,index:y,offset:h}:null}).filter(Be):n.ticks?n.ticks(d).map((p,y)=>{var g=n.map(p);return U(g)?{coordinate:g+h,value:p,index:y,offset:h}:null}).filter(Be):n.domain().map((p,y)=>{var g=n.map(p);return U(g)?{coordinate:g+h,value:o?o[p]:p,index:y,offset:h}:null}).filter(Be)}},R0=_([Q,on,Br,fo,Cl,ni,Tl,jl,be],zI),BI=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var u=Bt(e,o),{tickCount:s}=t,c=0;return c=o==="angleAxis"&&n?.length>=2?ze(n[0]-n[1])*2*c:c,u&&a?a.map((l,f)=>{var d=r.map(l);return U(d)?{coordinate:d+c,value:l,index:f,offset:c}:null}).filter(Be):r.ticks?r.ticks(s).map((l,f)=>{var d=r.map(l);return U(d)?{coordinate:d+c,value:l,index:f,offset:c}:null}).filter(Be):r.domain().map((l,f)=>{var d=r.map(l);return U(d)?{coordinate:d+c,value:i?i[l]:l,index:f,offset:c}:null}).filter(Be)}},Tr=_([Q,on,fo,ni,Tl,jl,be],BI),jr=_(Re,fo,(e,t)=>{if(!(e==null||t==null))return pa(pa({},e),{},{scale:t})}),FI=_([Re,Br,El,T0],_l),WI=_((e,t,r)=>dl(e,r),FI,(e,t)=>{if(!(e==null||t==null))return pa(pa({},e),{},{scale:t})}),qI=_([Q,Fa,Wa],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),L0=e=>e.options.defaultTooltipEventType,z0=e=>e.options.validateTooltipEventTypes;function B0(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function kl(e,t){var r=L0(e),n=z0(e);return B0(t,r,n)}function UI(e){return L(t=>kl(t,e))}var F0=(e,t)=>{var r,n=Number(t);if(!(dt(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},VI=e=>e.tooltip.settings,Qt={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},KI={itemInteraction:{click:Qt,hover:Qt},axisInteraction:{click:Qt,hover:Qt},keyboardInteraction:Qt,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},W0=Ge({name:"tooltip",initialState:KI,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:oe()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ft(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:oe()},removeTooltipEntrySettings:{reducer(e,t){var r=ft(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:oe()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:HI,replaceTooltipEntrySettings:GI,removeTooltipEntrySettings:YI,setTooltipSettingsState:XI,setActiveMouseOverItemIndex:Ml,mouseLeaveItem:q0,mouseLeaveChart:U0,setActiveClickItemIndex:V0,setMouseOverAxisIndex:K0,setMouseClickAxisIndex:ZI,setSyncInteraction:$s,setKeyboardInteraction:Rs}=W0.actions,QI=W0.reducer;function Nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nh(Object(r),!0).forEach(function(n){JI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JI(e,t,r){return(t=eT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eT(e){var t=tT(e,"string");return typeof t=="symbol"?t:t+""}function tT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rT(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function nT(e){return e.index!=null}var H0=(e,t,r,n)=>{if(t==null)return Qt;var i=rT(e,t,r);if(i==null)return Qt;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(nT(i)){if(a)return Pi(Pi({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Pi(Pi({},Qt),{},{coordinate:i.coordinate})};function iT(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function aT(e,t){var r=iT(e),n=t[0],i=t[1];if(r===void 0)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}function oT(e,t,r){if(r==null||t==null)return!0;var n=me(e,t);return n==null||!$t(r)?!0:aT(n,r)}var Dl=(e,t,r,n)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!U(a))return i;var o=0,u=1/0;t.length>0&&(u=t.length-1);var s=Math.max(o,Math.min(a,u)),c=t[s];return c==null||oT(c,r,n)?String(s):null},G0=(e,t,r,n,i,a,o)=>{if(a!=null){var u=o[0],s=u?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(r){case"horizontal":return{x:c.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:c.coordinate}}}},Y0=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(r==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,i==null&&n!=null){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(o=>{var u;return((u=o.settings)===null||u===void 0?void 0:u.graphicalItemId)===i})},X0=e=>e.options.tooltipPayloadSearcher,sn=e=>e.tooltip;function $h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$h(Object(r),!0).forEach(function(n){uT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uT(e,t,r){return(t=sT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sT(e){var t=cT(e,"string");return typeof t=="symbol"?t:t+""}function cT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lT(e,t){return e??t}var Z0=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:u,computedData:s,dataStartIndex:c,dataEndIndex:l}=r,f=[];return e.reduce((d,v)=>{var h,{dataDefinedOnItem:m,settings:p}=v,y=lT(m,u),g=Array.isArray(y)?Ay(y,c,l):y,b=(h=p?.dataKey)!==null&&h!==void 0?h:n,x=p?.nameKey,P;if(n&&Array.isArray(g)&&!Array.isArray(g[0])&&o==="axis"?P=Cm(g,n,i):P=a(g,t,s,x),Array.isArray(P))P.forEach(E=>{var A=Rh(Rh({},p),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});d.push(Rd({tooltipEntrySettings:A,dataKey:E.dataKey,payload:E.payload,value:me(E.payload,E.dataKey),name:E.name}))});else{var O;d.push(Rd({tooltipEntrySettings:p,dataKey:b,payload:P,value:me(P,b),name:(O=me(P,x))!==null&&O!==void 0?O:p?.name}))}return d},f)}},Nl=_([we,m0,ol],C0),fT=_([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),dT=_([Ae,an],vl),cn=_([fT,we,dT],hl,{memoizeOptions:{resultEqualityCheck:uo}}),vT=_([cn],e=>e.filter(ao)),hT=_([cn],pl,{memoizeOptions:{resultEqualityCheck:uo}}),ln=_([hT,Vt],ml),pT=_([vT,Vt,we],f0),$l=_([ln,we,cn],gl),Q0=_([we],bl),mT=_([we],e=>e.allowDataOverflow),J0=_([Q0,mT],Vg),yT=_([cn],e=>e.filter(ao)),gT=_([pT,yT,Jn,i0],w0),bT=_([gT,Vt,Ae,J0],x0),wT=_([cn],g0),xT=_([ln,we,wT,lo,Ae],Ol,{memoizeOptions:{resultEqualityCheck:oo}}),OT=_([O0,Ae,an],un),PT=_([OT,Ae],E0),ST=_([P0,Ae,an],un),ET=_([ST,Ae],_0),_T=_([S0,Ae,an],un),AT=_([_T,Ae],A0),CT=_([PT,AT,ET],ya),IT=_([we,Q0,J0,bT,xT,CT,Q,Ae],Pl),ii=_([we,Q,ln,$l,Jn,Ae,IT],Sl),TT=_([ii,we,Nl],Al),jT=_([we,ii,TT,Ae],Il),eb=e=>{var t=Ae(e),r=an(e),n=!1;return ni(e,t,r,n)},tb=_([we,eb],to),rb=_([we,Nl,jT,tb],_l),kT=_([Q,$l,we,Ae],N0),MT=_([Q,$l,we,Ae],$0),DT=(e,t,r,n,i,a,o,u)=>{if(t){var{type:s}=t,c=Bt(e,u);if(n){var l=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=s==="category"&&n.bandwidth?n.bandwidth()/l:0;return f=u==="angleAxis"&&i!=null&&i?.length>=2?ze(i[0]-i[1])*2*f:f,c&&o?o.map((d,v)=>{var h=n.map(d);return U(h)?{coordinate:h+f,value:d,index:v,offset:f}:null}).filter(Be):n.domain().map((d,v)=>{var h=n.map(d);return U(h)?{coordinate:h+f,value:a?a[d]:d,index:v,offset:f}:null}).filter(Be)}}},Gt=_([Q,we,Nl,rb,eb,kT,MT,Ae],DT),Rl=_([L0,z0,VI],(e,t,r)=>B0(r.shared,e,t)),nb=e=>e.tooltip.settings.trigger,Ll=e=>e.tooltip.settings.defaultIndex,ai=_([sn,Rl,nb,Ll],H0),kr=_([ai,ln,ri,ii],Dl),ib=_([Gt,kr],F0),zl=_([ai],e=>{if(e)return e.dataKey}),NT=_([ai],e=>{if(e)return e.graphicalItemId}),ab=_([sn,Rl,nb,Ll],Y0),$T=_([Ft,Wt,Q,ye,Gt,Ll,ab],G0),RT=_([ai,$T],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),LT=_([ai],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),zT=_([ab,kr,Vt,ri,ib,X0,Rl],Z0),BT=_([zT],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Lh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lh(Object(r),!0).forEach(function(n){FT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FT(e,t,r){return(t=WT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WT(e){var t=qT(e,"string");return typeof t=="symbol"?t:t+""}function qT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UT=()=>L(we),VT=()=>{var e=UT(),t=L(Gt),r=L(rb);return In(!e||!r?void 0:zh(zh({},e),{},{scale:r}),t)};function Bh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bh(Object(r),!0).forEach(function(n){KT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KT(e,t,r){return(t=HT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HT(e){var t=GT(e,"string");return typeof t=="symbol"?t:t+""}function GT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YT=(e,t,r,n)=>{var i=t.find(a=>a&&a.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:i.coordinate}}return{x:0,y:0}},XT=(e,t,r,n)=>{var i=t.find(c=>c&&c.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return qr(qr(qr({},n),Ee(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:s}=n;return qr(qr(qr({},n),Ee(n.cx,n.cy,u,s)),{},{angle:s,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function ZT(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var ob=(e,t,r,n,i)=>{var a,o=(a=t?.length)!==null&&a!==void 0?a:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<o;u++){var s,c,l,f,d,v=u>0?(s=r[u-1])===null||s===void 0?void 0:s.coordinate:(c=r[o-1])===null||c===void 0?void 0:c.coordinate,h=(l=r[u])===null||l===void 0?void 0:l.coordinate,m=u>=o-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(d=r[u+1])===null||d===void 0?void 0:d.coordinate,p=void 0;if(!(v==null||h==null||m==null))if(ze(h-v)!==ze(m-h)){var y=[];if(ze(m-h)===ze(i[1]-i[0])){p=m;var g=h+i[1]-i[0];y[0]=Math.min(g,(g+v)/2),y[1]=Math.max(g,(g+v)/2)}else{p=v;var b=m+i[1]-i[0];y[0]=Math.min(h,(b+h)/2),y[1]=Math.max(h,(b+h)/2)}var x=[Math.min(h,(p+h)/2),Math.max(h,(p+h)/2)];if(e>x[0]&&e<=x[1]||e>=y[0]&&e<=y[1]){var P;return(P=r[u])===null||P===void 0?void 0:P.index}}else{var O=Math.min(v,m),E=Math.max(v,m);if(e>(O+h)/2&&e<=(E+h)/2){var A;return(A=r[u])===null||A===void 0?void 0:A.index}}}else if(t)for(var k=0;k<o;k++){var N=t[k];if(N!=null){var I=t[k+1],M=t[k-1];if(k===0&&I!=null&&e<=(N.coordinate+I.coordinate)/2||k===o-1&&M!=null&&e>(N.coordinate+M.coordinate)/2||k>0&&k<o-1&&M!=null&&I!=null&&e>(N.coordinate+M.coordinate)/2&&e<=(N.coordinate+I.coordinate)/2)return N.index}}return-1},ub=()=>L(ol),Bl=(e,t)=>t,sb=(e,t,r)=>r,Fl=(e,t,r,n)=>n,QT=_(Gt,e=>ka(e,t=>t.coordinate)),Wl=_([sn,Bl,sb,Fl],H0),ql=_([Wl,ln,ri,ii],Dl),JT=(e,t,r)=>{if(t!=null){var n=sn(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},cb=_([sn,Bl,sb,Fl],Y0),ga=_([Ft,Wt,Q,ye,Gt,Fl,cb],G0),ej=_([Wl,ga],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),lb=_([Gt,ql],F0),tj=_([cb,ql,Vt,ri,lb,X0,Bl],Z0),rj=_([Wl,ql],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),nj=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&ZT(e,o)){var u=PP(e,t),s=ob(u,a,i,r,n),c=YT(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},ij=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var u=TE(e,r);if(u){var s=SP(u,t),c=ob(s,o,a,n,i),l=XT(t,a,c,u);return{activeIndex:String(c),activeCoordinate:l}}}},aj=(e,t,r,n,i,a,o,u)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?nj(e,t,n,i,a,o,u):ij(e,t,r,n,i,a,o)},oj=_(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),uj=_(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values($e)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:UC}});function Fh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fh(Object(r),!0).forEach(function(n){sj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sj(e,t,r){return(t=cj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cj(e){var t=lj(e,"string");return typeof t=="symbol"?t:t+""}function lj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fj={},dj={zIndexMap:Object.values($e).reduce((e,t)=>Wh(Wh({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),fj)},vj=new Set(Object.values($e));function hj(e){return vj.has(e)}var fb=Ge({name:"zIndex",initialState:dj,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:oe()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!hj(r)&&delete e.zIndexMap[r])},prepare:oe()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:oe()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:oe()}}}),{registerZIndexPortal:pj,unregisterZIndexPortal:mj,registerZIndexPortalElement:yj,unregisterZIndexPortalElement:gj}=fb.actions,bj=fb.reducer;function _t(e){var{zIndex:t,children:r}=e,n=tS(),i=n&&t!==void 0&&t!==0,a=Ue(),o=ie();S.useLayoutEffect(()=>i?(o(pj({zIndex:t})),()=>{o(mj({zIndex:t}))}):Dr,[o,t,i]);var u=L(s=>oj(s,t,a));return i?u?rm.createPortal(r,u):null:r}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ls.apply(null,arguments)}function qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qh(Object(r),!0).forEach(function(n){wj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wj(e,t,r){return(t=xj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xj(e){var t=Oj(e,"string");return typeof t=="symbol"?t:t+""}function Oj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pj(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return S.isValidElement(t)?S.cloneElement(t,n):S.createElement(r,n)}function Sj(e){var t,{coordinate:r,payload:n,index:i,offset:a,tooltipAxisBandSize:o,layout:u,cursor:s,tooltipEventType:c,chartName:l}=e,f=r,d=n,v=i;if(!s||!f||l!=="ScatterChart"&&c!=="axis")return null;var h,m,p;if(l==="ScatterChart")h=f,m=US,p=$e.cursorLine;else if(l==="BarChart")h=VS(u,f,a,o),m=Ec,p=$e.cursorRectangle;else if(u==="radial"&&Tm(f)){var{cx:y,cy:g,radius:b,startAngle:x,endAngle:P}=rg(f);h={cx:y,cy:g,startAngle:x,endAngle:P,innerRadius:b,outerRadius:b},m=ig,p=$e.cursorLine}else h={points:DE(u,f,a)},m=Sc,p=$e.cursorLine;var O=typeof s=="object"&&"className"in s?s.className:void 0,E=Si(Si(Si(Si({stroke:"#ccc",pointerEvents:"none"},a),h),Aa(s)),{},{payload:d,payloadIndex:v,className:ne("recharts-tooltip-cursor",O)});return w.createElement(_t,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:p},w.createElement(Pj,{cursor:s,cursorComp:m,cursorProps:E}))}function Ej(e){var t=VT(),r=Ly(),n=Nr(),i=ub();return t==null||r==null||n==null||i==null?null:w.createElement(Sj,Ls({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var Ul=S.createContext(null),_j=()=>S.useContext(Ul),Ru={exports:{}},Uh;function Aj(){return Uh||(Uh=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,l){this.fn=s,this.context=c,this.once=l||!1}function a(s,c,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var v=new i(l,f||s,d),h=r?r+c:c;return s._events[h]?s._events[h].fn?s._events[h]=[s._events[h],v]:s._events[h].push(v):(s._events[h]=v,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],l,f;if(this._eventsCount===0)return c;for(f in l=this._events)t.call(l,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},u.prototype.listeners=function(c){var l=r?r+c:c,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,v=f.length,h=new Array(v);d<v;d++)h[d]=f[d].fn;return h},u.prototype.listenerCount=function(c){var l=r?r+c:c,f=this._events[l];return f?f.fn?1:f.length:0},u.prototype.emit=function(c,l,f,d,v,h){var m=r?r+c:c;if(!this._events[m])return!1;var p=this._events[m],y=arguments.length,g,b;if(p.fn){switch(p.once&&this.removeListener(c,p.fn,void 0,!0),y){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,l),!0;case 3:return p.fn.call(p.context,l,f),!0;case 4:return p.fn.call(p.context,l,f,d),!0;case 5:return p.fn.call(p.context,l,f,d,v),!0;case 6:return p.fn.call(p.context,l,f,d,v,h),!0}for(b=1,g=new Array(y-1);b<y;b++)g[b-1]=arguments[b];p.fn.apply(p.context,g)}else{var x=p.length,P;for(b=0;b<x;b++)switch(p[b].once&&this.removeListener(c,p[b].fn,void 0,!0),y){case 1:p[b].fn.call(p[b].context);break;case 2:p[b].fn.call(p[b].context,l);break;case 3:p[b].fn.call(p[b].context,l,f);break;case 4:p[b].fn.call(p[b].context,l,f,d);break;default:if(!g)for(P=1,g=new Array(y-1);P<y;P++)g[P-1]=arguments[P];p[b].fn.apply(p[b].context,g)}}return!0},u.prototype.on=function(c,l,f){return a(this,c,l,f,!1)},u.prototype.once=function(c,l,f){return a(this,c,l,f,!0)},u.prototype.removeListener=function(c,l,f,d){var v=r?r+c:c;if(!this._events[v])return this;if(!l)return o(this,v),this;var h=this._events[v];if(h.fn)h.fn===l&&(!d||h.once)&&(!f||h.context===f)&&o(this,v);else{for(var m=0,p=[],y=h.length;m<y;m++)(h[m].fn!==l||d&&!h[m].once||f&&h[m].context!==f)&&p.push(h[m]);p.length?this._events[v]=p.length===1?p[0]:p:o(this,v)}return this},u.prototype.removeAllListeners=function(c){var l;return c?(l=r?r+c:c,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(Ru)),Ru.exports}var Cj=Aj();const Ij=zt(Cj);var zn=new Ij,zs="recharts.syncEvent.tooltip",Vh="recharts.syncEvent.brush",db=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!dt(r))return e[r]}},Tj={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},vb=Ge({name:"options",initialState:Tj,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),jj=vb.reducer,{createEventEmitter:kj}=vb.actions;function Mj(e){return e.tooltip.syncInteraction}var Dj={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},hb=Ge({name:"chartData",initialState:Dj,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:Bs,setDataStartEndIndexes:Nj,setComputedData:$j}=hb.actions,Rj=hb.reducer,Lj=["x","y"];function Kh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kh(Object(r),!0).forEach(function(n){zj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zj(e,t,r){return(t=Bj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bj(e){var t=Fj(e,"string");return typeof t=="symbol"?t:t+""}function Fj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wj(e,t){if(e==null)return{};var r,n,i=qj(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function qj(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Uj(){var e=L(ul),t=L(sl),r=ie(),n=L(a0),i=L(Gt),a=Nr(),o=Hn(),u=L(s=>s.rootProps.className);S.useEffect(()=>{if(e==null)return Dr;var s=(c,l,f)=>{if(t!==f&&e===c){if(n==="index"){var d;if(o&&l!==null&&l!==void 0&&(d=l.payload)!==null&&d!==void 0&&d.coordinate&&l.payload.sourceViewBox){var v=l.payload.coordinate,{x:h,y:m}=v,p=Wj(v,Lj),{x:y,y:g,width:b,height:x}=l.payload.sourceViewBox,P=Ur(Ur({},p),{},{x:o.x+(b?(h-y)/b:0)*o.width,y:o.y+(x?(m-g)/x:0)*o.height});r(Ur(Ur({},l),{},{payload:Ur(Ur({},l.payload),{},{coordinate:P})}))}else r(l);return}if(i!=null){var O;if(typeof n=="function"){var E={activeTooltipIndex:l.payload.index==null?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:l.payload.index==null?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},A=n(i,E);O=i[A]}else n==="value"&&(O=i.find(V=>String(V.value)===l.payload.label));var{coordinate:k}=l.payload;if(O==null||l.payload.active===!1||k==null||o==null){r($s({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:N,y:I}=k,M=Math.min(N,o.x+o.width),C=Math.min(I,o.y+o.height),z={x:a==="horizontal"?O.coordinate:M,y:a==="horizontal"?C:O.coordinate},H=$s({active:l.payload.active,coordinate:z,dataKey:l.payload.dataKey,index:String(O.index),label:l.payload.label,sourceViewBox:l.payload.sourceViewBox,graphicalItemId:l.payload.graphicalItemId});r(H)}}};return zn.on(zs,s),()=>{zn.off(zs,s)}},[u,r,t,e,n,i,a,o])}function Vj(){var e=L(ul),t=L(sl),r=ie();S.useEffect(()=>{if(e==null)return Dr;var n=(i,a,o)=>{t!==o&&e===i&&r(Nj(a))};return zn.on(Vh,n),()=>{zn.off(Vh,n)}},[r,t,e])}function Kj(){var e=ie();S.useEffect(()=>{e(kj())},[e]),Uj(),Vj()}function Hj(e,t,r,n,i,a){var o=L(v=>JT(v,e,t)),u=L(sl),s=L(ul),c=L(a0),l=L(Mj),f=l?.active,d=Hn();S.useEffect(()=>{if(!f&&s!=null&&u!=null){var v=$s({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:d,graphicalItemId:void 0});zn.emit(zs,s,v,u)}},[f,r,o,i,n,u,s,c,a,d])}function Hh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hh(Object(r),!0).forEach(function(n){Gj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gj(e,t,r){return(t=Yj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yj(e){var t=Xj(e,"string");return typeof t=="symbol"?t:t+""}function Xj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zj(e){return e.dataKey}function Qj(e,t){return w.isValidElement(e)?w.cloneElement(e,t):typeof e=="function"?w.createElement(e,t):w.createElement(PS,t)}var Yh=[],Jj={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function pb(e){var t,r,n=He(e,Jj),{active:i,allowEscapeViewBox:a,animationDuration:o,animationEasing:u,content:s,filterNull:c,isAnimationActive:l,offset:f,payloadUniqBy:d,position:v,reverseDirection:h,useTranslate3d:m,wrapperStyle:p,cursor:y,shared:g,trigger:b,defaultIndex:x,portal:P,axisId:O}=n,E=ie(),A=typeof x=="number"?String(x):x;S.useEffect(()=>{E(XI({shared:g,trigger:b,axisId:O,active:i,defaultIndex:A}))},[E,g,b,O,i,A]);var k=Hn(),N=Xy(),I=UI(g),{activeIndex:M,isActive:C}=(t=L(Me=>rj(Me,I,b,A)))!==null&&t!==void 0?t:{},z=L(Me=>tj(Me,I,b,A)),H=L(Me=>lb(Me,I,b,A)),V=L(Me=>ej(Me,I,b,A)),F=z,Y=_j(),W=(r=i??C)!==null&&r!==void 0?r:!1,[ve,fe]=Km([F,W]),Ce=I==="axis"?H:void 0;Hj(I,b,V,Ce,M,W);var Ye=P??Y;if(Ye==null||k==null||I==null)return null;var ke=F??Yh;W||(ke=Yh),c&&ke.length&&(ke=Bm(ke.filter(Me=>Me.value!=null&&(Me.hide!==!0||n.includeHidden)),d,Zj));var At=ke.length>0,or=w.createElement(TS,{allowEscapeViewBox:a,animationDuration:o,animationEasing:u,isAnimationActive:l,active:W,coordinate:V,hasPayload:At,offset:f,position:v,reverseDirection:h,useTranslate3d:m,viewBox:k,wrapperStyle:p,lastBoundingBox:ve,innerRef:fe,hasPortalFromProps:!!P},Qj(s,Gh(Gh({},n),{},{payload:ke,label:Ce,active:W,activeIndex:M,coordinate:V,accessibilityLayer:N})));return w.createElement(w.Fragment,null,rm.createPortal(or,Ye),W&&w.createElement(Ej,{cursor:y,tooltipEventType:I,coordinate:V,payload:ke,index:M}))}var Vl=e=>null;Vl.displayName="Cell";function ek(e,t,r){return(t=tk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tk(e){var t=rk(e,"string");return typeof t=="symbol"?t:t+""}function rk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class nk{constructor(t){ek(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function Xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ik(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xh(Object(r),!0).forEach(function(n){ak(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ak(e,t,r){return(t=ok(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ok(e){var t=uk(e,"string");return typeof t=="symbol"?t:t+""}function uk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sk={cacheSize:2e3,enableCache:!0},mb=ik({},sk),Zh=new nk(mb.cacheSize),ck={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Qh="recharts_measurement_span";function lk(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(u)}var Jh=(e,t)=>{try{var r=document.getElementById(Qh);r||(r=document.createElement("span"),r.setAttribute("id",Qh),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,ck,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Sn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Yn.isSsr)return{width:0,height:0};if(!mb.enableCache)return Jh(t,r);var n=lk(t,r),i=Zh.get(n);if(i)return i;var a=Jh(t,r);return Zh.set(n,a),a},yb;function fk(e,t,r){return(t=dk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(e){var t=vk(e,"string");return typeof t=="symbol"?t:t+""}function vk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ep=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,tp=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hk=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,pk=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,mk={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},yk=["cm","mm","pt","pc","in","Q","px"];function gk(e){return yk.includes(e)}var Kr="NaN";function bk(e,t){return e*mk[t]}class je{static parse(t){var r,[,n,i]=(r=pk.exec(t))!==null&&r!==void 0?r:[];return n==null?je.NaN:new je(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,dt(t)&&(this.unit=""),r!==""&&!hk.test(r)&&(this.num=NaN,this.unit=""),gk(r)&&(this.num=bk(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new je(NaN,""):new je(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new je(NaN,""):new je(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new je(NaN,""):new je(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new je(NaN,""):new je(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return dt(this.num)}}yb=je;fk(je,"NaN",new yb(NaN,""));function gb(e){if(e==null||e.includes(Kr))return Kr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=ep.exec(t))!==null&&r!==void 0?r:[],o=je.parse(n??""),u=je.parse(a??""),s=i==="*"?o.multiply(u):o.divide(u);if(s.isNaN())return Kr;t=t.replace(ep,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,l,f,d]=(c=tp.exec(t))!==null&&c!==void 0?c:[],v=je.parse(l??""),h=je.parse(d??""),m=f==="+"?v.add(h):v.subtract(h);if(m.isNaN())return Kr;t=t.replace(tp,m.toString())}return t}var rp=/\(([^()]*)\)/;function wk(e){for(var t=e,r;(r=rp.exec(t))!=null;){var[,n]=r;t=t.replace(rp,gb(n))}return t}function xk(e){var t=e.replace(/\s+/g,"");return t=wk(t),t=gb(t),t}function Ok(e){try{return xk(e)}catch{return Kr}}function Lu(e){var t=Ok(e.slice(5,-1));return t===Kr?"":t}var Pk=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],Sk=["dx","dy","angle","className","breakAll"];function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fs.apply(null,arguments)}function np(e,t){if(e==null)return{};var r,n,i=Ek(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ek(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bb=/[ \f\n\r\t\v\u2028\u2029]+/,wb=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];le(t)||(r?i=t.toString().split(""):i=t.toString().split(bb));var a=i.map(u=>({word:u,width:Sn(u,n).width})),o=r?0:Sn(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function _k(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var xb=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:u}=a,s=i[i.length-1];if(s&&u!=null&&(t==null||n||s.width+u+r<Number(t)))s.words.push(o),s.width+=u+r;else{var c={words:[o],width:u};i.push(c)}return i},[]),Ob=e=>e.reduce((t,r)=>t.width>r.width?t:r),Ak="…",ip=(e,t,r,n,i,a,o,u)=>{var s=e.slice(0,t),c=wb({breakAll:r,style:n,children:s+Ak});if(!c)return[!1,[]];var l=xb(c.wordsWithComputedWidth,a,o,u),f=l.length>i||Ob(l).width>Number(a);return[f,l]},Ck=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:u,breakAll:s}=e,c=R(a),l=String(o),f=xb(t,n,r,i);if(!c||i)return f;var d=f.length>a||Ob(f).width>Number(n);if(!d)return f;for(var v=0,h=l.length-1,m=0,p;v<=h&&m<=l.length-1;){var y=Math.floor((v+h)/2),g=y-1,[b,x]=ip(l,g,s,u,a,n,r,i),[P]=ip(l,y,s,u,a,n,r,i);if(!b&&!P&&(v=y+1),b&&P&&(h=y-1),!b&&P){p=x;break}m++}return p||f},ap=e=>{var t=le(e)?[]:e.toString().split(bb);return[{words:t,width:void 0}]},Ik=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Yn.isSsr){var u,s,c=wb({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:l,spaceWidth:f}=c;u=l,s=f}else return ap(n);return Ck({breakAll:a,children:n,maxLines:o,style:i},u,s,t,!!r)}return ap(n)},Pb="#808080",Tk={angle:0,breakAll:!1,capHeight:"0.71em",fill:Pb,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},po=S.forwardRef((e,t)=>{var r=He(e,Tk),{x:n,y:i,lineHeight:a,capHeight:o,fill:u,scaleToFit:s,textAnchor:c,verticalAnchor:l}=r,f=np(r,Pk),d=S.useMemo(()=>Ik({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:s,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,s,f.style,f.width]),{dx:v,dy:h,angle:m,className:p,breakAll:y}=f,g=np(f,Sk);if(!St(n)||!St(i)||d.length===0)return null;var b=Number(n)+(R(v)?v:0),x=Number(i)+(R(h)?h:0);if(!U(b)||!U(x))return null;var P;switch(l){case"start":P=Lu("calc(".concat(o,")"));break;case"middle":P=Lu("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:P=Lu("calc(".concat(d.length-1," * -").concat(a,")"));break}var O=[],E=d[0];if(s&&E!=null){var A=E.width,{width:k}=f;O.push("scale(".concat(R(k)&&R(A)?k/A:1,")"))}return m&&O.push("rotate(".concat(m,", ").concat(b,", ").concat(x,")")),O.length&&(g.transform=O.join(" ")),w.createElement("text",Fs({},We(g),{ref:t,x:b,y:x,className:ne("recharts-text",p),textAnchor:c,fill:u.includes("url")?Pb:u}),d.map((N,I)=>{var M=N.words.join(y?"":" ");return w.createElement("tspan",{x:b,dy:I===0?P:a,key:"".concat(M,"-").concat(I)},M)}))});po.displayName="Text";function op(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?op(Object(r),!0).forEach(function(n){jk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):op(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jk(e,t,r){return(t=kk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kk(e){var t=Mk(e,"string");return typeof t=="symbol"?t:t+""}function Mk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dk=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:u,upperWidth:s,lowerWidth:c}=gc(t),l=a,f=a+(s-c)/2,d=(l+f)/2,v=(s+c)/2,h=l+s/2,m=u>=0?1:-1,p=m*n,y=m>0?"end":"start",g=m>0?"start":"end",b=s>=0?1:-1,x=b*n,P=b>0?"end":"start",O=b>0?"start":"end",E=i;if(r==="top"){var A={x:l+s/2,y:o-p,horizontalAnchor:"middle",verticalAnchor:y};return E&&(A.height=Math.max(o-E.y,0),A.width=s),A}if(r==="bottom"){var k={x:f+c/2,y:o+u+p,horizontalAnchor:"middle",verticalAnchor:g};return E&&(k.height=Math.max(E.y+E.height-(o+u),0),k.width=c),k}if(r==="left"){var N={x:d-x,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"};return E&&(N.width=Math.max(N.x-E.x,0),N.height=u),N}if(r==="right"){var I={x:d+v+x,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return E&&(I.width=Math.max(E.x+E.width-I.x,0),I.height=u),I}var M=E?{width:v,height:u}:{};return r==="insideLeft"?gt({x:d+x,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"},M):r==="insideRight"?gt({x:d+v-x,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"},M):r==="insideTop"?gt({x:l+s/2,y:o+p,horizontalAnchor:"middle",verticalAnchor:g},M):r==="insideBottom"?gt({x:f+c/2,y:o+u-p,horizontalAnchor:"middle",verticalAnchor:y},M):r==="insideTopLeft"?gt({x:l+x,y:o+p,horizontalAnchor:O,verticalAnchor:g},M):r==="insideTopRight"?gt({x:l+s-x,y:o+p,horizontalAnchor:P,verticalAnchor:g},M):r==="insideBottomLeft"?gt({x:f+x,y:o+u-p,horizontalAnchor:O,verticalAnchor:y},M):r==="insideBottomRight"?gt({x:f+c-x,y:o+u-p,horizontalAnchor:P,verticalAnchor:y},M):r&&typeof r=="object"&&(R(r.x)||Pr(r.x))&&(R(r.y)||Pr(r.y))?gt({x:a+ot(r.x,v),y:o+ot(r.y,u),horizontalAnchor:"end",verticalAnchor:"end"},M):gt({x:h,y:o+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},M)},Nk=["labelRef"],$k=["content"];function up(e,t){if(e==null)return{};var r,n,i=Rk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Rk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function sp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(r),!0).forEach(function(n){Lk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lk(e,t,r){return(t=zk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zk(e){var t=Bk(e,"string");return typeof t=="symbol"?t:t+""}function Bk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},It.apply(null,arguments)}var Sb=S.createContext(null),Fk=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:u}=e,s=S.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return w.createElement(Sb.Provider,{value:s},u)},Eb=()=>{var e=S.useContext(Sb),t=Hn();return e||(t?gc(t):void 0)},Wk=S.createContext(null),qk=()=>{var e=S.useContext(Wk),t=L(l0);return e||t},Uk=e=>{var{value:t,formatter:r}=e,n=le(e.children)?t:e.children;return typeof r=="function"?r(n):n},Kl=e=>e!=null&&typeof e=="function",Vk=(e,t)=>{var r=ze(t-e),n=Math.min(Math.abs(t-e),360);return r*n},Kk=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:u,cy:s,innerRadius:c,outerRadius:l,startAngle:f,endAngle:d,clockWise:v}=i,h=(c+l)/2,m=Vk(f,d),p=m>=0?1:-1,y,g;switch(t){case"insideStart":y=f+p*a,g=v;break;case"insideEnd":y=d-p*a,g=!v;break;case"end":y=d+p*a,g=v;break;default:throw new Error("Unsupported position ".concat(t))}g=m<=0?g:!g;var b=Ee(u,s,h,y),x=Ee(u,s,h,y+(g?1:-1)*359),P="M".concat(b.x,",").concat(b.y,`
|
|
103
|
+
A`).concat(h,",").concat(h,",0,1,").concat(g?0:1,`,
|
|
104
|
+
`).concat(x.x,",").concat(x.y),O=le(e.id)?En("recharts-radial-line-"):e.id;return w.createElement("text",It({},n,{dominantBaseline:"central",className:ne("recharts-radial-bar-label",o)}),w.createElement("defs",null,w.createElement("path",{id:O,d:P})),w.createElement("textPath",{xlinkHref:"#".concat(O)},r))},Hk=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:s}=e,c=(u+s)/2;if(r==="outside"){var{x:l,y:f}=Ee(n,i,o+t,c);return{x:l,y:f,textAnchor:l>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:v,y:h}=Ee(n,i,d,c);return{x:v,y:h,textAnchor:"middle",verticalAnchor:"middle"}},Mi=e=>e!=null&&"cx"in e&&R(e.cx),Gk={angle:0,offset:5,zIndex:$e.label,position:"middle",textBreakAll:!1};function Yk(e){if(!Mi(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=n*2;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}function Zt(e){var t=He(e,Gk),{viewBox:r,parentViewBox:n,position:i,value:a,children:o,content:u,className:s="",textBreakAll:c,labelRef:l}=t,f=qk(),d=Eb(),v=i==="center"?d:f??d,h,m,p;r==null?h=v:Mi(r)?h=r:h=gc(r);var y=Yk(h);if(!h||le(a)&&le(o)&&!S.isValidElement(u)&&typeof u!="function")return null;var g=Pn(Pn({},t),{},{viewBox:h});if(S.isValidElement(u)){var{labelRef:b}=g,x=up(g,Nk);return S.cloneElement(u,x)}if(typeof u=="function"){var{content:P}=g,O=up(g,$k);if(m=S.createElement(u,O),S.isValidElement(m))return m}else m=Uk(t);var E=We(t);if(Mi(h)){if(i==="insideStart"||i==="insideEnd"||i==="end")return Kk(t,i,m,E,h);p=Hk(h,t.offset,t.position)}else{if(!y)return null;var A=Dk({viewBox:y,position:i,offset:t.offset,parentViewBox:Mi(n)?void 0:n});p=Pn(Pn({x:A.x,y:A.y,textAnchor:A.horizontalAnchor,verticalAnchor:A.verticalAnchor},A.width!==void 0?{width:A.width}:{}),A.height!==void 0?{height:A.height}:{})}return w.createElement(_t,{zIndex:t.zIndex},w.createElement(po,It({ref:l,className:ne("recharts-label",s)},E,p,{textAnchor:_k(E.textAnchor)?E.textAnchor:p.textAnchor,breakAll:c}),m))}Zt.displayName="Label";var Xk=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?w.createElement(Zt,It({key:"label-implicit"},n)):St(e)?w.createElement(Zt,It({key:"label-implicit",value:e},n)):S.isValidElement(e)?e.type===Zt?S.cloneElement(e,Pn({key:"label-implicit"},n)):w.createElement(Zt,It({key:"label-implicit",content:e},n)):Kl(e)?w.createElement(Zt,It({key:"label-implicit",content:e},n)):e&&typeof e=="object"?w.createElement(Zt,It({},e,{key:"label-implicit"},n)):null};function Zk(e){var{label:t,labelRef:r}=e,n=Eb();return Xk(t,n,r)||null}var zu={},Bu={},cp;function Qk(){return cp||(cp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t}(Bu)),Bu}var Fu={},lp;function Jk(){return lp||(lp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t}(Fu)),Fu}var fp;function eM(){return fp||(fp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qk(),r=Jk(),n=oc();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i}(zu)),zu}var Wu,dp;function tM(){return dp||(dp=1,Wu=eM().last),Wu}var rM=tM();const nM=zt(rM);var iM=["valueAccessor"],aM=["dataKey","clockWise","id","textBreakAll","zIndex"];function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ba.apply(null,arguments)}function vp(e,t){if(e==null)return{};var r,n,i=oM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function oM(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var uM=e=>Array.isArray(e.value)?nM(e.value):e.value,_b=S.createContext(void 0),Ab=_b.Provider,Cb=S.createContext(void 0),sM=Cb.Provider;function cM(){return S.useContext(_b)}function lM(){return S.useContext(Cb)}function Di(e){var{valueAccessor:t=uM}=e,r=vp(e,iM),{dataKey:n,clockWise:i,id:a,textBreakAll:o,zIndex:u}=r,s=vp(r,aM),c=cM(),l=lM(),f=c||l;return!f||!f.length?null:w.createElement(_t,{zIndex:u??$e.label},w.createElement(Pt,{className:"recharts-label-list"},f.map((d,v)=>{var h,m=le(n)?t(d,v):me(d.payload,n),p=le(a)?{}:{id:"".concat(a,"-").concat(v)};return w.createElement(Zt,ba({key:"label-".concat(v)},We(d),s,p,{fill:(h=r.fill)!==null&&h!==void 0?h:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:o,viewBox:d.viewBox,index:v,zIndex:0}))})))}Di.displayName="LabelList";function Ib(e){var{label:t}=e;return t?t===!0?w.createElement(Di,{key:"labelList-implicit"}):w.isValidElement(t)||Kl(t)?w.createElement(Di,{key:"labelList-implicit",content:t}):typeof t=="object"?w.createElement(Di,ba({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var fM={radiusAxis:{},angleAxis:{}},Tb=Ge({name:"polarAxis",initialState:fM,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:G2,removeRadiusAxis:Y2,addAngleAxis:X2,removeAngleAxis:Z2}=Tb.actions,dM=Tb.reducer;function jb(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var Ei={exports:{}},J={};/** @license React v17.0.2
|
|
105
|
+
* react-is.production.min.js
|
|
106
|
+
*
|
|
107
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the MIT license found in the
|
|
110
|
+
* LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/var hp;function vM(){if(hp)return J;hp=1;var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,s=60113,c=60120,l=60115,f=60116,d=60121,v=60122,h=60117,m=60129,p=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),i=y("react.profiler"),a=y("react.provider"),o=y("react.context"),u=y("react.forward_ref"),s=y("react.suspense"),c=y("react.suspense_list"),l=y("react.memo"),f=y("react.lazy"),d=y("react.block"),v=y("react.server.block"),h=y("react.fundamental"),m=y("react.debug_trace_mode"),p=y("react.legacy_hidden")}function g(C){if(typeof C=="object"&&C!==null){var z=C.$$typeof;switch(z){case e:switch(C=C.type,C){case r:case i:case n:case s:case c:return C;default:switch(C=C&&C.$$typeof,C){case o:case u:case f:case l:case a:return C;default:return z}}case t:return z}}}var b=a,x=e,P=u,O=r,E=f,A=l,k=t,N=i,I=n,M=s;return J.ContextConsumer=o,J.ContextProvider=b,J.Element=x,J.ForwardRef=P,J.Fragment=O,J.Lazy=E,J.Memo=A,J.Portal=k,J.Profiler=N,J.StrictMode=I,J.Suspense=M,J.isAsyncMode=function(){return!1},J.isConcurrentMode=function(){return!1},J.isContextConsumer=function(C){return g(C)===o},J.isContextProvider=function(C){return g(C)===a},J.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},J.isForwardRef=function(C){return g(C)===u},J.isFragment=function(C){return g(C)===r},J.isLazy=function(C){return g(C)===f},J.isMemo=function(C){return g(C)===l},J.isPortal=function(C){return g(C)===t},J.isProfiler=function(C){return g(C)===i},J.isStrictMode=function(C){return g(C)===n},J.isSuspense=function(C){return g(C)===s},J.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===i||C===m||C===n||C===s||C===c||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===f||C.$$typeof===l||C.$$typeof===a||C.$$typeof===o||C.$$typeof===u||C.$$typeof===h||C.$$typeof===d||C[0]===v)},J.typeOf=g,J}var ee={};/** @license React v17.0.2
|
|
112
|
+
* react-is.development.js
|
|
113
|
+
*
|
|
114
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the MIT license found in the
|
|
117
|
+
* LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/var pp;function hM(){return pp||(pp=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,s=60113,c=60120,l=60115,f=60116,d=60121,v=60122,h=60117,m=60129,p=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),i=y("react.profiler"),a=y("react.provider"),o=y("react.context"),u=y("react.forward_ref"),s=y("react.suspense"),c=y("react.suspense_list"),l=y("react.memo"),f=y("react.lazy"),d=y("react.block"),v=y("react.server.block"),h=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),m=y("react.debug_trace_mode"),y("react.offscreen"),p=y("react.legacy_hidden")}var g=!1;function b(D){return!!(typeof D=="string"||typeof D=="function"||D===r||D===i||D===m||D===n||D===s||D===c||D===p||g||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===l||D.$$typeof===a||D.$$typeof===o||D.$$typeof===u||D.$$typeof===h||D.$$typeof===d||D[0]===v))}function x(D){if(typeof D=="object"&&D!==null){var j=D.$$typeof;switch(j){case e:var he=D.type;switch(he){case r:case i:case n:case s:case c:return he;default:var X=he&&he.$$typeof;switch(X){case o:case u:case f:case l:case a:return X;default:return j}}case t:return j}}}var P=o,O=a,E=e,A=u,k=r,N=f,I=l,M=t,C=i,z=n,H=s,V=!1,F=!1;function Y(D){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(D){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ve(D){return x(D)===o}function fe(D){return x(D)===a}function Ce(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function Ye(D){return x(D)===u}function ke(D){return x(D)===r}function At(D){return x(D)===f}function or(D){return x(D)===l}function Me(D){return x(D)===t}function fn(D){return x(D)===i}function T(D){return x(D)===n}function q(D){return x(D)===s}ee.ContextConsumer=P,ee.ContextProvider=O,ee.Element=E,ee.ForwardRef=A,ee.Fragment=k,ee.Lazy=N,ee.Memo=I,ee.Portal=M,ee.Profiler=C,ee.StrictMode=z,ee.Suspense=H,ee.isAsyncMode=Y,ee.isConcurrentMode=W,ee.isContextConsumer=ve,ee.isContextProvider=fe,ee.isElement=Ce,ee.isForwardRef=Ye,ee.isFragment=ke,ee.isLazy=At,ee.isMemo=or,ee.isPortal=Me,ee.isProfiler=fn,ee.isStrictMode=T,ee.isSuspense=q,ee.isValidElementType=b,ee.typeOf=x}()),ee}var mp;function pM(){return mp||(mp=1,process.env.NODE_ENV==="production"?Ei.exports=vM():Ei.exports=hM()),Ei.exports}var mM=pM(),yp=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",gp=null,qu=null,kb=e=>{if(e===gp&&Array.isArray(qu))return qu;var t=[];return S.Children.forEach(e,r=>{le(r)||(mM.isFragment(r)?t=t.concat(kb(r.props.children)):t.push(r))}),qu=t,gp=e,t};function Mb(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>yp(i)):n=[yp(t)],kb(e).forEach(i=>{var a=Or(i,"type.displayName")||Or(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var yM=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,Uu={},bp;function gM(){return bp||(bp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t}(Uu)),Uu}var Vu,wp;function bM(){return wp||(wp=1,Vu=gM().isPlainObject),Vu}var wM=bM();const xM=zt(wM);var xp,Op,Pp,Sp,Ep;function _p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ap(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_p(Object(r),!0).forEach(function(n){OM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OM(e,t,r){return(t=PM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PM(e){var t=SM(e,"string");return typeof t=="symbol"?t:t+""}function SM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wa.apply(null,arguments)}function wn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Cp=(e,t,r,n,i)=>{var a=r-n,o;return o=ce(xp||(xp=wn(["M ",",",""])),e,t),o+=ce(Op||(Op=wn(["L ",",",""])),e+r,t),o+=ce(Pp||(Pp=wn(["L ",",",""])),e+r-a/2,t+i),o+=ce(Sp||(Sp=wn(["L ",",",""])),e+r-a/2-n,t+i),o+=ce(Ep||(Ep=wn(["L ",","," Z"])),e,t),o},EM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_M=e=>{var t=He(e,EM),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:u}=t,{animationEasing:s,animationDuration:c,animationBegin:l,isUpdateAnimationActive:f}=t,d=S.useRef(null),[v,h]=S.useState(-1),m=S.useRef(i),p=S.useRef(a),y=S.useRef(o),g=S.useRef(r),b=S.useRef(n),x=Ya(e,"trapezoid-");if(S.useEffect(()=>{if(d.current&&d.current.getTotalLength)try{var z=d.current.getTotalLength();z&&h(z)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var P=ne("recharts-trapezoid",u);if(!f)return w.createElement("g",null,w.createElement("path",wa({},We(t),{className:P,d:Cp(r,n,i,a,o)})));var O=m.current,E=p.current,A=y.current,k=g.current,N=b.current,I="0px ".concat(v===-1?1:v,"px"),M="".concat(v,"px 0px"),C=Zy(["strokeDasharray"],c,s);return w.createElement(Ga,{animationId:x,key:x,canBegin:v>0,duration:c,easing:s,isActive:f,begin:l},z=>{var H=Se(O,i,z),V=Se(E,a,z),F=Se(A,o,z),Y=Se(k,r,z),W=Se(N,n,z);d.current&&(m.current=H,p.current=V,y.current=F,g.current=Y,b.current=W);var ve=z>0?{transition:C,strokeDasharray:M}:{strokeDasharray:I};return w.createElement("path",wa({},We(t),{className:P,d:Cp(Y,W,H,V,F),ref:d,style:Ap(Ap({},ve),t.style)}))})},AM=["option","shapeType","activeClassName"];function CM(e,t){if(e==null)return{};var r,n,i=IM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function IM(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ip(Object(r),!0).forEach(function(n){TM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ip(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TM(e,t,r){return(t=jM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jM(e){var t=kM(e,"string");return typeof t=="symbol"?t:t+""}function kM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MM(e,t){return xa(xa({},t),e)}function DM(e,t){return e==="symbols"}function Tp(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return w.createElement(Ec,r);case"trapezoid":return w.createElement(_M,r);case"sector":return w.createElement(ig,r);case"symbols":if(DM(t))return w.createElement(ic,r);break;case"curve":return w.createElement(Sc,r);default:return null}}function NM(e){return S.isValidElement(e)?e.props:e}function Db(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,i=CM(e,AM),a;if(S.isValidElement(t))a=S.cloneElement(t,xa(xa({},i),NM(t)));else if(typeof t=="function")a=t(i,i.index);else if(xM(t)&&typeof t!="boolean"){var o=MM(t,i);a=w.createElement(Tp,{shapeType:r,elementProps:o})}else{var u=i;a=w.createElement(Tp,{shapeType:r,elementProps:u})}return i.isActive?w.createElement(Pt,{className:n},a):a}var Hl=(e,t,r)=>{var n=ie();return(i,a)=>o=>{e?.(i,a,o),n(Ml({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},Gl=e=>{var t=ie();return(r,n)=>i=>{e?.(r,n,i),t(q0())}},Yl=(e,t,r)=>{var n=ie();return(i,a)=>o=>{e?.(i,a,o),n(V0({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function Nb(e){var{tooltipEntrySettings:t}=e,r=ie(),n=Ue(),i=S.useRef(null);return S.useLayoutEffect(()=>{n||(i.current===null?r(HI(t)):i.current!==t&&r(GI({prev:i.current,next:t})),i.current=t)},[t,r,n]),S.useLayoutEffect(()=>()=>{i.current&&(r(YI(i.current)),i.current=null)},[r]),null}function $b(e){var{legendPayload:t}=e,r=ie(),n=Ue(),i=S.useRef(null);return S.useLayoutEffect(()=>{n||(i.current===null?r(Hy(t)):i.current!==t&&r(Gy({prev:i.current,next:t})),i.current=t)},[r,n,t]),S.useLayoutEffect(()=>()=>{i.current&&(r(Yy(i.current)),i.current=null)},[r]),null}function $M(e){var{legendPayload:t}=e,r=ie(),n=L(Q),i=S.useRef(null);return S.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(i.current===null?r(Hy(t)):i.current!==t&&r(Gy({prev:i.current,next:t})),i.current=t)},[r,n,t]),S.useLayoutEffect(()=>()=>{i.current&&(r(Yy(i.current)),i.current=null)},[r]),null}var Ku,RM=()=>{var[e]=w.useState(()=>En("uid-"));return e},LM=(Ku=w.useId)!==null&&Ku!==void 0?Ku:RM;function zM(e,t){var r=LM();return t||(e?"".concat(e,"-").concat(r):r)}var BM=S.createContext(void 0),Rb=e=>{var{id:t,type:r,children:n}=e,i=zM("recharts-".concat(r),t);return w.createElement(BM.Provider,{value:i},n(i))},FM={cartesianItems:[],polarItems:[]},Lb=Ge({name:"graphicalItems",initialState:FM,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:oe()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ft(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:oe()},removeCartesianGraphicalItem:{reducer(e,t){var r=ft(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:oe()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:oe()},removePolarGraphicalItem:{reducer(e,t){var r=ft(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:oe()}}}),{addCartesianGraphicalItem:WM,replaceCartesianGraphicalItem:qM,removeCartesianGraphicalItem:UM,addPolarGraphicalItem:VM,removePolarGraphicalItem:KM}=Lb.actions,HM=Lb.reducer,GM=e=>{var t=ie(),r=S.useRef(null);return S.useLayoutEffect(()=>{r.current===null?t(WM(e)):r.current!==e&&t(qM({prev:r.current,next:e})),r.current=e},[t,e]),S.useLayoutEffect(()=>()=>{r.current&&(t(UM(r.current)),r.current=null)},[t]),null},zb=S.memo(GM);function YM(e){var t=ie();return S.useLayoutEffect(()=>(t(VM(e)),()=>{t(KM(e))}),[t,e]),null}function jp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jp(Object(r),!0).forEach(function(n){XM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XM(e,t,r){return(t=ZM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZM(e){var t=QM(e,"string");return typeof t=="symbol"?t:t+""}function QM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bb=0,JM={xAxis:{},yAxis:{},zAxis:{}},Fb=Ge({name:"cartesianAxis",initialState:JM,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:oe()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:oe()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:oe()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:oe()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:oe()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:oe()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:oe()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:oe()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:oe()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a,o=i.widthHistory||[];if(o.length===3&&o[0]===o[2]&&n===o[1]&&n!==i.width&&Math.abs(n-((a=o[0])!==null&&a!==void 0?a:0))<=1)return;var u=[...o,n].slice(-3);e.yAxis[r]=kp(kp({},i),{},{width:n,widthHistory:u})}}}}),{addXAxis:eD,replaceXAxis:tD,removeXAxis:rD,addYAxis:nD,replaceYAxis:iD,removeYAxis:aD,addZAxis:Q2,replaceZAxis:J2,removeZAxis:eR,updateYAxisWidth:oD}=Fb.actions,uD=Fb.reducer,sD=_([ye],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),cD=_([sD,Ft,Wt],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),Xl=()=>L(cD),lD=()=>L(BT),Mp=(e,t,r)=>{var n=r??e;if(!le(n))return ot(n,t,0)},fD=(e,t,r)=>{var n={},i=e.filter(ao),a=e.filter(c=>c.stackId==null),o=i.reduce((c,l)=>{var f=c[l.stackId];return f==null&&(f=[]),f.push(l),c[l.stackId]=f,c},n),u=Object.entries(o).map(c=>{var l,[f,d]=c,v=d.map(m=>m.dataKey),h=Mp(t,r,(l=d[0])===null||l===void 0?void 0:l.barSize);return{stackId:f,dataKeys:v,barSize:h}}),s=a.map(c=>{var l=[c.dataKey].filter(d=>d!=null),f=Mp(t,r,c.barSize);return{stackId:void 0,dataKeys:l,barSize:f}});return[...u,...s]};function Dp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _i(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dp(Object(r),!0).forEach(function(n){dD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dD(e,t,r){return(t=vD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vD(e){var t=hD(e,"string");return typeof t=="symbol"?t:t+""}function hD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pD(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var u=ot(e,r,0,!0),s,c=[];if(U((a=n[0])===null||a===void 0?void 0:a.barSize)){var l=!1,f=r/o,d=n.reduce((g,b)=>g+(b.barSize||0),0);d+=(o-1)*u,d>=r&&(d-=(o-1)*u,u=0),d>=r&&f>0&&(l=!0,f*=.9,d=o*f);var v=(r-d)/2>>0,h={offset:v-u,size:0};s=n.reduce((g,b)=>{var x,P={stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:h.offset+h.size+u,size:l?f:(x=b.barSize)!==null&&x!==void 0?x:0}},O=[...g,P];return h=P.position,O},c)}else{var m=ot(t,r,0,!0);r-2*m-(o-1)*u<=0&&(u=0);var p=(r-2*m-(o-1)*u)/o;p>1&&(p>>=0);var y=U(i)?Math.min(p,i):p;s=n.reduce((g,b,x)=>[...g,{stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:m+(p+u)*x+(p-y)/2,size:y}}],c)}return s}}var mD=(e,t,r,n,i,a,o)=>{var u=le(o)?t:o,s=pD(r,n,i!==a?i:a,e,u);return i!==a&&s!=null&&(s=s.map(c=>_i(_i({},c),{},{position:_i(_i({},c.position),{},{offset:c.position.offset-i/2})}))),s},yD=(e,t)=>{var r=io(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(o=>o.key===r)}}}},gD=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function bD(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&U(e.zIndex)?e.zIndex:t}var Wb=e=>{var{chartData:t}=e,r=ie(),n=Ue();return S.useEffect(()=>n?()=>{}:(r(Bs(t)),()=>{r(Bs(void 0))}),[t,r,n]),null},wD=e=>{var{computedData:t}=e,r=ie();return S.useEffect(()=>(r($j(t)),()=>{r(Bs(void 0))}),[t,r]),null},Np={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},qb=Ge({name:"brush",initialState:Np,reducers:{setBrushSettings(e,t){return t.payload==null?Np:t.payload}}}),{setBrushSettings:tR}=qb.actions,xD=qb.reducer;function OD(e){return(e%180+180)%180}var PD=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=OD(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},SD={dots:[],areas:[],lines:[]},Ub=Ge({name:"referenceElements",initialState:SD,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ft(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=ft(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=ft(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:rR,removeDot:nR,addArea:iR,removeArea:aR,addLine:oR,removeLine:uR}=Ub.actions,ED=Ub.reducer,_D=S.createContext(void 0),AD=e=>{var{children:t}=e,[r]=S.useState("".concat(En("recharts"),"-clip")),n=Xl();if(n==null)return null;var{x:i,y:a,width:o,height:u}=n;return w.createElement(_D.Provider,{value:r},w.createElement("defs",null,w.createElement("clipPath",{id:r},w.createElement("rect",{x:i,y:a,height:u,width:o}))),t)};function Vb(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];i!==void 0&&r.push(i)}return r}function CD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return PD(n,r)}function ID(e,t,r){var n=r==="width",{x:i,y:a,width:o,height:u}=e;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Bn(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function TD(e,t){return Vb(e,t+1)}function jD(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:u}=t,s=0,c=1,l=o,f=function(){var h=n?.[s];if(h===void 0)return{v:Vb(n,c)};var m=s,p,y=()=>(p===void 0&&(p=r(h,m)),p),g=h.coordinate,b=s===0||Bn(e,g,y,l,u);b||(s=0,l=o,c+=1),b&&(l=g+e*(y()/2+i),s+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function kD(e,t,r,n,i){var a=(n||[]).slice(),o=a.length;if(o===0)return[];for(var{start:u,end:s}=t,c=1;c<=o;c++){for(var l=(o-1)%c,f=u,d=!0,v=function(){var x=n[m];if(x==null)return 0;var P=m,O,E=()=>(O===void 0&&(O=r(x,P)),O),A=x.coordinate,k=m===l||Bn(e,A,E,f,s);if(!k)return d=!1,1;k&&(f=A+e*(E()/2+i))},h,m=l;m<o&&(h=v(),!(h!==0&&h===1));m+=c);if(d){for(var p=[],y=l;y<o;y+=c){var g=n[y];g!=null&&p.push(g)}return p}}return[]}function $p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$p(Object(r),!0).forEach(function(n){MD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MD(e,t,r){return(t=DD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DD(e){var t=ND(e,"string");return typeof t=="symbol"?t:t+""}function ND(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $D(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:u}=t,{end:s}=t,c=function(d){var v=a[d];if(v==null)return 1;var h=v,m,p=()=>(m===void 0&&(m=r(v,d)),m);if(d===o-1){var y=e*(h.coordinate+e*p()/2-s);a[d]=h=De(De({},h),{},{tickCoord:y>0?h.coordinate-y*e:h.coordinate})}else a[d]=h=De(De({},h),{},{tickCoord:h.coordinate});if(h.tickCoord!=null){var g=Bn(e,h.tickCoord,p,u,s);g&&(s=h.tickCoord-e*(p()/2+i),a[d]=De(De({},h),{},{isShow:!0}))}},l=o-1;l>=0;l--)c(l);return a}function RD(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,{start:s,end:c}=t;if(a){var l=n[u-1];if(l!=null){var f=r(l,u-1),d=e*(l.coordinate+e*f/2-c);if(o[u-1]=l=De(De({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate}),l.tickCoord!=null){var v=Bn(e,l.tickCoord,()=>f,s,c);v&&(c=l.tickCoord-e*(f/2+i),o[u-1]=De(De({},l),{},{isShow:!0}))}}}for(var h=a?u-1:u,m=function(g){var b=o[g];if(b==null)return 1;var x=b,P,O=()=>(P===void 0&&(P=r(b,g)),P);if(g===0){var E=e*(x.coordinate-e*O()/2-s);o[g]=x=De(De({},x),{},{tickCoord:E<0?x.coordinate-E*e:x.coordinate})}else o[g]=x=De(De({},x),{},{tickCoord:x.coordinate});if(x.tickCoord!=null){var A=Bn(e,x.tickCoord,O,s,c);A&&(s=x.tickCoord+e*(O()/2+i),o[g]=De(De({},x),{},{isShow:!0}))}},p=0;p<h;p++)m(p);return o}function Zl(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:u,interval:s,tickFormatter:c,unit:l,angle:f}=e;if(!i||!i.length||!n)return[];if(R(s)||Yn.isSsr){var d;return(d=TD(i,R(s)?s:0))!==null&&d!==void 0?d:[]}var v=[],h=u==="top"||u==="bottom"?"width":"height",m=l&&h==="width"?Sn(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=(P,O)=>{var E=typeof c=="function"?c(P.value,O):P.value;return h==="width"?CD(Sn(E,{fontSize:t,letterSpacing:r}),m,f):Sn(E,{fontSize:t,letterSpacing:r})[h]},y=i[0],g=i[1],b=i.length>=2&&y!=null&&g!=null?ze(g.coordinate-y.coordinate):1,x=ID(a,b,h);return s==="equidistantPreserveStart"?jD(b,x,p,i,o):s==="equidistantPreserveEnd"?kD(b,x,p,i,o):(s==="preserveStart"||s==="preserveStartEnd"?v=RD(b,x,p,i,o,s==="preserveStartEnd"):v=$D(b,x,p,i,o),v.filter(P=>P.isShow))}var LD=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(l=>{if(l){var f=l.getBoundingClientRect();f.width>o&&(o=f.width)}});var u=r?r.getBoundingClientRect().width:0,s=i+a,c=o+s+u+(r?n:0);return Math.round(c)}return 0},zD=["axisLine","width","height","className","hide","ticks","axisType"];function BD(e,t){if(e==null)return{};var r,n,i=FD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function FD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mr.apply(null,arguments)}function Rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rp(Object(r),!0).forEach(function(n){WD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WD(e,t,r){return(t=qD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qD(e){var t=UD(e,"string");return typeof t=="symbol"?t:t+""}function UD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mt={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",zIndex:$e.axis};function VD(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:o,axisLine:u,otherSvgProps:s}=e;if(!u)return null;var c=se(se(se({},s),Ot(u)),{},{fill:"none"});if(a==="top"||a==="bottom"){var l=+(a==="top"&&!o||a==="bottom"&&o);c=se(se({},c),{},{x1:t,y1:r+l*i,x2:t+n,y2:r+l*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);c=se(se({},c),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return w.createElement("line",Mr({},c,{className:ne("recharts-cartesian-axis-line",Or(u,"className"))}))}function KD(e,t,r,n,i,a,o,u,s){var c,l,f,d,v,h,m=u?-1:1,p=e.tickSize||o,y=R(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=l=e.coordinate,d=r+ +!u*i,f=d-m*p,h=f-m*s,v=y;break;case"left":f=d=e.coordinate,l=t+ +!u*n,c=l-m*p,v=c-m*s,h=y;break;case"right":f=d=e.coordinate,l=t+ +u*n,c=l+m*p,v=c+m*s,h=y;break;default:c=l=e.coordinate,d=r+ +u*i,f=d+m*p,h=f+m*s,v=y;break}return{line:{x1:c,y1:f,x2:l,y2:d},tick:{x:v,y:h}}}function HD(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function GD(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function YD(e){var{option:t,tickProps:r,value:n}=e,i,a=ne(r.className,"recharts-cartesian-axis-tick-value");if(w.isValidElement(t))i=w.cloneElement(t,se(se({},r),{},{className:a}));else if(typeof t=="function")i=t(se(se({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=ne(o,jb(t))),i=w.createElement(po,Mr({},r,{className:o}),n)}return i}var XD=S.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:a,tickFormatter:o,unit:u,padding:s,tickTextProps:c,orientation:l,mirror:f,x:d,y:v,width:h,height:m,tickSize:p,tickMargin:y,fontSize:g,letterSpacing:b,getTicksConfig:x,events:P,axisType:O}=e,E=Zl(se(se({},x),{},{ticks:r}),g,b),A=HD(l,f),k=GD(l,f),N=Ot(x),I=Aa(n),M={};typeof i=="object"&&(M=i);var C=se(se({},N),{},{fill:"none"},M),z=E.map(F=>se({entry:F},KD(F,d,v,h,m,l,p,f,y))),H=z.map(F=>{var{entry:Y,line:W}=F;return w.createElement(Pt,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(Y.value,"-").concat(Y.coordinate,"-").concat(Y.tickCoord)},i&&w.createElement("line",Mr({},C,W,{className:ne("recharts-cartesian-axis-tick-line",Or(i,"className"))})))}),V=z.map((F,Y)=>{var W,ve,{entry:fe,tick:Ce}=F,Ye=se(se(se(se({verticalAnchor:k},N),{},{textAnchor:A,stroke:"none",fill:a},Ce),{},{index:Y,payload:fe,visibleTicksCount:E.length,tickFormatter:o,padding:s},c),{},{angle:(W=(ve=c?.angle)!==null&&ve!==void 0?ve:N.angle)!==null&&W!==void 0?W:0}),ke=se(se({},Ye),I);return w.createElement(Pt,Mr({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(fe.value,"-").concat(fe.coordinate,"-").concat(fe.tickCoord)},ja(P,fe,Y)),n&&w.createElement(YD,{option:n,tickProps:ke,value:"".concat(typeof o=="function"?o(fe.value,Y):fe.value).concat(u||"")}))});return w.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(O,"-ticks")},V.length>0&&w.createElement(_t,{zIndex:$e.label},w.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(O,"-tick-labels"),ref:t},V)),H.length>0&&w.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},H))}),ZD=S.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:u,axisType:s}=e,c=BD(e,zD),[l,f]=S.useState(""),[d,v]=S.useState(""),h=S.useRef(null);S.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var p;return LD({ticks:h.current,label:(p=e.labelRef)===null||p===void 0?void 0:p.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=S.useCallback(p=>{if(p){var y=p.getElementsByClassName("recharts-cartesian-axis-tick-value");h.current=y;var g=y[0];if(g){var b=window.getComputedStyle(g),x=b.fontSize,P=b.letterSpacing;(x!==l||P!==d)&&(f(x),v(P))}}},[l,d]);return o||n!=null&&n<=0||i!=null&&i<=0?null:w.createElement(_t,{zIndex:e.zIndex},w.createElement(Pt,{className:ne("recharts-cartesian-axis",a)},w.createElement(VD,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Ot(e)}),w.createElement(XD,{ref:m,axisType:s,events:c,fontSize:l,getTicksConfig:e,height:e.height,letterSpacing:d,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y}),w.createElement(Fk,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},w.createElement(Zk,{label:e.label,labelRef:e.labelRef}),e.children)))}),Ql=w.forwardRef((e,t)=>{var r=He(e,Mt);return w.createElement(ZD,Mr({},r,{ref:t}))});Ql.displayName="CartesianAxis";var QD=["x1","y1","x2","y2","key"],JD=["offset"],eN=["xAxisId","yAxisId"],tN=["xAxisId","yAxisId"];function Lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lp(Object(r),!0).forEach(function(n){rN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rN(e,t,r){return(t=nN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nN(e){var t=iN(e,"string");return typeof t=="symbol"?t:t+""}function iN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mr.apply(null,arguments)}function Oa(e,t){if(e==null)return{};var r,n,i=aN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var oN=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:u}=e;return w.createElement("rect",{x:n,y:i,ry:u,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Kb(e){var{option:t,lineItemProps:r}=e,n;if(w.isValidElement(t))n=w.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:a,y1:o,x2:u,y2:s,key:c}=r,l=Oa(r,QD),f=(i=Ot(l))!==null&&i!==void 0?i:{},{offset:d}=f,v=Oa(f,JD);n=w.createElement("line",mr({},v,{x1:a,y1:o,x2:u,y2:s,fill:"none",key:c}))}return n}function uN(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,u=Oa(e,eN),s=i.map((c,l)=>{var f=Ne(Ne({},u),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(l),index:l});return w.createElement(Kb,{key:"line-".concat(l),option:n,lineItemProps:f})});return w.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function sN(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,u=Oa(e,tN),s=i.map((c,l)=>{var f=Ne(Ne({},u),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(l),index:l});return w.createElement(Kb,{option:n,lineItemProps:f,key:"line-".concat(l)})});return w.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function cN(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:u,horizontal:s=!0}=e;if(!s||!t||!t.length||u==null)return null;var c=u.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var l=c.map((f,d)=>{var v=c[d+1],h=v==null,m=h?i+o-f:v-f;if(m<=0)return null;var p=d%t.length;return w.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:m,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function lN(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:u,verticalPoints:s}=e;if(!t||!r||!r.length)return null;var c=s.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var l=c.map((f,d)=>{var v=c[d+1],h=v==null,m=h?i+o-f:v-f;if(m<=0)return null;var p=d%r.length;return w.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:m,height:u,stroke:"none",fill:r[p],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return w.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var fN=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return Cy(Zl(Ne(Ne(Ne({},Mt),r),{},{ticks:Iy(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},dN=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return Cy(Zl(Ne(Ne(Ne({},Mt),r),{},{ticks:Iy(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},vN={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:$e.grid};function Jl(e){var t=bc(),r=wc(),n=Ly(),i=Ne(Ne({},He(e,vN)),{},{x:R(e.x)?e.x:n.left,y:R(e.y)?e.y:n.top,width:R(e.width)?e.width:n.width,height:R(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:u,y:s,width:c,height:l,syncWithTicks:f,horizontalValues:d,verticalValues:v}=i,h=Ue(),m=L(k=>Dh(k,"xAxis",a,h)),p=L(k=>Dh(k,"yAxis",o,h));if(!ht(c)||!ht(l)||!R(u)||!R(s))return null;var y=i.verticalCoordinatesGenerator||fN,g=i.horizontalCoordinatesGenerator||dN,{horizontalPoints:b,verticalPoints:x}=i;if((!b||!b.length)&&typeof g=="function"){var P=d&&d.length,O=g({yAxis:p?Ne(Ne({},p),{},{ticks:P?d:p.ticks}):void 0,width:t??c,height:r??l,offset:n},P?!0:f);Yi(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(b=O)}if((!x||!x.length)&&typeof y=="function"){var E=v&&v.length,A=y({xAxis:m?Ne(Ne({},m),{},{ticks:E?v:m.ticks}):void 0,width:t??c,height:r??l,offset:n},E?!0:f);Yi(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof A,"]")),Array.isArray(A)&&(x=A)}return w.createElement(_t,{zIndex:i.zIndex},w.createElement("g",{className:"recharts-cartesian-grid"},w.createElement(oN,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),w.createElement(cN,mr({},i,{horizontalPoints:b})),w.createElement(lN,mr({},i,{verticalPoints:x})),w.createElement(uN,mr({},i,{offset:n,horizontalPoints:b,xAxis:m,yAxis:p})),w.createElement(sN,mr({},i,{offset:n,verticalPoints:x,xAxis:m,yAxis:p}))))}Jl.displayName="CartesianGrid";var hN={},Hb=Ge({name:"errorBars",initialState:hN,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:sR,replaceErrorBar:cR,removeErrorBar:lR}=Hb.actions,pN=Hb.reducer,mN=["children"];function yN(e,t){if(e==null)return{};var r,n,i=gN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function gN(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bN={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},wN=S.createContext(bN);function Gb(e){var{children:t}=e,r=yN(e,mN);return w.createElement(wN.Provider,{value:r},t)}function ef(e,t){var r,n,i=L(c=>Kt(c,e)),a=L(c=>Ht(c,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:xe.allowDataOverflow,u=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Oe.allowDataOverflow,s=o||u;return{needClip:s,needClipX:o,needClipY:u}}function Yb(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=Xl(),{needClipX:a,needClipY:o,needClip:u}=ef(t,r);if(!u||!i)return null;var{x:s,y:c,width:l,height:f}=i;return w.createElement("clipPath",{id:"clipPath-".concat(n)},w.createElement("rect",{x:a?s:s-l/2,y:o?c:c-f/2,width:a?l:l*2,height:o?f:f*2}))}var Ai={exports:{}},Hu={};/**
|
|
119
|
+
* @license React
|
|
120
|
+
* use-sync-external-store-with-selector.production.js
|
|
121
|
+
*
|
|
122
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the MIT license found in the
|
|
125
|
+
* LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/var zp;function xN(){if(zp)return Hu;zp=1;var e=S;function t(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,u=e.useDebugValue;return Hu.useSyncExternalStoreWithSelector=function(s,c,l,f,d){var v=i(null);if(v.current===null){var h={hasValue:!1,value:null};v.current=h}else h=v.current;v=o(function(){function p(P){if(!y){if(y=!0,g=P,P=f(P),d!==void 0&&h.hasValue){var O=h.value;if(d(O,P))return b=O}return b=P}if(O=b,r(g,P))return O;var E=f(P);return d!==void 0&&d(O,E)?(g=P,O):(g=P,b=E)}var y=!1,g,b,x=l===void 0?null:l;return[function(){return p(c())},x===null?void 0:function(){return p(x())}]},[c,l,f,d]);var m=n(s,v[0],v[1]);return a(function(){h.hasValue=!0,h.value=m},[m]),u(m),m},Hu}var Gu={};/**
|
|
127
|
+
* @license React
|
|
128
|
+
* use-sync-external-store-with-selector.development.js
|
|
129
|
+
*
|
|
130
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the MIT license found in the
|
|
133
|
+
* LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/var Bp;function ON(){return Bp||(Bp=1,process.env.NODE_ENV!=="production"&&function(){function e(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=S,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,u=t.useDebugValue;Gu.useSyncExternalStoreWithSelector=function(s,c,l,f,d){var v=i(null);if(v.current===null){var h={hasValue:!1,value:null};v.current=h}else h=v.current;v=o(function(){function p(P){if(!y){if(y=!0,g=P,P=f(P),d!==void 0&&h.hasValue){var O=h.value;if(d(O,P))return b=O}return b=P}if(O=b,r(g,P))return O;var E=f(P);return d!==void 0&&d(O,E)?(g=P,O):(g=P,b=E)}var y=!1,g,b,x=l===void 0?null:l;return[function(){return p(c())},x===null?void 0:function(){return p(x())}]},[c,l,f,d]);var m=n(s,v[0],v[1]);return a(function(){h.hasValue=!0,h.value=m},[m]),u(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Gu}var Fp;function PN(){return Fp||(Fp=1,process.env.NODE_ENV==="production"?Ai.exports=xN():Ai.exports=ON()),Ai.exports}PN();function SN(e){e()}function EN(){let e=null,t=null;return{clear(){e=null,t=null},notify(){SN(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Wp={notify(){},get:()=>[]};function _N(e,t){let r,n=Wp,i=0,a=!1;function o(m){l();const p=n.subscribe(m);let y=!1;return()=>{y||(y=!0,p(),f())}}function u(){n.notify()}function s(){h.onStateChange&&h.onStateChange()}function c(){return a}function l(){i++,r||(r=e.subscribe(s),n=EN())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Wp)}function d(){a||(a=!0,l())}function v(){a&&(a=!1,f())}const h={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:s,isSubscribed:c,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>n};return h}var AN=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",CN=AN(),IN=()=>typeof navigator<"u"&&navigator.product==="ReactNative",TN=IN(),jN=()=>CN||TN?w.useLayoutEffect:w.useEffect,kN=jN();function qp(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function MN(e,t){if(qp(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!qp(e[r[i]],t[r[i]]))return!1;return!0}var DN=Symbol.for("react-redux-context"),NN=typeof globalThis<"u"?globalThis:{};function $N(){if(!w.createContext)return{};const e=NN[DN]??=new Map;let t=e.get(w.createContext);return t||(t=w.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(w.createContext,t)),t}var RN=$N();function LN(e){const{children:t,context:r,serverState:n,store:i}=e,a=w.useMemo(()=>{const s=_N(i),c={store:i,subscription:s,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:l="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:l})}},[i,n]),o=w.useMemo(()=>i.getState(),[i]);kN(()=>{const{subscription:s}=a;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==i.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[a,o]);const u=r||RN;return w.createElement(u.Provider,{value:a},t)}var zN=LN,BN=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function FN(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function mo(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(BN.has(n)){if(e[n]==null&&t[n]==null)continue;if(!MN(e[n],t[n]))return!1}else if(!FN(e[n],t[n]))return!1;return!0}function ir(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:Bb}function ar(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:Bb}var WN=process.env.NODE_ENV==="production",Yu="Invariant failed";function qN(e,t){if(WN)throw new Error(Yu);var r=typeof t=="function"?t():t,n=r?"".concat(Yu,": ").concat(r):Yu;throw new Error(n)}function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ws.apply(null,arguments)}function Pa(e){return w.createElement(Db,Ws({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var UN=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(R(t))return t;var a=R(n)||le(n);return a?t(n,i):(a||qN(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},VN=(e,t,r)=>r,KN=(e,t)=>t,oi=_([so,KN],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),HN=_([oi],e=>e?.maxBarSize),GN=(e,t,r,n)=>n,YN=_([Q,so,ir,ar,VN],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),XN=(e,t,r)=>{var n=Q(e),i=ir(e,t),a=ar(e,t);if(!(i==null||a==null))return n==="horizontal"?ma(e,"yAxis",a,r):ma(e,"xAxis",i,r)},ZN=(e,t)=>{var r=Q(e),n=ir(e,t),i=ar(e,t);if(!(n==null||i==null))return r==="horizontal"?Mh(e,"xAxis",n):Mh(e,"yAxis",i)},QN=_([YN,$C,ZN],fD),JN=(e,t,r)=>{var n,i,a=oi(e,t);if(a==null)return 0;var o=ir(e,t),u=ar(e,t);if(o==null||u==null)return 0;var s=Q(e),c=r0(e),{maxBarSize:l}=a,f=le(l)?c:l,d,v;return s==="horizontal"?(d=jr(e,"xAxis",o,r),v=Tr(e,"xAxis",o,r)):(d=jr(e,"yAxis",u,r),v=Tr(e,"yAxis",u,r)),(n=(i=In(d,v,!0))!==null&&i!==void 0?i:f)!==null&&n!==void 0?n:0},Xb=(e,t,r)=>{var n=Q(e),i=ir(e,t),a=ar(e,t);if(!(i==null||a==null)){var o,u;return n==="horizontal"?(o=jr(e,"xAxis",i,r),u=Tr(e,"xAxis",i,r)):(o=jr(e,"yAxis",a,r),u=Tr(e,"yAxis",a,r)),In(o,u)}},e$=_([QN,r0,NC,n0,JN,Xb,HN],mD),t$=(e,t,r)=>{var n=ir(e,t);if(n!=null)return jr(e,"xAxis",n,r)},r$=(e,t,r)=>{var n=ar(e,t);if(n!=null)return jr(e,"yAxis",n,r)},n$=(e,t,r)=>{var n=ir(e,t);if(n!=null)return Tr(e,"xAxis",n,r)},i$=(e,t,r)=>{var n=ar(e,t);if(n!=null)return Tr(e,"yAxis",n,r)},a$=_([e$,oi],gD),o$=_([XN,oi],yD),u$=_([ye,mc,t$,r$,n$,i$,a$,Q,Ug,Xb,o$,oi,GN],(e,t,r,n,i,a,o,u,s,c,l,f,d)=>{var{chartData:v,dataStartIndex:h,dataEndIndex:m}=s;if(!(f==null||o==null||t==null||u!=="horizontal"&&u!=="vertical"||r==null||n==null||i==null||a==null||c==null)){var{data:p}=f,y;if(p!=null&&p.length>0?y=p:y=v?.slice(h,m+1),y!=null)return N$({layout:u,barSettings:f,pos:o,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:l,displayedData:y,offset:e,cells:d,dataStartIndex:h})}}),s$=["index"];function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qs.apply(null,arguments)}function c$(e,t){if(e==null)return{};var r,n,i=l$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Zb=S.createContext(void 0),f$=e=>{var t=S.useContext(Zb);if(t!=null)return t.stackId;if(e!=null)return Ty(e)},d$=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),v$=e=>{var t=S.useContext(Zb);if(t!=null){var{stackId:r}=t;return"url(#".concat(d$(r,e),")")}},Qb=e=>{var{index:t}=e,r=c$(e,s$),n=v$(t);return w.createElement(Pt,qs({className:"recharts-bar-stack-layer",clipPath:n},r))},h$=["onMouseEnter","onMouseLeave","onClick"],p$=["value","background","tooltipPosition"],m$=["id"],y$=["onMouseEnter","onClick","onMouseLeave"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lt.apply(null,arguments)}function Up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Up(Object(r),!0).forEach(function(n){g$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g$(e,t,r){return(t=b$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b$(e){var t=w$(e,"string");return typeof t=="symbol"?t:t+""}function w$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sa(e,t){if(e==null)return{};var r,n,i=x$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function x$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var O$=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:pc(r,t),payload:e}]},P$=w.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:u,tooltipType:s,id:c}=e,l={dataDefinedOnItem:void 0,getPosition:Dr,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:pc(a,t),hide:o,type:s,color:i,unit:u,graphicalItemId:c}};return w.createElement(Nb,{tooltipEntrySettings:l})});function S$(e){var t=L(kr),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:u,onClick:s}=a,c=Sa(a,h$),l=Hl(o,n,a.id),f=Gl(u),d=Yl(s,n,a.id);if(!i||r==null)return null;var v=Aa(i);return w.createElement(_t,{zIndex:bD(i,$e.barBackground)},r.map((h,m)=>{var{value:p,background:y,tooltipPosition:g}=h,b=Sa(h,p$);if(!y)return null;var x=l(h,m),P=f(h,m),O=d(h,m),E=Le(Le(Le(Le(Le({option:i,isActive:String(m)===t},b),{},{fill:"#eee"},y),v),ja(c,h,m)),{},{onMouseEnter:x,onMouseLeave:P,onClick:O,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return w.createElement(Pa,Lt({key:"background-bar-".concat(m)},E))}))}function E$(e){var{showLabels:t,children:r,rects:n}=e,i=n?.map(a=>{var o={x:a.x,y:a.y,width:a.width,lowerWidth:a.width,upperWidth:a.width,height:a.height};return Le(Le({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return w.createElement(Ab,{value:t?i:void 0},r)}function _$(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,u=L(kr),s=L(zl),c=r&&String(a)===u&&(s==null||o===s),l=c?r:t;return c?w.createElement(_t,{zIndex:$e.activeBar},w.createElement(Qb,{index:a},w.createElement(Pa,Lt({},n,{name:String(n.name)},i,{isActive:c,option:l,index:a,dataKey:o})))):w.createElement(Pa,Lt({},n,{name:String(n.name)},i,{isActive:c,option:l,index:a,dataKey:o}))}function A$(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return w.createElement(Pa,Lt({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function C$(e){var t,{data:r,props:n}=e,i=(t=Ot(n))!==null&&t!==void 0?t:{},{id:a}=i,o=Sa(i,m$),{shape:u,dataKey:s,activeBar:c}=n,{onMouseEnter:l,onClick:f,onMouseLeave:d}=n,v=Sa(n,y$),h=Hl(l,s,a),m=Gl(d),p=Yl(f,s,a);return r?w.createElement(w.Fragment,null,r.map((y,g)=>w.createElement(Qb,Lt({index:g,key:"rectangle-".concat(y?.x,"-").concat(y?.y,"-").concat(y?.value,"-").concat(g),className:"recharts-bar-rectangle"},ja(v,y,g),{onMouseEnter:h(y,g),onMouseLeave:m(y,g),onClick:p(y,g)}),c?w.createElement(_$,{shape:u,activeBar:c,baseProps:o,entry:y,index:g,dataKey:s}):w.createElement(A$,{shape:u,baseProps:o,entry:y,index:g,dataKey:s})))):null}function I$(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:u,animationEasing:s,onAnimationEnd:c,onAnimationStart:l}=t,f=r.current,d=Ya(t,"recharts-bar-"),[v,h]=S.useState(!1),m=!v,p=S.useCallback(()=>{typeof c=="function"&&c(),h(!1)},[c]),y=S.useCallback(()=>{typeof l=="function"&&l(),h(!0)},[l]);return w.createElement(E$,{showLabels:m,rects:n},w.createElement(Ga,{animationId:d,begin:o,duration:u,isActive:a,easing:s,onAnimationEnd:p,onAnimationStart:y,key:d},g=>{var b=g===1?n:n?.map((x,P)=>{var O=f&&f[P];if(O)return Le(Le({},x),{},{x:Se(O.x,x.x,g),y:Se(O.y,x.y,g),width:Se(O.width,x.width,g),height:Se(O.height,x.height,g)});if(i==="horizontal"){var E=Se(0,x.height,g),A=Se(x.stackedBarStart,x.y,g);return Le(Le({},x),{},{y:A,height:E})}var k=Se(0,x.width,g),N=Se(x.stackedBarStart,x.x,g);return Le(Le({},x),{},{width:k,x:N})});return g>0&&(r.current=b??null),b==null?null:w.createElement(Pt,null,w.createElement(C$,{props:t,data:b}))}),w.createElement(Ib,{label:t.label}),t.children)}function T$(e){var t=S.useRef(null);return w.createElement(I$,{previousRectanglesRef:t,props:e})}var Jb=0,j$=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:me(e,t)}};class k$ extends S.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:u,background:s,id:c}=this.props;if(t||r==null)return null;var l=ne("recharts-bar",i),f=c;return w.createElement(Pt,{className:l,id:c},u&&w.createElement("defs",null,w.createElement(Yb,{clipPathId:f,xAxisId:a,yAxisId:o})),w.createElement(Pt,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(f,")"):void 0},w.createElement(S$,{data:r,dataKey:n,background:s,allOtherBarProps:this.props}),w.createElement(T$,this.props)))}}var M$={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:Jb,xAxisId:0,yAxisId:0,zIndex:$e.bar};function D$(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:s,animationEasing:c,isAnimationActive:l}=e,{needClip:f}=ef(t,r),d=Nr(),v=Ue(),h=Mb(e.children,Vl),m=L(g=>u$(g,e.id,v,h));if(d!=="vertical"&&d!=="horizontal")return null;var p,y=m?.[0];return y==null||y.height==null||y.width==null?p=0:p=d==="vertical"?y.height/2:y.width/2,w.createElement(Gb,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:j$,errorBarOffset:p},w.createElement(k$,Lt({},e,{layout:d,needClip:f,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:s,animationEasing:c,isAnimationActive:l})))}function N$(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:o,yAxis:u,xAxisTicks:s,yAxisTicks:c,stackedData:l,displayedData:f,offset:d,cells:v,parentViewBox:h,dataStartIndex:m}=e,p=t==="horizontal"?u:o,y=l?p.scale.domain():null,g=bP({numericAxis:p}),b=p.scale.map(g);return f.map((x,P)=>{var O,E,A,k,N,I;if(l){var M=l[P+m];if(M==null)return null;O=vP(M,y)}else O=me(x,r),Array.isArray(O)||(O=[g,O]);var C=UN(n,Jb)(O[1],P);if(t==="horizontal"){var z,H=u.scale.map(O[0]),V=u.scale.map(O[1]);if(H==null||V==null)return null;E=Dd({axis:o,ticks:s,bandSize:a,offset:i.offset,entry:x,index:P}),A=(z=V??H)!==null&&z!==void 0?z:void 0,k=i.size;var F=H-V;if(N=dt(F)?0:F,I={x:E,y:d.top,width:k,height:d.height},Math.abs(C)>0&&Math.abs(N)<Math.abs(C)){var Y=ze(N||C)*(Math.abs(C)-Math.abs(N));A-=Y,N+=Y}}else{var W=o.scale.map(O[0]),ve=o.scale.map(O[1]);if(W==null||ve==null)return null;if(E=W,A=Dd({axis:u,ticks:c,bandSize:a,offset:i.offset,entry:x,index:P}),k=ve-W,N=i.size,I={x:d.left,y:A,width:d.width,height:N},Math.abs(C)>0&&Math.abs(k)<Math.abs(C)){var fe=ze(k||C)*(Math.abs(C)-Math.abs(k));k+=fe}}if(E==null||A==null||k==null||N==null)return null;var Ce=Le(Le({},x),{},{stackedBarStart:b,x:E,y:A,width:k,height:N,value:l?O:O[1],payload:x,background:I,tooltipPosition:{x:E+k/2,y:A+N/2},parentViewBox:h},v&&v[P]&&v[P].props);return Ce}).filter(Boolean)}function $$(e){var t=He(e,M$),r=f$(t.stackId),n=Ue();return w.createElement(Rb,{id:t.id,type:"bar"},i=>w.createElement(w.Fragment,null,w.createElement($b,{legendPayload:O$(t)}),w.createElement(P$,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:i}),w.createElement(zb,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),w.createElement(_t,{zIndex:t.zIndex},w.createElement(D$,Lt({},t,{id:i})))))}var tf=w.memo($$,mo);tf.displayName="Bar";var R$=["domain","range"],L$=["domain","range"];function Vp(e,t){if(e==null)return{};var r,n,i=z$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function z$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Kp(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function ew(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=Vp(e,R$),{domain:a,range:o}=t,u=Vp(t,L$);return!Kp(r,a)||!Kp(n,o)?!1:mo(i,u)}var B$=["type"],F$=["dangerouslySetInnerHTML","ticks","scale"],W$=["id","scale"];function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Us.apply(null,arguments)}function Hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hp(Object(r),!0).forEach(function(n){q$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q$(e,t,r){return(t=U$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U$(e){var t=V$(e,"string");return typeof t=="symbol"?t:t+""}function V$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vs(e,t){if(e==null)return{};var r,n,i=K$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function K$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function H$(e){var t=ie(),r=S.useRef(null),n=xc(),{type:i}=e,a=Vs(e,B$),o=ro(n,"xAxis",i),u=S.useMemo(()=>{if(o!=null)return Gp(Gp({},a),{},{type:o})},[a,o]);return S.useLayoutEffect(()=>{u!=null&&(r.current===null?t(eD(u)):r.current!==u&&t(tD({prev:r.current,next:u})),r.current=u)},[u,t]),S.useLayoutEffect(()=>()=>{r.current&&(t(rD(r.current)),r.current=null)},[t]),null}var G$=e=>{var{xAxisId:t,className:r}=e,n=L(mc),i=Ue(),a="xAxis",o=L(y=>R0(y,a,t,i)),u=L(y=>M0(y,t)),s=L(y=>$I(y,t)),c=L(y=>v0(y,t));if(u==null||s==null||c==null)return null;var{dangerouslySetInnerHTML:l,ticks:f,scale:d}=e,v=Vs(e,F$),{id:h,scale:m}=c,p=Vs(c,W$);return w.createElement(Ql,Us({},v,p,{x:s.x,y:s.y,width:u.width,height:u.height,className:ne("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:o,axisType:a}))},Y$={allowDataOverflow:xe.allowDataOverflow,allowDecimals:xe.allowDecimals,allowDuplicatedCategory:xe.allowDuplicatedCategory,angle:xe.angle,axisLine:Mt.axisLine,height:xe.height,hide:!1,includeHidden:xe.includeHidden,interval:xe.interval,label:!1,minTickGap:xe.minTickGap,mirror:xe.mirror,orientation:xe.orientation,padding:xe.padding,reversed:xe.reversed,scale:xe.scale,tick:xe.tick,tickCount:xe.tickCount,tickLine:Mt.tickLine,tickSize:Mt.tickSize,type:xe.type,xAxisId:0},X$=e=>{var t=He(e,Y$);return w.createElement(w.Fragment,null,w.createElement(H$,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),w.createElement(G$,t))},rf=w.memo(X$,ew);rf.displayName="XAxis";var Z$=["type"],Q$=["dangerouslySetInnerHTML","ticks","scale"],J$=["id","scale"];function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ks.apply(null,arguments)}function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yp(Object(r),!0).forEach(function(n){e2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e2(e,t,r){return(t=t2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t2(e){var t=r2(e,"string");return typeof t=="symbol"?t:t+""}function r2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hs(e,t){if(e==null)return{};var r,n,i=n2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function n2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function i2(e){var t=ie(),r=S.useRef(null),n=xc(),{type:i}=e,a=Hs(e,Z$),o=ro(n,"yAxis",i),u=S.useMemo(()=>{if(o!=null)return Xp(Xp({},a),{},{type:o})},[o,a]);return S.useLayoutEffect(()=>{u!=null&&(r.current===null?t(nD(u)):r.current!==u&&t(iD({prev:r.current,next:u})),r.current=u)},[u,t]),S.useLayoutEffect(()=>()=>{r.current&&(t(aD(r.current)),r.current=null)},[t]),null}function a2(e){var{yAxisId:t,className:r,width:n,label:i}=e,a=S.useRef(null),o=S.useRef(null),u=L(mc),s=Ue(),c=ie(),l="yAxis",f=L(O=>D0(O,t)),d=L(O=>LI(O,t)),v=L(O=>R0(O,l,t,s)),h=L(O=>h0(O,t));if(S.useLayoutEffect(()=>{if(!(n!=="auto"||!f||Kl(i)||S.isValidElement(i)||h==null)){var O=a.current;if(O){var E=O.getCalculatedWidth();Math.round(f.width)!==Math.round(E)&&c(oD({id:t,width:E}))}}},[v,f,c,i,t,n,h]),f==null||d==null||h==null)return null;var{dangerouslySetInnerHTML:m,ticks:p,scale:y}=e,g=Hs(e,Q$),{id:b,scale:x}=h,P=Hs(h,J$);return w.createElement(Ql,Ks({},g,P,{ref:a,labelRef:o,x:d.x,y:d.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:f.width,height:f.height,className:ne("recharts-".concat(l," ").concat(l),r),viewBox:u,ticks:v,axisType:l}))}var o2={allowDataOverflow:Oe.allowDataOverflow,allowDecimals:Oe.allowDecimals,allowDuplicatedCategory:Oe.allowDuplicatedCategory,angle:Oe.angle,axisLine:Mt.axisLine,hide:!1,includeHidden:Oe.includeHidden,interval:Oe.interval,label:!1,minTickGap:Oe.minTickGap,mirror:Oe.mirror,orientation:Oe.orientation,padding:Oe.padding,reversed:Oe.reversed,scale:Oe.scale,tick:Oe.tick,tickCount:Oe.tickCount,tickLine:Mt.tickLine,tickSize:Mt.tickSize,type:Oe.type,width:Oe.width,yAxisId:0},u2=e=>{var t=He(e,o2);return w.createElement(w.Fragment,null,w.createElement(i2,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),w.createElement(a2,t))},nf=w.memo(u2,ew);nf.displayName="YAxis";var s2=(e,t)=>t,af=_([s2,Q,l0,Ae,tb,Gt,QT,ye],aj),of=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},tw=ut("mouseClick"),rw=Vn();rw.startListening({actionCreator:tw,effect:(e,t)=>{var r=e.payload,n=af(t.getState(),of(r));n?.activeIndex!=null&&t.dispatch(ZI({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Gs=ut("mouseMove"),nw=Vn(),Ci=null;nw.startListening({actionCreator:Gs,effect:(e,t)=>{var r=e.payload;Ci!==null&&cancelAnimationFrame(Ci);var n=of(r);Ci=requestAnimationFrame(()=>{var i=t.getState(),a=kl(i,i.tooltip.settings.shared);if(a==="axis"){var o=af(i,n);o?.activeIndex!=null?t.dispatch(K0({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(U0())}Ci=null})}});function c2(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var Zp={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},iw=Ge({name:"rootProps",initialState:Zp,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:Zp.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),l2=iw.reducer,{updateOptions:f2}=iw.actions,d2=null,v2={updatePolarOptions:(e,t)=>t.payload},aw=Ge({name:"polarOptions",initialState:d2,reducers:v2}),{updatePolarOptions:h2}=aw.actions,p2=aw.reducer,ow=ut("keyDown"),uw=ut("focus"),uf=Vn();uf.startListening({actionCreator:ow,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Dl(i,ln(r),ri(r),ii(r)),u=o==null?-1:Number(o);if(!(!Number.isFinite(u)||u<0)){var s=Gt(r);if(a==="Enter"){var c=ga(r,"axis","hover",String(i.index));t.dispatch(Rs({active:!i.active,activeIndex:i.index,activeCoordinate:c}));return}var l=qI(r),f=l==="left-to-right"?1:-1,d=a==="ArrowRight"?1:-1,v=u+d*f;if(!(s==null||v>=s.length||v<0)){var h=ga(r,"axis","hover",String(v));t.dispatch(Rs({active:!0,activeIndex:v.toString(),activeCoordinate:h}))}}}}}});uf.startListening({actionCreator:uw,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=ga(r,"axis","hover",String(a));t.dispatch(Rs({active:!0,activeIndex:a,activeCoordinate:o}))}}}});var it=ut("externalEvent"),sw=Vn(),Xu=new Map;sw.startListening({actionCreator:it,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var i=n.type,a=Xu.get(i);a!==void 0&&cancelAnimationFrame(a);var o=requestAnimationFrame(()=>{try{var u=t.getState(),s={activeCoordinate:RT(u),activeDataKey:zl(u),activeIndex:kr(u),activeLabel:ib(u),activeTooltipIndex:kr(u),isTooltipActive:LT(u)};r(s,n)}finally{Xu.delete(i)}});Xu.set(i,o)}}});var m2=_([sn],e=>e.tooltipItemPayloads),y2=_([m2,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(a=>a.settings.graphicalItemId===r);if(n!=null){var{getPosition:i}=n;if(i!=null)return i(t)}}}),cw=ut("touchMove"),lw=Vn();lw.startListening({actionCreator:cw,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=kl(n,n.tooltip.settings.shared);if(i==="axis"){var a=r.touches[0];if(a==null)return;var o=af(n,of({clientX:a.clientX,clientY:a.clientY,currentTarget:r.currentTarget}));o?.activeIndex!=null&&t.dispatch(K0({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var u,s=r.touches[0];if(document.elementFromPoint==null||s==null)return;var c=document.elementFromPoint(s.clientX,s.clientY);if(!c||!c.getAttribute)return;var l=c.getAttribute(ky),f=(u=c.getAttribute(My))!==null&&u!==void 0?u:void 0,d=cn(n).find(m=>m.id===f);if(l==null||d==null||f==null)return;var{dataKey:v}=d,h=y2(n,l,f);t.dispatch(Ml({activeDataKey:v,activeIndex:l,activeCoordinate:h,activeGraphicalItemId:f}))}}}});var g2=Gm({brush:xD,cartesianAxis:uD,chartData:Rj,errorBars:pN,graphicalItems:HM,layout:sP,legend:gS,options:jj,polarAxis:dM,polarOptions:p2,referenceElements:ED,rootProps:l2,tooltip:QI,zIndex:bj}),b2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return D1({reducer:g2,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([rw.middleware,nw.middleware,uf.middleware,sw.middleware,lw.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(vy({type:"raf"}))},devTools:{serialize:{replacer:c2},name:"recharts-".concat(r)}})};function fw(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Ue(),a=S.useRef(null);if(i)return r;a.current==null&&(a.current=b2(t,n));var o=sc;return w.createElement(zN,{context:o,store:a.current},r)}function w2(e){var{layout:t,margin:r}=e,n=ie(),i=Ue();return S.useEffect(()=>{i||(n(aP(t)),n(_y(r)))},[n,i,t,r]),null}var dw=S.memo(w2,mo);function vw(e){var t=ie();return S.useEffect(()=>{t(f2(e))},[t,e]),null}function Qp(e){var{zIndex:t,isPanorama:r}=e,n=S.useRef(null),i=ie();return S.useLayoutEffect(()=>(n.current&&i(yj({zIndex:t,element:n.current,isPanorama:r})),()=>{i(gj({zIndex:t,isPanorama:r}))}),[i,t,r]),w.createElement("g",{tabIndex:-1,ref:n})}function Jp(e){var{children:t,isPanorama:r}=e,n=L(uj);if(!n||n.length===0)return t;var i=n.filter(o=>o<0),a=n.filter(o=>o>0);return w.createElement(w.Fragment,null,i.map(o=>w.createElement(Qp,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>w.createElement(Qp,{key:o,zIndex:o,isPanorama:r})))}var x2=["children"];function O2(e,t){if(e==null)return{};var r,n,i=P2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function P2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ea.apply(null,arguments)}var S2={width:"100%",height:"100%",display:"block"},E2=S.forwardRef((e,t)=>{var r=bc(),n=wc(),i=Xy();if(!ht(r)||!ht(n))return null;var{children:a,otherAttributes:o,title:u,desc:s}=e,c,l;return o!=null&&(typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?l=o.role:l=i?"application":void 0),w.createElement(Zs,Ea({},o,{title:u,desc:s,role:l,tabIndex:c,width:r,height:n,style:S2,ref:t}),a)}),_2=e=>{var{children:t}=e,r=L(Ua);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return w.createElement(Zs,{width:n,height:i,x:o,y:a},t)},em=S.forwardRef((e,t)=>{var{children:r}=e,n=O2(e,x2),i=Ue();return i?w.createElement(_2,null,w.createElement(Jp,{isPanorama:!0},r)):w.createElement(E2,Ea({ref:t},n),w.createElement(Jp,{isPanorama:!1},r))});function A2(){var e=ie(),[t,r]=S.useState(null),n=L(EP);return S.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;U(a)&&a!==n&&e(uP(a))}},[t,e,n]),r}function tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tm(Object(r),!0).forEach(function(n){I2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I2(e,t,r){return(t=T2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T2(e){var t=j2(e,"string");return typeof t=="symbol"?t:t+""}function j2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tr.apply(null,arguments)}var k2=()=>(Kj(),null);function _a(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var M2=S.forwardRef((e,t)=>{var r,n,i=S.useRef(null),[a,o]=S.useState({containerWidth:_a((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:_a((n=e.style)===null||n===void 0?void 0:n.height)}),u=S.useCallback((c,l)=>{o(f=>{var d=Math.round(c),v=Math.round(l);return f.containerWidth===d&&f.containerHeight===v?f:{containerWidth:d,containerHeight:v}})},[]),s=S.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:l,height:f}=c.getBoundingClientRect();u(l,f);var d=h=>{var m=h[0];if(m!=null){var{width:p,height:y}=m.contentRect;u(p,y)}},v=new ResizeObserver(d);v.observe(c),i.current=v}},[t,u]);return S.useEffect(()=>()=>{var c=i.current;c?.disconnect()},[u]),w.createElement(w.Fragment,null,w.createElement(en,{width:a.containerWidth,height:a.containerHeight}),w.createElement("div",tr({ref:s},e)))}),D2=S.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=S.useState({containerWidth:_a(r),containerHeight:_a(n)}),o=S.useCallback((s,c)=>{a(l=>{var f=Math.round(s),d=Math.round(c);return l.containerWidth===f&&l.containerHeight===d?l:{containerWidth:f,containerHeight:d}})},[]),u=S.useCallback(s=>{if(typeof t=="function"&&t(s),s!=null){var{width:c,height:l}=s.getBoundingClientRect();o(c,l)}},[t,o]);return w.createElement(w.Fragment,null,w.createElement(en,{width:i.containerWidth,height:i.containerHeight}),w.createElement("div",tr({ref:u},e)))}),N2=S.forwardRef((e,t)=>{var{width:r,height:n}=e;return w.createElement(w.Fragment,null,w.createElement(en,{width:r,height:n}),w.createElement("div",tr({ref:t},e)))}),$2=S.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?w.createElement(D2,tr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?w.createElement(N2,tr({},e,{width:r,height:n,ref:t})):w.createElement(w.Fragment,null,w.createElement(en,{width:r,height:n}),w.createElement("div",tr({ref:t},e)))});function R2(e){return e?M2:$2}var hw=S.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:u,onMouseDown:s,onMouseEnter:c,onMouseLeave:l,onMouseMove:f,onMouseUp:d,onTouchEnd:v,onTouchMove:h,onTouchStart:m,style:p,width:y,responsive:g,dispatchTouchEvents:b=!0}=e,x=S.useRef(null),P=ie(),[O,E]=S.useState(null),[A,k]=S.useState(null),N=A2(),I=yc(),M=I?.width>0?I.width:y,C=I?.height>0?I.height:i,z=S.useCallback(T=>{N(T),typeof t=="function"&&t(T),E(T),k(T),T!=null&&(x.current=T)},[N,t,E,k]),H=S.useCallback(T=>{P(tw(T)),P(it({handler:a,reactEvent:T}))},[P,a]),V=S.useCallback(T=>{P(Gs(T)),P(it({handler:c,reactEvent:T}))},[P,c]),F=S.useCallback(T=>{P(U0()),P(it({handler:l,reactEvent:T}))},[P,l]),Y=S.useCallback(T=>{P(Gs(T)),P(it({handler:f,reactEvent:T}))},[P,f]),W=S.useCallback(()=>{P(uw())},[P]),ve=S.useCallback(T=>{P(ow(T.key))},[P]),fe=S.useCallback(T=>{P(it({handler:o,reactEvent:T}))},[P,o]),Ce=S.useCallback(T=>{P(it({handler:u,reactEvent:T}))},[P,u]),Ye=S.useCallback(T=>{P(it({handler:s,reactEvent:T}))},[P,s]),ke=S.useCallback(T=>{P(it({handler:d,reactEvent:T}))},[P,d]),At=S.useCallback(T=>{P(it({handler:m,reactEvent:T}))},[P,m]),or=S.useCallback(T=>{b&&P(cw(T)),P(it({handler:h,reactEvent:T}))},[P,b,h]),Me=S.useCallback(T=>{P(it({handler:v,reactEvent:T}))},[P,v]),fn=R2(g);return w.createElement(Ul.Provider,{value:O},w.createElement(cm.Provider,{value:A},w.createElement(fn,{width:M??p?.width,height:C??p?.height,className:ne("recharts-wrapper",n),style:C2({position:"relative",cursor:"default",width:M,height:C},p),onClick:H,onContextMenu:fe,onDoubleClick:Ce,onFocus:W,onKeyDown:ve,onMouseDown:Ye,onMouseEnter:V,onMouseLeave:F,onMouseMove:Y,onMouseUp:ke,onTouchEnd:Me,onTouchMove:or,onTouchStart:At,ref:z},w.createElement(k2,null),r)))}),L2=["width","height","responsive","children","className","style","compact","title","desc"];function z2(e,t){if(e==null)return{};var r,n,i=B2(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function B2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var pw=S.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:o,style:u,compact:s,title:c,desc:l}=e,f=z2(e,L2),d=Ot(f);return s?w.createElement(w.Fragment,null,w.createElement(en,{width:r,height:n}),w.createElement(em,{otherAttributes:d,title:c,desc:l},a)):w.createElement(hw,{className:o,style:u,width:r,height:n,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},w.createElement(em,{otherAttributes:d,title:c,desc:l,ref:t},w.createElement(AD,null,a)))});function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ys.apply(null,arguments)}var F2={top:5,right:5,bottom:5,left:5},W2={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:F2,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},mw=S.forwardRef(function(t,r){var n,i=He(t.categoricalChartProps,W2),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:u,tooltipPayloadSearcher:s,categoricalChartProps:c}=t,l={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:u,tooltipPayloadSearcher:s,eventEmitter:void 0};return w.createElement(fw,{preloadedState:{options:l},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:a},w.createElement(Wb,{chartData:c.data}),w.createElement(dw,{layout:i.layout,margin:i.margin}),w.createElement(vw,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),w.createElement(pw,Ys({},i,{ref:r})))}),q2=["axis","item"],yw=S.forwardRef((e,t)=>w.createElement(mw,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:q2,tooltipPayloadSearcher:db,categoricalChartProps:e,ref:t}));const U2=({active:e,payload:t,label:r,color:n,valueName:i})=>!e||!t||!t.length?null:B.jsxs("div",{style:{backgroundColor:"#0B1220",color:"#FFFFFF",padding:"10px 12px",borderRadius:8,fontSize:12,lineHeight:1.4,minWidth:150,boxShadow:"0 4px 12px rgba(0,0,0,0.4)"},children:[B.jsx("div",{style:{fontWeight:600,marginBottom:6},children:r}),B.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[B.jsx("span",{style:{width:10,height:10,backgroundColor:n,marginRight:6,display:"inline-block"}}),B.jsxs("span",{children:[i||"Valeur"," : ",t[0].value]})]})]}),V2=({color:e,text:t,textColor:r,fontSize:n,fontWeight:i})=>B.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"15px",color:r,fontSize:n,fontWeight:i},children:B.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[B.jsx("span",{style:{width:15,height:10,backgroundColor:e,marginRight:"5px",display:"inline-block"}}),t]})}),K2=({data:e,height:t=220,barColor:r="#94a3b8",textColor:n="#9CA3AF",fontSize:i="10px",fontWeight:a="400",lineColor:o="#F4F4F4",yAxisWidth:u=30,tickCount:s=6,padding:c="0",legendText:l="Valeur",valueName:f="Valeur",showLegend:d=!0})=>{const v=S.useRef(null),[h,m]=S.useState(50);S.useLayoutEffect(()=>{const y=()=>{if(v.current){const g=v.current.getBoundingClientRect().width,b=e.labels?.length||1,E=(g-u-30-b*8)/b;m(Math.max(E,20))}};return y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[e.labels,u]);const p=e.labels.map((y,g)=>({name:y,value:e.values[g]}));return B.jsxs("div",{ref:v,style:{width:"100%",padding:c,borderRadius:"12px"},children:[B.jsx(Ry,{width:"100%",height:t,children:B.jsxs(yw,{data:p,margin:{top:20,right:30,left:0,bottom:0},children:[B.jsx(Jl,{strokeDasharray:"0",vertical:!1,stroke:o}),B.jsx(rf,{dataKey:"name",stroke:n,axisLine:!1,tickLine:!1,tick:{fontSize:i,fontWeight:a}}),B.jsx(nf,{stroke:n,axisLine:!1,tickLine:!1,tickCount:s,tick:{fontSize:i,fontWeight:a},width:u}),B.jsx(pb,{content:B.jsx(U2,{color:r,valueName:f}),cursor:{fill:"#f1f5f9",opacity:.4}}),B.jsx(tf,{dataKey:"value",fill:r,barSize:h,radius:[2,2,0,0]})]})}),d&&B.jsx(V2,{color:r,text:l,textColor:n,fontSize:i,fontWeight:a})]})};exports.Bar=tf;exports.BarChart=yw;exports.CartesianChart=mw;exports.CartesianGrid=Jl;exports.CartesianLabelListContextProvider=Ab;exports.CategoricalChart=pw;exports.Cell=Vl;exports.ChartDataContextProvider=Wb;exports.Curve=Sc;exports.DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME=My;exports.DATA_ITEM_INDEX_ATTRIBUTE_NAME=ky;exports.DefaultZIndexes=$e;exports.Global=Yn;exports.GraphicalItemClipPath=Yb;exports.Icon=im;exports.JavascriptAnimate=Ga;exports.LabelListFromLabelProp=Ib;exports.Layer=Pt;exports.Move=Sw;exports.PeriodRange=Bw;exports.PolarLabelListContextProvider=sM;exports.RechartsStoreProvider=fw;exports.RechartsWrapper=hw;exports.Rectangle=Ec;exports.RegisterGraphicalItemId=Rb;exports.ReportChartMargin=rS;exports.ReportChartProps=vw;exports.ReportChartSize=en;exports.ReportMainChartProps=dw;exports.ResponsiveContainer=Ry;exports.SetCartesianGraphicalItem=zb;exports.SetComputedData=wD;exports.SetErrorBarContext=Gb;exports.SetLegendPayload=$b;exports.SetPolarGraphicalItem=YM;exports.SetPolarLegendPayload=$M;exports.SetTooltipEntrySettings=Nb;exports.Shape=Db;exports.SimpleBarChart=K2;exports.Surface=Zs;exports.Symbols=ic;exports.Text=po;exports.Tooltip=pb;exports.TooltipPortalContext=Ul;exports.XAxis=rf;exports.YAxis=nf;exports.ZIndexLayer=_t;exports.adaptEventHandlers=jm;exports.adaptEventsOfChild=ja;exports.arrayTooltipSearcher=db;exports.clsx=ne;exports.combineAppliedValues=gl;exports.combineAxisDomain=Sl;exports.combineAxisDomainWithNiceTicks=Il;exports.combineCheckedDomain=d0;exports.combineDisplayedData=ml;exports.combineDomainOfAllAppliedNumericalValuesIncludingErrorValues=Ol;exports.combineGraphicalItemsData=pl;exports.combineGraphicalItemsSettings=hl;exports.combineNiceTicks=Al;exports.combineNumericalDomain=Pl;exports.commonjsGlobal=Ew;exports.createLucideIcon=am;exports.createSelector=_;exports.findAllByType=Mb;exports.get=Or;exports.getAugmentedNamespace=_w;exports.getBandSizeOfAxis=In;exports.getCateCoordinateOfLine=gP;exports.getClassNameFromUnknown=jb;exports.getDefaultExportFromCjs=zt;exports.getLinearRegression=Rx;exports.getMaxRadius=tg;exports.getNormalizedStackId=Ty;exports.getPercentValue=ot;exports.getStackSeriesIdentifier=io;exports.getTooltipNameProp=pc;exports.getUniqPayload=Bm;exports.getValueByDataKey=me;exports.implicitZAxis=p0;exports.interpolate=Se;exports.isCategoricalAxis=Bt;exports.isClipDot=yM;exports.isNan=dt;exports.isNonEmptyArray=Yx;exports.isNotNil=Be;exports.isNullish=le;exports.isNumber=R;exports.isPositiveNumber=ht;exports.isWellBehavedNumber=U;exports.itemAxisPredicate=vl;exports.mathSign=ze;exports.mouseLeaveItem=q0;exports.noop=Dr;exports.pickAxisId=ei;exports.pickAxisType=be;exports.polarToCartesian=Ee;exports.propsAreEqual=mo;exports.requireIdentity=ac;exports.requireIteratee=zm;exports.resolveDefaultProps=He;exports.selectActiveTooltipDataKey=zl;exports.selectActiveTooltipGraphicalItemId=NT;exports.selectActiveTooltipIndex=kr;exports.selectAllErrorBarSettings=lo;exports.selectAxisWithScale=jr;exports.selectBaseAxis=Re;exports.selectChartBaseValue=RC;exports.selectChartDataAndAlwaysIgnoreIndexes=rl;exports.selectChartDataWithIndexesIfNotInPanoramaPosition3=Ug;exports.selectChartDataWithIndexesIfNotInPanoramaPosition4=nl;exports.selectChartLayout=Q;exports.selectChartOffsetInternal=ye;exports.selectDomainDefinition=wl;exports.selectDomainFromUserPreference=xl;exports.selectLegendPayload=XO;exports.selectRealScaleType=Br;exports.selectRenderableAxisSettings=on;exports.selectStackGroups=ma;exports.selectStackOffsetType=Jn;exports.selectTicksOfGraphicalItem=Tr;exports.selectUnfilteredCartesianItems=so;exports.selectXAxisIdFromGraphicalItemId=ir;exports.selectYAxisIdFromGraphicalItemId=ar;exports.selectZAxisWithScale=WI;exports.setActiveClickItemIndex=V0;exports.setActiveMouseOverItemIndex=Ml;exports.setLegendSettings=yS;exports.setLegendSize=mS;exports.svgPropertiesAndEvents=We;exports.svgPropertiesAndEventsFromUnknown=Uw;exports.svgPropertiesNoEvents=Ot;exports.svgPropertiesNoEventsFromUnknown=Aa;exports.updatePolarOptions=h2;exports.useActiveTooltipDataPoints=lD;exports.useAnimationId=Ya;exports.useAppDispatch=ie;exports.useAppSelector=L;exports.useCartesianChartLayout=xc;exports.useChartHeight=wc;exports.useChartLayout=Nr;exports.useChartName=ub;exports.useChartWidth=bc;exports.useElementOffset=Km;exports.useIsPanorama=Ue;exports.useLegendPortal=Zw;exports.useMargin=eS;exports.useMouseClickItemDispatch=Yl;exports.useMouseEnterItemDispatch=Hl;exports.useMouseLeaveItemDispatch=Gl;exports.useNeedsClip=ef;exports.usePlotArea=Xl;exports.useViewBox=Hn;
|