@tsiky/components-r19 1.8.25 → 1.8.27
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-BmIYy6cV.cjs +134 -0
- package/dist/{SimpleBarChart-j02KrLhw.js → SimpleBarChart-CRQiy91l.js} +6441 -5580
- package/dist/chart.cjs.js +42 -42
- package/dist/chart.js +5294 -6115
- package/dist/components-r19.css +1 -1
- package/dist/index.cjs.js +1687 -1687
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14152 -13745
- package/dist/src/components/ConfirmationModal/ConfirmationModal.d.ts.map +1 -1
- package/dist/src/components/HorizontalBarChart/HorizontalBarChart.d.ts +10 -0
- package/dist/src/components/HorizontalBarChart/HorizontalBarChart.d.ts.map +1 -1
- package/dist/src/components/LineChart/LineChart.d.ts +55 -0
- package/dist/src/components/LineChart/LineChart.d.ts.map +1 -0
- package/dist/src/components/LineChart/index.d.ts +3 -0
- package/dist/src/components/LineChart/index.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/SimpleBarChart-BDlotwdZ.cjs +0 -134
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";const E=require("react"),q=require("react/jsx-runtime"),Km=require("react-dom");function cx(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 g=cx(E);/**
|
|
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 fx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Bf=e=>{const t=dx(e);return t.charAt(0).toUpperCase()+t.slice(1)},qm=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),vx=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 px={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 Um=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...u},l)=>E.createElement("svg",{ref:l,...px,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:qm("lucide",i),...!a&&!vx(u)&&{"aria-hidden":"true"},...u},[...o.map(([s,c])=>E.createElement(s,c)),...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 Vm=(e,t)=>{const r=E.forwardRef(({className:n,...i},a)=>E.createElement(Um,{ref:a,iconNode:t,className:qm(`lucide-${fx(Bf(e))}`,`lucide-${e}`,n),...i}));return r.displayName=Bf(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 hx=[["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"}]],mx=Vm("move",hx);var yx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gx(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 bx="_wrapper_1ogd3_1",wx="_label_1ogd3_14",xx="_labelText_1ogd3_22",Ox="_calendarIcon_1ogd3_26",Px="_rangeRow_1ogd3_31",Ex="_dateWrap_1ogd3_39",Sx="_innerLabel_1ogd3_47",Ax="_dateInput_1ogd3_52",_x="_sepWrap_1ogd3_65",Cx="_separator_1ogd3_72",jx="_samplingWrap_1ogd3_77",Ix="_samplingLabel_1ogd3_86",kx="_samplingSelect_1ogd3_90",Ne={wrapper:bx,label:wx,labelText:xx,calendarIcon:Ox,rangeRow:Px,dateWrap:Ex,innerLabel:Sx,dateInput:Ax,sepWrap:_x,separator:Cx,samplingWrap:jx,samplingLabel:Ix,samplingSelect:kx};function Tx({start:e="",end:t="",onChange:r,sampling:n="day",onSamplingChange:i,labels:a={},samplingOptions:o={},className:u=""}){const l={period:"Période",start:"Début",end:"Fin",sampling:"Échantillonnage",...a},s={hour:"Par heure",day:"Par jour",week:"Par semaine",month:"Par mois",...o},[c,f]=E.useState(e),[d,v]=E.useState(t),[p,m]=E.useState(n),h=E.useRef(null);E.useEffect(()=>f(e),[e]),E.useEffect(()=>v(t),[t]),E.useEffect(()=>m(n),[n]),E.useEffect(()=>{function b(w){const x=w.target;h.current&&x&&h.current.contains(x)}return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]),E.useEffect(()=>{r?.({start:c,end:d})},[c,d,r]);const y=b=>{m(b),i?.(b)};return q.jsxs("div",{className:`${Ne.wrapper} ${u}`,ref:h,children:[q.jsxs("label",{className:Ne.label,"aria-hidden":!0,children:[q.jsxs("svg",{className:Ne.calendarIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18","aria-hidden":!0,children:[q.jsx("path",{fill:"currentColor",d:"M7 10h5v5H7z",opacity:"0"}),q.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"})]}),q.jsx("span",{className:Ne.labelText,children:l.period})]}),q.jsxs("div",{className:Ne.rangeRow,children:[q.jsxs("div",{className:Ne.dateWrap,children:[q.jsx("label",{className:Ne.innerLabel,htmlFor:"period-from",children:l.start}),q.jsx("input",{id:"period-from",className:Ne.dateInput,type:"date",value:c,onChange:b=>f(b.target.value),"aria-label":l.start})]}),q.jsx("div",{className:Ne.sepWrap,"aria-hidden":!0,children:q.jsx("span",{className:Ne.separator,children:"—"})}),q.jsxs("div",{className:Ne.dateWrap,children:[q.jsx("label",{className:Ne.innerLabel,htmlFor:"period-to",children:l.end}),q.jsx("div",{className:Ne.inputWithIcon,children:q.jsx("input",{id:"period-to",className:Ne.dateInput,type:"date",value:d,onChange:b=>v(b.target.value),"aria-label":l.end})})]}),q.jsxs("div",{className:Ne.samplingWrap,children:[q.jsx("label",{className:Ne.samplingLabel,htmlFor:"period-sampling",children:l.sampling}),q.jsxs("select",{id:"period-sampling",className:Ne.samplingSelect,value:p,onChange:b=>y(b.target.value),"aria-label":l.sampling,children:[q.jsx("option",{value:"hour",children:s.hour}),q.jsx("option",{value:"day",children:s.day}),q.jsx("option",{value:"week",children:s.week}),q.jsx("option",{value:"month",children:s.month})]})]})]})]})}function Hm(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=Hm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Y(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Hm(e))&&(n&&(n+=" "),n+=t);return n}var Dx=["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 Es(e){if(typeof e!="string")return!1;var t=Dx;return t.includes(e)}var Mx=["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"],Nx=new Set(Mx);function Gm(e){return typeof e!="string"?!1:Nx.has(e)}function Ym(e){return typeof e=="string"&&e.startsWith("data-")}function Qe(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Gm(r)||Ym(r))&&(t[r]=e[r]);return t}function ur(e){if(e==null)return null;if(E.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Qe(t)}return typeof e=="object"&&!Array.isArray(e)?Qe(e):null}function qe(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Gm(r)||Ym(r)||Es(r))&&(t[r]=e[r]);return t}function $x(e){return e==null?null:E.isValidElement(e)?qe(e.props):typeof e=="object"&&!Array.isArray(e)?qe(e):null}var Rx=["children","width","height","viewBox","className","style","title","desc"];function Ol(){return Ol=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},Ol.apply(null,arguments)}function Lx(e,t){if(e==null)return{};var r,n,i=zx(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 zx(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 Ss=E.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:l,desc:s}=e,c=Lx(e,Rx),f=a||{width:n,height:i,x:0,y:0},d=Y("recharts-surface",o);return g.createElement("svg",Ol({},qe(c),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),g.createElement("title",null,l),g.createElement("desc",null,s),r)}),Bx=["children","className"];function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pl.apply(null,arguments)}function Fx(e,t){if(e==null)return{};var r,n,i=Wx(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 Wx(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 Ee=g.forwardRef((e,t)=>{var{children:r,className:n}=e,i=Fx(e,Bx),a=Y("recharts-layer",n);return g.createElement("g",Pl({className:a},qe(i),{ref:t}),r)}),Xm=E.createContext(null),Kx=()=>E.useContext(Xm);function ae(e){return function(){return e}}const Zm=Math.cos,Yi=Math.sin,wt=Math.sqrt,Xi=Math.PI,Wa=2*Xi,El=Math.PI,Sl=2*El,wr=1e-6,qx=Sl-wr;function Qm(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Ux(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Qm;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 Vx{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Qm:Ux(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,l=n-t,s=i-r,c=o-t,f=u-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>wr)if(!(Math.abs(f*l-s*c)>wr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,p=i-u,m=l*l+s*s,h=v*v+p*p,y=Math.sqrt(m),b=Math.sqrt(d),w=a*Math.tan((El-Math.acos((m+d-h)/(2*y*b)))/2),x=w/b,P=w/y;Math.abs(x-1)>wr&&this._append`L${t+x*c},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*v>c*p)},${this._x1=t+P*l},${this._y1=r+P*s}`}}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),l=n*Math.sin(i),s=t+u,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${c}`:(Math.abs(this._x1-s)>wr||Math.abs(this._y1-c)>wr)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%Sl+Sl),d>qx?this._append`A${n},${n},0,1,${f},${t-u},${r-l}A${n},${n},0,1,${f},${this._x1=s},${this._y1=c}`:d>wr&&this._append`A${n},${n},0,${+(d>=El)},${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 As(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 Vx(t)}function _s(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Jm(e){this._context=e}Jm.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 Ka(e){return new Jm(e)}function ey(e){return e[0]}function ty(e){return e[1]}function ry(e,t){var r=ae(!0),n=null,i=Ka,a=null,o=As(u);e=typeof e=="function"?e:e===void 0?ey:ae(e),t=typeof t=="function"?t:t===void 0?ty:ae(t);function u(l){var s,c=(l=_s(l)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),s=0;s<=c;++s)!(s<c&&r(f=l[s],s,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,s,l),+t(f,s,l));if(v)return a=null,v+""||null}return u.x=function(l){return arguments.length?(e=typeof l=="function"?l:ae(+l),u):e},u.y=function(l){return arguments.length?(t=typeof l=="function"?l:ae(+l),u):t},u.defined=function(l){return arguments.length?(r=typeof l=="function"?l:ae(!!l),u):r},u.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),u):i},u.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),u):n},u}function Oi(e,t,r){var n=null,i=ae(!0),a=null,o=Ka,u=null,l=As(s);e=typeof e=="function"?e:e===void 0?ey:ae(+e),t=typeof t=="function"?t:ae(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ty:ae(+r);function s(f){var d,v,p,m=(f=_s(f)).length,h,y=!1,b,w=new Array(m),x=new Array(m);for(a==null&&(u=o(b=l())),d=0;d<=m;++d){if(!(d<m&&i(h=f[d],d,f))===y)if(y=!y)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=d-1;p>=v;--p)u.point(w[p],x[p]);u.lineEnd(),u.areaEnd()}y&&(w[d]=+e(h,d,f),x[d]=+t(h,d,f),u.point(n?+n(h,d,f):w[d],r?+r(h,d,f):x[d]))}if(b)return u=null,b+""||null}function c(){return ry().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:ae(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ae(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ae(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:ae(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ae(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ae(+f),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ae(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class ny{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 Hx(e){return new ny(e,!0)}function Gx(e){return new ny(e,!1)}const Cs={draw(e,t){const r=wt(t/Xi);e.moveTo(r,0),e.arc(0,0,r,0,Wa)}},Yx={draw(e,t){const r=wt(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()}},iy=wt(1/3),Xx=iy*2,Zx={draw(e,t){const r=wt(t/Xx),n=r*iy;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Qx={draw(e,t){const r=wt(t),n=-r/2;e.rect(n,n,r,r)}},Jx=.8908130915292852,ay=Yi(Xi/10)/Yi(7*Xi/10),eO=Yi(Wa/10)*ay,tO=-Zm(Wa/10)*ay,rO={draw(e,t){const r=wt(t*Jx),n=eO*r,i=tO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Wa*a/5,u=Zm(o),l=Yi(o);e.lineTo(l*r,-u*r),e.lineTo(u*n-l*i,l*n+u*i)}e.closePath()}},Bo=wt(3),nO={draw(e,t){const r=-wt(t/(Bo*3));e.moveTo(0,r*2),e.lineTo(-Bo*r,-r),e.lineTo(Bo*r,-r),e.closePath()}},ut=-.5,lt=wt(3)/2,Al=1/wt(12),iO=(Al/2+1)*3,aO={draw(e,t){const r=wt(t/iO),n=r/2,i=r*Al,a=n,o=r*Al+r,u=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(ut*n-lt*i,lt*n+ut*i),e.lineTo(ut*a-lt*o,lt*a+ut*o),e.lineTo(ut*u-lt*l,lt*u+ut*l),e.lineTo(ut*n+lt*i,ut*i-lt*n),e.lineTo(ut*a+lt*o,ut*o-lt*a),e.lineTo(ut*u+lt*l,ut*l-lt*u),e.closePath()}};function oO(e,t){let r=null,n=As(i);e=typeof e=="function"?e:ae(e||Cs),t=typeof t=="function"?t:ae(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:ae(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ae(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Zi(){}function Qi(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 oy(e){this._context=e}oy.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:Qi(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:Qi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uO(e){return new oy(e)}function uy(e){this._context=e}uy.prototype={areaStart:Zi,areaEnd:Zi,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:Qi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lO(e){return new uy(e)}function ly(e){this._context=e}ly.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:Qi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sO(e){return new ly(e)}function sy(e){this._context=e}sy.prototype={areaStart:Zi,areaEnd:Zi,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 cO(e){return new sy(e)}function Ff(e){return e<0?-1:1}function Wf(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(Ff(a)+Ff(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Kf(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Fo(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 Ji(e){this._context=e}Ji.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:Fo(this,this._t0,Kf(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,Fo(this,Kf(this,r=Wf(this,e,t)),r);break;default:Fo(this,this._t0,r=Wf(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function cy(e){this._context=new fy(e)}(cy.prototype=Object.create(Ji.prototype)).point=function(e,t){Ji.prototype.point.call(this,t,e)};function fy(e){this._context=e}fy.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 fO(e){return new Ji(e)}function dO(e){return new cy(e)}function dy(e){this._context=e}dy.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=qf(e),i=qf(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 qf(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 vO(e){return new dy(e)}function qa(e,t){this._context=e,this._t=t}qa.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 pO(e){return new qa(e,.5)}function hO(e){return new qa(e,0)}function mO(e){return new qa(e,1)}function Tr(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 _l(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function yO(e,t){return e[t]}function gO(e){const t=[];return t.key=e,t}function bO(){var e=ae([]),t=_l,r=Tr,n=yO;function i(a){var o=Array.from(e.apply(this,arguments),gO),u,l=o.length,s=-1,c;for(const f of a)for(u=0,++s;u<l;++u)(o[u][s]=[0,+n(f,o[u].key,s,a)]).data=f;for(u=0,c=_s(t(o));u<l;++u)o[c[u]].index=u;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ae(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ae(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?_l:typeof a=="function"?a:ae(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Tr,i):r},i}function wO(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}Tr(e,t)}}function xO(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}Tr(e,t)}}function OO(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,l=0,s=0;u<o;++u){for(var c=e[t[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,p=0;p<u;++p){var m=e[t[p]],h=m[n][1]||0,y=m[n-1][1]||0;v+=h-y}l+=f,s+=v*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=s/l)}i[n-1][1]+=i[n-1][0]=r,Tr(e,t)}}var Wo={},Ko={},Uf;function PO(){return Uf||(Uf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t}(Ko)),Ko}var qo={},Vf;function vy(){return Vf||(Vf=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}(qo)),qo}var Uo={},Hf;function js(){return Hf||(Hf=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}(Uo)),Uo}var Vo={},Ho={},Gf;function EO(){return Gf||(Gf=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}(Ho)),Ho}var Yf;function Is(){return Yf||(Yf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EO(),r=js();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,l="",s="",c=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<o;){const f=i[u];s?f==="\\"&&u+1<o?(u++,l+=i[u]):f===s?s="":l+=f:c?f==='"'||f==="'"?s=f:f==="]"?(c=!1,a.push(l),l=""):l+=f:f==="["?(c=!0,l&&(a.push(l),l="")):f==="."?l&&(a.push(l),l=""):l+=f,u++}return l&&a.push(l),a}e.toPath=n}(Vo)),Vo}var Xf;function ks(){return Xf||(Xf=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PO(),r=vy(),n=js(),i=Is();function a(u,l,s){if(u==null)return s;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?r.isDeepKey(l)?a(u,i.toPath(l),s):s:c}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const c=u[l];return c===void 0?s:c}default:{if(Array.isArray(l))return o(u,l,s);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return s;const c=u[l];return c===void 0?s:c}}}function o(u,l,s){if(l.length===0)return s;let c=u;for(let f=0;f<l.length;f++){if(c==null||t.isUnsafeProperty(l[f]))return s;c=c[l[f]]}return c===void 0?s:c}e.get=a}(Wo)),Wo}var Go,Zf;function SO(){return Zf||(Zf=1,Go=ks().get),Go}var AO=SO();const lr=Ht(AO);var _O=4;function ir(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_O,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function pe(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+ir(u)+a:i+a},"")}var Te=e=>e===0?0:e>0?1:-1,mt=e=>typeof e=="number"&&e!=+e,Dr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,$=e=>(typeof e=="number"||e instanceof Number)&&!mt(e),yt=e=>$(e)||typeof e=="string",CO=0,Mn=e=>{var t=++CO;return"".concat(e||"").concat(t)},Ke=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(!$(t)&&typeof t!="string")return n;var a;if(Dr(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return mt(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},py=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 ue(e,t,r){return $(e)&&$(t)?ir(e+r*(t-e)):t}function hy(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):lr(n,t))===r)}var jO=e=>{for(var t=e.length,r=0,n=0,i=0,a=0,o=1/0,u=-1/0,l=0,s=0,c=0;c<t;c++){var f,d;l=((f=e[c])===null||f===void 0?void 0:f.cx)||0,s=((d=e[c])===null||d===void 0?void 0:d.cy)||0,r+=l,n+=s,i+=l*s,a+=l*l,o=Math.min(o,l),u=Math.max(u,l)}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}},ce=e=>e===null||typeof e>"u",Xn=e=>ce(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Ve(e){return e!=null}function cr(){}var IO=["type","size","sizeType"];function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(null,arguments)}function Qf(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 Jf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qf(Object(r),!0).forEach(function(n){kO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kO(e,t,r){return(t=TO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TO(e){var t=DO(e,"string");return typeof t=="symbol"?t:t+""}function DO(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 MO(e,t){if(e==null)return{};var r,n,i=NO(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 NO(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 my={symbolCircle:Cs,symbolCross:Yx,symbolDiamond:Zx,symbolSquare:Qx,symbolStar:rO,symbolTriangle:nO,symbolWye:aO},$O=Math.PI/180,RO=e=>{var t="symbol".concat(Xn(e));return my[t]||Cs},LO=(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*$O;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}},zO=(e,t)=>{my["symbol".concat(Xn(e))]=t},Ts=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=MO(e,IO),a=Jf(Jf({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=RO(o),v=oO().type(d).size(LO(r,n,o)),p=v();if(p!==null)return p},{className:l,cx:s,cy:c}=a,f=qe(a);return $(s)&&$(c)&&$(r)?g.createElement("path",Cl({},f,{className:Y("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:u()})):null};Ts.registerSymbol=zO;var yy=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Ds=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(E.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{Es(i)&&(n[i]=a=>r[i](r,a))}),n},BO=(e,t,r)=>n=>(e(t,r,n),null),Zn=(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];Es(i)&&typeof a=="function"&&(n||(n={}),n[i]=BO(a,t,r))}),n},FO=e=>Array.isArray(e)&&e.length>0;function ed(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 WO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ed(Object(r),!0).forEach(function(n){KO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ed(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KO(e,t,r){return(t=qO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qO(e){var t=UO(e,"string");return typeof t=="symbol"?t:t+""}function UO(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 Se(e,t){var r=WO({},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 Yo={},Xo={},td;function VO(){return td||(td=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}(Xo)),Xo}var Zo={},rd;function HO(){return rd||(rd=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}(Zo)),Zo}var Qo={},nd;function Ms(){return nd||(nd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t}(Qo)),Qo}var Jo={},eu={},tu={},id;function GO(){return id||(id=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t}(tu)),tu}var ad;function Ns(){return ad||(ad=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GO();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r}(eu)),eu}var ru={},od;function YO(){return od||(od=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t}(ru)),ru}var ud;function XO(){return ud||(ud=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ns(),r=YO();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n}(Jo)),Jo}var nu={},iu={},ld;function ZO(){return ld||(ld=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ks();function r(n){return function(i){return t.get(i,n)}}e.property=r}(iu)),iu}var au={},ou={},uu={},lu={},sd;function gy(){return sd||(sd=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}(lu)),lu}var su={},cd;function by(){return cd||(cd=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}(su)),su}var cu={},fd;function wy(){return fd||(fd=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}(cu)),cu}var dd;function QO(){return dd||(dd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gy(),r=by(),n=wy();function i(c,f,d){return typeof d!="function"?i(c,f,()=>{}):a(c,f,function v(p,m,h,y,b,w){const x=d(p,m,h,y,b,w);return x!==void 0?!!x:a(p,m,v,w)},new Map)}function a(c,f,d,v){if(f===c)return!0;switch(typeof f){case"object":return o(c,f,d,v);case"function":return Object.keys(f).length>0?a(c,{...f},d,v):n.isEqualsSameValueZero(c,f);default:return t.isObject(c)?typeof f=="string"?f==="":!0:n.isEqualsSameValueZero(c,f)}}function o(c,f,d,v){if(f==null)return!0;if(Array.isArray(f))return l(c,f,d,v);if(f instanceof Map)return u(c,f,d,v);if(f instanceof Set)return s(c,f,d,v);const p=Object.keys(f);if(c==null||r.isPrimitive(c))return p.length===0;if(p.length===0)return!0;if(v?.has(f))return v.get(f)===c;v?.set(f,c);try{for(let m=0;m<p.length;m++){const h=p[m];if(!r.isPrimitive(c)&&!(h in c)||f[h]===void 0&&c[h]!==void 0||f[h]===null&&c[h]!==null||!d(c[h],f[h],h,c,f,v))return!1}return!0}finally{v?.delete(f)}}function u(c,f,d,v){if(f.size===0)return!0;if(!(c instanceof Map))return!1;for(const[p,m]of f.entries()){const h=c.get(p);if(d(h,m,p,c,f,v)===!1)return!1}return!0}function l(c,f,d,v){if(f.length===0)return!0;if(!Array.isArray(c))return!1;const p=new Set;for(let m=0;m<f.length;m++){const h=f[m];let y=!1;for(let b=0;b<c.length;b++){if(p.has(b))continue;const w=c[b];let x=!1;if(d(w,h,m,c,f,v)&&(x=!0),x){p.add(b),y=!0;break}}if(!y)return!1}return!0}function s(c,f,d,v){return f.size===0?!0:c instanceof Set?l([...c],[...f],d,v):!1}e.isMatchWith=i,e.isSetMatch=s}(uu)),uu}var vd;function xy(){return vd||(vd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QO();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r}(ou)),ou}var fu={},du={},vu={},pd;function JO(){return pd||(pd=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}(vu)),vu}var pu={},hd;function $s(){return hd||(hd=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}(pu)),pu}var hu={},md;function Oy(){return md||(md=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]",l="[object Map]",s="[object Set]",c="[object Array]",f="[object Function]",d="[object ArrayBuffer]",v="[object Object]",p="[object Error]",m="[object DataView]",h="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",w="[object Uint32Array]",x="[object BigUint64Array]",P="[object Int8Array]",O="[object Int16Array]",S="[object Int32Array]",_="[object BigInt64Array]",T="[object Float32Array]",M="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=d,e.arrayTag=c,e.bigInt64ArrayTag=_,e.bigUint64ArrayTag=x,e.booleanTag=i,e.dataViewTag=m,e.dateTag=u,e.errorTag=p,e.float32ArrayTag=T,e.float64ArrayTag=M,e.functionTag=f,e.int16ArrayTag=O,e.int32ArrayTag=S,e.int8ArrayTag=P,e.mapTag=l,e.numberTag=n,e.objectTag=v,e.regexpTag=t,e.setTag=s,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=b,e.uint32ArrayTag=w,e.uint8ArrayTag=h,e.uint8ClampedArrayTag=y}(hu)),hu}var mu={},yd;function eP(){return yd||(yd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t}(mu)),mu}var gd;function Py(){return gd||(gd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=JO(),r=$s(),n=Oy(),i=by(),a=eP();function o(c,f){return u(c,void 0,c,new Map,f)}function u(c,f,d,v=new Map,p=void 0){const m=p?.(c,f,d,v);if(m!==void 0)return m;if(i.isPrimitive(c))return c;if(v.has(c))return v.get(c);if(Array.isArray(c)){const h=new Array(c.length);v.set(c,h);for(let y=0;y<c.length;y++)h[y]=u(c[y],y,d,v,p);return Object.hasOwn(c,"index")&&(h.index=c.index),Object.hasOwn(c,"input")&&(h.input=c.input),h}if(c instanceof Date)return new Date(c.getTime());if(c instanceof RegExp){const h=new RegExp(c.source,c.flags);return h.lastIndex=c.lastIndex,h}if(c instanceof Map){const h=new Map;v.set(c,h);for(const[y,b]of c)h.set(y,u(b,y,d,v,p));return h}if(c instanceof Set){const h=new Set;v.set(c,h);for(const y of c)h.add(u(y,void 0,d,v,p));return h}if(typeof Buffer<"u"&&Buffer.isBuffer(c))return c.subarray();if(a.isTypedArray(c)){const h=new(Object.getPrototypeOf(c)).constructor(c.length);v.set(c,h);for(let y=0;y<c.length;y++)h[y]=u(c[y],y,d,v,p);return h}if(c instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&c instanceof SharedArrayBuffer)return c.slice(0);if(c instanceof DataView){const h=new DataView(c.buffer.slice(0),c.byteOffset,c.byteLength);return v.set(c,h),l(h,c,d,v,p),h}if(typeof File<"u"&&c instanceof File){const h=new File([c],c.name,{type:c.type});return v.set(c,h),l(h,c,d,v,p),h}if(typeof Blob<"u"&&c instanceof Blob){const h=new Blob([c],{type:c.type});return v.set(c,h),l(h,c,d,v,p),h}if(c instanceof Error){const h=new c.constructor;return v.set(c,h),h.message=c.message,h.name=c.name,h.stack=c.stack,h.cause=c.cause,l(h,c,d,v,p),h}if(c instanceof Boolean){const h=new Boolean(c.valueOf());return v.set(c,h),l(h,c,d,v,p),h}if(c instanceof Number){const h=new Number(c.valueOf());return v.set(c,h),l(h,c,d,v,p),h}if(c instanceof String){const h=new String(c.valueOf());return v.set(c,h),l(h,c,d,v,p),h}if(typeof c=="object"&&s(c)){const h=Object.create(Object.getPrototypeOf(c));return v.set(c,h),l(h,c,d,v,p),h}return c}function l(c,f,d=c,v,p){const m=[...Object.keys(f),...t.getSymbols(f)];for(let h=0;h<m.length;h++){const y=m[h],b=Object.getOwnPropertyDescriptor(c,y);(b==null||b.writable)&&(c[y]=u(f[y],y,d,v,p))}}function s(c){switch(r.getTag(c)){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=l}(du)),du}var bd;function tP(){return bd||(bd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Py();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r}(fu)),fu}var wd;function rP(){return wd||(wd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xy(),r=tP();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n}(au)),au}var yu={},gu={},bu={},xd;function nP(){return xd||(xd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Py(),r=$s(),n=Oy();function i(a,o){return t.cloneDeepWith(a,(u,l,s,c)=>{const f=o?.(u,l,s,c);if(f!==void 0)return f;if(typeof a=="object"){if(r.getTag(a)===n.objectTag&&typeof a.constructor!="function"){const d={};return c.set(a,d),t.copyProperties(d,a,s,c),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}(bu)),bu}var Od;function iP(){return Od||(Od=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nP();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r}(gu)),gu}var wu={},xu={},Pd;function Ey(){return Pd||(Pd=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}(xu)),xu}var Ou={},Ed;function aP(){return Ed||(Ed=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$s();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r}(Ou)),Ou}var Sd;function oP(){return Sd||(Sd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vy(),r=Ey(),n=aP(),i=Is();function a(o,u){let l;if(Array.isArray(u)?l=u:typeof u=="string"&&t.isDeepKey(u)&&o?.[u]==null?l=i.toPath(u):l=[u],l.length===0)return!1;let s=o;for(let c=0;c<l.length;c++){const f=l[c];if((s==null||!Object.hasOwn(s,f))&&!((Array.isArray(s)||n.isArguments(s))&&r.isIndex(f)&&f<s.length))return!1;s=s[f]}return!0}e.has=a}(wu)),wu}var Ad;function uP(){return Ad||(Ad=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xy(),r=js(),n=iP(),i=ks(),a=oP();function o(u,l){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return l=n.cloneDeep(l),function(s){const c=i.get(s,u);return c===void 0?a.has(s,u):l===void 0?c===void 0:t.isMatch(c,l)}}e.matchesProperty=o}(yu)),yu}var _d;function Sy(){return _d||(_d=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ms(),r=ZO(),n=rP(),i=uP();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}(nu)),nu}var Cd;function lP(){return Cd||(Cd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VO(),r=HO(),n=Ms(),i=XO(),a=Sy();function o(u,l=n.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),r.ary(a.iteratee(l),1)):[]}e.uniqBy=o}(Yo)),Yo}var Pu,jd;function sP(){return jd||(jd=1,Pu=lP().uniqBy),Pu}var cP=sP();const Id=Ht(cP);function Ay(e,t,r){return t===!0?Id(e,r):typeof t=="function"?Id(e,t):e}var Pi={exports:{}},Eu={},Ei={exports:{}},Su={};/**
|
|
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 kd;function fP(){if(kd)return Su;kd=1;var e=E;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(),p=n({inst:{value:v,getSnapshot:d}}),m=p[0].inst,h=p[1];return a(function(){m.value=v,m.getSnapshot=d,l(m)&&h({inst:m})},[f,v,d]),i(function(){return l(m)&&h({inst:m}),f(function(){l(m)&&h({inst:m})})},[f]),o(v),v}function l(f){var d=f.getSnapshot;f=f.value;try{var v=d();return!r(f,v)}catch{return!0}}function s(f,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:u;return Su.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Su}var Au={};/**
|
|
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 dP(){return Td||(Td=1,process.env.NODE_ENV!=="production"&&function(){function e(v,p){return v===p&&(v!==0||1/v===1/p)||v!==v&&p!==p}function t(v,p){c||i.startTransition===void 0||(c=!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=p();if(!f){var h=p();a(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}h=o({inst:{value:m,getSnapshot:p}});var y=h[0].inst,b=h[1];return l(function(){y.value=m,y.getSnapshot=p,r(y)&&b({inst:y})},[v,m,p]),u(function(){return r(y)&&b({inst:y}),v(function(){r(y)&&b({inst:y})})},[v]),s(m),m}function r(v){var p=v.getSnapshot;v=v.value;try{var m=p();return!a(v,m)}catch{return!0}}function n(v,p){return p()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=E,a=typeof Object.is=="function"?Object.is:e,o=i.useState,u=i.useEffect,l=i.useLayoutEffect,s=i.useDebugValue,c=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Au.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())}()),Au}var Dd;function _y(){return Dd||(Dd=1,process.env.NODE_ENV==="production"?Ei.exports=fP():Ei.exports=dP()),Ei.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 Md;function vP(){if(Md)return Eu;Md=1;var e=E,t=_y();function r(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,u=e.useMemo,l=e.useDebugValue;return Eu.useSyncExternalStoreWithSelector=function(s,c,f,d,v){var p=a(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=u(function(){function y(O){if(!b){if(b=!0,w=O,O=d(O),v!==void 0&&m.hasValue){var S=m.value;if(v(S,O))return x=S}return x=O}if(S=x,n(w,O))return S;var _=d(O);return v!==void 0&&v(S,_)?(w=O,S):(w=O,x=_)}var b=!1,w,x,P=f===void 0?null:f;return[function(){return y(c())},P===null?void 0:function(){return y(P())}]},[c,f,d,v]);var h=i(s,p[0],p[1]);return o(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},Eu}var _u={};/**
|
|
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 Nd;function pP(){return Nd||(Nd=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=E,r=_y(),n=typeof Object.is=="function"?Object.is:e,i=r.useSyncExternalStore,a=t.useRef,o=t.useEffect,u=t.useMemo,l=t.useDebugValue;_u.useSyncExternalStoreWithSelector=function(s,c,f,d,v){var p=a(null);if(p.current===null){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=u(function(){function y(O){if(!b){if(b=!0,w=O,O=d(O),v!==void 0&&m.hasValue){var S=m.value;if(v(S,O))return x=S}return x=O}if(S=x,n(w,O))return S;var _=d(O);return v!==void 0&&v(S,_)?(w=O,S):(w=O,x=_)}var b=!1,w,x,P=f===void 0?null:f;return[function(){return y(c())},P===null?void 0:function(){return y(P())}]},[c,f,d,v]);var h=i(s,p[0],p[1]);return o(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),_u}var $d;function hP(){return $d||($d=1,process.env.NODE_ENV==="production"?Pi.exports=vP():Pi.exports=pP()),Pi.exports}var mP=hP(),Rs=E.createContext(null),yP=e=>e,ie=()=>{var e=E.useContext(Rs);return e?e.store.dispatch:yP},qi=()=>{},gP=()=>qi,bP=(e,t)=>e===t;function L(e){var t=E.useContext(Rs),r=E.useMemo(()=>t?n=>{if(n!=null)return e(n)}:qi,[t,e]);return mP.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:gP,t?t.store.getState:qi,t?t.store.getState:qi,r,bP)}var wP=(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})}}},xP=(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 s;try{throw new Error}catch(c){({stack:s}=c)}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:s})}},OP={inputStabilityCheck:"once",identityFunctionCheck:"once"};function PP(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function EP(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function SP(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 Rd=e=>Array.isArray(e)?e:[e];function AP(e){const t=Array.isArray(e[0])?e[0]:e;return SP(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ld(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var _P=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...OP,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:wP},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:xP}}},CP=class{constructor(e){this.value=e}deref(){return this.value}},jP=typeof WeakRef<"u"?WeakRef:CP,IP=0,zd=1;function Si(){return{s:IP,v:void 0,o:null,p:null}}function Cy(e,t={}){let r=Si();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let u=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const v=arguments[f];if(typeof v=="function"||typeof v=="object"&&v!==null){let p=u.o;p===null&&(u.o=p=new WeakMap);const m=p.get(v);m===void 0?(u=Si(),p.set(v,u)):u=m}else{let p=u.p;p===null&&(u.p=p=new Map);const m=p.get(v);m===void 0?(u=Si(),p.set(v,u)):u=m}}const s=u;let c;if(u.s===zd)c=u.v;else if(c=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,c)&&(c=f,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new jP(c):c}return s.s=zd,s.v=c,c}return o.clearCache=()=>{r=Si(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function kP(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,l={},s=i.pop();typeof s=="object"&&(l=s,s=i.pop()),PP(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:v=Cy,argsMemoizeOptions:p=[],devModeChecks:m={}}=c,h=Rd(d),y=Rd(p),b=AP(i),w=f(function(){return a++,s.apply(null,arguments)},...h);let x=!0;const P=v(function(){o++;const S=Ld(b,arguments);if(u=w.apply(null,S),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:_,inputStabilityCheck:T}=_P(x,m);if(_.shouldRun&&_.run(s,S,u),T.shouldRun){const M=Ld(b,arguments);T.run({inputSelectorResults:S,inputSelectorResultsCopy:M},{memoize:f,memoizeOptions:h},arguments)}x&&(x=!1)}return u},...y);return Object.assign(P,{resultFunc:s,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var A=kP(Cy),TP=Object.assign((e,t=A)=>{EP(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,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>TP}),Cu={},ju={},Iu={},Bd;function DP(){return Bd||(Bd=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}(Iu)),Iu}var ku={},Tu={},Fd;function jy(){return Fd||(Fd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t}(Tu)),Tu}var Wd;function MP(){return Wd||(Wd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jy(),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}(ku)),ku}var Kd;function NP(){return Kd||(Kd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DP(),r=MP(),n=Is();function i(a,o,u,l){if(a==null)return[];u=l?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 s=(v,p)=>{let m=v;for(let h=0;h<p.length&&m!=null;++h)m=m[p[h]];return m},c=(v,p)=>p==null||v==null?p:typeof v=="object"&&"key"in v?Object.hasOwn(p,v.key)?p[v.key]:s(p,v.path):typeof v=="function"?v(p):Array.isArray(v)?s(p,v):typeof p=="object"?p[v]:p,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(p=>c(p,v))})).slice().sort((v,p)=>{for(let m=0;m<f.length;m++){const h=t.compareValues(v.criteria[m],p.criteria[m],u[m]);if(h!==0)return h}return 0}).map(v=>v.original)}e.orderBy=i}(ju)),ju}var Du={},qd;function $P(){return qd||(qd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,l)=>{for(let s=0;s<u.length;s++){const c=u[s];Array.isArray(c)&&l<a?o(c,l+1):i.push(c)}};return o(r,0),i}e.flatten=t}(Du)),Du}var Mu={},Ud;function Iy(){return Ud||(Ud=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ey(),r=Ns(),n=gy(),i=wy();function a(o,u,l){return n.isObject(l)&&(typeof u=="number"&&r.isArrayLike(l)&&t.isIndex(u)&&u<l.length||typeof u=="string"&&u in l)?i.isEqualsSameValueZero(l[u],o):!1}e.isIterateeCall=a}(Mu)),Mu}var Vd;function RP(){return Vd||(Vd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=NP(),r=$P(),n=Iy();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}(Cu)),Cu}var Nu,Hd;function LP(){return Hd||(Hd=1,Nu=RP().sortBy),Nu}var zP=LP();const Ua=Ht(zP);var ky=e=>e.legend.settings,BP=e=>e.legend.size,FP=e=>e.legend.payload,WP=A([FP,ky],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Ua(n,r):n}),Ai=1;function Ty(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=E.useState({height:0,left:0,top:0,width:0}),n=E.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)>Ai||Math.abs(o.left-t.left)>Ai||Math.abs(o.top-t.top)>Ai||Math.abs(o.width-t.width)>Ai)&&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 $e(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 KP=typeof Symbol=="function"&&Symbol.observable||"@@observable",Gd=KP,$u=()=>Math.random().toString(36).substring(7).split("").join("."),qP={INIT:`@@redux/INIT${$u()}`,REPLACE:`@@redux/REPLACE${$u()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$u()}`},Cr=qP;function Qn(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 UP(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(GP(e))return"date";if(HP(e))return"error";const r=VP(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 VP(e){return typeof e.constructor=="function"?e.constructor.name:null}function HP(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function GP(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function er(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=UP(e)),t}function Dy(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?$e(2):`Expected the root reducer to be a function. Instead, received: '${er(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?$e(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"?$e(1):`Expected the enhancer to be a function. Instead, received: '${er(r)}'`);return r(Dy)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,l=!1;function s(){o===a&&(o=new Map,a.forEach((h,y)=>{o.set(y,h)}))}function c(){if(l)throw new Error(process.env.NODE_ENV==="production"?$e(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(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?$e(4):`Expected the listener to be a function. Instead, received: '${er(h)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?$e(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;s();const b=u++;return o.set(b,h),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?$e(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,s(),o.delete(b),a=null}}}function d(h){if(!Qn(h))throw new Error(process.env.NODE_ENV==="production"?$e(7):`Actions must be plain objects. Instead, the actual type was: '${er(h)}'. 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 h.type>"u")throw new Error(process.env.NODE_ENV==="production"?$e(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof h.type!="string")throw new Error(process.env.NODE_ENV==="production"?$e(17):`Action "type" property must be a string. Instead, the actual type was: '${er(h.type)}'. Value was: '${h.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?$e(9):"Reducers may not dispatch actions.");try{l=!0,i=n(i,h)}finally{l=!1}return(a=o).forEach(b=>{b()}),h}function v(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?$e(10):`Expected the nextReducer to be a function. Instead, received: '${er(h)}`);n=h,d({type:Cr.REPLACE})}function p(){const h=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?$e(11):`Expected the observer to be an object. Instead, received: '${er(y)}'`);function b(){const x=y;x.next&&x.next(c())}return b(),{unsubscribe:h(b)}},[Gd](){return this}}}return d({type:Cr.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:v,[Gd]:p}}function Yd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function YP(e,t,r,n){const i=Object.keys(t),a=r&&r.type===Cr.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(!Qn(e))return`The ${a} has unexpected type of "${er(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===Cr.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 XP(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Cr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?$e(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:Cr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?$e(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Cr.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 My(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"&&Yd(`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{XP(r)}catch(o){a=o}return function(u={},l){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=YP(u,r,l,i);f&&Yd(f)}let s=!1;const c={};for(let f=0;f<n.length;f++){const d=n[f],v=r[d],p=u[d],m=v(p,l);if(typeof m>"u"){const h=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?$e(14):`When called with an action of type ${h?`"${String(h)}"`:"(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.`)}c[d]=m,s=s||m!==p}return s=s||n.length!==Object.keys(u).length,s?c:u}}function ea(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ZP(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?$e(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(l,...s)=>a(l,...s)},u=e.map(l=>l(o));return a=ea(...u)(i.dispatch),{...i,dispatch:a}}}function Ls(e){return Qn(e)&&"type"in e&&typeof e.type=="string"}var Ny=Symbol.for("immer-nothing"),Xd=Symbol.for("immer-draftable"),Ge=Symbol.for("immer-state"),QP=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 nt(e,...t){if(process.env.NODE_ENV!=="production"){const r=QP[e],n=Pr(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 at=Object,tn=at.getPrototypeOf,ta="constructor",Va="prototype",jl="configurable",ra="enumerable",Ui="writable",Nn="value",zt=e=>!!e&&!!e[Ge];function gt(e){return e?$y(e)||Ga(e)||!!e[Xd]||!!e[ta]?.[Xd]||Ya(e)||Xa(e):!1}var JP=at[Va][ta].toString(),Zd=new WeakMap;function $y(e){if(!e||!zs(e))return!1;const t=tn(e);if(t===null||t===at[Va])return!0;const r=at.hasOwnProperty.call(t,ta)&&t[ta];if(r===Object)return!0;if(!Pr(r))return!1;let n=Zd.get(r);return n===void 0&&(n=Function.toString.call(r),Zd.set(r,n)),n===JP}function Ha(e,t,r=!0){Jn(e)===0?(r?Reflect.ownKeys(e):at.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((n,i)=>t(i,n,e))}function Jn(e){const t=e[Ge];return t?t.type_:Ga(e)?1:Ya(e)?2:Xa(e)?3:0}var Qd=(e,t,r=Jn(e))=>r===2?e.has(t):at[Va].hasOwnProperty.call(e,t),Il=(e,t,r=Jn(e))=>r===2?e.get(t):e[t],na=(e,t,r,n=Jn(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function e1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ga=Array.isArray,Ya=e=>e instanceof Map,Xa=e=>e instanceof Set,zs=e=>typeof e=="object",Pr=e=>typeof e=="function",Ru=e=>typeof e=="boolean";function t1(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Dt=e=>e.copy_||e.base_,Bs=e=>e.modified_?e.copy_:e.base_;function kl(e,t){if(Ya(e))return new Map(e);if(Xa(e))return new Set(e);if(Ga(e))return Array[Va].slice.call(e);const r=$y(e);if(t===!0||t==="class_only"&&!r){const n=at.getOwnPropertyDescriptors(e);delete n[Ge];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u[Ui]===!1&&(u[Ui]=!0,u[jl]=!0),(u.get||u.set)&&(n[o]={[jl]:!0,[Ui]:!0,[ra]:u[ra],[Nn]:e[o]})}return at.create(tn(e),n)}else{const n=tn(e);if(n!==null&&r)return{...e};const i=at.create(n);return at.assign(i,e)}}function Fs(e,t=!1){return Za(e)||zt(e)||!gt(e)||(Jn(e)>1&&at.defineProperties(e,{set:_i,add:_i,clear:_i,delete:_i}),at.freeze(e),t&&Ha(e,(r,n)=>{Fs(n,!0)},!1)),e}function r1(){nt(2)}var _i={[Nn]:r1};function Za(e){return e===null||!zs(e)?!0:at.isFrozen(e)}var ia="MapSet",Tl="Patches",Jd="ArrayMethods",Ry={};function Mr(e){const t=Ry[e];return t||nt(0,e),t}var ev=e=>!!Ry[e],$n,Ly=()=>$n,n1=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ev(ia)?Mr(ia):void 0,arrayMethodsPlugin_:ev(Jd)?Mr(Jd):void 0});function tv(e,t){t&&(e.patchPlugin_=Mr(Tl),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Dl(e){Ml(e),e.drafts_.forEach(i1),e.drafts_=null}function Ml(e){e===$n&&($n=e.parent_)}var rv=e=>$n=n1($n,e);function i1(e){const t=e[Ge];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nv(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Ge].modified_&&(Dl(t),nt(4)),gt(e)&&(e=iv(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[Ge].base_,e,t)}else e=iv(t,r);return a1(t,e,!0),Dl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ny?e:void 0}function iv(e,t){if(Za(t))return t;const r=t[Ge];if(!r)return aa(t,e.handledSet_,e);if(!Qa(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);Fy(r,e)}return r.copy_}function a1(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Fs(t,r)}function zy(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Qa=(e,t)=>e.scope_===t,o1=[];function By(e,t,r,n){const i=Dt(e),a=e.type_;if(n!==void 0&&Il(i,n,a)===t){na(i,n,r,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Ha(i,(l,s)=>{if(zt(s)){const c=u.get(s)||[];c.push(l),u.set(s,c)}})}const o=e.draftLocations_.get(t)??o1;for(const u of o)na(i,u,r,a)}function u1(e,t,r){e.callbacks_.push(function(i){const a=t;if(!a||!Qa(a,i))return;i.mapSetPlugin_?.fixSetContents(a);const o=Bs(a);By(e,a.draft_??a,o,r),Fy(a,i)})}function Fy(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)}zy(e)}}function l1(e,t,r){const{scope_:n}=e;if(zt(r)){const i=r[Ge];Qa(i,n)&&i.callbacks_.push(function(){Vi(e);const o=Bs(i);By(e,r,o,t)})}else gt(r)&&e.callbacks_.push(function(){const a=Dt(e);e.type_===3?a.has(r)&&aa(r,n.handledSet_,n):Il(a,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&aa(Il(e.copy_,t,e.type_),n.handledSet_,n)})}function aa(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||zt(e)||t.has(e)||!gt(e)||Za(e)||(t.add(e),Ha(e,(n,i)=>{if(zt(i)){const a=i[Ge];if(Qa(a,r)){const o=Bs(a);na(e,n,o,e.type_),zy(a)}}else gt(i)&&aa(i,t,r)})),e}function s1(e,t){const r=Ga(e),n={type_:r?1:0,scope_:t?t.scope_:Ly(),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=oa;r&&(i=[n],a=Rn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,[u,n]}var oa={get(e,t){if(t===Ge)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=Dt(e);if(!Qd(i,t,e.type_))return c1(e,i,t);const a=i[t];if(e.finalized_||!gt(a)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&t1(t))return a;if(a===Lu(e.base_,t)){Vi(e);const o=e.type_===1?+t:t,u=$l(e.scope_,a,e,o);return e.copy_[o]=u}return a},has(e,t){return t in Dt(e)},ownKeys(e){return Reflect.ownKeys(Dt(e))},set(e,t,r){const n=Wy(Dt(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Lu(Dt(e),t),a=i?.[Ge];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(e1(r,i)&&(r!==void 0||Qd(e.base_,t,e.type_)))return!0;Vi(e),Nl(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),l1(e,t,r)),!0},deleteProperty(e,t){return Vi(e),Lu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Nl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Dt(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Ui]:!0,[jl]:e.type_!==1||t!=="length",[ra]:n[ra],[Nn]:r[t]}},defineProperty(){nt(11)},getPrototypeOf(e){return tn(e.base_)},setPrototypeOf(){nt(12)}},Rn={};for(let e in oa){let t=oa[e];Rn[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Rn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&nt(13),Rn.set.call(this,e,t,void 0)};Rn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&nt(14),oa.set.call(this,e[0],t,r,e[0])};function Lu(e,t){const r=e[Ge];return(r?Dt(r):e)[t]}function c1(e,t,r){const n=Wy(t,r);return n?Nn in n?n[Nn]:n.get?.call(e.draft_):void 0}function Wy(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 Nl(e){e.modified_||(e.modified_=!0,e.parent_&&Nl(e.parent_))}function Vi(e){e.copy_||(e.assigned_=new Map,e.copy_=kl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var f1=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,i)=>{if(Pr(r)&&!Pr(n)){const o=n;n=r;const u=this;return function(s=o,...c){return u.produce(s,f=>n.call(this,f,...c))}}Pr(n)||nt(6),i!==void 0&&!Pr(i)&&nt(7);let a;if(gt(r)){const o=rv(this),u=$l(o,r,void 0);let l=!0;try{a=n(u),l=!1}finally{l?Dl(o):Ml(o)}return tv(o,i),nv(a,o)}else if(!r||!zs(r)){if(a=n(r),a===void 0&&(a=r),a===Ny&&(a=void 0),this.autoFreeze_&&Fs(a,!0),i){const o=[],u=[];Mr(Tl).generateReplacementPatches_(r,a,{patches_:o,inversePatches_:u}),i(o,u)}return a}else nt(1,r)},this.produceWithPatches=(r,n)=>{if(Pr(r))return(u,...l)=>this.produceWithPatches(u,s=>r(s,...l));let i,a;return[this.produce(r,n,(u,l)=>{i=u,a=l}),i,a]},Ru(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Ru(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Ru(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){gt(t)||nt(8),zt(t)&&(t=ht(t));const r=rv(this),n=$l(r,t,void 0);return n[Ge].isManual_=!0,Ml(r),n}finishDraft(t,r){const n=t&&t[Ge];(!n||!n.isManual_)&&nt(9);const{scope_:i}=n;return tv(i,r),nv(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=Mr(Tl).applyPatches_;return zt(t)?i(t,r):this.produce(t,a=>i(a,r))}};function $l(e,t,r,n){const[i,a]=Ya(t)?Mr(ia).proxyMap_(t,r):Xa(t)?Mr(ia).proxySet_(t,r):s1(t,r);return(r?.scope_??Ly()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?u1(r,a,n):a.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:s}=l;a.modified_&&s&&s.generatePatches_(a,[],l)}),i}function ht(e){return zt(e)||nt(10,e),Ky(e)}function Ky(e){if(!gt(e)||Za(e))return e;const t=e[Ge];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=kl(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=kl(e,!0);return Ha(r,(i,a)=>{na(r,i,Ky(a))},n),t&&(t.finalized_=!1),r}var d1=new f1,qy=d1.produce;function Uy(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var v1=Uy(),p1=Uy,h1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ea:ea.apply(null,arguments)},m1=e=>e&&typeof e.match=="function";function ft(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(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=>Ls(n)&&n.type===e,r}function y1(e){return typeof e=="function"&&"type"in e&&m1(e)}function g1(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 b1(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=y1}=e;return()=>r=>n=>(t(n)&&console.warn(g1(n.type)),r(n))}function Vy(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 Hy=class jn extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,jn.prototype)}static get[Symbol.species](){return jn}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new jn(...t[0].concat(this)):new jn(...t.concat(this))}};function av(e){return gt(e)?qy(e,()=>{}):e}function Ci(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function w1(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function x1(e,t,r){const n=Gy(e,t,r);return{detectMutations(){return Yy(e,t,n,r)}}}function Gy(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 l=n?n+"."+u:u;o&&t.some(c=>c instanceof RegExp?c.test(l):l===c)||(a.children[u]=Gy(e,t,r[u],l))}}return a}function Yy(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 l={};for(let c in r.children)l[c]=!0;for(let c in n)l[c]=!0;const s=t.length>0;for(let c in l){const f=a?a+"."+c:c;if(s&&t.some(p=>p instanceof RegExp?p.test(f):f===p))continue;const d=Yy(e,t,r.children[c],n[c],u,f);if(d.wasMutated)return d}return{wasMutated:!1}}function O1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(u,l,s,c){return JSON.stringify(u,r(l,c),s)},r=function(u,l){let s=[],c=[];return l||(l=function(f,d){return s[0]===d?"[Circular ~]":"[Circular ~."+c.slice(0,s.indexOf(d)).join(".")+"]"}),function(f,d){if(s.length>0){var v=s.indexOf(this);~v?s.splice(v+1):s.push(this),~v?c.splice(v,1/0,f):c.push(f),~s.indexOf(d)&&(d=l.call(this,f,d))}else s.push(d);return u==null?d:u.call(this,f,d)}},{isImmutable:n=w1,ignoredPaths:i,warnAfter:a=32}=e;const o=x1.bind(null,n,i);return({getState:u})=>{let l=u(),s=o(l),c;return f=>d=>{const v=Vy(a,"ImmutableStateInvariantMiddleware");v.measureTime(()=>{if(l=u(),c=s.detectMutations(),s=o(l),c.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Z(19):`A state mutation was detected between dispatches, in the path '${c.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const p=f(d);return v.measureTime(()=>{if(l=u(),c=s.detectMutations(),s=o(l),c.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Z(20):`A state mutation was detected inside a dispatch, in the path: ${c.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(),p}}}}function Xy(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Qn(e)}function Rl(e,t="",r=Xy,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),l=i.length>0;for(const[s,c]of u){const f=t?t+"."+s:s;if(!(l&&i.some(v=>v instanceof RegExp?v.test(f):f===v))){if(!r(c))return{keyPath:f,value:c};if(typeof c=="object"&&(o=Rl(c,f,r,n,i,a),o))return o}}return a&&Zy(e)&&a.add(e),!1}function Zy(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Zy(t))return!1;return!0}function P1(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=Xy,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:o=32,ignoreState:u=!1,ignoreActions:l=!1,disableCache:s=!1}=e,c=!s&&WeakSet?new WeakSet:void 0;return f=>d=>v=>{if(!Ls(v))return d(v);const p=d(v),m=Vy(o,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const h=Rl(v,"",t,r,i,c);if(h){const{keyPath:y,value:b}=h;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,b,`
|
|
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 h=f.getState(),y=Rl(h,"",t,r,a,c);if(y){const{keyPath:b,value:w}=y;console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`,w,`
|
|
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()),p}}}function ji(e){return typeof e=="boolean"}var E1=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Hy;if(r&&(ji(r)?o.push(v1):o.push(p1(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let u={};ji(n)||(u=n),o.unshift(O1(u))}if(i){let u={};ji(i)||(u=i),o.push(P1(u))}if(a){let u={};ji(a)||(u=a),o.unshift(b1(u))}}return o},Qy="RTK_autoBatch",le=()=>e=>({payload:e,meta:{[Qy]:!0}}),ov=e=>t=>{setTimeout(t,e)},Jy=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ov(10):e.type==="callback"?e.queueNotification:ov(e.timeout),s=()=>{o=!1,a&&(a=!1,u.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return u.add(c),()=>{d(),u.delete(c)}},dispatch(c){try{return i=!c?.meta?.[Qy],a=!i,a&&(o||(o=!0,l(s))),n.dispatch(c)}finally{i=!0}}})},S1=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Hy(e);return n&&i.push(Jy(typeof n=="object"?n:void 0)),i};function A1(e){const t=E1(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:u=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Qn(r))l=My(r);else throw new Error(process.env.NODE_ENV==="production"?Z(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"?Z(2):"`middleware` field must be a callback");let s;if(typeof n=="function"){if(s=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(s))throw new Error(process.env.NODE_ENV==="production"?Z(3):"when using a middleware builder function, an array of middleware must be returned")}else s=t();if(process.env.NODE_ENV!=="production"&&s.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?Z(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let m=new Set;s.forEach(h=>{if(m.has(h))throw new Error(process.env.NODE_ENV==="production"?Z(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(h)})}let c=ea;i&&(c=h1({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=ZP(...s),d=S1(f);if(process.env.NODE_ENV!=="production"&&u&&typeof u!="function")throw new Error(process.env.NODE_ENV==="production"?Z(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"?Z(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"?Z(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&s.length&&!v.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const p=c(...v);return Dy(l,o,p)}function eg(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"?Z(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Z(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"?Z(28):"`builder.addCase` cannot be called with an empty action type");if(u in t)throw new Error(process.env.NODE_ENV==="production"?Z(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"?Z(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"?Z(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"?Z(31):"`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function _1(e){return typeof e=="function"}function C1(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Z(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]=eg(t),a;if(_1(e))a=()=>av(e());else{const u=av(e);a=()=>u}function o(u=a(),l){let s=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[i]),s.reduce((c,f)=>{if(f)if(zt(c)){const v=f(c,l);return v===void 0?c:v}else{if(gt(c))return qy(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},u)}return o.getInitialState=a,o}var j1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",I1=(e=21)=>{let t="",r=e;for(;r--;)t+=j1[Math.random()*64|0];return t},k1=Symbol.for("rtk-slice-createasyncthunk");function T1(e,t){return`${e}/${t}`}function D1({creators:e}={}){const t=e?.asyncThunk?.[k1];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(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(N1()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(w,x){const P=typeof w=="string"?w:w.type;if(!P)throw new Error(process.env.NODE_ENV==="production"?Z(12):"`context.addCase` cannot be called with an empty action type");if(P in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Z(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return l.sliceCaseReducersByType[P]=x,s},addMatcher(w,x){return l.sliceMatchers.push({matcher:w,reducer:x}),s},exposeAction(w,x){return l.actionCreators[w]=x,s},exposeCaseReducer(w,x){return l.sliceCaseReducersByName[w]=x,s}};u.forEach(w=>{const x=o[w],P={reducerName:w,type:T1(i,w),createNotation:typeof n.reducers=="function"};R1(x)?z1(P,x,s,t):$1(P,x,s)});function c(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Z(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[w={},x=[],P=void 0]=typeof n.extraReducers=="function"?eg(n.extraReducers):[n.extraReducers],O={...w,...l.sliceCaseReducersByType};return C1(n.initialState,S=>{for(let _ in O)S.addCase(_,O[_]);for(let _ of l.sliceMatchers)S.addMatcher(_.matcher,_.reducer);for(let _ of x)S.addMatcher(_.matcher,_.reducer);P&&S.addDefaultCase(P)})}const f=w=>w,d=new Map,v=new WeakMap;let p;function m(w,x){return p||(p=c()),p(w,x)}function h(){return p||(p=c()),p.getInitialState()}function y(w,x=!1){function P(S){let _=S[w];if(typeof _>"u"){if(x)_=Ci(v,P,h);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Z(15):"selectSlice returned undefined for an uninjected slice reducer")}return _}function O(S=f){const _=Ci(d,x,()=>new WeakMap);return Ci(_,S,()=>{const T={};for(const[M,j]of Object.entries(n.selectors??{}))T[M]=M1(j,S,()=>Ci(v,S,h),x);return T})}return{reducerPath:w,getSelectors:O,get selectors(){return O(P)},selectSlice:P}}const b={name:i,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:h,...y(a),injectInto(w,{reducerPath:x,...P}={}){const O=x??a;return w.inject({reducerPath:O,reducer:m},P),{...b,...y(O,!0)}}};return b}}function M1(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"?Z(16):"selectState returned undefined for an uninjected slice reducer")}return e(u,...o)}return i.unwrapped=e,i}var Je=D1();function N1(){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 $1({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!L1(n))throw new Error(process.env.NODE_ENV==="production"?Z(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?ft(e,o):ft(e))}function R1(e){return e._reducerDefinitionType==="asyncThunk"}function L1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function z1({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Z(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:l,settled:s,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),l&&n.addCase(f.rejected,l),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||Ii,pending:u||Ii,rejected:l||Ii,settled:s||Ii})}function Ii(){}var B1="task",tg="listener",rg="completed",Ws="cancelled",F1=`task-${Ws}`,W1=`task-${rg}`,Ll=`${tg}-${Ws}`,K1=`${tg}-${rg}`,Ja=class{constructor(e){this.code=e,this.message=`${B1} ${Ws} (reason: ${e})`}name="TaskAbortError";message},Ks=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?Z(32):`${t} is not a function`)},ua=()=>{},ng=(e,t=ua)=>(e.catch(t),e),ig=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),jr=e=>{if(e.aborted)throw new Ja(e.reason)};function ag(e,t){let r=ua;return new Promise((n,i)=>{const a=()=>i(new Ja(e.reason));if(e.aborted){a();return}r=ig(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=ua})}var q1=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Ja?"cancelled":"rejected",error:r}}finally{t?.()}},la=e=>t=>ng(ag(e,t).then(r=>(jr(e),r))),og=e=>{const t=la(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Jr}=Object,uv={},ei="listenerMiddleware",U1=(e,t)=>{const r=n=>ig(e,()=>n.abort(e.reason));return(n,i)=>{Ks(n,"taskExecutor");const a=new AbortController;r(a);const o=q1(async()=>{jr(e),jr(a.signal);const u=await n({pause:la(a.signal),delay:og(a.signal),signal:a.signal});return jr(a.signal),u},()=>a.abort(W1));return i?.autoJoin&&t.push(o.catch(ua)),{result:la(e)(o),cancel(){a.abort(F1)}}}},V1=(e,t)=>{const r=async(n,i)=>{jr(t);let a=()=>{};const u=[new Promise((l,s)=>{let c=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{c(),s()}})];i!=null&&u.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await ag(t,Promise.race(u));return jr(t),l}finally{a()}};return(n,i)=>ng(r(n,i))},ug=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=ft(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"?Z(21):"Creating or removing a listener requires one of the known fields for matching an action");return Ks(a,"options.listener"),{predicate:i,type:t,effect:a}},lg=Jr(e=>{const{type:t,predicate:r,effect:n}=ug(e);return{id:I1(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?Z(22):"Unsubscribe not initialized")}}},{withTypes:()=>lg}),lv=(e,t)=>{const{type:r,effect:n,predicate:i}=ug(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},zl=e=>{e.pending.forEach(t=>{t.abort(Ll)})},H1=(e,t)=>()=>{for(const r of t.keys())zl(r);e.clear()},sv=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},sg=Jr(ft(`${ei}/add`),{withTypes:()=>sg}),G1=ft(`${ei}/removeAll`),cg=Jr(ft(`${ei}/remove`),{withTypes:()=>cg}),Y1=(...e)=>{console.error(`${ei}/error`,...e)},ti=(e={})=>{const t=new Map,r=new Map,n=v=>{const p=r.get(v)??0;r.set(v,p+1)},i=v=>{const p=r.get(v)??1;p===1?r.delete(v):r.set(v,p-1)},{extra:a,onError:o=Y1}=e;Ks(o,"onError");const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),p=>{v.unsubscribe(),p?.cancelActive&&zl(v)}),l=v=>{const p=lv(t,v)??lg(v);return u(p)};Jr(l,{withTypes:()=>l});const s=v=>{const p=lv(t,v);return p&&(p.unsubscribe(),v.cancelActive&&zl(p)),!!p};Jr(s,{withTypes:()=>s});const c=async(v,p,m,h)=>{const y=new AbortController,b=V1(l,y.signal),w=[];try{v.pending.add(y),n(v),await Promise.resolve(v.effect(p,Jr({},m,{getOriginalState:h,condition:(x,P)=>b(x,P).then(Boolean),take:b,delay:og(y.signal),pause:la(y.signal),extra:a,signal:y.signal,fork:U1(y.signal,w),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((x,P,O)=>{x!==y&&(x.abort(Ll),O.delete(x))})},cancel:()=>{y.abort(Ll),v.pending.delete(y)},throwIfCancelled:()=>{jr(y.signal)}})))}catch(x){x instanceof Ja||sv(o,x,{raisedBy:"effect"})}finally{await Promise.all(w),y.abort(K1),i(v),v.pending.delete(y)}},f=H1(t,r);return{middleware:v=>p=>m=>{if(!Ls(m))return p(m);if(sg.match(m))return l(m.payload);if(G1.match(m)){f();return}if(cg.match(m))return s(m.payload);let h=v.getState();const y=()=>{if(h===uv)throw new Error(process.env.NODE_ENV==="production"?Z(23):`${ei}: getOriginalState can only be called synchronously`);return h};let b;try{if(b=p(m),t.size>0){const w=v.getState(),x=Array.from(t.values());for(const P of x){let O=!1;try{O=P.predicate(m,w,h)}catch(S){O=!1,sv(o,S,{raisedBy:"predicate"})}O&&c(P,m,v,y)}}}finally{h=uv}return b},startListening:l,stopListening:s,clearListeners:f}};function Z(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 X1={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},fg=Je({name:"chartLayout",initialState:X1,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:dg,setLayout:Z1,setChartSize:Q1,setScale:J1}=fg.actions,eE=fg.reducer;function vg(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function V(e){return Number.isFinite(e)}function bt(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function cv(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 Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(r),!0).forEach(function(n){tE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tE(e,t,r){return(t=rE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rE(e){var t=nE(e,"string");return typeof t=="symbol"?t:t+""}function nE(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 ee(e,t,r){return ce(e)||ce(t)?r:yt(t)?lr(e,t,r):typeof t=="function"?t(e):r}var iE=(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"&&$(e[a]))return Zr(Zr({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&$(e[o]))return Zr(Zr({},e),{},{[o]:e[o]+(i||0)})}return e},jt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",pg=(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},hg=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:l,categoricalDomain:s,tickCount:c,ticks:f,niceTicks:d,axisType:v}=e;if(!o)return null;var p=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/p:0;if(m=v==="angleAxis"&&a&&a.length>=2?Te(a[0]-a[1])*2*m:m,f||d){var h=(f||d||[]).map((y,b)=>{var w=n?n.indexOf(y):y,x=o.map(w);return V(x)?{coordinate:x+m,value:y,offset:m,index:b}:null}).filter(Ve);return h}return l&&s?s.map((y,b)=>{var w=o.map(y);return V(w)?{coordinate:w+m,value:y,index:b,offset:m}:null}).filter(Ve):o.ticks&&c!=null?o.ticks(c).map((y,b)=>{var w=o.map(y);return V(w)?{coordinate:w+m,value:y,index:b,offset:m}:null}).filter(Ve):o.domain().map((y,b)=>{var w=o.map(y);return V(w)?{coordinate:w+m,value:n?n[y]:y,index:b,offset:m}:null}).filter(Ve)},aE=(e,t)=>{if(!t||t.length!==2||!$(t[0])||!$(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(!$(e[0])||e[0]<r)&&(i[0]=r),(!$(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},oE=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 l=e[u],s=l?.[i];if(s!=null){var c=s[1],f=s[0],d=mt(c)?f:c;d>=0?(s[0]=a,a+=d,s[1]=a):(s[0]=o,o+=d,s[1]=o)}}}},uE=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],l=u?.[i];if(l!=null){var s=mt(l[1])?l[0]:l[1];s>=0?(l[0]=a,a+=s,l[1]=a):(l[0]=0,l[1]=0)}}}},lE={sign:oE,expand:wO,none:Tr,silhouette:xO,wiggle:OO,positive:uE},sE=(e,t,r)=>{var n,i=(n=lE[r])!==null&&n!==void 0?n:Tr,a=bO().keys(t).value((u,l)=>Number(ee(u,l,0))).order(_l).offset(i),o=a(e);return o.forEach((u,l)=>{u.forEach((s,c)=>{var f=ee(e[c],t[l],0);Array.isArray(f)&&f.length===2&&$(f[0])&&$(f[1])&&(s[0]=f[0],s[1]=f[1])})}),o};function mg(e){return e==null?void 0:String(e)}function Bl(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ce(i[t.dataKey])){var u=hy(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r!=null&&r[a]?r[a].coordinate+n/2:null}var l=ee(i,ce(o)?t.dataKey:o),s=t.scale.map(l);return $(s)?s:null}var fv=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=ee(a,t.dataKey,t.scale.domain()[o]);if(ce(u))return null;var l=t.scale.map(u);return $(l)?l-i/2+n:null},cE=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]},fE=e=>{var t=e.flat(2).filter($);return[Math.min(...t),Math.max(...t)]},dE=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],vE=(e,t,r)=>{if(e!=null)return dE(Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,u=o.reduce((l,s)=>{var c=vg(s,t,r),f=fE(c);return!V(f[0])||!V(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},dv=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,vv=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Nr=(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=Ua(t,c=>c.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var l=i[o],s=i[o-1];a=Math.min((l?.coordinate||0)-(s?.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function pv(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Zr(Zr({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Wr(e,t){if(e)return String(e);if(typeof t=="string")return t}var pE=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},hE=(e,t)=>t==="centric"?e.angle:e.radius,Gt=e=>e.layout.width,Yt=e=>e.layout.height,mE=e=>e.layout.scale,yg=e=>e.layout.margin,eo=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),to=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),gg="data-recharts-item-index",qs="data-recharts-item-id",ri=60;function hv(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 ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hv(Object(r),!0).forEach(function(n){yE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yE(e,t,r){return(t=gE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gE(e){var t=bE(e,"string");return typeof t=="symbol"?t:t+""}function bE(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 wE=e=>e.brush.height;function xE(e){var t=to(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:ri;return r+i}return r},0)}function OE(e){var t=to(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:ri;return r+i}return r},0)}function PE(e){var t=eo(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function EE(e){var t=eo(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Ae=A([Gt,Yt,yg,wE,xE,OE,PE,EE,ky,BP],(e,t,r,n,i,a,o,u,l,s)=>{var c={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=ki(ki({},f),c),v=d.bottom;d.bottom+=n,d=iE(d,l,s);var p=e-d.left-d.right,m=t-d.top-d.bottom;return ki(ki({brushBottom:v},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),SE=A(Ae,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Us=A(Gt,Yt,(e,t)=>({x:0,y:0,width:e,height:t})),AE=E.createContext(null),Le=()=>E.useContext(AE)!=null,ro=e=>e.brush,no=A([ro,Ae,yg],(e,t,r)=>({height:e.height,x:$(e.x)?e.x:t.left,y:$(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:$(e.width)?e.width:t.width})),zu={},Bu={},Fu={},mv;function _E(){return mv||(mv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const l=a!=null&&a.includes("leading"),s=a==null||a.includes("trailing"),c=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{s&&c(),m()};let d=null;const v=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},p=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{p(),o=void 0,u=null},h=()=>{c()},y=function(...b){if(i?.aborted)return;o=this,u=b;const w=d==null;v(),l&&w&&c()};return y.schedule=v,y.cancel=m,y.flush=h,i?.addEventListener("abort",m,{once:!0}),y}e.debounce=t}(Fu)),Fu}var yv;function CE(){return yv||(yv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_E();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:l}=a,s=Array(2);o&&(s[0]="leading"),u&&(s[1]="trailing");let c,f=null;const d=t.debounce(function(...m){c=n.apply(this,m),f=null},i,{edges:s}),v=function(...m){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(c=n.apply(this,m),f=Date.now(),d.cancel(),d.schedule(),c):(d.apply(this,m),c)},p=()=>(d.flush(),c);return v.cancel=d.cancel,v.flush=p,v}e.debounce=r}(Bu)),Bu}var gv;function jE(){return gv||(gv=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CE();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}(zu)),zu}var Wu,bv;function IE(){return bv||(bv=1,Wu=jE().throttle),Wu}var kE=IE();const TE=Ht(kE);var sa=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++]))}},St={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},bg=(e,t,r)=>{var{width:n=St.width,height:i=St.height,aspect:a,maxHeight:o}=r,u=Dr(n)?e:Number(n),l=Dr(i)?t:Number(i);return a&&a>0&&(u?l=u/a:l&&(u=l*a),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:u,calculatedHeight:l}},DE={width:0,height:0,overflow:"visible"},ME={width:0,overflowX:"visible"},NE={height:0,overflowY:"visible"},$E={},RE=e=>{var{width:t,height:r}=e,n=Dr(t),i=Dr(r);return n&&i?DE:n?ME:i?NE:$E};function LE(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i=St.width,a=St.height):i===void 0?i=n&&n>0?void 0:St.width:a===void 0&&(a=n&&n>0?void 0:St.height),{width:i,height:a}}function Fl(){return Fl=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},Fl.apply(null,arguments)}function wv(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 xv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wv(Object(r),!0).forEach(function(n){zE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zE(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=FE(e,"string");return typeof t=="symbol"?t:t+""}function FE(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 wg=E.createContext(St.initialDimension);function WE(e){return bt(e.width)&&bt(e.height)}function xg(e){var{children:t,width:r,height:n}=e,i=E.useMemo(()=>({width:r,height:n}),[r,n]);return WE(i)?g.createElement(wg.Provider,{value:i},t):null}var Vs=()=>E.useContext(wg),KE=E.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=St.initialDimension,width:i,height:a,minWidth:o=St.minWidth,minHeight:u,maxHeight:l,children:s,debounce:c=St.debounce,id:f,className:d,onResize:v,style:p={}}=e,m=E.useRef(null),h=E.useRef();h.current=v,E.useImperativeHandle(t,()=>m.current);var[y,b]=E.useState({containerWidth:n.width,containerHeight:n.height}),w=E.useCallback((_,T)=>{b(M=>{var j=Math.round(_),I=Math.round(T);return M.containerWidth===j&&M.containerHeight===I?M:{containerWidth:j,containerHeight:I}})},[]);E.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return cr;var _=I=>{var C,z=I[0];if(z!=null){var{width:W,height:K}=z.contentRect;w(W,K),(C=h.current)===null||C===void 0||C.call(h,W,K)}};c>0&&(_=TE(_,c,{trailing:!0,leading:!1}));var T=new ResizeObserver(_),{width:M,height:j}=m.current.getBoundingClientRect();return w(M,j),T.observe(m.current),()=>{T.disconnect()}},[w,c]);var{containerWidth:x,containerHeight:P}=y;sa(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:O,calculatedHeight:S}=bg(x,P,{width:i,height:a,aspect:r,maxHeight:l});return sa(O!=null&&O>0||S!=null&&S>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,S,i,a,o,u,r),g.createElement("div",{id:f?"".concat(f):void 0,className:Y("recharts-responsive-container",d),style:xv(xv({},p),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:l}),ref:m},g.createElement("div",{style:RE({width:i,height:a})},g.createElement(xg,{width:O,height:S},s)))}),Og=E.forwardRef((e,t)=>{var r=Vs();if(bt(r.width)&&bt(r.height))return e.children;var{width:n,height:i}=LE({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=bg(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return $(a)&&$(o)?g.createElement(xg,{width:a,height:o},e.children):g.createElement(KE,Fl({},e,{width:n,height:i,ref:t}))});function Hs(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 ni=()=>{var e,t=Le(),r=L(SE),n=L(no),i=(e=L(ro))===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}},qE={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Pg=()=>{var e;return(e=L(Ae))!==null&&e!==void 0?e:qE},Gs=()=>L(Gt),Ys=()=>L(Yt),UE=()=>L(e=>e.layout.margin),G=e=>e.layout.layoutType,fr=()=>L(G),Xs=()=>{var e=fr();if(e==="horizontal"||e==="vertical")return e},Eg=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},VE=()=>{var e=fr();return e!==void 0},un=e=>{var t=ie(),r=Le(),{width:n,height:i}=e,a=Vs(),o=n,u=i;return a&&(o=a.width>0?a.width:n,u=a.height>0?a.height:i),E.useEffect(()=>{!r&&bt(o)&&bt(u)&&t(Q1({width:o,height:u}))},[t,r,o,u]),null},HE=e=>{var{margin:t}=e,r=ie();return E.useEffect(()=>{r(dg(t))},[r,t]),null},Sg=Symbol.for("immer-nothing"),Ov=Symbol.for("immer-draftable"),ot=Symbol.for("immer-state"),GE=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 Xe(e,...t){if(process.env.NODE_ENV!=="production"){const r=GE[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 Ln=Object.getPrototypeOf;function rn(e){return!!e&&!!e[ot]}function $r(e){return e?Ag(e)||Array.isArray(e)||!!e[Ov]||!!e.constructor?.[Ov]||ii(e)||ao(e):!1}var YE=Object.prototype.constructor.toString(),Pv=new WeakMap;function Ag(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=Pv.get(r);return n===void 0&&(n=Function.toString.call(r),Pv.set(r,n)),n===YE}function ca(e,t,r=!0){io(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 io(e){const t=e[ot];return t?t.type_:Array.isArray(e)?1:ii(e)?2:ao(e)?3:0}function Wl(e,t){return io(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _g(e,t,r){const n=io(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function XE(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ii(e){return e instanceof Map}function ao(e){return e instanceof Set}function xr(e){return e.copy_||e.base_}function Kl(e,t){if(ii(e))return new Map(e);if(ao(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Ag(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[ot];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(Ln(e),n)}else{const n=Ln(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Zs(e,t=!1){return oo(e)||rn(e)||!$r(e)||(io(e)>1&&Object.defineProperties(e,{set:Ti,add:Ti,clear:Ti,delete:Ti}),Object.freeze(e),t&&Object.values(e).forEach(r=>Zs(r,!0))),e}function ZE(){Xe(2)}var Ti={value:ZE};function oo(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var QE={};function Rr(e){const t=QE[e];return t||Xe(0,e),t}var zn;function Cg(){return zn}function JE(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ev(e,t){t&&(Rr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ql(e){Ul(e),e.drafts_.forEach(eS),e.drafts_=null}function Ul(e){e===zn&&(zn=e.parent_)}function Sv(e){return zn=JE(zn,e)}function eS(e){const t=e[ot];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Av(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[ot].modified_&&(ql(t),Xe(4)),$r(e)&&(e=fa(t,e),t.parent_||da(t,e)),t.patches_&&Rr("Patches").generateReplacementPatches_(r[ot].base_,e,t.patches_,t.inversePatches_)):e=fa(t,r,[]),ql(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Sg?e:void 0}function fa(e,t,r){if(oo(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[ot];if(!i)return ca(t,(a,o)=>_v(e,i,t,a,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return da(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),ca(o,(l,s)=>_v(e,i,a,l,s,r,u),n),da(e,a,!1),r&&e.patches_&&Rr("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function _v(e,t,r,n,i,a,o){if(i==null||typeof i!="object"&&!o)return;const u=oo(i);if(!(u&&!o)){if(process.env.NODE_ENV!=="production"&&i===r&&Xe(5),rn(i)){const l=a&&t&&t.type_!==3&&!Wl(t.assigned_,n)?a.concat(n):void 0,s=fa(e,i,l);if(_g(r,n,s),rn(s))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if($r(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===i&&u)return;fa(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(ii(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&da(e,i)}}}function da(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Zs(t,r)}function tS(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Cg(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Qs;r&&(i=[n],a=Bn);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var Qs={get(e,t){if(t===ot)return e;const r=xr(e);if(!Wl(r,t))return rS(e,r,t);const n=r[t];return e.finalized_||!$r(n)?n:n===Ku(e.base_,t)?(qu(e),e.copy_[t]=Hl(n,e)):n},has(e,t){return t in xr(e)},ownKeys(e){return Reflect.ownKeys(xr(e))},set(e,t,r){const n=jg(xr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Ku(xr(e),t),a=i?.[ot];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(XE(r,i)&&(r!==void 0||Wl(e.base_,t)))return!0;qu(e),Vl(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 Ku(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,qu(e),Vl(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=xr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Xe(11)},getPrototypeOf(e){return Ln(e.base_)},setPrototypeOf(){Xe(12)}},Bn={};ca(Qs,(e,t)=>{Bn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Bn.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Xe(13),Bn.set.call(this,e,t,void 0)};Bn.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Xe(14),Qs.set.call(this,e[0],t,r,e[0])};function Ku(e,t){const r=e[ot];return(r?xr(r):e)[t]}function rS(e,t,r){const n=jg(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function jg(e,t){if(!(t in e))return;let r=Ln(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Ln(r)}}function Vl(e){e.modified_||(e.modified_=!0,e.parent_&&Vl(e.parent_))}function qu(e){e.copy_||(e.copy_=Kl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var nS=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(l=a,...s){return o.produce(l,c=>r.call(this,c,...s))}}typeof r!="function"&&Xe(6),n!==void 0&&typeof n!="function"&&Xe(7);let i;if($r(t)){const a=Sv(this),o=Hl(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?ql(a):Ul(a)}return Ev(a,n),Av(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Sg&&(i=void 0),this.autoFreeze_&&Zs(i,!0),n){const a=[],o=[];Rr("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Xe(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,l=>t(l,...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){$r(e)||Xe(8),rn(e)&&(e=iS(e));const t=Sv(this),r=Hl(e,void 0);return r[ot].isManual_=!0,Ul(t),r}finishDraft(e,t){const r=e&&e[ot];(!r||!r.isManual_)&&Xe(9);const{scope_:n}=r;return Ev(n,t),Av(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=Rr("Patches").applyPatches_;return rn(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Hl(e,t){const r=ii(e)?Rr("MapSet").proxyMap_(e,t):ao(e)?Rr("MapSet").proxySet_(e,t):tS(e,t);return(t?t.scope_:Cg()).drafts_.push(r),r}function iS(e){return rn(e)||Xe(10,e),Ig(e)}function Ig(e){if(!$r(e)||oo(e))return e;const t=e[ot];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Kl(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Kl(e,!0);return ca(r,(i,a)=>{_g(r,i,Ig(a))},n),t&&(t.finalized_=!1),r}var aS=new nS;aS.produce;var oS={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},kg=Je({name:"legend",initialState:oS,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:le()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ht(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:le()},removeLegendPayload:{reducer(e,t){var r=ht(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:le()}}}),{setLegendSize:uS,setLegendSettings:lS,addLegendPayload:Tg,replaceLegendPayload:Dg,removeLegendPayload:Mg}=kg.actions,sS=kg.reducer;function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gl.apply(null,arguments)}function Cv(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 wn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cv(Object(r),!0).forEach(function(n){cS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cS(e,t,r){return(t=fS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fS(e){var t=dS(e,"string");return typeof t=="symbol"?t:t+""}function dS(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){return Array.isArray(e)&&yt(e[0])&&yt(e[1])?e.join(" ~ "):e}var Hr={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=Hr.separator,contentStyle:r,itemStyle:n,labelStyle:i=Hr.labelStyle,payload:a,formatter:o,itemSorter:u,wrapperClassName:l,labelClassName:s,label:c,labelFormatter:f,accessibilityLayer:d=Hr.accessibilityLayer}=e,v=()=>{if(a&&a.length){var P={padding:0,margin:0},O=(u?Ua(a,u):a).map((S,_)=>{if(S.type==="none")return null;var T=S.formatter||o||vS,{value:M,name:j}=S,I=M,C=j;if(T){var z=T(M,j,S,_,a);if(Array.isArray(z))[I,C]=z;else if(z!=null)I=z;else return null}var W=wn(wn({},Hr.itemStyle),{},{color:S.color||Hr.itemStyle.color},n);return g.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:W},yt(C)?g.createElement("span",{className:"recharts-tooltip-item-name"},C):null,yt(C)?g.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,g.createElement("span",{className:"recharts-tooltip-item-value"},I),g.createElement("span",{className:"recharts-tooltip-item-unit"},S.unit||""))});return g.createElement("ul",{className:"recharts-tooltip-item-list",style:P},O)}return null},p=wn(wn({},Hr.contentStyle),r),m=wn({margin:0},i),h=!ce(c),y=h?c:"",b=Y("recharts-default-tooltip",l),w=Y("recharts-tooltip-label",s);h&&f&&a!==void 0&&a!==null&&(y=f(c,a));var x=d?{role:"status","aria-live":"assertive"}:{};return g.createElement("div",Gl({className:b,style:p},x),g.createElement("p",{className:w,style:m},g.isValidElement(y)?y:"".concat(y)),v())},xn="recharts-tooltip-wrapper",hS={visibility:"hidden"};function mS(e){var{coordinate:t,translateX:r,translateY:n}=e;return Y(xn,{["".concat(xn,"-right")]:$(r)&&t&&$(t.x)&&r>=t.x,["".concat(xn,"-left")]:$(r)&&t&&$(t.x)&&r<t.x,["".concat(xn,"-bottom")]:$(n)&&t&&$(t.y)&&n>=t.y,["".concat(xn,"-top")]:$(n)&&t&&$(t.y)&&n<t.y})}function jv(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:u,viewBox:l,viewBoxDimension:s}=e;if(a&&$(a[n]))return a[n];var c=r[n]-u-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?c:f;var d=l[n];if(d==null)return 0;if(o[n]){var v=c,p=d;return v<p?Math.max(f,d):Math.max(c,d)}if(s==null)return 0;var m=f+u,h=d+s;return m>h?Math.max(c,d):Math.max(f,d)}function yS(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 gS(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:u,useTranslate3d:l,viewBox:s}=e,c,f,d;return u.height>0&&u.width>0&&r?(f=jv({allowEscapeViewBox:t,coordinate:r,key:"x",offset:i,position:a,reverseDirection:o,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),d=jv({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:a,reverseDirection:o,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),c=yS({translateX:f,translateY:d,useTranslate3d:l})):c=hS,{cssProperties:c,cssClasses:mS({translateX:f,translateY:d,coordinate:r})}}function Iv(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 Di(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iv(Object(r),!0).forEach(function(n){Yl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yl(e,t,r){return(t=bS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bS(e){var t=wS(e,"string");return typeof t=="symbol"?t:t+""}function wS(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 xS extends E.PureComponent{constructor(){super(...arguments),Yl(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Yl(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:l,offset:s,position:c,reverseDirection:f,useTranslate3d:d,viewBox:v,wrapperStyle:p,lastBoundingBox:m,innerRef:h,hasPortalFromProps:y}=this.props,b=typeof s=="number"?s:s.x,w=typeof s=="number"?s:s.y,{cssClasses:x,cssProperties:P}=gS({allowEscapeViewBox:r,coordinate:o,offsetLeft:b,offsetTop:w,position:c,reverseDirection:f,tooltipBox:{height:m.height,width:m.width},useTranslate3d:d,viewBox:v}),O=y?{}:Di(Di({transition:l&&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}),S=Di(Di({},O),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},p);return g.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:x,style:S,ref:h},a)}}var Ng=()=>{var e;return(e=L(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Xl(){return Xl=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},Xl.apply(null,arguments)}function kv(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?kv(Object(r),!0).forEach(function(n){OS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OS(e,t,r){return(t=PS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PS(e){var t=ES(e,"string");return typeof t=="symbol"?t:t+""}function ES(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 Dv={curveBasisClosed:lO,curveBasisOpen:sO,curveBasis:uO,curveBumpX:Hx,curveBumpY:Gx,curveLinearClosed:cO,curveLinear:Ka,curveMonotoneX:fO,curveMonotoneY:dO,curveNatural:vO,curveStep:pO,curveStepAfter:mO,curveStepBefore:hO},va=e=>V(e.x)&&V(e.y),Mv=e=>e.base!=null&&va(e.base)&&va(e),On=e=>e.x,Pn=e=>e.y,SS=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Xn(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=Dv["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return Dv[r]||Ka},Nv={connectNulls:!1,type:"linear"},AS=e=>{var{type:t=Nv.type,points:r=[],baseLine:n,layout:i,connectNulls:a=Nv.connectNulls}=e,o=SS(t,i),u=a?r.filter(va):r;if(Array.isArray(n)){var l,s=r.map((p,m)=>Tv(Tv({},p),{},{base:n[m]}));i==="vertical"?l=Oi().y(Pn).x1(On).x0(p=>p.base.x):l=Oi().x(On).y1(Pn).y0(p=>p.base.y);var c=l.defined(Mv).curve(o),f=a?s.filter(Mv):s;return c(f)}var d;i==="vertical"&&$(n)?d=Oi().y(Pn).x1(On).x0(n):$(n)?d=Oi().x(On).y1(Pn).y0(n):d=ry().x(On).y(Pn);var v=d.defined(va).curve(o);return v(u)},uo=e=>{var{className:t,points:r,path:n,pathRef:i}=e,a=fr();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?AS(o):n;return g.createElement("path",Xl({},Qe(e),Ds(e),{className:Y("recharts-curve",t),d:u===null?void 0:u,ref:i}))},_S=["x","y","top","left","width","height","className"];function Zl(){return Zl=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},Zl.apply(null,arguments)}function $v(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 CS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$v(Object(r),!0).forEach(function(n){jS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jS(e,t,r){return(t=IS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IS(e){var t=kS(e,"string");return typeof t=="symbol"?t:t+""}function kS(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 TS(e,t){if(e==null)return{};var r,n,i=DS(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 DS(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 MS=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),NS=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:u}=e,l=TS(e,_S),s=CS({x:t,y:r,top:n,left:i,width:a,height:o},l);return!$(t)||!$(r)||!$(a)||!$(o)||!$(n)||!$(i)?null:g.createElement("path",Zl({},qe(s),{className:Y("recharts-cross",u),d:MS(t,r,a,o,n,i)}))};function $S(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 Rv(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 Lv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rv(Object(r),!0).forEach(function(n){RS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RS(e,t,r){return(t=LS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LS(e){var t=zS(e,"string");return typeof t=="symbol"?t:t+""}function zS(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 BS=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),$g=(e,t,r)=>e.map(n=>"".concat(BS(n)," ").concat(t,"ms ").concat(r)).join(","),FS=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Fn=(e,t)=>Object.keys(t).reduce((r,n)=>Lv(Lv({},r),{},{[n]:e(n,t[n])}),{});function zv(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?zv(Object(r),!0).forEach(function(n){WS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WS(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=qS(e,"string");return typeof t=="symbol"?t:t+""}function qS(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 pa=(e,t,r)=>e+(t-e)*r,Ql=e=>{var{from:t,to:r}=e;return t!==r},Rg=(e,t,r)=>{var n=Fn((i,a)=>{if(Ql(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?Fn((i,a)=>Ql(a)&&n[i]!=null?Pe(Pe({},a),{},{velocity:pa(a.velocity,n[i].velocity,r),from:pa(a.from,n[i].from,r)}):a,t):Rg(e,n,r-1)};function US(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]}}),{}),l=()=>Fn((d,v)=>v.from,u),s=()=>!Object.values(u).filter(Ql).length,c=null,f=d=>{o||(o=d);var v=d-o,p=v/r.dt;u=Rg(r,u,p),i(Pe(Pe(Pe({},e),t),l())),o=d,s()||(c=a.setTimeout(f))};return()=>(c=a.setTimeout(f),()=>{var d;(d=c)===null||d===void 0||d()})}function VS(e,t,r,n,i,a,o){var u=null,l=i.reduce((f,d)=>{var v=e[d],p=t[d];return v==null||p==null?f:Pe(Pe({},f),{},{[d]:[v,p]})},{}),s,c=f=>{s||(s=f);var d=(f-s)/n,v=Fn((m,h)=>pa(...h,r(d)),l);if(a(Pe(Pe(Pe({},e),t),v)),d<1)u=o.setTimeout(c);else{var p=Fn((m,h)=>pa(...h,r(1)),l);a(Pe(Pe(Pe({},e),t),p))}};return()=>(u=o.setTimeout(c),()=>{var f;(f=u)===null||f===void 0||f()})}const HS=(e,t,r,n,i,a)=>{var o=FS(e,t);return r==null?()=>(i(Pe(Pe({},e),t)),()=>{}):r.isStepper===!0?US(e,t,r,o,i,a):VS(e,t,r,n,o,i,a)};var ha=1e-4,Lg=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],zg=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Bv=(e,t)=>r=>{var n=Lg(e,t);return zg(n,r)},GS=(e,t)=>r=>{var n=Lg(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return zg(i,r)},YS=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]]},XS=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=YS(r[0]);if(i)return i}}return r.length===4?r:[0,0,1,1]},ZS=(e,t,r,n)=>{var i=Bv(e,r),a=Bv(t,n),o=GS(e,r),u=s=>s>1?1:s<0?0:s,l=s=>{for(var c=s>1?1:s,f=c,d=0;d<8;++d){var v=i(f)-c,p=o(f);if(Math.abs(v-c)<ha||p<ha)return a(f);f=u(f-v/p)}return a(f)};return l.isStepper=!1,l},Fv=function(){return ZS(...XS(...arguments))},QS=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,l)=>{var s=-(o-u)*r,c=l*n,f=l+(s-c)*i/1e3,d=l*i/1e3+o;return Math.abs(d-u)<ha&&Math.abs(f)<ha?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},JS=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Fv(e);case"spring":return QS();default:if(e.split("(")[0]==="cubic-bezier")return Fv(e)}return typeof e=="function"?e:null};function eA(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[l,...s]=u;if(typeof l=="number"){i=e.setTimeout(a.bind(null,s),l);return}a(l),i=e.setTimeout(a.bind(null,s));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 tA{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 rA(){return eA(new tA)}var nA=E.createContext(rA);function iA(e,t){var r=E.useContext(nA);return E.useMemo(()=>t??r(e),[e,t,r])}var aA=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),ai={isSsr:aA()},oA={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Wv={t:0},Uu={t:1};function ln(e){var t=Se(e,oA),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:l,children:s}=t,c=r==="auto"?!ai.isSsr:r,f=iA(t.animationId,t.animationManager),[d,v]=E.useState(c?Wv:Uu),p=E.useRef(null);return E.useEffect(()=>{c||v(Uu)},[c]),E.useEffect(()=>{if(!c||!n)return cr;var m=HS(Wv,Uu,JS(a),i,v,f.getTimeoutController()),h=()=>{p.current=m()};return f.start([l,o,h,i,u]),()=>{f.stop(),p.current&&p.current(),u()}},[c,n,i,a,o,l,u,f]),s(d.t)}function sn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=E.useRef(Mn(t)),n=E.useRef(e);return n.current!==e&&(r.current=Mn(t),n.current=e),r.current}var uA=["radius"],lA=["radius"],Kv,qv,Uv,Vv,Hv,Gv,Yv,Xv,Zv,Qv;function Jv(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 ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jv(Object(r),!0).forEach(function(n){sA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sA(e,t,r){return(t=cA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cA(e){var t=fA(e,"string");return typeof t=="symbol"?t:t+""}function fA(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 ma(){return ma=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},ma.apply(null,arguments)}function tp(e,t){if(e==null)return{};var r,n,i=dA(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 dA(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 xt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var rp=(e,t,r,n,i)=>{var a=ir(r),o=ir(n),u=Math.min(Math.abs(a)/2,Math.abs(o)/2),l=o>=0?1:-1,s=a>=0?1:-1,c=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,p=4;v<p;v++){var m,h=(m=i[v])!==null&&m!==void 0?m:0;d[v]=h>u?u:h}f=pe(Kv||(Kv=xt(["M",",",""])),e,t+l*d[0]),d[0]>0&&(f+=pe(qv||(qv=xt(["A ",",",",0,0,",",",",",""])),d[0],d[0],c,e+s*d[0],t)),f+=pe(Uv||(Uv=xt(["L ",",",""])),e+r-s*d[1],t),d[1]>0&&(f+=pe(Vv||(Vv=xt(["A ",",",",0,0,",`,
|
|
76
|
+
`,",",""])),d[1],d[1],c,e+r,t+l*d[1])),f+=pe(Hv||(Hv=xt(["L ",",",""])),e+r,t+n-l*d[2]),d[2]>0&&(f+=pe(Gv||(Gv=xt(["A ",",",",0,0,",`,
|
|
77
|
+
`,",",""])),d[2],d[2],c,e+r-s*d[2],t+n)),f+=pe(Yv||(Yv=xt(["L ",",",""])),e+s*d[3],t+n),d[3]>0&&(f+=pe(Xv||(Xv=xt(["A ",",",",0,0,",`,
|
|
78
|
+
`,",",""])),d[3],d[3],c,e,t+n-l*d[3])),f+="Z"}else if(u>0&&i===+i&&i>0){var y=Math.min(u,i);f=pe(Zv||(Zv=xt(["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+l*y,y,y,c,e+s*y,t,e+r-s*y,t,y,y,c,e+r,t+l*y,e+r,t+n-l*y,y,y,c,e+r-s*y,t+n,e+s*y,t+n,y,y,c,e,t+n-l*y)}else f=pe(Qv||(Qv=xt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},np={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Js=e=>{var t=Se(e,np),r=E.useRef(null),[n,i]=E.useState(-1);E.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:l,radius:s,className:c}=t,{animationEasing:f,animationDuration:d,animationBegin:v,isAnimationActive:p,isUpdateAnimationActive:m}=t,h=E.useRef(u),y=E.useRef(l),b=E.useRef(a),w=E.useRef(o),x=E.useMemo(()=>({x:a,y:o,width:u,height:l,radius:s}),[a,o,u,l,s]),P=sn(x,"rectangle-");if(a!==+a||o!==+o||u!==+u||l!==+l||u===0||l===0)return null;var O=Y("recharts-rectangle",c);if(!m){var S=qe(t),{radius:_}=S,T=tp(S,uA);return g.createElement("path",ma({},T,{x:ir(a),y:ir(o),width:ir(u),height:ir(l),radius:typeof s=="number"?s:void 0,className:O,d:rp(a,o,u,l,s)}))}var M=h.current,j=y.current,I=b.current,C=w.current,z="0px ".concat(n===-1?1:n,"px"),W="".concat(n,"px 0px"),K=$g(["strokeDasharray"],d,typeof f=="string"?f:np.animationEasing);return g.createElement(ln,{animationId:P,key:P,canBegin:n>0,duration:d,easing:f,isActive:m,begin:v},F=>{var H=ue(M,u,F),B=ue(j,l,F),ye=ue(I,a,F),fe=ue(C,o,F);r.current&&(h.current=H,y.current=B,b.current=ye,w.current=fe);var be;p?F>0?be={transition:K,strokeDasharray:W}:be={strokeDasharray:z}:be={strokeDasharray:W};var et=qe(t),{radius:ze}=et,Tt=tp(et,lA);return g.createElement("path",ma({},Tt,{radius:typeof s=="number"?s:void 0,className:O,d:rp(ye,fe,H,B,s),ref:r,style:ep(ep({},be),t.style)}))})};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 ap(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){vA(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 vA(e,t,r){return(t=pA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pA(e){var t=hA(e,"string");return typeof t=="symbol"?t:t+""}function hA(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 ya=Math.PI/180,mA=e=>e*180/Math.PI,we=(e,t,r,n)=>({x:e+Math.cos(-ya*n)*r,y:t+Math.sin(-ya*n)*r}),Bg=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},yA=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},gA=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=yA({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var u=(r-i)/o,l=Math.acos(u);return n>a&&(l=2*Math.PI-l),{radius:o,angle:mA(l),angleInRadian:l}},bA=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}},wA=(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},xA=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=gA({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(i<o||i>u||i===0)return null;var{startAngle:l,endAngle:s}=bA(t),c=a,f;if(l<=s){for(;c>s;)c-=360;for(;c<l;)c+=360;f=c>=l&&c<=s}else{for(;c>l;)c-=360;for(;c<s;)c+=360;f=c>=s&&c<=l}return f?ap(ap({},t),{},{radius:i,angle:wA(c,t)}):null};function Fg(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=we(t,r,n,i),u=we(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}var op,up,lp,sp,cp,fp,dp;function Jl(){return Jl=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},Jl.apply(null,arguments)}function Er(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var OA=(e,t)=>{var r=Te(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Mi=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:u,cornerIsExternal:l}=e,s=u*(o?1:-1)+n,c=Math.asin(u/s)/ya,f=l?i:i+a*c,d=we(t,r,s,f),v=we(t,r,n,f),p=l?i-a*c:i,m=we(t,r,s*Math.cos(c*ya),p);return{center:d,circleTangency:v,lineTangency:m,theta:c}},Wg=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,u=OA(a,o),l=a+u,s=we(t,r,i,a),c=we(t,r,i,l),f=pe(op||(op=Er(["M ",",",`
|
|
86
|
+
A `,",",`,0,
|
|
87
|
+
`,",",`,
|
|
88
|
+
`,",",`
|
|
89
|
+
`])),s.x,s.y,i,i,+(Math.abs(u)>180),+(a>l),c.x,c.y);if(n>0){var d=we(t,r,n,a),v=we(t,r,n,l);f+=pe(up||(up=Er(["L ",",",`
|
|
90
|
+
A `,",",`,0,
|
|
91
|
+
`,",",`,
|
|
92
|
+
`,","," Z"])),v.x,v.y,n,n,+(Math.abs(u)>180),+(a<=l),d.x,d.y)}else f+=pe(lp||(lp=Er(["L ",","," Z"])),t,r);return f},PA=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:u,startAngle:l,endAngle:s}=e,c=Te(s-l),{circleTangency:f,lineTangency:d,theta:v}=Mi({cx:t,cy:r,radius:i,angle:l,sign:c,cornerRadius:a,cornerIsExternal:u}),{circleTangency:p,lineTangency:m,theta:h}=Mi({cx:t,cy:r,radius:i,angle:s,sign:-c,cornerRadius:a,cornerIsExternal:u}),y=u?Math.abs(l-s):Math.abs(l-s)-v-h;if(y<0)return o?pe(sp||(sp=Er(["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):Wg({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:s});var b=pe(cp||(cp=Er(["M ",",",`
|
|
96
|
+
A`,",",",0,0,",",",",",`
|
|
97
|
+
A`,",",",0,",",",",",",",`
|
|
98
|
+
A`,",",",0,0,",",",",",`
|
|
99
|
+
`])),d.x,d.y,a,a,+(c<0),f.x,f.y,i,i,+(y>180),+(c<0),p.x,p.y,a,a,+(c<0),m.x,m.y);if(n>0){var{circleTangency:w,lineTangency:x,theta:P}=Mi({cx:t,cy:r,radius:n,angle:l,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:O,lineTangency:S,theta:_}=Mi({cx:t,cy:r,radius:n,angle:s,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),T=u?Math.abs(l-s):Math.abs(l-s)-P-_;if(T<0&&a===0)return"".concat(b,"L").concat(t,",").concat(r,"Z");b+=pe(fp||(fp=Er(["L",",",`
|
|
100
|
+
A`,",",",0,0,",",",",",`
|
|
101
|
+
A`,",",",0,",",",",",",",`
|
|
102
|
+
A`,",",",0,0,",",",",","Z"])),S.x,S.y,a,a,+(c<0),O.x,O.y,n,n,+(T>180),+(c>0),w.x,w.y,a,a,+(c<0),x.x,x.y)}else b+=pe(dp||(dp=Er(["L",",","Z"])),t,r);return b},EA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Kg=e=>{var t=Se(e,EA),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c,className:f}=t;if(a<i||s===c)return null;var d=Y("recharts-sector",f),v=a-i,p=Ke(o,v,0,!0),m;return p>0&&Math.abs(s-c)<360?m=PA({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(p,v/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:c}):m=Wg({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:c}),g.createElement("path",Jl({},qe(t),{className:d,d:m}))};function SA(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(yy(t)){if(e==="centric"){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:u}=t,l=we(n,i,a,u),s=we(n,i,o,u);return[{x:l.x,y:l.y},{x:s.x,y:s.y}]}return Fg(t)}}var Vu={},Hu={},Gu={},vp;function AA(){return vp||(vp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jy();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r}(Gu)),Gu}var pp;function _A(){return pp||(pp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AA();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}(Hu)),Hu}var hp;function CA(){return hp||(hp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Iy(),r=_A();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),l=new Array(u);for(let s=0;s<u;s++)l[s]=i,i+=o;return l}e.range=n}(Vu)),Vu}var Yu,mp;function jA(){return mp||(mp=1,Yu=CA().range),Yu}var IA=jA();const qg=Ht(IA);function ar(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function kA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ec(e){let t,r,n;e.length!==2?(t=ar,r=(u,l)=>ar(e(u),l),n=(u,l)=>e(u)-l):(t=e===ar||e===kA?e:TA,r=e,n=e);function i(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;r(u[f],l)<0?s=f+1:c=f}while(s<c)}return s}function a(u,l,s=0,c=u.length){if(s<c){if(t(l,l)!==0)return c;do{const f=s+c>>>1;r(u[f],l)<=0?s=f+1:c=f}while(s<c)}return s}function o(u,l,s=0,c=u.length){const f=i(u,l,s,c-1);return f>s&&n(u[f-1],l)>-n(u[f],l)?f-1:f}return{left:i,center:o,right:a}}function TA(){return 0}function Ug(e){return e===null?NaN:+e}function*DA(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const MA=ec(ar),oi=MA.right;ec(Ug).center;class yp extends Map{constructor(t,r=RA){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(gp(this,t))}has(t){return super.has(gp(this,t))}set(t,r){return super.set(NA(this,t),r)}delete(t){return super.delete($A(this,t))}}function gp({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function NA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function $A({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function RA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function LA(e=ar){if(e===ar)return Vg;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 Vg(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const zA=Math.sqrt(50),BA=Math.sqrt(10),FA=Math.sqrt(2);function ga(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>=zA?10:a>=BA?5:a>=FA?2:1;let u,l,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),l=Math.round(t*s),u/s<e&&++u,l/s>t&&--l,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),l=Math.round(t/s),u*s<e&&++u,l*s>t&&--l),l<u&&.5<=r&&r<2?ga(e,t,r*2):[u,l,s]}function es(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?ga(t,e,r):ga(e,t,r);if(!(a>=i))return[];const u=a-i+1,l=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)l[s]=(a-s)/-o;else for(let s=0;s<u;++s)l[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)l[s]=(i+s)/-o;else for(let s=0;s<u;++s)l[s]=(i+s)*o;return l}function ts(e,t,r){return t=+t,e=+e,r=+r,ga(e,t,r)[2]}function rs(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?ts(t,e,r):ts(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function bp(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function wp(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Hg(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?Vg:LA(i);n>r;){if(n-r>600){const l=n-r+1,s=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(s-l/2<0?-1:1),v=Math.max(r,Math.floor(t-s*f/l+d)),p=Math.min(n,Math.floor(t+(l-s)*f/l+d));Hg(e,t,v,p,i)}const a=e[t];let o=r,u=n;for(En(e,r,t),i(e[n],a)>0&&En(e,r,n);o<u;){for(En(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?En(e,r,u):(++u,En(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function En(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function WA(e,t,r){if(e=Float64Array.from(DA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return wp(e);if(t>=1)return bp(e);var n,i=(n-1)*t,a=Math.floor(i),o=bp(Hg(e,a).subarray(0,a+1)),u=wp(e.subarray(a+1));return o+(u-o)*(i-a)}}function KA(e,t,r=Ug){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 qA(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 vt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const ns=Symbol("implicit");function tc(){var e=new yp,t=[],r=[],n=ns;function i(a){let o=e.get(a);if(o===void 0){if(n!==ns)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 yp;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 tc(t,r).unknown(n)},vt.apply(i,arguments),i}function rc(){var e=tc().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,l=0,s=0,c=.5;delete e.unknown;function f(){var d=t().length,v=i<n,p=v?i:n,m=v?n:i;a=(m-p)/Math.max(1,d-l+s*2),u&&(a=Math.floor(a)),p+=(m-p-a*(d-l))*c,o=a*(1-l),u&&(p=Math.round(p),o=Math.round(o));var h=qA(d).map(function(y){return p+a*y});return r(v?h.reverse():h)}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?(l=Math.min(1,s=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(s=+d,f()):s},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return rc(t(),[n,i]).round(u).paddingInner(l).paddingOuter(s).align(c)},vt.apply(f(),arguments)}function Gg(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Gg(t())},e}function UA(){return Gg(rc.apply(null,arguments).paddingInner(1))}function nc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Yg(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ui(){}var Wn=.7,ba=1/Wn,en="\\s*([+-]?\\d+)\\s*",Kn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_t="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",VA=/^#([0-9a-f]{3,8})$/,HA=new RegExp(`^rgb\\(${en},${en},${en}\\)$`),GA=new RegExp(`^rgb\\(${_t},${_t},${_t}\\)$`),YA=new RegExp(`^rgba\\(${en},${en},${en},${Kn}\\)$`),XA=new RegExp(`^rgba\\(${_t},${_t},${_t},${Kn}\\)$`),ZA=new RegExp(`^hsl\\(${Kn},${_t},${_t}\\)$`),QA=new RegExp(`^hsla\\(${Kn},${_t},${_t},${Kn}\\)$`),xp={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};nc(ui,qn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Op,formatHex:Op,formatHex8:JA,formatHsl:e_,formatRgb:Pp,toString:Pp});function Op(){return this.rgb().formatHex()}function JA(){return this.rgb().formatHex8()}function e_(){return Xg(this).formatHsl()}function Pp(){return this.rgb().formatRgb()}function qn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=VA.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Ep(t):r===3?new Ze(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ni(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ni(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=HA.exec(e))?new Ze(t[1],t[2],t[3],1):(t=GA.exec(e))?new Ze(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=YA.exec(e))?Ni(t[1],t[2],t[3],t[4]):(t=XA.exec(e))?Ni(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ZA.exec(e))?_p(t[1],t[2]/100,t[3]/100,1):(t=QA.exec(e))?_p(t[1],t[2]/100,t[3]/100,t[4]):xp.hasOwnProperty(e)?Ep(xp[e]):e==="transparent"?new Ze(NaN,NaN,NaN,0):null}function Ep(e){return new Ze(e>>16&255,e>>8&255,e&255,1)}function Ni(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ze(e,t,r,n)}function t_(e){return e instanceof ui||(e=qn(e)),e?(e=e.rgb(),new Ze(e.r,e.g,e.b,e.opacity)):new Ze}function is(e,t,r,n){return arguments.length===1?t_(e):new Ze(e,t,r,n??1)}function Ze(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}nc(Ze,is,Yg(ui,{brighter(e){return e=e==null?ba:Math.pow(ba,e),new Ze(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Wn:Math.pow(Wn,e),new Ze(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ze(Ir(this.r),Ir(this.g),Ir(this.b),wa(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:Sp,formatHex:Sp,formatHex8:r_,formatRgb:Ap,toString:Ap}));function Sp(){return`#${Sr(this.r)}${Sr(this.g)}${Sr(this.b)}`}function r_(){return`#${Sr(this.r)}${Sr(this.g)}${Sr(this.b)}${Sr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ap(){const e=wa(this.opacity);return`${e===1?"rgb(":"rgba("}${Ir(this.r)}, ${Ir(this.g)}, ${Ir(this.b)}${e===1?")":`, ${e})`}`}function wa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ir(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Sr(e){return e=Ir(e),(e<16?"0":"")+e.toString(16)}function _p(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new pt(e,t,r,n)}function Xg(e){if(e instanceof pt)return new pt(e.h,e.s,e.l,e.opacity);if(e instanceof ui||(e=qn(e)),!e)return new pt;if(e instanceof pt)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,l=(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/=l<.5?a+i:2-a-i,o*=60):u=l>0&&l<1?0:o,new pt(o,u,l,e.opacity)}function n_(e,t,r,n){return arguments.length===1?Xg(e):new pt(e,t,r,n??1)}function pt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}nc(pt,n_,Yg(ui,{brighter(e){return e=e==null?ba:Math.pow(ba,e),new pt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Wn:Math.pow(Wn,e),new pt(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 Ze(Xu(e>=240?e-240:e+120,i,n),Xu(e,i,n),Xu(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new pt(Cp(this.h),$i(this.s),$i(this.l),wa(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=wa(this.opacity);return`${e===1?"hsl(":"hsla("}${Cp(this.h)}, ${$i(this.s)*100}%, ${$i(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Cp(e){return e=(e||0)%360,e<0?e+360:e}function $i(e){return Math.max(0,Math.min(1,e||0))}function Xu(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 ic=e=>()=>e;function i_(e,t){return function(r){return e+r*t}}function a_(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 o_(e){return(e=+e)==1?Zg:function(t,r){return r-t?a_(t,r,e):ic(isNaN(t)?r:t)}}function Zg(e,t){var r=t-e;return r?i_(e,r):ic(isNaN(e)?t:e)}const jp=function e(t){var r=o_(t);function n(i,a){var o=r((i=is(i)).r,(a=is(a)).r),u=r(i.g,a.g),l=r(i.b,a.b),s=Zg(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=u(c),i.b=l(c),i.opacity=s(c),i+""}}return n.gamma=e,n}(1);function u_(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 l_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function s_(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]=cn(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 c_(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xa(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function f_(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]=cn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var as=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zu=new RegExp(as.source,"g");function d_(e){return function(){return e}}function v_(e){return function(t){return e(t)+""}}function p_(e,t){var r=as.lastIndex=Zu.lastIndex=0,n,i,a,o=-1,u=[],l=[];for(e=e+"",t=t+"";(n=as.exec(e))&&(i=Zu.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,l.push({i:o,x:xa(n,i)})),r=Zu.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?l[0]?v_(l[0].x):d_(t):(t=l.length,function(s){for(var c=0,f;c<t;++c)u[(f=l[c]).i]=f.x(s);return u.join("")})}function cn(e,t){var r=typeof t,n;return t==null||r==="boolean"?ic(t):(r==="number"?xa:r==="string"?(n=qn(t))?(t=n,jp):p_:t instanceof qn?jp:t instanceof Date?c_:l_(t)?u_:Array.isArray(t)?s_:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?f_:xa)(e,t)}function ac(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function h_(e,t){t===void 0&&(t=e,e=cn);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 m_(e){return function(){return e}}function Oa(e){return+e}var Ip=[0,1];function He(e){return e}function os(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:m_(isNaN(t)?NaN:.5)}function y_(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function g_(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=os(i,n),a=r(o,a)):(n=os(n,i),a=r(a,o)),function(u){return a(n(u))}}function b_(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]=os(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var l=oi(e,u,1,n)-1;return a[l](i[l](u))}}function li(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lo(){var e=Ip,t=Ip,r=cn,n,i,a,o=He,u,l,s;function c(){var d=Math.min(e.length,t.length);return o!==He&&(o=y_(e[0],e[d-1])),u=d>2?b_:g_,l=s=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((s||(s=u(t,e.map(n),xa)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Oa),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=ac,c()},f.clamp=function(d){return arguments.length?(o=d?!0:He,c()):o!==He},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,v){return n=d,i=v,c()}}function oc(){return lo()(He,He)}function w_(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Pa(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 nn(e){return e=Pa(Math.abs(e)),e?e[1]:NaN}function x_(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],l=0;i>0&&u>0&&(l+u+1>n&&(u=Math.max(1,n-l)),a.push(r.substring(i-=u,i+u)),!((l+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function O_(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var P_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Un(e){if(!(t=P_.exec(e)))throw new Error("invalid format: "+e);var t;return new uc({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]})}Un.prototype=uc.prototype;function uc(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+""}uc.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 E_(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 Qg;function S_(e,t){var r=Pa(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Qg=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")+Pa(e,Math.max(0,t+a-1))[0]}function kp(e,t){var r=Pa(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 Tp={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:w_,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 kp(e*100,t)},r:kp,s:S_,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Dp(e){return e}var Mp=Array.prototype.map,Np=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function A_(e){var t=e.grouping===void 0||e.thousands===void 0?Dp:x_(Mp.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?Dp:O_(Mp.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(f){f=Un(f);var d=f.fill,v=f.align,p=f.sign,m=f.symbol,h=f.zero,y=f.width,b=f.comma,w=f.precision,x=f.trim,P=f.type;P==="n"?(b=!0,P="g"):Tp[P]||(w===void 0&&(w=12),x=!0,P="g"),(h||d==="0"&&v==="=")&&(h=!0,d="0",v="=");var O=m==="$"?r:m==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",S=m==="$"?n:/[%p]/.test(P)?o:"",_=Tp[P],T=/[defgprs%]/.test(P);w=w===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(j){var I=O,C=S,z,W,K;if(P==="c")C=_(j)+C,j="";else{j=+j;var F=j<0||1/j<0;if(j=isNaN(j)?l:_(Math.abs(j),w),x&&(j=E_(j)),F&&+j==0&&p!=="+"&&(F=!1),I=(F?p==="("?p:u:p==="-"||p==="("?"":p)+I,C=(P==="s"?Np[8+Qg/3]:"")+C+(F&&p==="("?")":""),T){for(z=-1,W=j.length;++z<W;)if(K=j.charCodeAt(z),48>K||K>57){C=(K===46?i+j.slice(z+1):j.slice(z))+C,j=j.slice(0,z);break}}}b&&!h&&(j=t(j,1/0));var H=I.length+j.length+C.length,B=H<y?new Array(y-H+1).join(d):"";switch(b&&h&&(j=t(B+j,B.length?y-C.length:1/0),B=""),v){case"<":j=I+j+C+B;break;case"=":j=I+B+j+C;break;case"^":j=B.slice(0,H=B.length>>1)+I+j+C+B.slice(H);break;default:j=B+I+j+C;break}return a(j)}return M.toString=function(){return f+""},M}function c(f,d){var v=s((f=Un(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(nn(d)/3)))*3,m=Math.pow(10,-p),h=Np[8+p/3];return function(y){return v(m*y)+h}}return{format:s,formatPrefix:c}}var Ri,lc,Jg;__({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function __(e){return Ri=A_(e),lc=Ri.format,Jg=Ri.formatPrefix,Ri}function C_(e){return Math.max(0,-nn(Math.abs(e)))}function j_(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(nn(t)/3)))*3-nn(Math.abs(e)))}function I_(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,nn(t)-nn(e))+1}function eb(e,t,r,n){var i=rs(e,t,r),a;switch(n=Un(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=j_(i,o))&&(n.precision=a),Jg(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=I_(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=C_(i))&&(n.precision=a-(n.type==="%")*2);break}}return lc(n)}function dr(e){var t=e.domain;return e.ticks=function(r){var n=t();return es(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return eb(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],l,s,c=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);c-- >0;){if(s=ts(o,u,r),s===l)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function tb(){var e=oc();return e.copy=function(){return li(e,tb())},vt.apply(e,arguments),dr(e)}function rb(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,Oa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return rb(e).unknown(t)},e=arguments.length?Array.from(e,Oa):[0,1],dr(r)}function nb(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 $p(e){return Math.log(e)}function Rp(e){return Math.exp(e)}function k_(e){return-Math.log(-e)}function T_(e){return-Math.exp(-e)}function D_(e){return isFinite(e)?+("1e"+e):e<0?0:e}function M_(e){return e===10?D_:e===Math.E?Math.exp:t=>Math.pow(e,t)}function N_(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 Lp(e){return(t,r)=>-e(-t,r)}function sc(e){const t=e($p,Rp),r=t.domain;let n=10,i,a;function o(){return i=N_(n),a=M_(n),r()[0]<0?(i=Lp(i),a=Lp(a),e(k_,T_)):e($p,Rp),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 l=r();let s=l[0],c=l[l.length-1];const f=c<s;f&&([s,c]=[c,s]);let d=i(s),v=i(c),p,m;const h=u==null?10:+u;let y=[];if(!(n%1)&&v-d<h){if(d=Math.floor(d),v=Math.ceil(v),s>0){for(;d<=v;++d)for(p=1;p<n;++p)if(m=d<0?p/a(-d):p*a(d),!(m<s)){if(m>c)break;y.push(m)}}else for(;d<=v;++d)for(p=n-1;p>=1;--p)if(m=d>0?p/a(-d):p*a(d),!(m<s)){if(m>c)break;y.push(m)}y.length*2<h&&(y=es(s,c,h))}else y=es(d,v,Math.min(v-d,h)).map(a);return f?y.reverse():y},t.tickFormat=(u,l)=>{if(u==null&&(u=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Un(l)).precision==null&&(l.trim=!0),l=lc(l)),u===1/0)return l;const s=Math.max(1,n*u/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=s?l(c):""}},t.nice=()=>r(nb(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function ib(){const e=sc(lo()).domain([1,10]);return e.copy=()=>li(e,ib()).base(e.base()),vt.apply(e,arguments),e}function zp(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Bp(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cc(e){var t=1,r=e(zp(t),Bp(t));return r.constant=function(n){return arguments.length?e(zp(t=+n),Bp(t)):t},dr(r)}function ab(){var e=cc(lo());return e.copy=function(){return li(e,ab()).constant(e.constant())},vt.apply(e,arguments)}function Fp(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $_(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function R_(e){return e<0?-e*e:e*e}function fc(e){var t=e(He,He),r=1;function n(){return r===1?e(He,He):r===.5?e($_,R_):e(Fp(r),Fp(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},dr(t)}function dc(){var e=fc(lo());return e.copy=function(){return li(e,dc()).exponent(e.exponent())},vt.apply(e,arguments),e}function L_(){return dc.apply(null,arguments).exponent(.5)}function Wp(e){return Math.sign(e)*e*e}function z_(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ob(){var e=oc(),t=[0,1],r=!1,n;function i(a){var o=z_(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Wp(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,Oa)).map(Wp)),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 ob(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},vt.apply(i,arguments),dr(i)}function ub(){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]=KA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[oi(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(ar),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 ub().domain(e).range(t).unknown(n)},vt.apply(a,arguments)}function lb(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[oi(n,l,0,r)]:a}function u(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,u()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,u()):i.slice()},o.invertExtent=function(l){var s=i.indexOf(l);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return lb().domain([e,t]).range(i).unknown(a)},vt.apply(dr(o),arguments)}function sb(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[oi(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 sb().domain(e).range(t).unknown(r)},vt.apply(i,arguments)}const Qu=new Date,Ju=new Date;function _e(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 l=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return l;let s;do l.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return l},i.filter=a=>_e(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)=>(Qu.setTime(+a),Ju.setTime(+o),e(Qu),e(Ju),Math.floor(r(Qu,Ju))),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 Ea=_e(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ea.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_e(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ea);Ea.range;const Nt=1e3,ct=Nt*60,$t=ct*60,Bt=$t*24,vc=Bt*7,Kp=Bt*30,el=Bt*365,Ar=_e(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Nt)},(e,t)=>(t-e)/Nt,e=>e.getUTCSeconds());Ar.range;const pc=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nt)},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getMinutes());pc.range;const hc=_e(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getUTCMinutes());hc.range;const mc=_e(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nt-e.getMinutes()*ct)},(e,t)=>{e.setTime(+e+t*$t)},(e,t)=>(t-e)/$t,e=>e.getHours());mc.range;const yc=_e(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$t)},(e,t)=>(t-e)/$t,e=>e.getUTCHours());yc.range;const gc=_e(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ct)/Bt,e=>e.getDate()-1);gc.range;const cb=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bt,e=>e.getUTCDate()-1);cb.range;const fb=_e(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bt,e=>Math.floor(e/Bt));fb.range;function Kr(e){return _e(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())*ct)/vc)}const bc=Kr(0),B_=Kr(1),F_=Kr(2),W_=Kr(3),K_=Kr(4),q_=Kr(5),U_=Kr(6);bc.range;B_.range;F_.range;W_.range;K_.range;q_.range;U_.range;function qr(e){return _e(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)/vc)}const wc=qr(0),V_=qr(1),H_=qr(2),G_=qr(3),Y_=qr(4),X_=qr(5),Z_=qr(6);wc.range;V_.range;H_.range;G_.range;Y_.range;X_.range;Z_.range;const xc=_e(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());xc.range;const Oc=_e(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());Oc.range;const so=_e(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());so.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(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)});so.range;const co=_e(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());co.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_e(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)});co.range;function db(e,t,r,n,i,a){const o=[[Ar,1,Nt],[Ar,5,5*Nt],[Ar,15,15*Nt],[Ar,30,30*Nt],[a,1,ct],[a,5,5*ct],[a,15,15*ct],[a,30,30*ct],[i,1,$t],[i,3,3*$t],[i,6,6*$t],[i,12,12*$t],[n,1,Bt],[n,2,2*Bt],[r,1,vc],[t,1,Kp],[t,3,3*Kp],[e,1,el]];function u(s,c,f){const d=c<s;d&&([s,c]=[c,s]);const v=f&&typeof f.range=="function"?f:l(s,c,f),p=v?v.range(s,+c+1):[];return d?p.reverse():p}function l(s,c,f){const d=Math.abs(c-s)/f,v=ec(([,,h])=>h).right(o,d);if(v===o.length)return e.every(rs(s/el,c/el,f));if(v===0)return Ea.every(Math.max(rs(s,c,f),1));const[p,m]=o[d/o[v-1][2]<o[v][2]/d?v-1:v];return p.every(m)}return[u,l]}const[Q_,J_]=db(co,Oc,wc,fb,yc,hc),[eC,tC]=db(so,xc,bc,gc,mc,pc);var tl=new Date,rl=new Date;function Zt(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 l=[],s;if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return l;do l.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return l},i.filter=function(a){return Zt(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 tl.setTime(+a),rl.setTime(+o),e(tl),e(rl),Math.floor(r(tl,rl))},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 rC=1e3,Pc=rC*60,nC=Pc*60,Ec=nC*24,vb=Ec*7;var Sc=Zt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pc)/Ec,e=>e.getDate()-1);Sc.range;function Ur(e){return Zt(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())*Pc)/vb})}var pb=Ur(0),Sa=Ur(1),iC=Ur(2),aC=Ur(3),an=Ur(4),oC=Ur(5),uC=Ur(6);pb.range;Sa.range;iC.range;aC.range;an.range;oC.range;uC.range;var Lr=Zt(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()});Lr.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Zt(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)})};Lr.range;var Ac=Zt(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Ec},function(e){return e.getUTCDate()-1});Ac.range;function Vr(e){return Zt(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)/vb})}var hb=Vr(0),Aa=Vr(1),lC=Vr(2),sC=Vr(3),on=Vr(4),cC=Vr(5),fC=Vr(6);hb.range;Aa.range;lC.range;sC.range;on.range;cC.range;fC.range;var zr=Zt(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()});zr.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Zt(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)})};zr.range;function nl(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 il(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 Sn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function dC(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,l=e.shortMonths,s=An(i),c=_n(i),f=An(a),d=_n(a),v=An(o),p=_n(o),m=An(u),h=_n(u),y=An(l),b=_n(l),w={a:F,A:H,b:B,B:ye,c:null,d:Yp,e:Yp,f:NC,g:UC,G:HC,H:TC,I:DC,j:MC,L:mb,m:$C,M:RC,p:fe,q:be,Q:Qp,s:Jp,S:LC,u:zC,U:BC,V:FC,w:WC,W:KC,x:null,X:null,y:qC,Y:VC,Z:GC,"%":Zp},x={a:et,A:ze,b:Tt,B:yr,c:null,d:Xp,e:Xp,f:QC,g:lj,G:cj,H:YC,I:XC,j:ZC,L:gb,m:JC,M:ej,p:Be,q:bn,Q:Qp,s:Jp,S:tj,u:rj,U:nj,V:ij,w:aj,W:oj,x:null,X:null,y:uj,Y:sj,Z:fj,"%":Zp},P={a:M,A:j,b:I,B:C,c:z,d:Hp,e:Hp,f:CC,g:Vp,G:Up,H:Gp,I:Gp,j:EC,L:_C,m:PC,M:SC,p:T,q:OC,Q:IC,s:kC,S:AC,u:yC,U:gC,V:bC,w:mC,W:wC,x:W,X:K,y:Vp,Y:Up,Z:xC,"%":jC};w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),x.x=O(r,x),x.X=O(n,x),x.c=O(t,x);function O(k,U){return function(N){var D=[],Oe=-1,Q=0,tt=k.length,rt,gr,zf;for(N instanceof Date||(N=new Date(+N));++Oe<tt;)k.charCodeAt(Oe)===37&&(D.push(k.slice(Q,Oe)),(gr=qp[rt=k.charAt(++Oe)])!=null?rt=k.charAt(++Oe):gr=rt==="e"?" ":"0",(zf=U[rt])&&(rt=zf(N,gr)),D.push(rt),Q=Oe+1);return D.push(k.slice(Q,Oe)),D.join("")}}function S(k,U){return function(N){var D=Sn(1900,void 0,1),Oe=_(D,k,N+="",0),Q,tt;if(Oe!=N.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(U&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(Q=il(Sn(D.y,0,1)),tt=Q.getUTCDay(),Q=tt>4||tt===0?Aa.ceil(Q):Aa(Q),Q=Ac.offset(Q,(D.V-1)*7),D.y=Q.getUTCFullYear(),D.m=Q.getUTCMonth(),D.d=Q.getUTCDate()+(D.w+6)%7):(Q=nl(Sn(D.y,0,1)),tt=Q.getDay(),Q=tt>4||tt===0?Sa.ceil(Q):Sa(Q),Q=Sc.offset(Q,(D.V-1)*7),D.y=Q.getFullYear(),D.m=Q.getMonth(),D.d=Q.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),tt="Z"in D?il(Sn(D.y,0,1)).getUTCDay():nl(Sn(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(tt+5)%7:D.w+D.U*7-(tt+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,il(D)):nl(D)}}function _(k,U,N,D){for(var Oe=0,Q=U.length,tt=N.length,rt,gr;Oe<Q;){if(D>=tt)return-1;if(rt=U.charCodeAt(Oe++),rt===37){if(rt=U.charAt(Oe++),gr=P[rt in qp?U.charAt(Oe++):rt],!gr||(D=gr(k,N,D))<0)return-1}else if(rt!=N.charCodeAt(D++))return-1}return D}function T(k,U,N){var D=s.exec(U.slice(N));return D?(k.p=c.get(D[0].toLowerCase()),N+D[0].length):-1}function M(k,U,N){var D=v.exec(U.slice(N));return D?(k.w=p.get(D[0].toLowerCase()),N+D[0].length):-1}function j(k,U,N){var D=f.exec(U.slice(N));return D?(k.w=d.get(D[0].toLowerCase()),N+D[0].length):-1}function I(k,U,N){var D=y.exec(U.slice(N));return D?(k.m=b.get(D[0].toLowerCase()),N+D[0].length):-1}function C(k,U,N){var D=m.exec(U.slice(N));return D?(k.m=h.get(D[0].toLowerCase()),N+D[0].length):-1}function z(k,U,N){return _(k,t,U,N)}function W(k,U,N){return _(k,r,U,N)}function K(k,U,N){return _(k,n,U,N)}function F(k){return o[k.getDay()]}function H(k){return a[k.getDay()]}function B(k){return l[k.getMonth()]}function ye(k){return u[k.getMonth()]}function fe(k){return i[+(k.getHours()>=12)]}function be(k){return 1+~~(k.getMonth()/3)}function et(k){return o[k.getUTCDay()]}function ze(k){return a[k.getUTCDay()]}function Tt(k){return l[k.getUTCMonth()]}function yr(k){return u[k.getUTCMonth()]}function Be(k){return i[+(k.getUTCHours()>=12)]}function bn(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var U=O(k+="",w);return U.toString=function(){return k},U},parse:function(k){var U=S(k+="",!1);return U.toString=function(){return k},U},utcFormat:function(k){var U=O(k+="",x);return U.toString=function(){return k},U},utcParse:function(k){var U=S(k+="",!0);return U.toString=function(){return k},U}}}var qp={"-":"",_:" ",0:"0"},De=/^\s*\d+/,vC=/^%/,pC=/[\\^$*+?|[\]().{}]/g;function X(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 hC(e){return e.replace(pC,"\\$&")}function An(e){return new RegExp("^(?:"+e.map(hC).join("|")+")","i")}function _n(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function mC(e,t,r){var n=De.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function yC(e,t,r){var n=De.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function gC(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function bC(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function wC(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Up(e,t,r){var n=De.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Vp(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function xC(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 OC(e,t,r){var n=De.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function PC(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Hp(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function EC(e,t,r){var n=De.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Gp(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function SC(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function AC(e,t,r){var n=De.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function _C(e,t,r){var n=De.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function CC(e,t,r){var n=De.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function jC(e,t,r){var n=vC.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function IC(e,t,r){var n=De.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function kC(e,t,r){var n=De.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Yp(e,t){return X(e.getDate(),t,2)}function TC(e,t){return X(e.getHours(),t,2)}function DC(e,t){return X(e.getHours()%12||12,t,2)}function MC(e,t){return X(1+Sc.count(Lr(e),e),t,3)}function mb(e,t){return X(e.getMilliseconds(),t,3)}function NC(e,t){return mb(e,t)+"000"}function $C(e,t){return X(e.getMonth()+1,t,2)}function RC(e,t){return X(e.getMinutes(),t,2)}function LC(e,t){return X(e.getSeconds(),t,2)}function zC(e){var t=e.getDay();return t===0?7:t}function BC(e,t){return X(pb.count(Lr(e)-1,e),t,2)}function yb(e){var t=e.getDay();return t>=4||t===0?an(e):an.ceil(e)}function FC(e,t){return e=yb(e),X(an.count(Lr(e),e)+(Lr(e).getDay()===4),t,2)}function WC(e){return e.getDay()}function KC(e,t){return X(Sa.count(Lr(e)-1,e),t,2)}function qC(e,t){return X(e.getFullYear()%100,t,2)}function UC(e,t){return e=yb(e),X(e.getFullYear()%100,t,2)}function VC(e,t){return X(e.getFullYear()%1e4,t,4)}function HC(e,t){var r=e.getDay();return e=r>=4||r===0?an(e):an.ceil(e),X(e.getFullYear()%1e4,t,4)}function GC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+X(t/60|0,"0",2)+X(t%60,"0",2)}function Xp(e,t){return X(e.getUTCDate(),t,2)}function YC(e,t){return X(e.getUTCHours(),t,2)}function XC(e,t){return X(e.getUTCHours()%12||12,t,2)}function ZC(e,t){return X(1+Ac.count(zr(e),e),t,3)}function gb(e,t){return X(e.getUTCMilliseconds(),t,3)}function QC(e,t){return gb(e,t)+"000"}function JC(e,t){return X(e.getUTCMonth()+1,t,2)}function ej(e,t){return X(e.getUTCMinutes(),t,2)}function tj(e,t){return X(e.getUTCSeconds(),t,2)}function rj(e){var t=e.getUTCDay();return t===0?7:t}function nj(e,t){return X(hb.count(zr(e)-1,e),t,2)}function bb(e){var t=e.getUTCDay();return t>=4||t===0?on(e):on.ceil(e)}function ij(e,t){return e=bb(e),X(on.count(zr(e),e)+(zr(e).getUTCDay()===4),t,2)}function aj(e){return e.getUTCDay()}function oj(e,t){return X(Aa.count(zr(e)-1,e),t,2)}function uj(e,t){return X(e.getUTCFullYear()%100,t,2)}function lj(e,t){return e=bb(e),X(e.getUTCFullYear()%100,t,2)}function sj(e,t){return X(e.getUTCFullYear()%1e4,t,4)}function cj(e,t){var r=e.getUTCDay();return e=r>=4||r===0?on(e):on.ceil(e),X(e.getUTCFullYear()%1e4,t,4)}function fj(){return"+0000"}function Zp(){return"%"}function Qp(e){return+e}function Jp(e){return Math.floor(+e/1e3)}var Gr,wb,xb;dj({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 dj(e){return Gr=dC(e),wb=Gr.format,Gr.parse,xb=Gr.utcFormat,Gr.utcParse,Gr}function vj(e){return new Date(e)}function pj(e){return e instanceof Date?+e:+new Date(+e)}function _c(e,t,r,n,i,a,o,u,l,s){var c=oc(),f=c.invert,d=c.domain,v=s(".%L"),p=s(":%S"),m=s("%I:%M"),h=s("%I %p"),y=s("%a %d"),b=s("%b %d"),w=s("%B"),x=s("%Y");function P(O){return(l(O)<O?v:u(O)<O?p:o(O)<O?m:a(O)<O?h:n(O)<O?i(O)<O?y:b:r(O)<O?w:x)(O)}return c.invert=function(O){return new Date(f(O))},c.domain=function(O){return arguments.length?d(Array.from(O,pj)):d().map(vj)},c.ticks=function(O){var S=d();return e(S[0],S[S.length-1],O??10)},c.tickFormat=function(O,S){return S==null?P:s(S)},c.nice=function(O){var S=d();return(!O||typeof O.range!="function")&&(O=t(S[0],S[S.length-1],O??10)),O?d(nb(S,O)):c},c.copy=function(){return li(c,_c(e,t,r,n,i,a,o,u,l,s))},c}function hj(){return vt.apply(_c(eC,tC,so,xc,bc,gc,mc,pc,Ar,wb).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function mj(){return vt.apply(_c(Q_,J_,co,Oc,wc,cb,yc,hc,Ar,xb).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function fo(){var e=0,t=1,r,n,i,a,o=He,u=!1,l;function s(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,u?Math.max(0,Math.min(1,f)):f))}s.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(f){return arguments.length?(u=!!f,s):u},s.interpolator=function(f){return arguments.length?(o=f,s):o};function c(f){return function(d){var v,p;return arguments.length?([v,p]=d,o=f(v,p),s):[o(0),o(1)]}}return s.range=c(cn),s.rangeRound=c(ac),s.unknown=function(f){return arguments.length?(l=f,s):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),s}}function vr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ob(){var e=dr(fo()(He));return e.copy=function(){return vr(e,Ob())},Xt.apply(e,arguments)}function Pb(){var e=sc(fo()).domain([1,10]);return e.copy=function(){return vr(e,Pb()).base(e.base())},Xt.apply(e,arguments)}function Eb(){var e=cc(fo());return e.copy=function(){return vr(e,Eb()).constant(e.constant())},Xt.apply(e,arguments)}function Cc(){var e=fc(fo());return e.copy=function(){return vr(e,Cc()).exponent(e.exponent())},Xt.apply(e,arguments)}function yj(){return Cc.apply(null,arguments).exponent(.5)}function Sb(){var e=[],t=He;function r(n){if(n!=null&&!isNaN(n=+n))return t((oi(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(ar),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)=>WA(e,a/n))},r.copy=function(){return Sb(t).domain(e)},Xt.apply(r,arguments)}function vo(){var e=0,t=.5,r=1,n=1,i,a,o,u,l,s=He,c,f=!1,d;function v(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-a)*(n*m<n*a?u:l),s(f?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),u=i===a?0:.5/(a-i),l=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?(s=m,v):s};function p(m){return function(h){var y,b,w;return arguments.length?([y,b,w]=h,s=h_(m,[y,b,w]),v):[s(0),s(.5),s(1)]}}return v.range=p(cn),v.rangeRound=p(ac),v.unknown=function(m){return arguments.length?(d=m,v):d},function(m){return c=m,i=m(e),a=m(t),o=m(r),u=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function Ab(){var e=dr(vo()(He));return e.copy=function(){return vr(e,Ab())},Xt.apply(e,arguments)}function _b(){var e=sc(vo()).domain([.1,1,10]);return e.copy=function(){return vr(e,_b()).base(e.base())},Xt.apply(e,arguments)}function Cb(){var e=cc(vo());return e.copy=function(){return vr(e,Cb()).constant(e.constant())},Xt.apply(e,arguments)}function jc(){var e=fc(vo());return e.copy=function(){return vr(e,jc()).exponent(e.exponent())},Xt.apply(e,arguments)}function gj(){return jc.apply(null,arguments).exponent(.5)}const In=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:rc,scaleDiverging:Ab,scaleDivergingLog:_b,scaleDivergingPow:jc,scaleDivergingSqrt:gj,scaleDivergingSymlog:Cb,scaleIdentity:rb,scaleImplicit:ns,scaleLinear:tb,scaleLog:ib,scaleOrdinal:tc,scalePoint:UA,scalePow:dc,scaleQuantile:ub,scaleQuantize:lb,scaleRadial:ob,scaleSequential:Ob,scaleSequentialLog:Pb,scaleSequentialPow:Cc,scaleSequentialQuantile:Sb,scaleSequentialSqrt:yj,scaleSequentialSymlog:Eb,scaleSqrt:L_,scaleSymlog:ab,scaleThreshold:sb,scaleTime:hj,scaleUtc:mj,tickFormat:eb},Symbol.toStringTag,{value:"Module"}));var Qt=e=>e.chartData,po=A([Qt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ho=(e,t,r,n)=>n?po(e):Qt(e),jb=(e,t,r)=>r?po(e):Qt(e);function Ft(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(V(t)&&V(r))return!0}return!1}function eh(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Ib(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(V(r))i=r;else if(typeof r=="function")return;if(V(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Ft(o))return o}}function bj(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Ft(n))return eh(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($(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&dv.test(i)){var l=dv.exec(i);if(l==null||l[1]==null||t==null)o=void 0;else{var s=+l[1];o=t[0]-s}}else o=t?.[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if($(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t?.[1]))}catch{}else if(typeof a=="string"&&vv.test(a)){var c=vv.exec(a);if(c==null||c[1]==null||t==null)u=void 0;else{var f=+c[1];u=t[1]+f}}else u=t?.[1];var d=[o,u];if(Ft(d))return t==null?d:eh(d,t,r)}}}var fn=1e9,wj={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kc,se=!0,dt="[DecimalError] ",kr=dt+"Invalid argument: ",Ic=dt+"Exponent out of range: ",dn=Math.floor,Or=Math.pow,xj=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,it,ke=1e7,oe=7,kb=9007199254740991,_a=dn(kb/oe),R={};R.absoluteValue=R.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};R.comparedTo=R.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};R.decimalPlaces=R.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*oe;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};R.dividedBy=R.div=function(e){return Rt(this,new this.constructor(e))};R.dividedToIntegerBy=R.idiv=function(e){var t=this,r=t.constructor;return ne(Rt(t,new r(e),0,1),r.precision)};R.equals=R.eq=function(e){return!this.cmp(e)};R.exponent=function(){return xe(this)};R.greaterThan=R.gt=function(e){return this.cmp(e)>0};R.greaterThanOrEqualTo=R.gte=function(e){return this.cmp(e)>=0};R.isInteger=R.isint=function(){return this.e>this.d.length-2};R.isNegative=R.isneg=function(){return this.s<0};R.isPositive=R.ispos=function(){return this.s>0};R.isZero=function(){return this.s===0};R.lessThan=R.lt=function(e){return this.cmp(e)<0};R.lessThanOrEqualTo=R.lte=function(e){return this.cmp(e)<1};R.logarithm=R.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(it))throw Error(dt+"NaN");if(r.s<1)throw Error(dt+(r.s?"NaN":"-Infinity"));return r.eq(it)?new n(0):(se=!1,t=Rt(Vn(r,a),Vn(e,a),a),se=!0,ne(t,i))};R.minus=R.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Mb(t,e):Tb(t,(e.s=-e.s,e))};R.modulo=R.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(dt+"NaN");return r.s?(se=!1,t=Rt(r,e,0,1).times(e),se=!0,r.minus(t)):ne(new n(r),i)};R.naturalExponential=R.exp=function(){return Db(this)};R.naturalLogarithm=R.ln=function(){return Vn(this)};R.negated=R.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};R.plus=R.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Tb(t,e):Mb(t,(e.s=-e.s,e))};R.precision=R.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(kr+e);if(t=xe(i)+1,n=i.d.length-1,r=n*oe+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};R.squareRoot=R.sqrt=function(){var e,t,r,n,i,a,o,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(dt+"NaN")}for(e=xe(u),se=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=At(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=dn((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 l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Rt(u,a,o+2)).times(.5),At(a.d).slice(0,o)===(t=At(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ne(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return se=!0,ne(n,r)};R.times=R.mul=function(e){var t,r,n,i,a,o,u,l,s,c=this,f=c.constructor,d=c.d,v=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,s=v.length,l<s&&(a=d,d=v,v=a,o=l,l=s,s=o),a=[],o=l+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=l+n;i>n;)u=a[i]+v[n]*d[i-n-1]+t,a[i--]=u%ke|0,t=u/ke|0;a[i]=(a[i]+t)%ke|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,se?ne(e,f.precision):e};R.toDecimalPlaces=R.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ct(e,0,fn),t===void 0?t=n.rounding:Ct(t,0,8),ne(r,e+xe(r)+1,t))};R.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Br(n,!0):(Ct(e,0,fn),t===void 0?t=i.rounding:Ct(t,0,8),n=ne(new i(n),e+1,t),r=Br(n,!0,e+1)),r};R.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Br(i):(Ct(e,0,fn),t===void 0?t=a.rounding:Ct(t,0,8),n=ne(new a(i),e+xe(i)+1,t),r=Br(n.abs(),!1,e+xe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};R.toInteger=R.toint=function(){var e=this,t=e.constructor;return ne(new t(e),xe(e)+1,t.rounding)};R.toNumber=function(){return+this};R.toPower=R.pow=function(e){var t,r,n,i,a,o,u=this,l=u.constructor,s=12,c=+(e=new l(e));if(!e.s)return new l(it);if(u=new l(u),!u.s){if(e.s<1)throw Error(dt+"Infinity");return u}if(u.eq(it))return u;if(n=l.precision,e.eq(it))return ne(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=c<0?-c:c)<=kb){for(i=new l(it),t=Math.ceil(n/oe+4),se=!1;r%2&&(i=i.times(u),rh(i.d,t)),r=dn(r/2),r!==0;)u=u.times(u),rh(u.d,t);return se=!0,e.s<0?new l(it).div(i):ne(i,n)}}else if(a<0)throw Error(dt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,se=!1,i=e.times(Vn(u,n+s)),se=!0,i=Db(i),i.s=a,i};R.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=xe(i),n=Br(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ct(e,1,fn),t===void 0?t=a.rounding:Ct(t,0,8),i=ne(new a(i),e,t),r=xe(i),n=Br(i,e<=r||r<=a.toExpNeg,e)),n};R.toSignificantDigits=R.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ct(e,1,fn),t===void 0?t=n.rounding:Ct(t,0,8)),ne(new n(r),e,t)};R.toString=R.valueOf=R.val=R.toJSON=R[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=xe(e),r=e.constructor;return Br(e,t<=r.toExpNeg||t>=r.toExpPos)};function Tb(e,t){var r,n,i,a,o,u,l,s,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),se?ne(t,f):t;if(l=e.d,s=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,u=s.length):(n=s,i=o,u=l.length),o=Math.ceil(f/oe),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=l.length,a=s.length,u-a<0&&(a=u,n=s,s=l,l=n),r=0;a;)r=(l[--a]=l[a]+s[a]+r)/ke|0,l[a]%=ke;for(r&&(l.unshift(r),++i),u=l.length;l[--u]==0;)l.pop();return t.d=l,t.e=i,se?ne(t,f):t}function Ct(e,t,r){if(e!==~~e||e<t||e>r)throw Error(kr+e)}function At(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=oe-n.length,r&&(a+=tr(r)),a+=n;o=e[t],n=o+"",r=oe-n.length,r&&(a+=tr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Rt=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%ke|0,o=a/ke|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,l;if(a!=o)l=a>o?1:-1;else for(u=l=0;u<a;u++)if(n[u]!=i[u]){l=n[u]>i[u]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ke+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,l,s,c,f,d,v,p,m,h,y,b,w,x,P,O,S,_,T=n.constructor,M=n.s==i.s?1:-1,j=n.d,I=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(dt+"Division by zero");for(l=n.e-i.e,S=I.length,P=j.length,v=new T(M),p=v.d=[],s=0;I[s]==(j[s]||0);)++s;if(I[s]>(j[s]||0)&&--l,a==null?b=a=T.precision:o?b=a+(xe(n)-xe(i))+1:b=a,b<0)return new T(0);if(b=b/oe+2|0,s=0,S==1)for(c=0,I=I[0],b++;(s<P||c)&&b--;s++)w=c*ke+(j[s]||0),p[s]=w/I|0,c=w%I|0;else{for(c=ke/(I[0]+1)|0,c>1&&(I=e(I,c),j=e(j,c),S=I.length,P=j.length),x=S,m=j.slice(0,S),h=m.length;h<S;)m[h++]=0;_=I.slice(),_.unshift(0),O=I[0],I[1]>=ke/2&&++O;do c=0,u=t(I,m,S,h),u<0?(y=m[0],S!=h&&(y=y*ke+(m[1]||0)),c=y/O|0,c>1?(c>=ke&&(c=ke-1),f=e(I,c),d=f.length,h=m.length,u=t(f,m,d,h),u==1&&(c--,r(f,S<d?_:I,d))):(c==0&&(u=c=1),f=I.slice()),d=f.length,d<h&&f.unshift(0),r(m,f,h),u==-1&&(h=m.length,u=t(I,m,S,h),u<1&&(c++,r(m,S<h?_:I,h))),h=m.length):u===0&&(c++,m=[0]),p[s++]=c,u&&m[0]?m[h++]=j[x]||0:(m=[j[x]],h=1);while((x++<P||m[0]!==void 0)&&b--)}return p[0]||p.shift(),v.e=l,ne(v,o?a+xe(v)+1:a)}}();function Db(e,t){var r,n,i,a,o,u,l=0,s=0,c=e.constructor,f=c.precision;if(xe(e)>16)throw Error(Ic+xe(e));if(!e.s)return new c(it);for(se=!1,u=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Or(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new c(it),c.precision=u;;){if(i=ne(i.times(e),u),r=r.times(++l),o=a.plus(Rt(i,r,u)),At(o.d).slice(0,u)===At(a.d).slice(0,u)){for(;s--;)a=ne(a.times(a),u);return c.precision=f,t==null?(se=!0,ne(a,f)):a}a=o}}function xe(e){for(var t=e.e*oe,r=e.d[0];r>=10;r/=10)t++;return t}function al(e,t,r){if(t>e.LN10.sd())throw se=!0,r&&(e.precision=r),Error(dt+"LN10 precision limit exceeded");return ne(new e(e.LN10),t)}function tr(e){for(var t="";e--;)t+="0";return t}function Vn(e,t){var r,n,i,a,o,u,l,s,c,f=1,d=10,v=e,p=v.d,m=v.constructor,h=m.precision;if(v.s<1)throw Error(dt+(v.s?"NaN":"-Infinity"));if(v.eq(it))return new m(0);if(t==null?(se=!1,s=h):s=t,v.eq(10))return t==null&&(se=!0),al(m,s);if(s+=d,m.precision=s,r=At(p),n=r.charAt(0),a=xe(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=At(v.d),n=r.charAt(0),f++;a=xe(v),n>1?(v=new m("0."+r),a++):v=new m(n+"."+r.slice(1))}else return l=al(m,s+2,h).times(a+""),v=Vn(new m(n+"."+r.slice(1)),s-d).plus(l),m.precision=h,t==null?(se=!0,ne(v,h)):v;for(u=o=v=Rt(v.minus(it),v.plus(it),s),c=ne(v.times(v),s),i=3;;){if(o=ne(o.times(c),s),l=u.plus(Rt(o,new m(i),s)),At(l.d).slice(0,s)===At(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(al(m,s+2,h).times(a+""))),u=Rt(u,new m(f),s),m.precision=h,t==null?(se=!0,ne(u,h)):u;u=l,i+=2}}function th(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=dn(r/oe),e.d=[],n=(r+1)%oe,r<0&&(n+=oe),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=oe;n<i;)e.d.push(+t.slice(n,n+=oe));t=t.slice(n),n=oe-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),se&&(e.e>_a||e.e<-_a))throw Error(Ic+r)}else e.s=0,e.e=0,e.d=[0];return e}function ne(e,t,r){var n,i,a,o,u,l,s,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=oe,i=t,s=f[c=0];else{if(c=Math.ceil((n+1)/oe),a=f.length,c>=a)return e;for(s=a=f[c],o=1;a>=10;a/=10)o++;n%=oe,i=n-oe+o}if(r!==void 0&&(a=Or(10,o-i-1),u=s/a%10|0,l=t<0||f[c+1]!==void 0||s%a,l=r<4?(u||l)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||l||r==6&&(n>0?i>0?s/Or(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=xe(e),f.length=1,t=t-a-1,f[0]=Or(10,(oe-t%oe)%oe),e.e=dn(-t/oe)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Or(10,oe-n),f[c]=i>0?(s/Or(10,o-i)%Or(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==ke&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=ke)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(se&&(e.e>_a||e.e<-_a))throw Error(Ic+xe(e));return e}function Mb(e,t){var r,n,i,a,o,u,l,s,c,f,d=e.constructor,v=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),se?ne(t,v):t;if(l=e.d,f=t.d,n=t.e,s=e.e,l=l.slice(),o=s-n,o){for(c=o<0,c?(r=l,o=-o,u=f.length):(r=f,n=s,u=l.length),i=Math.max(Math.ceil(v/oe),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,u=f.length,c=i<u,c&&(u=i),i=0;i<u;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),u=l.length,i=f.length-u;i>0;--i)l[u++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=ke-1;--l[a],l[i]+=ke}l[i]-=f[i]}for(;l[--u]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,se?ne(t,v):t):new d(0)}function Br(e,t,r){var n,i=xe(e),a=At(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+tr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+tr(-i-1)+a,r&&(n=r-o)>0&&(a+=tr(n))):i>=o?(a+=tr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+tr(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=tr(n))),e.s<0?"-"+a:a}function rh(e,t){if(e.length>t)return e.length=t,!0}function Nb(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(kr+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 th(o,a.toString())}else if(typeof a!="string")throw Error(kr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,xj.test(a))th(o,a);else throw Error(kr+a)}if(i.prototype=R,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=Nb,i.config=i.set=Oj,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 Oj(e){if(!e||typeof e!="object")throw Error(dt+"Object expected");var t,r,n,i=["precision",1,fn,"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(dn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(kr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(kr+r+": "+n);return this}var kc=Nb(wj);it=new kc(1);const J=kc;function $b(e){var t;return e===0?t=1:t=Math.floor(new J(e).abs().log(10).toNumber())+1,t}function Rb(e,t,r){for(var n=new J(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Lb=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},zb=(e,t,r)=>{if(e.lte(0))return new J(0);var n=$b(e.toNumber()),i=new J(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new J(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=u.mul(i);return t?new J(l.toNumber()):new J(Math.ceil(l.toNumber()))},Pj=(e,t,r)=>{var n=new J(1),i=new J(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new J(10).pow($b(e)-1),i=new J(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new J(Math.floor(e)))}else e===0?i=new J(Math.floor((t-1)/2)):r||(i=new J(Math.floor(e)));for(var o=Math.floor((t-1)/2),u=[],l=0;l<t;l++)u.push(i.add(new J(l-o).mul(n)).toNumber());return u},Bb=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 J(0),tickMin:new J(0),tickMax:new J(0)};var o=zb(new J(r).sub(t).div(n-1),i,a),u;t<=0&&r>=0?u=new J(0):(u=new J(t).add(r).div(2),u=u.sub(new J(u).mod(o)));var l=Math.ceil(u.sub(t).div(o).toNumber()),s=Math.ceil(new J(r).sub(u).div(o).toNumber()),c=l+s+1;return c>n?Bb(t,r,n,i,a+1):(c<n&&(s=r>0?s+(n-c):s,l=r>0?l:l+(n-c)),{step:o,tickMin:u.sub(new J(l).mul(o)),tickMax:u.add(new J(s).mul(o))})},Ej=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,l]=Lb([r,n]);if(u===-1/0||l===1/0){var s=l===1/0?[u,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),l];return r>n?s.reverse():s}if(u===l)return Pj(u,i,a);var{step:c,tickMin:f,tickMax:d}=Bb(u,l,o,a,0),v=Rb(f,d.add(new J(.1).mul(c)),c);return r>n?v.reverse():v},Sj=function(t,r){var[n,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,u]=Lb([n,i]);if(o===-1/0||u===1/0)return[n,i];if(o===u)return[o];var l=Math.max(r,2),s=zb(new J(u).sub(o).div(l-1),a,0),c=[...Rb(new J(o),new J(u),s),u];return a===!1&&(c=c.map(f=>Math.round(f))),n>i?c.reverse():c},Fb=e=>e.rootProps.maxBarSize,Aj=e=>e.rootProps.barGap,Wb=e=>e.rootProps.barCategoryGap,_j=e=>e.rootProps.barSize,si=e=>e.rootProps.stackOffset,Kb=e=>e.rootProps.reverseStackOrder,Tc=e=>e.options.chartName,Dc=e=>e.rootProps.syncId,qb=e=>e.rootProps.syncMethod,Mc=e=>e.options.eventEmitter,Cj=e=>e.rootProps.baseValue,ge={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},br={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Ot={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},mo=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function yo(e,t,r){if(r!=="auto")return r;if(e!=null)return jt(e,t)?"category":"number"}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 Ca(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){jj(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 jj(e,t,r){return(t=Ij(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ij(e){var t=kj(e,"string");return typeof t=="symbol"?t:t+""}function kj(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 ih={allowDataOverflow:br.allowDataOverflow,allowDecimals:br.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:br.angleAxisId,includeHidden:!1,name:void 0,reversed:br.reversed,scale:br.scale,tick:br.tick,tickCount:void 0,ticks:void 0,type:br.type,unit:void 0},ah={allowDataOverflow:Ot.allowDataOverflow,allowDecimals:Ot.allowDecimals,allowDuplicatedCategory:Ot.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ot.radiusAxisId,includeHidden:Ot.includeHidden,name:void 0,reversed:Ot.reversed,scale:Ot.scale,tick:Ot.tick,tickCount:Ot.tickCount,ticks:void 0,type:Ot.type,unit:void 0},Tj=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},Nc=A([Tj,Eg],(e,t)=>{var r;if(e!=null)return e;var n=(r=yo(t,"angleAxis",ih.type))!==null&&r!==void 0?r:"category";return Ca(Ca({},ih),{},{type:n})}),Dj=(e,t)=>e.polarAxis.radiusAxis[t],$c=A([Dj,Eg],(e,t)=>{var r;if(e!=null)return e;var n=(r=yo(t,"radiusAxis",ah.type))!==null&&r!==void 0?r:"category";return Ca(Ca({},ah),{},{type:n})}),go=e=>e.polarOptions,Rc=A([Gt,Yt,Ae],Bg),Ub=A([go,Rc],(e,t)=>{if(e!=null)return Ke(e.innerRadius,t,0)}),Vb=A([go,Rc],(e,t)=>{if(e!=null)return Ke(e.outerRadius,t,t*.8)}),Mj=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},Hb=A([go],Mj);A([Nc,Hb],mo);var Gb=A([Rc,Ub,Vb],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});A([$c,Gb],mo);var Yb=A([G,go,Ub,Vb,Gt,Yt],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:u,startAngle:l,endAngle:s}=t;return{cx:Ke(o,i,i/2),cy:Ke(u,a,a/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:s,clockWise:!1}}}),de=(e,t)=>t,ci=(e,t,r)=>r;function bo(e){return e?.id}function Xb(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(u=>{var l,s=(l=u.data)!==null&&l!==void 0?l:n;if(!(s==null||s.length===0)){var c=bo(u);s.forEach((f,d)=>{var v=a==null||i?d:String(ee(f,a,null)),p=ee(f,u.dataKey,0),m;o.has(v)?m=o.get(v):m={},Object.assign(m,{[c]:p}),o.set(v,m)})}}),Array.from(o.values())}function wo(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var xo=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Oo(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function Nj(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 Me=e=>{var t=G(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},vn=e=>e.tooltip.settings.axisId;function $j(e){if(e in In)return In[e]();var t="scale".concat(Xn(e));if(t in In)return In[t]()}function oh(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 l=e.bandwidth();switch(o.position){case"middle":u+=l/2;break;case"end":u+=l;break}}return u}}}}function uh(e,t,r){if(typeof e=="function")return oh(e.copy().domain(t).range(r));if(e!=null){var n=$j(e);if(n!=null)return n.domain(t).range(r),oh(n)}}var Zb=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Ft(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];V(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 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 ja(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){Rj(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 Rj(e,t,r){return(t=Lj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lj(e){var t=zj(e,"string");return typeof t=="symbol"?t:t+""}function zj(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 us=[0,"auto"],je={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},Qb=(e,t)=>e.cartesianAxis.xAxis[t],It=(e,t)=>{var r=Qb(e,t);return r??je},Ie={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:us,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:ri},Jb=(e,t)=>e.cartesianAxis.yAxis[t],kt=(e,t)=>{var r=Jb(e,t);return r??Ie},e0={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:""},Lc=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??e0},me=(e,t,r)=>{switch(t){case"xAxis":return It(e,r);case"yAxis":return kt(e,r);case"zAxis":return Lc(e,r);case"angleAxis":return Nc(e,r);case"radiusAxis":return $c(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Bj=(e,t,r)=>{switch(t){case"xAxis":return It(e,r);case"yAxis":return kt(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},pn=(e,t,r)=>{switch(t){case"xAxis":return It(e,r);case"yAxis":return kt(e,r);case"angleAxis":return Nc(e,r);case"radiusAxis":return $c(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},t0=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function zc(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 fi=e=>e.graphicalItems.cartesianItems,Fj=A([de,ci],zc),Bc=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),di=A([fi,me,Fj],Bc,{memoizeOptions:{resultEqualityCheck:Oo}}),r0=A([di],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(wo)),n0=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Wj=A([di],n0),Fc=e=>e.map(t=>t.data).filter(Boolean).flat(1),Kj=A([di],Fc,{memoizeOptions:{resultEqualityCheck:Oo}}),Wc=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},Kc=A([Kj,ho],Wc),qc=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:ee(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:ee(i,n)}))):e.map(n=>({value:n})),Po=A([Kc,me,di],qc);function i0(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Hi(e){if(yt(e)||e instanceof Date){var t=Number(e);if(V(t))return t}}function sh(e){if(Array.isArray(e)){var t=[Hi(e[0]),Hi(e[1])];return Ft(t)?t:void 0}var r=Hi(e);if(r!=null)return[r,r]}function Wt(e){return e.map(Hi).filter(Ve)}function qj(e,t,r){return!r||typeof t!="number"||mt(t)?[]:r.length?Wt(r.flatMap(n=>{var i=ee(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!V(a)||!V(o)))return[t-a,t+o]})):[]}var Ce=e=>{var t=Me(e),r=vn(e);return pn(e,t,r)},vi=A([Ce],e=>e?.dataKey),Uj=A([r0,ho,Ce],Xb),a0=(e,t,r,n)=>{var i={},a=t.reduce((o,u)=>{if(u.stackId==null)return o;var l=o[u.stackId];return l==null&&(l=[]),l.push(u),o[u.stackId]=l,o},i);return Object.fromEntries(Object.entries(a).map(o=>{var[u,l]=o,s=n?[...l].reverse():l,c=s.map(bo);return[u,{stackedData:sE(e,c,r),graphicalItems:s}]}))},Ia=A([Uj,r0,si,Kb],a0),o0=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var o=vE(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},Vj=A([me],e=>e.allowDataOverflow),Uc=e=>{var t;if(e==null||!("domain"in e))return us;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Wt(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:us},Vc=A([me],Uc),Hc=A([Vc,Vj],Ib),Hj=A([Ia,Qt,de,Hc],o0,{memoizeOptions:{resultEqualityCheck:xo}}),Eo=e=>e.errorBars,Gj=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>i0(r,n)),ka=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]}},Gc=(e,t,r,n,i)=>{var a,o;if(r.length>0&&e.forEach(u=>{r.forEach(l=>{var s,c,f=(s=n[l.id])===null||s===void 0?void 0:s.filter(y=>i0(i,y)),d=ee(u,(c=t.dataKey)!==null&&c!==void 0?c:l.dataKey),v=qj(u,d,f);if(v.length>=2){var p=Math.min(...v),m=Math.max(...v);(a==null||p<a)&&(a=p),(o==null||m>o)&&(o=m)}var h=sh(d);h!=null&&(a=a==null?h[0]:Math.min(a,h[0]),o=o==null?h[1]:Math.max(o,h[1]))})}),t?.dataKey!=null&&e.forEach(u=>{var l=sh(ee(u,t.dataKey));l!=null&&(a=a==null?l[0]:Math.min(a,l[0]),o=o==null?l[1]:Math.max(o,l[1]))}),V(a)&&V(o))return[a,o]},Yj=A([Kc,me,Wj,Eo,de],Gc,{memoizeOptions:{resultEqualityCheck:xo}});function Xj(e){var{value:t}=e;if(yt(t)||t instanceof Date)return t}var Zj=(e,t,r)=>{var n=e.map(Xj).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&py(n))?qg(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},u0=e=>e.referenceElements.dots,hn=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),Qj=A([u0,de,ci],hn),l0=e=>e.referenceElements.areas,Jj=A([l0,de,ci],hn),s0=e=>e.referenceElements.lines,eI=A([s0,de,ci],hn),c0=(e,t)=>{if(e!=null){var r=Wt(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},tI=A(Qj,de,c0),f0=(e,t)=>{if(e!=null){var r=Wt(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)]}},rI=A([Jj,de],f0);function nI(e){var t;if(e.x!=null)return Wt([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Wt(r)}function iI(e){var t;if(e.y!=null)return Wt([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Wt(r)}var d0=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?nI(n):iI(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},aI=A([eI,de],d0),oI=A(tI,aI,rI,(e,t,r)=>ka(e,r,t)),Yc=(e,t,r,n,i,a,o,u)=>{if(r!=null)return r;var l=o==="vertical"&&u==="xAxis"||o==="horizontal"&&u==="yAxis",s=l?ka(n,a,i):ka(a,i);return bj(t,s,e.allowDataOverflow)},uI=A([me,Vc,Hc,Hj,Yj,oI,G,de],Yc,{memoizeOptions:{resultEqualityCheck:xo}}),lI=[0,1],Xc=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:u,type:l}=e,s=jt(t,a);if(s&&u==null){var c;return qg(0,(c=r?.length)!==null&&c!==void 0?c:0)}return l==="category"?Zj(n,e,s):i==="expand"?lI:o}},Zc=A([me,G,Kc,Po,si,de,uI],Xc);function sI(e){return e in In}var v0=(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(Xn(n));return sI(a)?a:"point"}}},pr=A([me,t0,Tc],v0);function Qc(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?uh(e.scale,r,n):uh(t,r,n)}var Jc=(e,t,r)=>{var n=Uc(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Ft(e))return Ej(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Ft(e))return Sj(e,t.tickCount,t.allowDecimals)}},ef=A([Zc,pn,pr],Jc),tf=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Ft(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],u=(i=r[0])!==null&&i!==void 0?i:0,l=t[1],s=(a=r[r.length-1])!==null&&a!==void 0?a:0;return[Math.min(o,u),Math.max(l,s)]}return t},cI=A([me,Zc,ef,de],tf),fI=A(Po,me,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Wt(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 l=n[u],s=n[u+1];if(!(l==null||s==null)){var c=s-l;r=Math.min(r,c)}}return r/o}}),p0=A(fI,G,Wb,Ae,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!V(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=Ke(r,e*a),u=e*a/2;return u-o-(u-o)/a*o}return 0}),dI=(e,t,r)=>{var n=It(e,t);return n==null||typeof n.padding!="string"?0:p0(e,"xAxis",t,r,n.padding)},vI=(e,t,r)=>{var n=kt(e,t);return n==null||typeof n.padding!="string"?0:p0(e,"yAxis",t,r,n.padding)},pI=A(It,dI,(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}}),hI=A(kt,vI,(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}}),mI=A([Ae,pI,no,ro,(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]}),yI=A([Ae,G,hI,no,ro,(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]}),pi=(e,t,r,n)=>{var i;switch(t){case"xAxis":return mI(e,r,n);case"yAxis":return yI(e,r,n);case"zAxis":return(i=Lc(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return Hb(e);case"radiusAxis":return Gb(e,r);default:return}},h0=A([me,pi],mo),gI=A([pr,cI],Zb),hi=A([me,pr,gI,h0],Qc);A([di,Eo,de],Gj);function m0(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var So=(e,t)=>t,Ao=(e,t,r)=>r,bI=A(eo,So,Ao,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(m0)),wI=A(to,So,Ao,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(m0)),y0=(e,t)=>({width:e.width,height:t.height}),xI=(e,t)=>{var r=typeof t.width=="number"?t.width:ri;return{width:r,height:e.height}},g0=A(Ae,It,y0),OI=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},PI=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},EI=A(Yt,Ae,bI,So,Ao,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=y0(t,u);o==null&&(o=OI(t,n,e));var s=n==="top"&&!i||n==="bottom"&&i;a[u.id]=o-Number(s)*l.height,o+=(s?-1:1)*l.height}),a}),SI=A(Gt,Ae,wI,So,Ao,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var l=xI(t,u);o==null&&(o=PI(t,n,e));var s=n==="left"&&!i||n==="right"&&i;a[u.id]=o-Number(s)*l.width,o+=(s?-1:1)*l.width}),a}),AI=(e,t)=>{var r=It(e,t);if(r!=null)return EI(e,r.orientation,r.mirror)},_I=A([Ae,It,AI,(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}}}),CI=(e,t)=>{var r=kt(e,t);if(r!=null)return SI(e,r.orientation,r.mirror)},jI=A([Ae,kt,CI,(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}}}),b0=A(Ae,kt,(e,t)=>{var r=typeof t.width=="number"?t.width:ri;return{width:r,height:e.height}}),ch=(e,t,r)=>{switch(t){case"xAxis":return g0(e,r).width;case"yAxis":return b0(e,r).height;default:return}},w0=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,u=jt(e,n),l=t.map(s=>s.value);if(o&&u&&a==="category"&&i&&py(l))return l}},rf=A([G,Po,me,de],w0),x0=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=jt(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},nf=A([G,Po,pn,de],x0),fh=A([G,Bj,pr,hi,rf,nf,pi,ef,de],(e,t,r,n,i,a,o,u,l)=>{if(t!=null){var s=jt(e,l);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:l,categoricalDomain:a,duplicateDomain:i,isCategorical:s,niceTicks:u,range:o,realScaleType:r,scale:n}}}),II=(e,t,r,n,i,a,o,u,l)=>{if(!(t==null||n==null)){var s=jt(e,l),{type:c,ticks:f,tickCount:d}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,p=c==="category"&&n.bandwidth?n.bandwidth()/v:0;p=l==="angleAxis"&&a!=null&&a.length>=2?Te(a[0]-a[1])*2*p:p;var m=f||i;return m?m.map((h,y)=>{var b=o?o.indexOf(h):h,w=n.map(b);return V(w)?{index:y,coordinate:w+p,value:h,offset:p}:null}).filter(Ve):s&&u?u.map((h,y)=>{var b=n.map(h);return V(b)?{coordinate:b+p,value:h,index:y,offset:p}:null}).filter(Ve):n.ticks?n.ticks(d).map((h,y)=>{var b=n.map(h);return V(b)?{coordinate:b+p,value:h,index:y,offset:p}:null}).filter(Ve):n.domain().map((h,y)=>{var b=n.map(h);return V(b)?{coordinate:b+p,value:o?o[h]:h,index:y,offset:p}:null}).filter(Ve)}},O0=A([G,pn,pr,hi,ef,pi,rf,nf,de],II),kI=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var u=jt(e,o),{tickCount:l}=t,s=0;return s=o==="angleAxis"&&n?.length>=2?Te(n[0]-n[1])*2*s:s,u&&a?a.map((c,f)=>{var d=r.map(c);return V(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(Ve):r.ticks?r.ticks(l).map((c,f)=>{var d=r.map(c);return V(d)?{coordinate:d+s,value:c,index:f,offset:s}:null}).filter(Ve):r.domain().map((c,f)=>{var d=r.map(c);return V(d)?{coordinate:d+s,value:i?i[c]:c,index:f,offset:s}:null}).filter(Ve)}},Kt=A([G,pn,hi,pi,rf,nf,de],kI),qt=A(me,hi,(e,t)=>{if(!(e==null||t==null))return ja(ja({},e),{},{scale:t})}),TI=A([me,pr,Zc,h0],Qc),DI=A((e,t,r)=>Lc(e,r),TI,(e,t)=>{if(!(e==null||t==null))return ja(ja({},e),{},{scale:t})}),MI=A([G,eo,to],(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}}),P0=e=>e.options.defaultTooltipEventType,E0=e=>e.options.validateTooltipEventTypes;function S0(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function af(e,t){var r=P0(e),n=E0(e);return S0(t,r,n)}function NI(e){return L(t=>af(t,e))}var A0=(e,t)=>{var r,n=Number(t);if(!(mt(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},$I=e=>e.tooltip.settings,nr={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},RI={itemInteraction:{click:nr,hover:nr},axisInteraction:{click:nr,hover:nr},keyboardInteraction:nr,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}},_0=Je({name:"tooltip",initialState:RI,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:le()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ht(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:le()},removeTooltipEntrySettings:{reducer(e,t){var r=ht(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:le()},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:LI,replaceTooltipEntrySettings:zI,removeTooltipEntrySettings:BI,setTooltipSettingsState:FI,setActiveMouseOverItemIndex:of,mouseLeaveItem:C0,mouseLeaveChart:j0,setActiveClickItemIndex:I0,setMouseOverAxisIndex:k0,setMouseClickAxisIndex:WI,setSyncInteraction:ls,setKeyboardInteraction:ss}=_0.actions,KI=_0.reducer;function dh(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 Li(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dh(Object(r),!0).forEach(function(n){qI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qI(e,t,r){return(t=UI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UI(e){var t=VI(e,"string");return typeof t=="symbol"?t:t+""}function VI(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 HI(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function GI(e){return e.index!=null}var T0=(e,t,r,n)=>{if(t==null)return nr;var i=HI(e,t,r);if(i==null)return nr;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(GI(i)){if(a)return Li(Li({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Li(Li({},nr),{},{coordinate:i.coordinate})};function YI(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 XI(e,t){var r=YI(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 ZI(e,t,r){if(r==null||t==null)return!0;var n=ee(e,t);return n==null||!Ft(r)?!0:XI(n,r)}var uf=(e,t,r,n)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!V(a))return i;var o=0,u=1/0;t.length>0&&(u=t.length-1);var l=Math.max(o,Math.min(a,u)),s=t[l];return s==null||ZI(s,r,n)?String(l):null},D0=(e,t,r,n,i,a,o)=>{if(a!=null){var u=o[0],l=u?.getPosition(a);if(l!=null)return l;var s=i?.[Number(a)];if(s)switch(r){case"horizontal":return{x:s.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:s.coordinate}}}},M0=(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})},N0=e=>e.options.tooltipPayloadSearcher,mn=e=>e.tooltip;function vh(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 ph(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(r),!0).forEach(function(n){QI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QI(e,t,r){return(t=JI(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JI(e){var t=ek(e,"string");return typeof t=="symbol"?t:t+""}function ek(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 tk(e,t){return e??t}var $0=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:u,computedData:l,dataStartIndex:s,dataEndIndex:c}=r,f=[];return e.reduce((d,v)=>{var p,{dataDefinedOnItem:m,settings:h}=v,y=tk(m,u),b=Array.isArray(y)?vg(y,s,c):y,w=(p=h?.dataKey)!==null&&p!==void 0?p:n,x=h?.nameKey,P;if(n&&Array.isArray(b)&&!Array.isArray(b[0])&&o==="axis"?P=hy(b,n,i):P=a(b,t,l,x),Array.isArray(P))P.forEach(S=>{var _=ph(ph({},h),{},{name:S.name,unit:S.unit,color:void 0,fill:void 0});d.push(pv({tooltipEntrySettings:_,dataKey:S.dataKey,payload:S.payload,value:ee(S.payload,S.dataKey),name:S.name}))});else{var O;d.push(pv({tooltipEntrySettings:h,dataKey:w,payload:P,value:ee(P,w),name:(O=ee(P,x))!==null&&O!==void 0?O:h?.name}))}return d},f)}},lf=A([Ce,t0,Tc],v0),rk=A([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),nk=A([Me,vn],zc),yn=A([rk,Ce,nk],Bc,{memoizeOptions:{resultEqualityCheck:Oo}}),ik=A([yn],e=>e.filter(wo)),ak=A([yn],Fc,{memoizeOptions:{resultEqualityCheck:Oo}}),gn=A([ak,Qt],Wc),ok=A([ik,Qt,Ce],Xb),sf=A([gn,Ce,yn],qc),R0=A([Ce],Uc),uk=A([Ce],e=>e.allowDataOverflow),L0=A([R0,uk],Ib),lk=A([yn],e=>e.filter(wo)),sk=A([ok,lk,si,Kb],a0),ck=A([sk,Qt,Me,L0],o0),fk=A([yn],n0),dk=A([gn,Ce,fk,Eo,Me],Gc,{memoizeOptions:{resultEqualityCheck:xo}}),vk=A([u0,Me,vn],hn),pk=A([vk,Me],c0),hk=A([l0,Me,vn],hn),mk=A([hk,Me],f0),yk=A([s0,Me,vn],hn),gk=A([yk,Me],d0),bk=A([pk,gk,mk],ka),wk=A([Ce,R0,L0,ck,dk,bk,G,Me],Yc),mi=A([Ce,G,gn,sf,si,Me,wk],Xc),xk=A([mi,Ce,lf],Jc),Ok=A([Ce,mi,xk,Me],tf),z0=e=>{var t=Me(e),r=vn(e),n=!1;return pi(e,t,r,n)},B0=A([Ce,z0],mo),F0=A([Ce,lf,Ok,B0],Qc),Pk=A([G,sf,Ce,Me],w0),Ek=A([G,sf,Ce,Me],x0),Sk=(e,t,r,n,i,a,o,u)=>{if(t){var{type:l}=t,s=jt(e,u);if(n){var c=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/c:0;return f=u==="angleAxis"&&i!=null&&i?.length>=2?Te(i[0]-i[1])*2*f:f,s&&o?o.map((d,v)=>{var p=n.map(d);return V(p)?{coordinate:p+f,value:d,index:v,offset:f}:null}).filter(Ve):n.domain().map((d,v)=>{var p=n.map(d);return V(p)?{coordinate:p+f,value:a?a[d]:d,index:v,offset:f}:null}).filter(Ve)}}},Jt=A([G,Ce,lf,F0,z0,Pk,Ek,Me],Sk),cf=A([P0,E0,$I],(e,t,r)=>S0(r.shared,e,t)),W0=e=>e.tooltip.settings.trigger,ff=e=>e.tooltip.settings.defaultIndex,yi=A([mn,cf,W0,ff],T0),Ut=A([yi,gn,vi,mi],uf),K0=A([Jt,Ut],A0),df=A([yi],e=>{if(e)return e.dataKey}),Ak=A([yi],e=>{if(e)return e.graphicalItemId}),q0=A([mn,cf,W0,ff],M0),_k=A([Gt,Yt,G,Ae,Jt,ff,q0],D0),Ck=A([yi,_k],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),jk=A([yi],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),Ik=A([q0,Ut,Qt,vi,K0,N0,cf],$0),kk=A([Ik],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});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 mh(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){Tk(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 Tk(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=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 Nk=()=>L(Ce),$k=()=>{var e=Nk(),t=L(Jt),r=L(F0);return Nr(!e||!r?void 0:mh(mh({},e),{},{scale:r}),t)};function yh(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 Yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yh(Object(r),!0).forEach(function(n){Rk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rk(e,t,r){return(t=Lk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lk(e){var t=zk(e,"string");return typeof t=="symbol"?t:t+""}function zk(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 Bk=(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}},Fk=(e,t,r,n)=>{var i=t.find(s=>s&&s.index===r);if(i){if(e==="centric"){var a=i.coordinate,{radius:o}=n;return Yr(Yr(Yr({},n),we(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:l}=n;return Yr(Yr(Yr({},n),we(n.cx,n.cy,u,l)),{},{angle:l,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 Wk(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 U0=(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 l,s,c,f,d,v=u>0?(l=r[u-1])===null||l===void 0?void 0:l.coordinate:(s=r[o-1])===null||s===void 0?void 0:s.coordinate,p=(c=r[u])===null||c===void 0?void 0:c.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,h=void 0;if(!(v==null||p==null||m==null))if(Te(p-v)!==Te(m-p)){var y=[];if(Te(m-p)===Te(i[1]-i[0])){h=m;var b=p+i[1]-i[0];y[0]=Math.min(b,(b+v)/2),y[1]=Math.max(b,(b+v)/2)}else{h=v;var w=m+i[1]-i[0];y[0]=Math.min(p,(w+p)/2),y[1]=Math.max(p,(w+p)/2)}var x=[Math.min(p,(h+p)/2),Math.max(p,(h+p)/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),S=Math.max(v,m);if(e>(O+p)/2&&e<=(S+p)/2){var _;return(_=r[u])===null||_===void 0?void 0:_.index}}}else if(t)for(var T=0;T<o;T++){var M=t[T];if(M!=null){var j=t[T+1],I=t[T-1];if(T===0&&j!=null&&e<=(M.coordinate+j.coordinate)/2||T===o-1&&I!=null&&e>(M.coordinate+I.coordinate)/2||T>0&&T<o-1&&I!=null&&j!=null&&e>(M.coordinate+I.coordinate)/2&&e<=(M.coordinate+j.coordinate)/2)return M.index}}return-1},V0=()=>L(Tc),vf=(e,t)=>t,H0=(e,t,r)=>r,pf=(e,t,r,n)=>n,Kk=A(Jt,e=>Ua(e,t=>t.coordinate)),hf=A([mn,vf,H0,pf],T0),mf=A([hf,gn,vi,mi],uf),qk=(e,t,r)=>{if(t!=null){var n=mn(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},G0=A([mn,vf,H0,pf],M0),Ta=A([Gt,Yt,G,Ae,Jt,pf,G0],D0),Uk=A([hf,Ta],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Y0=A([Jt,mf],A0),Vk=A([G0,mf,Qt,vi,Y0,N0,vf],$0),Hk=A([hf,mf],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Gk=(e,t,r,n,i,a,o)=>{if(!(!e||!r||!n||!i)&&Wk(e,o)){var u=pE(e,t),l=U0(u,a,i,r,n),s=Bk(t,i,l,e);return{activeIndex:String(l),activeCoordinate:s}}},Yk=(e,t,r,n,i,a,o)=>{if(!(!e||!n||!i||!a||!r)){var u=xA(e,r);if(u){var l=hE(u,t),s=U0(l,o,a,n,i),c=Fk(t,a,s,u);return{activeIndex:String(s),activeCoordinate:c}}}},Xk=(e,t,r,n,i,a,o,u)=>{if(!(!e||!t||!n||!i||!a))return t==="horizontal"||t==="vertical"?Gk(e,t,n,i,a,o,u):Yk(e,t,r,n,i,a,o)},Zk=A(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}}),Qk=A(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(ge)),r=Array.from(new Set(t));return r.sort((n,i)=>n-i)},{memoizeOptions:{resultEqualityCheck:Nj}});function gh(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 bh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(r),!0).forEach(function(n){Jk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jk(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)}var rT={},nT={zIndexMap:Object.values(ge).reduce((e,t)=>bh(bh({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),rT)},iT=new Set(Object.values(ge));function aT(e){return iT.has(e)}var X0=Je({name:"zIndex",initialState:nT,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:le()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!aT(r)&&delete e.zIndexMap[r])},prepare:le()},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:le()},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:le()}}}),{registerZIndexPortal:oT,unregisterZIndexPortal:uT,registerZIndexPortalElement:lT,unregisterZIndexPortalElement:sT}=X0.actions,cT=X0.reducer;function Ye(e){var{zIndex:t,children:r}=e,n=VE(),i=n&&t!==void 0&&t!==0,a=Le(),o=ie();E.useLayoutEffect(()=>i?(o(oT({zIndex:t})),()=>{o(uT({zIndex:t}))}):cr,[o,t,i]);var u=L(l=>Zk(l,t,a));return i?u?Km.createPortal(r,u):null:r}function cs(){return cs=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},cs.apply(null,arguments)}function wh(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 zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wh(Object(r),!0).forEach(function(n){fT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fT(e,t,r){return(t=dT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dT(e){var t=vT(e,"string");return typeof t=="symbol"?t:t+""}function vT(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 pT(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return E.isValidElement(t)?E.cloneElement(t,n):E.createElement(r,n)}function hT(e){var t,{coordinate:r,payload:n,index:i,offset:a,tooltipAxisBandSize:o,layout:u,cursor:l,tooltipEventType:s,chartName:c}=e,f=r,d=n,v=i;if(!l||!f||c!=="ScatterChart"&&s!=="axis")return null;var p,m,h;if(c==="ScatterChart")p=f,m=NS,h=ge.cursorLine;else if(c==="BarChart")p=$S(u,f,a,o),m=Js,h=ge.cursorRectangle;else if(u==="radial"&&yy(f)){var{cx:y,cy:b,radius:w,startAngle:x,endAngle:P}=Fg(f);p={cx:y,cy:b,startAngle:x,endAngle:P,innerRadius:w,outerRadius:w},m=Kg,h=ge.cursorLine}else p={points:SA(u,f,a)},m=uo,h=ge.cursorLine;var O=typeof l=="object"&&"className"in l?l.className:void 0,S=zi(zi(zi(zi({stroke:"#ccc",pointerEvents:"none"},a),p),ur(l)),{},{payload:d,payloadIndex:v,className:Y("recharts-tooltip-cursor",O)});return g.createElement(Ye,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:h},g.createElement(pT,{cursor:l,cursorComp:m,cursorProps:S}))}function mT(e){var t=$k(),r=Pg(),n=fr(),i=V0();return t==null||r==null||n==null||i==null?null:g.createElement(hT,cs({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var yf=E.createContext(null),yT=()=>E.useContext(yf),ol={exports:{}},xh;function gT(){return xh||(xh=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(l,s,c){this.fn=l,this.context=s,this.once=c||!1}function a(l,s,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var v=new i(c,f||l,d),p=r?r+s:s;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],v]:l._events[p].push(v):(l._events[p]=v,l._eventsCount++),l}function o(l,s){--l._eventsCount===0?l._events=new n:delete l._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],c,f;if(this._eventsCount===0)return s;for(f in c=this._events)t.call(c,f)&&s.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(c)):s},u.prototype.listeners=function(s){var c=r?r+s:s,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,v=f.length,p=new Array(v);d<v;d++)p[d]=f[d].fn;return p},u.prototype.listenerCount=function(s){var c=r?r+s:s,f=this._events[c];return f?f.fn?1:f.length:0},u.prototype.emit=function(s,c,f,d,v,p){var m=r?r+s:s;if(!this._events[m])return!1;var h=this._events[m],y=arguments.length,b,w;if(h.fn){switch(h.once&&this.removeListener(s,h.fn,void 0,!0),y){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,c),!0;case 3:return h.fn.call(h.context,c,f),!0;case 4:return h.fn.call(h.context,c,f,d),!0;case 5:return h.fn.call(h.context,c,f,d,v),!0;case 6:return h.fn.call(h.context,c,f,d,v,p),!0}for(w=1,b=new Array(y-1);w<y;w++)b[w-1]=arguments[w];h.fn.apply(h.context,b)}else{var x=h.length,P;for(w=0;w<x;w++)switch(h[w].once&&this.removeListener(s,h[w].fn,void 0,!0),y){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,c);break;case 3:h[w].fn.call(h[w].context,c,f);break;case 4:h[w].fn.call(h[w].context,c,f,d);break;default:if(!b)for(P=1,b=new Array(y-1);P<y;P++)b[P-1]=arguments[P];h[w].fn.apply(h[w].context,b)}}return!0},u.prototype.on=function(s,c,f){return a(this,s,c,f,!1)},u.prototype.once=function(s,c,f){return a(this,s,c,f,!0)},u.prototype.removeListener=function(s,c,f,d){var v=r?r+s:s;if(!this._events[v])return this;if(!c)return o(this,v),this;var p=this._events[v];if(p.fn)p.fn===c&&(!d||p.once)&&(!f||p.context===f)&&o(this,v);else{for(var m=0,h=[],y=p.length;m<y;m++)(p[m].fn!==c||d&&!p[m].once||f&&p[m].context!==f)&&h.push(p[m]);h.length?this._events[v]=h.length===1?h[0]:h:o(this,v)}return this},u.prototype.removeAllListeners=function(s){var c;return s?(c=r?r+s:s,this._events[c]&&o(this,c)):(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}(ol)),ol.exports}var bT=gT();const wT=Ht(bT);var Hn=new wT,fs="recharts.syncEvent.tooltip",Oh="recharts.syncEvent.brush",gf=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!mt(r))return e[r]}},xT={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},Z0=Je({name:"options",initialState:xT,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),OT=Z0.reducer,{createEventEmitter:PT}=Z0.actions;function ET(e){return e.tooltip.syncInteraction}var ST={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Q0=Je({name:"chartData",initialState:ST,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:ds,setDataStartEndIndexes:AT,setComputedData:_T}=Q0.actions,CT=Q0.reducer,jT=["x","y"];function Ph(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 Xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ph(Object(r),!0).forEach(function(n){IT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ph(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IT(e,t,r){return(t=kT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kT(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 DT(e,t){if(e==null)return{};var r,n,i=MT(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 MT(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 NT(){var e=L(Dc),t=L(Mc),r=ie(),n=L(qb),i=L(Jt),a=fr(),o=ni(),u=L(l=>l.rootProps.className);E.useEffect(()=>{if(e==null)return cr;var l=(s,c,f)=>{if(t!==f&&e===s){if(n==="index"){var d;if(o&&c!==null&&c!==void 0&&(d=c.payload)!==null&&d!==void 0&&d.coordinate&&c.payload.sourceViewBox){var v=c.payload.coordinate,{x:p,y:m}=v,h=DT(v,jT),{x:y,y:b,width:w,height:x}=c.payload.sourceViewBox,P=Xr(Xr({},h),{},{x:o.x+(w?(p-y)/w:0)*o.width,y:o.y+(x?(m-b)/x:0)*o.height});r(Xr(Xr({},c),{},{payload:Xr(Xr({},c.payload),{},{coordinate:P})}))}else r(c);return}if(i!=null){var O;if(typeof n=="function"){var S={activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},_=n(i,S);O=i[_]}else n==="value"&&(O=i.find(K=>String(K.value)===c.payload.label));var{coordinate:T}=c.payload;if(O==null||c.payload.active===!1||T==null||o==null){r(ls({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:M,y:j}=T,I=Math.min(M,o.x+o.width),C=Math.min(j,o.y+o.height),z={x:a==="horizontal"?O.coordinate:I,y:a==="horizontal"?C:O.coordinate},W=ls({active:c.payload.active,coordinate:z,dataKey:c.payload.dataKey,index:String(O.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(W)}}};return Hn.on(fs,l),()=>{Hn.off(fs,l)}},[u,r,t,e,n,i,a,o])}function $T(){var e=L(Dc),t=L(Mc),r=ie();E.useEffect(()=>{if(e==null)return cr;var n=(i,a,o)=>{t!==o&&e===i&&r(AT(a))};return Hn.on(Oh,n),()=>{Hn.off(Oh,n)}},[r,t,e])}function RT(){var e=ie();E.useEffect(()=>{e(PT())},[e]),NT(),$T()}function LT(e,t,r,n,i,a){var o=L(v=>qk(v,e,t)),u=L(Mc),l=L(Dc),s=L(qb),c=L(ET),f=c?.active,d=ni();E.useEffect(()=>{if(!f&&l!=null&&u!=null){var v=ls({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:d,graphicalItemId:void 0});Hn.emit(fs,l,v,u)}},[f,r,o,i,n,u,l,s,a,d])}function Eh(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 Sh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(r),!0).forEach(function(n){zT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zT(e,t,r){return(t=BT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BT(e){var t=FT(e,"string");return typeof t=="symbol"?t:t+""}function FT(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 WT(e){return e.dataKey}function KT(e,t){return g.isValidElement(e)?g.cloneElement(e,t):typeof e=="function"?g.createElement(e,t):g.createElement(pS,t)}var Ah=[],qT={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 J0(e){var t,r,n=Se(e,qT),{active:i,allowEscapeViewBox:a,animationDuration:o,animationEasing:u,content:l,filterNull:s,isAnimationActive:c,offset:f,payloadUniqBy:d,position:v,reverseDirection:p,useTranslate3d:m,wrapperStyle:h,cursor:y,shared:b,trigger:w,defaultIndex:x,portal:P,axisId:O}=n,S=ie(),_=typeof x=="number"?String(x):x;E.useEffect(()=>{S(FI({shared:b,trigger:w,axisId:O,active:i,defaultIndex:_}))},[S,b,w,O,i,_]);var T=ni(),M=Ng(),j=NI(b),{activeIndex:I,isActive:C}=(t=L(Be=>Hk(Be,j,w,_)))!==null&&t!==void 0?t:{},z=L(Be=>Vk(Be,j,w,_)),W=L(Be=>Y0(Be,j,w,_)),K=L(Be=>Uk(Be,j,w,_)),F=z,H=yT(),B=(r=i??C)!==null&&r!==void 0?r:!1,[ye,fe]=Ty([F,B]),be=j==="axis"?W:void 0;LT(j,w,K,be,I,B);var et=P??H;if(et==null||T==null||j==null)return null;var ze=F??Ah;B||(ze=Ah),s&&ze.length&&(ze=Ay(ze.filter(Be=>Be.value!=null&&(Be.hide!==!0||n.includeHidden)),d,WT));var Tt=ze.length>0,yr=g.createElement(xS,{allowEscapeViewBox:a,animationDuration:o,animationEasing:u,isAnimationActive:c,active:B,coordinate:K,hasPayload:Tt,offset:f,position:v,reverseDirection:p,useTranslate3d:m,viewBox:T,wrapperStyle:h,lastBoundingBox:ye,innerRef:fe,hasPortalFromProps:!!P},KT(l,Sh(Sh({},n),{},{payload:ze,label:be,active:B,activeIndex:I,coordinate:K,accessibilityLayer:M})));return g.createElement(g.Fragment,null,Km.createPortal(yr,et),B&&g.createElement(mT,{cursor:y,tooltipEventType:j,coordinate:K,payload:ze,index:I}))}var gi=e=>null;gi.displayName="Cell";function UT(e,t,r){return(t=VT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VT(e){var t=HT(e,"string");return typeof t=="symbol"?t:t+""}function HT(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 GT{constructor(t){UT(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 _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 YT(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){XT(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 XT(e,t,r){return(t=ZT(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZT(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 JT={cacheSize:2e3,enableCache:!0},ew=YT({},JT),Ch=new GT(ew.cacheSize),eD={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},jh="recharts_measurement_span";function tD(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 Ih=(e,t)=>{try{var r=document.getElementById(jh);r||(r=document.createElement("span"),r.setAttribute("id",jh),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,eD,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Tn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ai.isSsr)return{width:0,height:0};if(!ew.enableCache)return Ih(t,r);var n=tD(t,r),i=Ch.get(n);if(i)return i;var a=Ih(t,r);return Ch.set(n,a),a},tw;function rD(e,t,r){return(t=nD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nD(e){var t=iD(e,"string");return typeof t=="symbol"?t:t+""}function iD(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 kh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Th=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,aD=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,oD=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,uD={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},lD=["cm","mm","pt","pc","in","Q","px"];function sD(e){return lD.includes(e)}var Qr="NaN";function cD(e,t){return e*uD[t]}class Re{static parse(t){var r,[,n,i]=(r=oD.exec(t))!==null&&r!==void 0?r:[];return n==null?Re.NaN:new Re(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,mt(t)&&(this.unit=""),r!==""&&!aD.test(r)&&(this.num=NaN,this.unit=""),sD(r)&&(this.num=cD(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Re(NaN,""):new Re(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Re(NaN,""):new Re(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Re(NaN,""):new Re(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Re(NaN,""):new Re(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return mt(this.num)}}tw=Re;rD(Re,"NaN",new tw(NaN,""));function rw(e){if(e==null||e.includes(Qr))return Qr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=kh.exec(t))!==null&&r!==void 0?r:[],o=Re.parse(n??""),u=Re.parse(a??""),l=i==="*"?o.multiply(u):o.divide(u);if(l.isNaN())return Qr;t=t.replace(kh,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,c,f,d]=(s=Th.exec(t))!==null&&s!==void 0?s:[],v=Re.parse(c??""),p=Re.parse(d??""),m=f==="+"?v.add(p):v.subtract(p);if(m.isNaN())return Qr;t=t.replace(Th,m.toString())}return t}var Dh=/\(([^()]*)\)/;function fD(e){for(var t=e,r;(r=Dh.exec(t))!=null;){var[,n]=r;t=t.replace(Dh,rw(n))}return t}function dD(e){var t=e.replace(/\s+/g,"");return t=fD(t),t=rw(t),t}function vD(e){try{return dD(e)}catch{return Qr}}function ul(e){var t=vD(e.slice(5,-1));return t===Qr?"":t}var pD=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],hD=["dx","dy","angle","className","breakAll"];function vs(){return vs=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},vs.apply(null,arguments)}function Mh(e,t){if(e==null)return{};var r,n,i=mD(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 mD(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 nw=/[ \f\n\r\t\v\u2028\u2029]+/,iw=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];ce(t)||(r?i=t.toString().split(""):i=t.toString().split(nw));var a=i.map(u=>({word:u,width:Tn(u,n).width})),o=r?0:Tn(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}};function yD(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var aw=(e,t,r,n)=>e.reduce((i,a)=>{var{word:o,width:u}=a,l=i[i.length-1];if(l&&u!=null&&(t==null||n||l.width+u+r<Number(t)))l.words.push(o),l.width+=u+r;else{var s={words:[o],width:u};i.push(s)}return i},[]),ow=e=>e.reduce((t,r)=>t.width>r.width?t:r),gD="…",Nh=(e,t,r,n,i,a,o,u)=>{var l=e.slice(0,t),s=iw({breakAll:r,style:n,children:l+gD});if(!s)return[!1,[]];var c=aw(s.wordsWithComputedWidth,a,o,u),f=c.length>i||ow(c).width>Number(a);return[f,c]},bD=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:u,breakAll:l}=e,s=$(a),c=String(o),f=aw(t,n,r,i);if(!s||i)return f;var d=f.length>a||ow(f).width>Number(n);if(!d)return f;for(var v=0,p=c.length-1,m=0,h;v<=p&&m<=c.length-1;){var y=Math.floor((v+p)/2),b=y-1,[w,x]=Nh(c,b,l,u,a,n,r,i),[P]=Nh(c,y,l,u,a,n,r,i);if(!w&&!P&&(v=y+1),w&&P&&(p=y-1),!w&&P){h=x;break}m++}return h||f},$h=e=>{var t=ce(e)?[]:e.toString().split(nw);return[{words:t,width:void 0}]},wD=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!ai.isSsr){var u,l,s=iw({breakAll:a,children:n,style:i});if(s){var{wordsWithComputedWidth:c,spaceWidth:f}=s;u=c,l=f}else return $h(n);return bD({breakAll:a,children:n,maxLines:o,style:i},u,l,t,!!r)}return $h(n)},uw="#808080",xD={angle:0,breakAll:!1,capHeight:"0.71em",fill:uw,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},bi=E.forwardRef((e,t)=>{var r=Se(e,xD),{x:n,y:i,lineHeight:a,capHeight:o,fill:u,scaleToFit:l,textAnchor:s,verticalAnchor:c}=r,f=Mh(r,pD),d=E.useMemo(()=>wD({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:v,dy:p,angle:m,className:h,breakAll:y}=f,b=Mh(f,hD);if(!yt(n)||!yt(i)||d.length===0)return null;var w=Number(n)+($(v)?v:0),x=Number(i)+($(p)?p:0);if(!V(w)||!V(x))return null;var P;switch(c){case"start":P=ul("calc(".concat(o,")"));break;case"middle":P=ul("calc(".concat((d.length-1)/2," * -").concat(a," + (").concat(o," / 2))"));break;default:P=ul("calc(".concat(d.length-1," * -").concat(a,")"));break}var O=[],S=d[0];if(l&&S!=null){var _=S.width,{width:T}=f;O.push("scale(".concat($(T)&&$(_)?T/_:1,")"))}return m&&O.push("rotate(".concat(m,", ").concat(w,", ").concat(x,")")),O.length&&(b.transform=O.join(" ")),g.createElement("text",vs({},qe(b),{ref:t,x:w,y:x,className:Y("recharts-text",h),textAnchor:s,fill:u.includes("url")?uw:u}),d.map((M,j)=>{var I=M.words.join(y?"":" ");return g.createElement("tspan",{x:w,dy:j===0?P:a,key:"".concat(I,"-").concat(j)},I)}))});bi.displayName="Text";function Rh(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 Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rh(Object(r),!0).forEach(function(n){OD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OD(e,t,r){return(t=PD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PD(e){var t=ED(e,"string");return typeof t=="symbol"?t:t+""}function ED(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 SD=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:u,upperWidth:l,lowerWidth:s}=Hs(t),c=a,f=a+(l-s)/2,d=(c+f)/2,v=(l+s)/2,p=c+l/2,m=u>=0?1:-1,h=m*n,y=m>0?"end":"start",b=m>0?"start":"end",w=l>=0?1:-1,x=w*n,P=w>0?"end":"start",O=w>0?"start":"end",S=i;if(r==="top"){var _={x:c+l/2,y:o-h,horizontalAnchor:"middle",verticalAnchor:y};return S&&(_.height=Math.max(o-S.y,0),_.width=l),_}if(r==="bottom"){var T={x:f+s/2,y:o+u+h,horizontalAnchor:"middle",verticalAnchor:b};return S&&(T.height=Math.max(S.y+S.height-(o+u),0),T.width=s),T}if(r==="left"){var M={x:d-x,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"};return S&&(M.width=Math.max(M.x-S.x,0),M.height=u),M}if(r==="right"){var j={x:d+v+x,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return S&&(j.width=Math.max(S.x+S.width-j.x,0),j.height=u),j}var I=S?{width:v,height:u}:{};return r==="insideLeft"?Pt({x:d+x,y:o+u/2,horizontalAnchor:O,verticalAnchor:"middle"},I):r==="insideRight"?Pt({x:d+v-x,y:o+u/2,horizontalAnchor:P,verticalAnchor:"middle"},I):r==="insideTop"?Pt({x:c+l/2,y:o+h,horizontalAnchor:"middle",verticalAnchor:b},I):r==="insideBottom"?Pt({x:f+s/2,y:o+u-h,horizontalAnchor:"middle",verticalAnchor:y},I):r==="insideTopLeft"?Pt({x:c+x,y:o+h,horizontalAnchor:O,verticalAnchor:b},I):r==="insideTopRight"?Pt({x:c+l-x,y:o+h,horizontalAnchor:P,verticalAnchor:b},I):r==="insideBottomLeft"?Pt({x:f+x,y:o+u-h,horizontalAnchor:O,verticalAnchor:y},I):r==="insideBottomRight"?Pt({x:f+s-x,y:o+u-h,horizontalAnchor:P,verticalAnchor:y},I):r&&typeof r=="object"&&($(r.x)||Dr(r.x))&&($(r.y)||Dr(r.y))?Pt({x:a+Ke(r.x,v),y:o+Ke(r.y,u),horizontalAnchor:"end",verticalAnchor:"end"},I):Pt({x:p,y:o+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},I)},AD=["labelRef"],_D=["content"];function Lh(e,t){if(e==null)return{};var r,n,i=CD(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 CD(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 zh(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 kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zh(Object(r),!0).forEach(function(n){jD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jD(e,t,r){return(t=ID(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ID(e){var t=kD(e,"string");return typeof t=="symbol"?t:t+""}function kD(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 Mt(){return Mt=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},Mt.apply(null,arguments)}var lw=E.createContext(null),sw=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o,children:u}=e,l=E.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:a,height:o}),[t,r,n,i,a,o]);return g.createElement(lw.Provider,{value:l},u)},cw=()=>{var e=E.useContext(lw),t=ni();return e||(t?Hs(t):void 0)},TD=E.createContext(null),DD=()=>{var e=E.useContext(TD),t=L(Yb);return e||t},MD=e=>{var{value:t,formatter:r}=e,n=ce(e.children)?t:e.children;return typeof r=="function"?r(n):n},bf=e=>e!=null&&typeof e=="function",ND=(e,t)=>{var r=Te(t-e),n=Math.min(Math.abs(t-e),360);return r*n},$D=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:u,cy:l,innerRadius:s,outerRadius:c,startAngle:f,endAngle:d,clockWise:v}=i,p=(s+c)/2,m=ND(f,d),h=m>=0?1:-1,y,b;switch(t){case"insideStart":y=f+h*a,b=v;break;case"insideEnd":y=d-h*a,b=!v;break;case"end":y=d+h*a,b=v;break;default:throw new Error("Unsupported position ".concat(t))}b=m<=0?b:!b;var w=we(u,l,p,y),x=we(u,l,p,y+(b?1:-1)*359),P="M".concat(w.x,",").concat(w.y,`
|
|
103
|
+
A`).concat(p,",").concat(p,",0,1,").concat(b?0:1,`,
|
|
104
|
+
`).concat(x.x,",").concat(x.y),O=ce(e.id)?Mn("recharts-radial-line-"):e.id;return g.createElement("text",Mt({},n,{dominantBaseline:"central",className:Y("recharts-radial-bar-label",o)}),g.createElement("defs",null,g.createElement("path",{id:O,d:P})),g.createElement("textPath",{xlinkHref:"#".concat(O)},r))},RD=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:l}=e,s=(u+l)/2;if(r==="outside"){var{x:c,y:f}=we(n,i,o+t,s);return{x:c,y:f,textAnchor:c>=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:p}=we(n,i,d,s);return{x:v,y:p,textAnchor:"middle",verticalAnchor:"middle"}},Gi=e=>e!=null&&"cx"in e&&$(e.cx),LD={angle:0,offset:5,zIndex:ge.label,position:"middle",textBreakAll:!1};function zD(e){if(!Gi(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 rr(e){var t=Se(e,LD),{viewBox:r,parentViewBox:n,position:i,value:a,children:o,content:u,className:l="",textBreakAll:s,labelRef:c}=t,f=DD(),d=cw(),v=i==="center"?d:f??d,p,m,h;r==null?p=v:Gi(r)?p=r:p=Hs(r);var y=zD(p);if(!p||ce(a)&&ce(o)&&!E.isValidElement(u)&&typeof u!="function")return null;var b=kn(kn({},t),{},{viewBox:p});if(E.isValidElement(u)){var{labelRef:w}=b,x=Lh(b,AD);return E.cloneElement(u,x)}if(typeof u=="function"){var{content:P}=b,O=Lh(b,_D);if(m=E.createElement(u,O),E.isValidElement(m))return m}else m=MD(t);var S=qe(t);if(Gi(p)){if(i==="insideStart"||i==="insideEnd"||i==="end")return $D(t,i,m,S,p);h=RD(p,t.offset,t.position)}else{if(!y)return null;var _=SD({viewBox:y,position:i,offset:t.offset,parentViewBox:Gi(n)?void 0:n});h=kn(kn({x:_.x,y:_.y,textAnchor:_.horizontalAnchor,verticalAnchor:_.verticalAnchor},_.width!==void 0?{width:_.width}:{}),_.height!==void 0?{height:_.height}:{})}return g.createElement(Ye,{zIndex:t.zIndex},g.createElement(bi,Mt({ref:c,className:Y("recharts-label",l)},S,h,{textAnchor:yD(S.textAnchor)?S.textAnchor:h.textAnchor,breakAll:s}),m))}rr.displayName="Label";var BD=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?g.createElement(rr,Mt({key:"label-implicit"},n)):yt(e)?g.createElement(rr,Mt({key:"label-implicit",value:e},n)):E.isValidElement(e)?e.type===rr?E.cloneElement(e,kn({key:"label-implicit"},n)):g.createElement(rr,Mt({key:"label-implicit",content:e},n)):bf(e)?g.createElement(rr,Mt({key:"label-implicit",content:e},n)):e&&typeof e=="object"?g.createElement(rr,Mt({},e,{key:"label-implicit"},n)):null};function fw(e){var{label:t,labelRef:r}=e,n=cw();return BD(t,n,r)||null}var ll={},sl={},Bh;function FD(){return Bh||(Bh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t}(sl)),sl}var cl={},Fh;function WD(){return Fh||(Fh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t}(cl)),cl}var Wh;function KD(){return Wh||(Wh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=FD(),r=WD(),n=Ns();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i}(ll)),ll}var fl,Kh;function qD(){return Kh||(Kh=1,fl=KD().last),fl}var UD=qD();const VD=Ht(UD);var HD=["valueAccessor"],GD=["dataKey","clockWise","id","textBreakAll","zIndex"];function Da(){return Da=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},Da.apply(null,arguments)}function qh(e,t){if(e==null)return{};var r,n,i=YD(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 YD(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 XD=e=>Array.isArray(e.value)?VD(e.value):e.value,dw=E.createContext(void 0),wf=dw.Provider,vw=E.createContext(void 0),ZD=vw.Provider;function QD(){return E.useContext(dw)}function JD(){return E.useContext(vw)}function Dn(e){var{valueAccessor:t=XD}=e,r=qh(e,HD),{dataKey:n,clockWise:i,id:a,textBreakAll:o,zIndex:u}=r,l=qh(r,GD),s=QD(),c=JD(),f=s||c;return!f||!f.length?null:g.createElement(Ye,{zIndex:u??ge.label},g.createElement(Ee,{className:"recharts-label-list"},f.map((d,v)=>{var p,m=ce(n)?t(d,v):ee(d.payload,n),h=ce(a)?{}:{id:"".concat(a,"-").concat(v)};return g.createElement(rr,Da({key:"label-".concat(v)},qe(d),l,h,{fill:(p=r.fill)!==null&&p!==void 0?p:d.fill,parentViewBox:d.parentViewBox,value:m,textBreakAll:o,viewBox:d.viewBox,index:v,zIndex:0}))})))}Dn.displayName="LabelList";function _o(e){var{label:t}=e;return t?t===!0?g.createElement(Dn,{key:"labelList-implicit"}):g.isValidElement(t)||bf(t)?g.createElement(Dn,{key:"labelList-implicit",content:t}):typeof t=="object"?g.createElement(Dn,Da({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}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)}var pw=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=Y("recharts-dot",i);return $(t)&&$(r)&&$(n)?g.createElement("circle",ps({},Qe(e),Ds(e),{className:a,cx:t,cy:r,r:n})):null},hw=e=>e.graphicalItems.polarItems,eM=A([de,ci],zc),Co=A([hw,me,eM],Bc),tM=A([Co],Fc),jo=A([tM,po],Wc),rM=A([jo,me,Co],qc);A([jo,me,Co],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,o=ee(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:ee(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var Uh=()=>{},nM=A([jo,me,Co,Eo,de],Gc),iM=A([me,Vc,Hc,Uh,nM,Uh,G,de],Yc),mw=A([me,G,jo,rM,si,de,iM],Xc),aM=A([mw,pn,pr],Jc),oM=A([me,mw,aM,de],tf);A([pr,oM],Zb);var uM={radiusAxis:{},angleAxis:{}},yw=Je({name:"polarAxis",initialState:uM,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:wz,removeRadiusAxis:xz,addAngleAxis:Oz,removeAngleAxis:Pz}=yw.actions,lM=yw.reducer;function gw(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function Vh(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 Hh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vh(Object(r),!0).forEach(function(n){sM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sM(e,t,r){return(t=cM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cM(e){var t=fM(e,"string");return typeof t=="symbol"?t:t+""}function fM(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 dM=(e,t)=>t,xf=A([hw,dM],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),vM=[],Of=(e,t,r)=>r?.length===0?vM:r,bw=A([po,xf,Of],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>Hh(Hh({},t.presentationProps),a.props))),i!=null)return i}}),pM=A([bw,xf,Of],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,o=ee(n,t.nameKey,t.name),u;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?u=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?u=n.fill:u=t.fill,{value:Wr(o,t.dataKey),color:u,payload:n,type:t.legendType}})}),hM=A([bw,xf,Of,Ae],(e,t,r,n)=>{if(!(t==null||e==null))return yN({offset:n,pieSettings:t,displayedData:e,cells:r})}),Bi={exports:{}},te={};/** @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 Gh;function mM(){if(Gh)return te;Gh=1;var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,l=60113,s=60120,c=60115,f=60116,d=60121,v=60122,p=60117,m=60129,h=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"),l=y("react.suspense"),s=y("react.suspense_list"),c=y("react.memo"),f=y("react.lazy"),d=y("react.block"),v=y("react.server.block"),p=y("react.fundamental"),m=y("react.debug_trace_mode"),h=y("react.legacy_hidden")}function b(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 l:case s:return C;default:switch(C=C&&C.$$typeof,C){case o:case u:case f:case c:case a:return C;default:return z}}case t:return z}}}var w=a,x=e,P=u,O=r,S=f,_=c,T=t,M=i,j=n,I=l;return te.ContextConsumer=o,te.ContextProvider=w,te.Element=x,te.ForwardRef=P,te.Fragment=O,te.Lazy=S,te.Memo=_,te.Portal=T,te.Profiler=M,te.StrictMode=j,te.Suspense=I,te.isAsyncMode=function(){return!1},te.isConcurrentMode=function(){return!1},te.isContextConsumer=function(C){return b(C)===o},te.isContextProvider=function(C){return b(C)===a},te.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},te.isForwardRef=function(C){return b(C)===u},te.isFragment=function(C){return b(C)===r},te.isLazy=function(C){return b(C)===f},te.isMemo=function(C){return b(C)===c},te.isPortal=function(C){return b(C)===t},te.isProfiler=function(C){return b(C)===i},te.isStrictMode=function(C){return b(C)===n},te.isSuspense=function(C){return b(C)===l},te.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===i||C===m||C===n||C===l||C===s||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===f||C.$$typeof===c||C.$$typeof===a||C.$$typeof===o||C.$$typeof===u||C.$$typeof===p||C.$$typeof===d||C[0]===v)},te.typeOf=b,te}var re={};/** @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 Yh;function yM(){return Yh||(Yh=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,r=60107,n=60108,i=60114,a=60109,o=60110,u=60112,l=60113,s=60120,c=60115,f=60116,d=60121,v=60122,p=60117,m=60129,h=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"),l=y("react.suspense"),s=y("react.suspense_list"),c=y("react.memo"),f=y("react.lazy"),d=y("react.block"),v=y("react.server.block"),p=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),m=y("react.debug_trace_mode"),y("react.offscreen"),h=y("react.legacy_hidden")}var b=!1;function w(N){return!!(typeof N=="string"||typeof N=="function"||N===r||N===i||N===m||N===n||N===l||N===s||N===h||b||typeof N=="object"&&N!==null&&(N.$$typeof===f||N.$$typeof===c||N.$$typeof===a||N.$$typeof===o||N.$$typeof===u||N.$$typeof===p||N.$$typeof===d||N[0]===v))}function x(N){if(typeof N=="object"&&N!==null){var D=N.$$typeof;switch(D){case e:var Oe=N.type;switch(Oe){case r:case i:case n:case l:case s:return Oe;default:var Q=Oe&&Oe.$$typeof;switch(Q){case o:case u:case f:case c:case a:return Q;default:return D}}case t:return D}}}var P=o,O=a,S=e,_=u,T=r,M=f,j=c,I=t,C=i,z=n,W=l,K=!1,F=!1;function H(N){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(N){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ye(N){return x(N)===o}function fe(N){return x(N)===a}function be(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function et(N){return x(N)===u}function ze(N){return x(N)===r}function Tt(N){return x(N)===f}function yr(N){return x(N)===c}function Be(N){return x(N)===t}function bn(N){return x(N)===i}function k(N){return x(N)===n}function U(N){return x(N)===l}re.ContextConsumer=P,re.ContextProvider=O,re.Element=S,re.ForwardRef=_,re.Fragment=T,re.Lazy=M,re.Memo=j,re.Portal=I,re.Profiler=C,re.StrictMode=z,re.Suspense=W,re.isAsyncMode=H,re.isConcurrentMode=B,re.isContextConsumer=ye,re.isContextProvider=fe,re.isElement=be,re.isForwardRef=et,re.isFragment=ze,re.isLazy=Tt,re.isMemo=yr,re.isPortal=Be,re.isProfiler=bn,re.isStrictMode=k,re.isSuspense=U,re.isValidElementType=w,re.typeOf=x}()),re}var Xh;function gM(){return Xh||(Xh=1,process.env.NODE_ENV==="production"?Bi.exports=mM():Bi.exports=yM()),Bi.exports}var bM=gM(),Zh=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",Qh=null,dl=null,ww=e=>{if(e===Qh&&Array.isArray(dl))return dl;var t=[];return E.Children.forEach(e,r=>{ce(r)||(bM.isFragment(r)?t=t.concat(ww(r.props.children)):t.push(r))}),dl=t,Qh=e,t};function Io(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>Zh(i)):n=[Zh(t)],ww(e).forEach(i=>{var a=lr(i,"type.displayName")||lr(i,"type.name");a&&n.indexOf(a)!==-1&&r.push(i)}),r}var Pf=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,vl={},Jh;function wM(){return Jh||(Jh=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}(vl)),vl}var pl,em;function xM(){return em||(em=1,pl=wM().isPlainObject),pl}var OM=xM();const PM=Ht(OM);var tm,rm,nm,im,am;function om(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 um(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?om(Object(r),!0).forEach(function(n){EM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):om(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EM(e,t,r){return(t=SM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SM(e){var t=AM(e,"string");return typeof t=="symbol"?t:t+""}function AM(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 Ma(){return Ma=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},Ma.apply(null,arguments)}function Cn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var lm=(e,t,r,n,i)=>{var a=r-n,o;return o=pe(tm||(tm=Cn(["M ",",",""])),e,t),o+=pe(rm||(rm=Cn(["L ",",",""])),e+r,t),o+=pe(nm||(nm=Cn(["L ",",",""])),e+r-a/2,t+i),o+=pe(im||(im=Cn(["L ",",",""])),e+r-a/2-n,t+i),o+=pe(am||(am=Cn(["L ",","," Z"])),e,t),o},_M={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},CM=e=>{var t=Se(e,_M),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:u}=t,{animationEasing:l,animationDuration:s,animationBegin:c,isUpdateAnimationActive:f}=t,d=E.useRef(null),[v,p]=E.useState(-1),m=E.useRef(i),h=E.useRef(a),y=E.useRef(o),b=E.useRef(r),w=E.useRef(n),x=sn(e,"trapezoid-");if(E.useEffect(()=>{if(d.current&&d.current.getTotalLength)try{var z=d.current.getTotalLength();z&&p(z)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var P=Y("recharts-trapezoid",u);if(!f)return g.createElement("g",null,g.createElement("path",Ma({},qe(t),{className:P,d:lm(r,n,i,a,o)})));var O=m.current,S=h.current,_=y.current,T=b.current,M=w.current,j="0px ".concat(v===-1?1:v,"px"),I="".concat(v,"px 0px"),C=$g(["strokeDasharray"],s,l);return g.createElement(ln,{animationId:x,key:x,canBegin:v>0,duration:s,easing:l,isActive:f,begin:c},z=>{var W=ue(O,i,z),K=ue(S,a,z),F=ue(_,o,z),H=ue(T,r,z),B=ue(M,n,z);d.current&&(m.current=W,h.current=K,y.current=F,b.current=H,w.current=B);var ye=z>0?{transition:C,strokeDasharray:I}:{strokeDasharray:j};return g.createElement("path",Ma({},qe(t),{className:P,d:lm(H,B,W,K,F),ref:d,style:um(um({},ye),t.style)}))})},jM=["option","shapeType","activeClassName"];function IM(e,t){if(e==null)return{};var r,n,i=kM(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 kM(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 sm(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 Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sm(Object(r),!0).forEach(function(n){TM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TM(e,t,r){return(t=DM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DM(e){var t=MM(e,"string");return typeof t=="symbol"?t:t+""}function MM(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 NM(e,t){return Na(Na({},t),e)}function $M(e,t){return e==="symbols"}function cm(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return g.createElement(Js,r);case"trapezoid":return g.createElement(CM,r);case"sector":return g.createElement(Kg,r);case"symbols":if($M(t))return g.createElement(Ts,r);break;case"curve":return g.createElement(uo,r);default:return null}}function RM(e){return E.isValidElement(e)?e.props:e}function ko(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,i=IM(e,jM),a;if(E.isValidElement(t))a=E.cloneElement(t,Na(Na({},i),RM(t)));else if(typeof t=="function")a=t(i,i.index);else if(PM(t)&&typeof t!="boolean"){var o=NM(t,i);a=g.createElement(cm,{shapeType:r,elementProps:o})}else{var u=i;a=g.createElement(cm,{shapeType:r,elementProps:u})}return i.isActive?g.createElement(Ee,{className:n},a):a}var To=(e,t,r)=>{var n=ie();return(i,a)=>o=>{e?.(i,a,o),n(of({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},Do=e=>{var t=ie();return(r,n)=>i=>{e?.(r,n,i),t(C0())}},Mo=(e,t,r)=>{var n=ie();return(i,a)=>o=>{e?.(i,a,o),n(I0({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function No(e){var{tooltipEntrySettings:t}=e,r=ie(),n=Le(),i=E.useRef(null);return E.useLayoutEffect(()=>{n||(i.current===null?r(LI(t)):i.current!==t&&r(zI({prev:i.current,next:t})),i.current=t)},[t,r,n]),E.useLayoutEffect(()=>()=>{i.current&&(r(BI(i.current)),i.current=null)},[r]),null}function Ef(e){var{legendPayload:t}=e,r=ie(),n=Le(),i=E.useRef(null);return E.useLayoutEffect(()=>{n||(i.current===null?r(Tg(t)):i.current!==t&&r(Dg({prev:i.current,next:t})),i.current=t)},[r,n,t]),E.useLayoutEffect(()=>()=>{i.current&&(r(Mg(i.current)),i.current=null)},[r]),null}function LM(e){var{legendPayload:t}=e,r=ie(),n=L(G),i=E.useRef(null);return E.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(i.current===null?r(Tg(t)):i.current!==t&&r(Dg({prev:i.current,next:t})),i.current=t)},[r,n,t]),E.useLayoutEffect(()=>()=>{i.current&&(r(Mg(i.current)),i.current=null)},[r]),null}var hl,zM=()=>{var[e]=g.useState(()=>Mn("uid-"));return e},BM=(hl=g.useId)!==null&&hl!==void 0?hl:zM;function FM(e,t){var r=BM();return t||(e?"".concat(e,"-").concat(r):r)}var WM=E.createContext(void 0),$o=e=>{var{id:t,type:r,children:n}=e,i=FM("recharts-".concat(r),t);return g.createElement(WM.Provider,{value:i},n(i))},KM={cartesianItems:[],polarItems:[]},xw=Je({name:"graphicalItems",initialState:KM,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:le()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ht(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:le()},removeCartesianGraphicalItem:{reducer(e,t){var r=ht(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:le()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:le()},removePolarGraphicalItem:{reducer(e,t){var r=ht(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:le()}}}),{addCartesianGraphicalItem:qM,replaceCartesianGraphicalItem:UM,removeCartesianGraphicalItem:VM,addPolarGraphicalItem:HM,removePolarGraphicalItem:GM}=xw.actions,YM=xw.reducer,XM=e=>{var t=ie(),r=E.useRef(null);return E.useLayoutEffect(()=>{r.current===null?t(qM(e)):r.current!==e&&t(UM({prev:r.current,next:e})),r.current=e},[t,e]),E.useLayoutEffect(()=>()=>{r.current&&(t(VM(r.current)),r.current=null)},[t]),null},Sf=E.memo(XM);function ZM(e){var t=ie();return E.useLayoutEffect(()=>(t(HM(e)),()=>{t(GM(e))}),[t,e]),null}var QM=["key"],JM=["onMouseEnter","onClick","onMouseLeave"],eN=["id"],tN=["id"];function fm(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 he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fm(Object(r),!0).forEach(function(n){rN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fm(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 sr(){return sr=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},sr.apply(null,arguments)}function Ro(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}function oN(e){var t=E.useMemo(()=>Io(e.children,gi),[e.children]),r=L(n=>pM(n,e.id,t));return r==null?null:g.createElement(LM,{legendPayload:r})}var uN=g.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:o,name:u,hide:l,tooltipType:s,id:c}=e,f={dataDefinedOnItem:n.map(d=>d.tooltipPayload),getPosition:d=>{var v;return(v=n[Number(d)])===null||v===void 0?void 0:v.tooltipPosition},settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:r,name:Wr(u,t),hide:l,type:s,color:o,unit:"",graphicalItemId:c}};return g.createElement(No,{tooltipEntrySettings:f})}),lN=(e,t)=>e>t?"start":e<t?"end":"middle",sN=(e,t,r)=>Ke(typeof t=="function"?t(e):t,r,r*.8),cN=(e,t,r)=>{var{top:n,left:i,width:a,height:o}=t,u=Bg(a,o),l=i+Ke(e.cx,a,a/2),s=n+Ke(e.cy,o,o/2),c=Ke(e.innerRadius,u,0),f=sN(r,e.outerRadius,u),d=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:l,cy:s,innerRadius:c,outerRadius:f,maxRadius:d}},fN=(e,t)=>{var r=Te(t-e),n=Math.min(Math.abs(t-e),360);return r*n},dN=(e,t)=>{if(g.isValidElement(e))return g.cloneElement(e,t);if(typeof e=="function")return e(t);var r=Y("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,i=Ro(t,QM);return g.createElement(uo,sr({},i,{type:"linear",className:r}))},vN=(e,t,r)=>{if(g.isValidElement(e))return g.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),g.isValidElement(n)))return n;var i=Y("recharts-pie-label-text",gw(e));return g.createElement(bi,sr({},t,{alignmentBaseline:"middle",className:i}),n)};function pN(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:o}=r;if(!n||!i||!t)return null;var u=Qe(r),l=ur(i),s=ur(a),c=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((d,v)=>{var p=(d.startAngle+d.endAngle)/2,m=we(d.cx,d.cy,d.outerRadius+c,p),h=he(he(he(he({},u),d),{},{stroke:"none"},l),{},{index:v,textAnchor:lN(m.x,d.cx)},m),y=he(he(he(he({},u),d),{},{fill:"none",stroke:d.fill},s),{},{index:v,points:[we(d.cx,d.cy,d.outerRadius,p),m],key:"line"});return g.createElement(Ye,{zIndex:ge.label,key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(v)},g.createElement(Ee,null,a&&dN(a,y),vN(i,h,ee(d,o))))});return g.createElement(Ee,{className:"recharts-pie-labels"},f)}function hN(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?g.createElement(_o,{label:i}):g.createElement(pN,{sectors:t,props:r,showLabels:n})}function mN(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i,shape:a,id:o}=e,u=L(Ut),l=L(df),s=L(Ak),{onMouseEnter:c,onClick:f,onMouseLeave:d}=i,v=Ro(i,JM),p=To(c,i.dataKey,o),m=Do(d),h=Mo(f,i.dataKey,o);return t==null||t.length===0?null:g.createElement(g.Fragment,null,t.map((y,b)=>{if(y?.startAngle===0&&y?.endAngle===0&&t.length!==1)return null;var w=s==null||s===o,x=String(b)===u&&(l==null||i.dataKey===l)&&w,P=u?n:null,O=r&&x?r:P,S=he(he({},y),{},{stroke:y.stroke,tabIndex:-1,[gg]:b,[qs]:o});return g.createElement(Ee,sr({key:"sector-".concat(y?.startAngle,"-").concat(y?.endAngle,"-").concat(y.midAngle,"-").concat(b),tabIndex:-1,className:"recharts-pie-sector"},Zn(v,y,b),{onMouseEnter:p(y,b),onMouseLeave:m(y,b),onClick:h(y,b)}),g.createElement(ko,sr({option:a??O,index:b,shapeType:"sector",isActive:x},S)))}))}function yN(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:o,startAngle:u,endAngle:l,dataKey:s,nameKey:c,tooltipType:f}=r,d=Math.abs(r.minAngle),v=fN(u,l),p=Math.abs(v),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,h=n.filter(O=>ee(O,s,0)!==0).length,y=(p>=360?h:h-1)*m,b=p-h*d-y,w=n.reduce((O,S)=>{var _=ee(S,s,0);return O+($(_)?_:0)},0),x;if(w>0){var P;x=n.map((O,S)=>{var _=ee(O,s,0),T=ee(O,c,S),M=cN(r,a,O),j=($(_)?_:0)/w,I,C=he(he({},O),i&&i[S]&&i[S].props);S?I=P.endAngle+Te(v)*m*(_!==0?1:0):I=u;var z=I+Te(v)*((_!==0?d:0)+j*b),W=(I+z)/2,K=(M.innerRadius+M.outerRadius)/2,F=[{name:T,value:_,payload:C,dataKey:s,type:f,graphicalItemId:r.id}],H=we(M.cx,M.cy,K,W);return P=he(he(he(he({},r.presentationProps),{},{percent:j,cornerRadius:typeof o=="string"?parseFloat(o):o,name:T,tooltipPayload:F,midAngle:W,middleRadius:K,tooltipPosition:H},C),M),{},{value:_,dataKey:s,startAngle:I,endAngle:z,payload:C,paddingAngle:Te(v)*m}),P})}return x}function gN(e){var{showLabels:t,sectors:r,children:n}=e,i=E.useMemo(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return g.createElement(ZD,{value:t?i:void 0},n)}function bN(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:u,animationEasing:l,activeShape:s,inactiveShape:c,onAnimationStart:f,onAnimationEnd:d}=t,v=sn(t,"recharts-pie-"),p=r.current,[m,h]=E.useState(!1),y=E.useCallback(()=>{typeof d=="function"&&d(),h(!1)},[d]),b=E.useCallback(()=>{typeof f=="function"&&f(),h(!0)},[f]);return g.createElement(gN,{showLabels:!m,sectors:i},g.createElement(ln,{animationId:v,begin:o,duration:u,isActive:a,easing:l,onAnimationStart:b,onAnimationEnd:y,key:v},w=>{var x,P=[],O=i&&i[0],S=(x=O?.startAngle)!==null&&x!==void 0?x:0;return i?.forEach((_,T)=>{var M=p&&p[T],j=T>0?lr(_,"paddingAngle",0):0;if(M){var I=ue(M.endAngle-M.startAngle,_.endAngle-_.startAngle,w),C=he(he({},_),{},{startAngle:S+j,endAngle:S+I+j});P.push(C),S=C.endAngle}else{var{endAngle:z,startAngle:W}=_,K=ue(0,z-W,w),F=he(he({},_),{},{startAngle:S+j,endAngle:S+K+j});P.push(F),S=F.endAngle}}),r.current=P,g.createElement(Ee,null,g.createElement(mN,{sectors:P,activeShape:s,inactiveShape:c,allOtherPieProps:t,shape:t.shape,id:n}))}),g.createElement(hN,{showLabels:!m,sectors:i,props:t}),t.children)}var wN={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:ge.area};function xN(e){var{id:t}=e,r=Ro(e,eN),{hide:n,className:i,rootTabIndex:a}=e,o=E.useMemo(()=>Io(e.children,gi),[e.children]),u=L(c=>hM(c,t,o)),l=E.useRef(null),s=Y("recharts-pie",i);return n||u==null?(l.current=null,g.createElement(Ee,{tabIndex:a,className:s})):g.createElement(Ye,{zIndex:e.zIndex},g.createElement(uN,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:u,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),g.createElement(Ee,{tabIndex:a,className:s},g.createElement(bN,{props:he(he({},r),{},{sectors:u}),previousSectorsRef:l,id:t})))}function Ow(e){var t=Se(e,wN),{id:r}=t,n=Ro(t,tN),i=Qe(n);return g.createElement($o,{id:r,type:"pie"},a=>g.createElement(g.Fragment,null,g.createElement(ZM,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),g.createElement(oN,sr({},n,{id:a})),g.createElement(xN,sr({},n,{id:a}))))}Ow.displayName="Pie";var ON=["points"];function dm(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 ml(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dm(Object(r),!0).forEach(function(n){PN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PN(e,t,r){return(t=EN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EN(e){var t=SN(e,"string");return typeof t=="symbol"?t:t+""}function SN(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 $a(){return $a=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},$a.apply(null,arguments)}function AN(e,t){if(e==null)return{};var r,n,i=_N(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 _N(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 CN(e){var{option:t,dotProps:r,className:n}=e;if(E.isValidElement(t))return E.cloneElement(t,r);if(typeof t=="function")return t(r);var i=Y(n,typeof t!="boolean"?t.className:""),a=r??{},{points:o}=a,u=AN(a,ON);return g.createElement(pw,$a({},u,{className:i}))}function jN(e,t){return e==null?!1:t?!0:e.length===1}function Pw(e){var{points:t,dot:r,className:n,dotClassName:i,dataKey:a,baseProps:o,needClip:u,clipPathId:l,zIndex:s=ge.scatter}=e;if(!jN(t,r))return null;var c=Pf(r),f=$x(r),d=t.map((p,m)=>{var h,y,b=ml(ml(ml({r:3},o),f),{},{index:m,cx:(h=p.x)!==null&&h!==void 0?h:void 0,cy:(y=p.y)!==null&&y!==void 0?y:void 0,dataKey:a,value:p.value,payload:p.payload,points:t});return g.createElement(CN,{key:"dot-".concat(m),option:r,dotProps:b,className:i})}),v={};return u&&l!=null&&(v.clipPath="url(#clipPath-".concat(c?"":"dots-").concat(l,")")),g.createElement(Ye,{zIndex:s},g.createElement(Ee,$a({className:n},v),d))}function vm(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 pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vm(Object(r),!0).forEach(function(n){IN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IN(e,t,r){return(t=kN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kN(e){var t=TN(e,"string");return typeof t=="symbol"?t:t+""}function TN(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 Ew=0,DN={xAxis:{},yAxis:{},zAxis:{}},Sw=Je({name:"cartesianAxis",initialState:DN,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:le()},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:le()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:le()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:le()},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:le()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:le()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:le()},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:le()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:le()},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]=pm(pm({},i),{},{width:n,widthHistory:u})}}}}),{addXAxis:MN,replaceXAxis:NN,removeXAxis:$N,addYAxis:RN,replaceYAxis:LN,removeYAxis:zN,addZAxis:Ez,replaceZAxis:Sz,removeZAxis:Az,updateYAxisWidth:BN}=Sw.actions,FN=Sw.reducer,WN=A([Ae],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),KN=A([WN,Gt,Yt],(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)}}),Lo=()=>L(KN),qN=()=>L(kk);function hm(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 yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){UN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UN(e,t,r){return(t=VN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VN(e){var t=HN(e,"string");return typeof t=="symbol"?t:t+""}function HN(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 GN=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a,clipPath:o}=e;if(i===!1||t.x==null||t.y==null)return null;var u={index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=yl(yl(yl({},u),ur(i)),Ds(i)),s;return E.isValidElement(i)?s=E.cloneElement(i,l):typeof i=="function"?s=i(l):s=g.createElement(pw,l),g.createElement(Ee,{className:"recharts-active-dot",clipPath:o},s)};function Aw(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:a,zIndex:o=ge.activeDot}=e,u=L(Ut),l=qN();if(t==null||l==null)return null;var s=t.find(c=>l.includes(c.payload));return ce(s)?null:g.createElement(Ye,{zIndex:o},g.createElement(GN,{point:s,childIndex:Number(u),mainColor:r,dataKey:i,activeDot:n,clipPath:a}))}var mm=(e,t,r)=>{var n=r??e;if(!ce(n))return Ke(n,t,0)},YN=(e,t,r)=>{var n={},i=e.filter(wo),a=e.filter(s=>s.stackId==null),o=i.reduce((s,c)=>{var f=s[c.stackId];return f==null&&(f=[]),f.push(c),s[c.stackId]=f,s},n),u=Object.entries(o).map(s=>{var c,[f,d]=s,v=d.map(m=>m.dataKey),p=mm(t,r,(c=d[0])===null||c===void 0?void 0:c.barSize);return{stackId:f,dataKeys:v,barSize:p}}),l=a.map(s=>{var c=[s.dataKey].filter(d=>d!=null),f=mm(t,r,s.barSize);return{stackId:void 0,dataKeys:c,barSize:f}});return[...u,...l]};function ym(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 Fi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ym(Object(r),!0).forEach(function(n){XN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XN(e,t,r){return(t=ZN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZN(e){var t=QN(e,"string");return typeof t=="symbol"?t:t+""}function QN(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 JN(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var u=Ke(e,r,0,!0),l,s=[];if(V((a=n[0])===null||a===void 0?void 0:a.barSize)){var c=!1,f=r/o,d=n.reduce((b,w)=>b+(w.barSize||0),0);d+=(o-1)*u,d>=r&&(d-=(o-1)*u,u=0),d>=r&&f>0&&(c=!0,f*=.9,d=o*f);var v=(r-d)/2>>0,p={offset:v-u,size:0};l=n.reduce((b,w)=>{var x,P={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:p.offset+p.size+u,size:c?f:(x=w.barSize)!==null&&x!==void 0?x:0}},O=[...b,P];return p=P.position,O},s)}else{var m=Ke(t,r,0,!0);r-2*m-(o-1)*u<=0&&(u=0);var h=(r-2*m-(o-1)*u)/o;h>1&&(h>>=0);var y=V(i)?Math.min(h,i):h;l=n.reduce((b,w,x)=>[...b,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(h+u)*x+(h-y)/2,size:y}}],s)}return l}}var e$=(e,t,r,n,i,a,o)=>{var u=ce(o)?t:o,l=JN(r,n,i!==a?i:a,e,u);return i!==a&&l!=null&&(l=l.map(s=>Fi(Fi({},s),{},{position:Fi(Fi({},s.position),{},{offset:s.position.offset-i/2})}))),l},t$=(e,t)=>{var r=bo(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)}}}},r$=(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 n$(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&V(e.zIndex)?e.zIndex:t}var _w=e=>{var{chartData:t}=e,r=ie(),n=Le();return E.useEffect(()=>n?()=>{}:(r(ds(t)),()=>{r(ds(void 0))}),[t,r,n]),null},i$=e=>{var{computedData:t}=e,r=ie();return E.useEffect(()=>(r(_T(t)),()=>{r(ds(void 0))}),[t,r]),null},gm={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},Cw=Je({name:"brush",initialState:gm,reducers:{setBrushSettings(e,t){return t.payload==null?gm:t.payload}}}),{setBrushSettings:_z}=Cw.actions,a$=Cw.reducer,o$=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return{x:Math.min(r,i),y:Math.min(n,a),width:Math.abs(i-r),height:Math.abs(a-n)}},u$=e=>{var{x1:t,y1:r,x2:n,y2:i}=e;return o$({x:t,y:r},{x:n,y:i})};function l$(e){return(e%180+180)%180}var s$=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=l$(i),o=a*Math.PI/180,u=Math.atan(n/r),l=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},c$={dots:[],areas:[],lines:[]},jw=Je({name:"referenceElements",initialState:c$,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ht(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=ht(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=ht(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:Cz,removeDot:jz,addArea:Iz,removeArea:kz,addLine:f$,removeLine:d$}=jw.actions,v$=jw.reducer,Iw=E.createContext(void 0),p$=e=>{var{children:t}=e,[r]=E.useState("".concat(Mn("recharts"),"-clip")),n=Lo();if(n==null)return null;var{x:i,y:a,width:o,height:u}=n;return g.createElement(Iw.Provider,{value:r},g.createElement("defs",null,g.createElement("clipPath",{id:r},g.createElement("rect",{x:i,y:a,height:u,width:o}))),t)},h$=()=>E.useContext(Iw);function kw(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 m$(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return s$(n,r)}function y$(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 Gn(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 g$(e,t){return kw(e,t+1)}function b$(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:u}=t,l=0,s=1,c=o,f=function(){var p=n?.[l];if(p===void 0)return{v:kw(n,s)};var m=l,h,y=()=>(h===void 0&&(h=r(p,m)),h),b=p.coordinate,w=l===0||Gn(e,b,y,c,u);w||(l=0,c=o,s+=1),w&&(c=b+e*(y()/2+i),l+=s)},d;s<=a.length;)if(d=f(),d)return d.v;return[]}function w$(e,t,r,n,i){var a=(n||[]).slice(),o=a.length;if(o===0)return[];for(var{start:u,end:l}=t,s=1;s<=o;s++){for(var c=(o-1)%s,f=u,d=!0,v=function(){var x=n[m];if(x==null)return 0;var P=m,O,S=()=>(O===void 0&&(O=r(x,P)),O),_=x.coordinate,T=m===c||Gn(e,_,S,f,l);if(!T)return d=!1,1;T&&(f=_+e*(S()/2+i))},p,m=c;m<o&&(p=v(),!(p!==0&&p===1));m+=s);if(d){for(var h=[],y=c;y<o;y+=s){var b=n[y];b!=null&&h.push(b)}return h}}return[]}function bm(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 Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(r),!0).forEach(function(n){x$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x$(e,t,r){return(t=O$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O$(e){var t=P$(e,"string");return typeof t=="symbol"?t:t+""}function P$(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 E$(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:u}=t,{end:l}=t,s=function(d){var v=a[d];if(v==null)return 1;var p=v,m,h=()=>(m===void 0&&(m=r(v,d)),m);if(d===o-1){var y=e*(p.coordinate+e*h()/2-l);a[d]=p=Fe(Fe({},p),{},{tickCoord:y>0?p.coordinate-y*e:p.coordinate})}else a[d]=p=Fe(Fe({},p),{},{tickCoord:p.coordinate});if(p.tickCoord!=null){var b=Gn(e,p.tickCoord,h,u,l);b&&(l=p.tickCoord-e*(h()/2+i),a[d]=Fe(Fe({},p),{},{isShow:!0}))}},c=o-1;c>=0;c--)s(c);return a}function S$(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,{start:l,end:s}=t;if(a){var c=n[u-1];if(c!=null){var f=r(c,u-1),d=e*(c.coordinate+e*f/2-s);if(o[u-1]=c=Fe(Fe({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate}),c.tickCoord!=null){var v=Gn(e,c.tickCoord,()=>f,l,s);v&&(s=c.tickCoord-e*(f/2+i),o[u-1]=Fe(Fe({},c),{},{isShow:!0}))}}}for(var p=a?u-1:u,m=function(b){var w=o[b];if(w==null)return 1;var x=w,P,O=()=>(P===void 0&&(P=r(w,b)),P);if(b===0){var S=e*(x.coordinate-e*O()/2-l);o[b]=x=Fe(Fe({},x),{},{tickCoord:S<0?x.coordinate-S*e:x.coordinate})}else o[b]=x=Fe(Fe({},x),{},{tickCoord:x.coordinate});if(x.tickCoord!=null){var _=Gn(e,x.tickCoord,O,l,s);_&&(l=x.tickCoord+e*(O()/2+i),o[b]=Fe(Fe({},x),{},{isShow:!0}))}},h=0;h<p;h++)m(h);return o}function Af(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:u,interval:l,tickFormatter:s,unit:c,angle:f}=e;if(!i||!i.length||!n)return[];if($(l)||ai.isSsr){var d;return(d=g$(i,$(l)?l:0))!==null&&d!==void 0?d:[]}var v=[],p=u==="top"||u==="bottom"?"width":"height",m=c&&p==="width"?Tn(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=(P,O)=>{var S=typeof s=="function"?s(P.value,O):P.value;return p==="width"?m$(Tn(S,{fontSize:t,letterSpacing:r}),m,f):Tn(S,{fontSize:t,letterSpacing:r})[p]},y=i[0],b=i[1],w=i.length>=2&&y!=null&&b!=null?Te(b.coordinate-y.coordinate):1,x=y$(a,w,p);return l==="equidistantPreserveStart"?b$(w,x,h,i,o):l==="equidistantPreserveEnd"?w$(w,x,h,i,o):(l==="preserveStart"||l==="preserveStartEnd"?v=S$(w,x,h,i,o,l==="preserveStartEnd"):v=E$(w,x,h,i,o),v.filter(P=>P.isShow))}var A$=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(c=>{if(c){var f=c.getBoundingClientRect();f.width>o&&(o=f.width)}});var u=r?r.getBoundingClientRect().width:0,l=i+a,s=o+l+u+(r?n:0);return Math.round(s)}return 0},_$=["axisLine","width","height","className","hide","ticks","axisType"];function C$(e,t){if(e==null)return{};var r,n,i=j$(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 j$(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 Fr(){return Fr=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},Fr.apply(null,arguments)}function wm(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 ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wm(Object(r),!0).forEach(function(n){I$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I$(e,t,r){return(t=k$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k$(e){var t=T$(e,"string");return typeof t=="symbol"?t:t+""}function T$(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 Lt={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:ge.axis};function D$(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:o,axisLine:u,otherSvgProps:l}=e;if(!u)return null;var s=ve(ve(ve({},l),Qe(u)),{},{fill:"none"});if(a==="top"||a==="bottom"){var c=+(a==="top"&&!o||a==="bottom"&&o);s=ve(ve({},s),{},{x1:t,y1:r+c*i,x2:t+n,y2:r+c*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);s=ve(ve({},s),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return g.createElement("line",Fr({},s,{className:Y("recharts-cartesian-axis-line",lr(u,"className"))}))}function M$(e,t,r,n,i,a,o,u,l){var s,c,f,d,v,p,m=u?-1:1,h=e.tickSize||o,y=$(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":s=c=e.coordinate,d=r+ +!u*i,f=d-m*h,p=f-m*l,v=y;break;case"left":f=d=e.coordinate,c=t+ +!u*n,s=c-m*h,v=s-m*l,p=y;break;case"right":f=d=e.coordinate,c=t+ +u*n,s=c+m*h,v=s+m*l,p=y;break;default:s=c=e.coordinate,d=r+ +u*i,f=d+m*h,p=f+m*l,v=y;break}return{line:{x1:s,y1:f,x2:c,y2:d},tick:{x:v,y:p}}}function N$(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function $$(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function R$(e){var{option:t,tickProps:r,value:n}=e,i,a=Y(r.className,"recharts-cartesian-axis-tick-value");if(g.isValidElement(t))i=g.cloneElement(t,ve(ve({},r),{},{className:a}));else if(typeof t=="function")i=t(ve(ve({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=Y(o,gw(t))),i=g.createElement(bi,Fr({},r,{className:o}),n)}return i}var L$=E.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:a,tickFormatter:o,unit:u,padding:l,tickTextProps:s,orientation:c,mirror:f,x:d,y:v,width:p,height:m,tickSize:h,tickMargin:y,fontSize:b,letterSpacing:w,getTicksConfig:x,events:P,axisType:O}=e,S=Af(ve(ve({},x),{},{ticks:r}),b,w),_=N$(c,f),T=$$(c,f),M=Qe(x),j=ur(n),I={};typeof i=="object"&&(I=i);var C=ve(ve({},M),{},{fill:"none"},I),z=S.map(F=>ve({entry:F},M$(F,d,v,p,m,c,h,f,y))),W=z.map(F=>{var{entry:H,line:B}=F;return g.createElement(Ee,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(H.value,"-").concat(H.coordinate,"-").concat(H.tickCoord)},i&&g.createElement("line",Fr({},C,B,{className:Y("recharts-cartesian-axis-tick-line",lr(i,"className"))})))}),K=z.map((F,H)=>{var B,ye,{entry:fe,tick:be}=F,et=ve(ve(ve(ve({verticalAnchor:T},M),{},{textAnchor:_,stroke:"none",fill:a},be),{},{index:H,payload:fe,visibleTicksCount:S.length,tickFormatter:o,padding:l},s),{},{angle:(B=(ye=s?.angle)!==null&&ye!==void 0?ye:M.angle)!==null&&B!==void 0?B:0}),ze=ve(ve({},et),j);return g.createElement(Ee,Fr({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(fe.value,"-").concat(fe.coordinate,"-").concat(fe.tickCoord)},Zn(P,fe,H)),n&&g.createElement(R$,{option:n,tickProps:ze,value:"".concat(typeof o=="function"?o(fe.value,H):fe.value).concat(u||"")}))});return g.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(O,"-ticks")},K.length>0&&g.createElement(Ye,{zIndex:ge.label},g.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(O,"-tick-labels"),ref:t},K)),W.length>0&&g.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},W))}),z$=E.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:u,axisType:l}=e,s=C$(e,_$),[c,f]=E.useState(""),[d,v]=E.useState(""),p=E.useRef(null);E.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var h;return A$({ticks:p.current,label:(h=e.labelRef)===null||h===void 0?void 0:h.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=E.useCallback(h=>{if(h){var y=h.getElementsByClassName("recharts-cartesian-axis-tick-value");p.current=y;var b=y[0];if(b){var w=window.getComputedStyle(b),x=w.fontSize,P=w.letterSpacing;(x!==c||P!==d)&&(f(x),v(P))}}},[c,d]);return o||n!=null&&n<=0||i!=null&&i<=0?null:g.createElement(Ye,{zIndex:e.zIndex},g.createElement(Ee,{className:Y("recharts-cartesian-axis",a)},g.createElement(D$,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Qe(e)}),g.createElement(L$,{ref:m,axisType:l,events:s,fontSize:c,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}),g.createElement(sw,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},g.createElement(fw,{label:e.label,labelRef:e.labelRef}),e.children)))}),_f=g.forwardRef((e,t)=>{var r=Se(e,Lt);return g.createElement(z$,Fr({},r,{ref:t}))});_f.displayName="CartesianAxis";var B$=["x1","y1","x2","y2","key"],F$=["offset"],W$=["xAxisId","yAxisId"],K$=["xAxisId","yAxisId"];function xm(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 We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xm(Object(r),!0).forEach(function(n){q$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xm(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 _r(){return _r=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},_r.apply(null,arguments)}function Ra(e,t){if(e==null)return{};var r,n,i=H$(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 H$(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 G$=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 g.createElement("rect",{x:n,y:i,ry:u,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Tw(e){var{option:t,lineItemProps:r}=e,n;if(g.isValidElement(t))n=g.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var i,{x1:a,y1:o,x2:u,y2:l,key:s}=r,c=Ra(r,B$),f=(i=Qe(c))!==null&&i!==void 0?i:{},{offset:d}=f,v=Ra(f,F$);n=g.createElement("line",_r({},v,{x1:a,y1:o,x2:u,y2:l,fill:"none",key:s}))}return n}function Y$(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=Ra(e,W$),l=i.map((s,c)=>{var f=We(We({},u),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return g.createElement(Tw,{key:"line-".concat(c),option:n,lineItemProps:f})});return g.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function X$(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=Ra(e,K$),l=i.map((s,c)=>{var f=We(We({},u),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return g.createElement(Tw,{option:n,lineItemProps:f,key:"line-".concat(c)})});return g.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function Z$(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:u,horizontal:l=!0}=e;if(!l||!t||!t.length||u==null)return null;var s=u.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==s[0]&&s.unshift(0);var c=s.map((f,d)=>{var v=s[d+1],p=v==null,m=p?i+o-f:v-f;if(m<=0)return null;var h=d%t.length;return g.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:m,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return g.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function Q$(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:u,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var s=l.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==s[0]&&s.unshift(0);var c=s.map((f,d)=>{var v=s[d+1],p=v==null,m=p?i+o-f:v-f;if(m<=0)return null;var h=d%r.length;return g.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:m,height:u,stroke:"none",fill:r[h],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return g.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var J$=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return pg(Af(We(We(We({},Lt),r),{},{ticks:hg(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},eR=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return pg(Af(We(We(We({},Lt),r),{},{ticks:hg(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},tR={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:ge.grid};function Cf(e){var t=Gs(),r=Ys(),n=Pg(),i=We(We({},Se(e,tR)),{},{x:$(e.x)?e.x:n.left,y:$(e.y)?e.y:n.top,width:$(e.width)?e.width:n.width,height:$(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:u,y:l,width:s,height:c,syncWithTicks:f,horizontalValues:d,verticalValues:v}=i,p=Le(),m=L(T=>fh(T,"xAxis",a,p)),h=L(T=>fh(T,"yAxis",o,p));if(!bt(s)||!bt(c)||!$(u)||!$(l))return null;var y=i.verticalCoordinatesGenerator||J$,b=i.horizontalCoordinatesGenerator||eR,{horizontalPoints:w,verticalPoints:x}=i;if((!w||!w.length)&&typeof b=="function"){var P=d&&d.length,O=b({yAxis:h?We(We({},h),{},{ticks:P?d:h.ticks}):void 0,width:t??s,height:r??c,offset:n},P?!0:f);sa(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(w=O)}if((!x||!x.length)&&typeof y=="function"){var S=v&&v.length,_=y({xAxis:m?We(We({},m),{},{ticks:S?v:m.ticks}):void 0,width:t??s,height:r??c,offset:n},S?!0:f);sa(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _,"]")),Array.isArray(_)&&(x=_)}return g.createElement(Ye,{zIndex:i.zIndex},g.createElement("g",{className:"recharts-cartesian-grid"},g.createElement(G$,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),g.createElement(Z$,_r({},i,{horizontalPoints:w})),g.createElement(Q$,_r({},i,{verticalPoints:x})),g.createElement(Y$,_r({},i,{offset:n,horizontalPoints:w,xAxis:m,yAxis:h})),g.createElement(X$,_r({},i,{offset:n,verticalPoints:x,xAxis:m,yAxis:h}))))}Cf.displayName="CartesianGrid";var rR={},Dw=Je({name:"errorBars",initialState:rR,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:Tz,replaceErrorBar:Dz,removeErrorBar:Mz}=Dw.actions,nR=Dw.reducer,iR=["children"];function aR(e,t){if(e==null)return{};var r,n,i=oR(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 oR(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 uR={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},lR=E.createContext(uR);function jf(e){var{children:t}=e,r=aR(e,iR);return g.createElement(lR.Provider,{value:r},t)}function zo(e,t){var r,n,i=L(s=>It(s,e)),a=L(s=>kt(s,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:je.allowDataOverflow,u=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Ie.allowDataOverflow,l=o||u;return{needClip:l,needClipX:o,needClipY:u}}function If(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=Lo(),{needClipX:a,needClipY:o,needClip:u}=zo(t,r);if(!u||!i)return null;var{x:l,y:s,width:c,height:f}=i;return g.createElement("clipPath",{id:"clipPath-".concat(n)},g.createElement("rect",{x:a?l:l-c/2,y:o?s:s-f/2,width:a?c:c*2,height:o?f:f*2}))}var Mw=(e,t,r,n)=>qt(e,"xAxis",t,n),Nw=(e,t,r,n)=>Kt(e,"xAxis",t,n),$w=(e,t,r,n)=>qt(e,"yAxis",r,n),Rw=(e,t,r,n)=>Kt(e,"yAxis",r,n),sR=A([G,Mw,$w,Nw,Rw],(e,t,r,n,i)=>jt(e,"xAxis")?Nr(t,n,!1):Nr(r,i,!1)),cR=(e,t,r,n,i)=>i;function fR(e){return e.type==="line"}var dR=A([fi,cR],(e,t)=>e.filter(fR).find(r=>r.id===t)),vR=A([G,Mw,$w,Nw,Rw,dR,sR,ho],(e,t,r,n,i,a,o,u)=>{var{chartData:l,dataStartIndex:s,dataEndIndex:c}=u;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||o==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:f,data:d}=a,v;if(d!=null&&d.length>0?v=d:v=l?.slice(s,c+1),v!=null)return eL({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:v})}});function Lw(e){var t=ur(e),r=3,n=2;if(t!=null){var{r:i,strokeWidth:a}=t,o=Number(i),u=Number(a);return(Number.isNaN(o)||o<0)&&(o=r),(Number.isNaN(u)||u<0)&&(u=n),{r:o,strokeWidth:u}}return{r,strokeWidth:n}}var Wi={exports:{}},gl={};/**
|
|
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 Om;function pR(){if(Om)return gl;Om=1;var e=E;function t(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}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 gl.useSyncExternalStoreWithSelector=function(l,s,c,f,d){var v=i(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=o(function(){function h(P){if(!y){if(y=!0,b=P,P=f(P),d!==void 0&&p.hasValue){var O=p.value;if(d(O,P))return w=O}return w=P}if(O=w,r(b,P))return O;var S=f(P);return d!==void 0&&d(O,S)?(b=P,O):(b=P,w=S)}var y=!1,b,w,x=c===void 0?null:c;return[function(){return h(s())},x===null?void 0:function(){return h(x())}]},[s,c,f,d]);var m=n(l,v[0],v[1]);return a(function(){p.hasValue=!0,p.value=m},[m]),u(m),m},gl}var bl={};/**
|
|
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 Pm;function hR(){return Pm||(Pm=1,process.env.NODE_ENV!=="production"&&function(){function e(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=E,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,u=t.useDebugValue;bl.useSyncExternalStoreWithSelector=function(l,s,c,f,d){var v=i(null);if(v.current===null){var p={hasValue:!1,value:null};v.current=p}else p=v.current;v=o(function(){function h(P){if(!y){if(y=!0,b=P,P=f(P),d!==void 0&&p.hasValue){var O=p.value;if(d(O,P))return w=O}return w=P}if(O=w,r(b,P))return O;var S=f(P);return d!==void 0&&d(O,S)?(b=P,O):(b=P,w=S)}var y=!1,b,w,x=c===void 0?null:c;return[function(){return h(s())},x===null?void 0:function(){return h(x())}]},[s,c,f,d]);var m=n(l,v[0],v[1]);return a(function(){p.hasValue=!0,p.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())}()),bl}var Em;function mR(){return Em||(Em=1,process.env.NODE_ENV==="production"?Wi.exports=pR():Wi.exports=hR()),Wi.exports}mR();function yR(e){e()}function gR(){let e=null,t=null;return{clear(){e=null,t=null},notify(){yR(()=>{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 Sm={notify(){},get:()=>[]};function bR(e,t){let r,n=Sm,i=0,a=!1;function o(m){c();const h=n.subscribe(m);let y=!1;return()=>{y||(y=!0,h(),f())}}function u(){n.notify()}function l(){p.onStateChange&&p.onStateChange()}function s(){return a}function c(){i++,r||(r=e.subscribe(l),n=gR())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=Sm)}function d(){a||(a=!0,c())}function v(){a&&(a=!1,f())}const p={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:s,trySubscribe:d,tryUnsubscribe:v,getListeners:()=>n};return p}var wR=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xR=wR(),OR=()=>typeof navigator<"u"&&navigator.product==="ReactNative",PR=OR(),ER=()=>xR||PR?g.useLayoutEffect:g.useEffect,SR=ER();function Am(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function AR(e,t){if(Am(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])||!Am(e[r[i]],t[r[i]]))return!1;return!0}var _R=Symbol.for("react-redux-context"),CR=typeof globalThis<"u"?globalThis:{};function jR(){if(!g.createContext)return{};const e=CR[_R]??=new Map;let t=e.get(g.createContext);return t||(t=g.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(g.createContext,t)),t}var IR=jR();function kR(e){const{children:t,context:r,serverState:n,store:i}=e,a=g.useMemo(()=>{const l=bR(i),s={store:i,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return s;{const{identityFunctionCheck:c="once",stabilityCheck:f="once"}=e;return Object.assign(s,{stabilityCheck:f,identityFunctionCheck:c})}},[i,n]),o=g.useMemo(()=>i.getState(),[i]);SR(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const u=r||IR;return g.createElement(u.Provider,{value:a},t)}var TR=kR,DR=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function MR(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function wi(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(DR.has(n)){if(e[n]==null&&t[n]==null)continue;if(!AR(e[n],t[n]))return!1}else if(!MR(e[n],t[n]))return!1;return!0}var NR=["id"],$R=["type","layout","connectNulls","needClip","shape"],RR=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function Yn(){return Yn=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},Yn.apply(null,arguments)}function _m(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 Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(r),!0).forEach(function(n){LR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LR(e,t,r){return(t=zR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zR(e){var t=BR(e,"string");return typeof t=="symbol"?t:t+""}function BR(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 kf(e,t){if(e==null)return{};var r,n,i=FR(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 FR(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 WR=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Wr(r,t),payload:e}]},KR=g.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:u,unit:l,tooltipType:s,id:c}=e,f={dataDefinedOnItem:r,getPosition:cr,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Wr(o,t),hide:u,type:s,color:n,unit:l,graphicalItemId:c}};return g.createElement(No,{tooltipEntrySettings:f})}),zw=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function qR(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}var UR=(e,t,r)=>{var n=r.reduce((v,p)=>v+p);if(!n)return zw(t,e);for(var i=Math.floor(e/n),a=e%n,o=t-e,u=[],l=0,s=0;l<r.length;s+=(c=r[l])!==null&&c!==void 0?c:0,++l){var c,f=r[l];if(f!=null&&s+f>a){u=[...r.slice(0,l),a-s];break}}var d=u.length%2===0?[0,o]:[o];return[...qR(r,i),...u,...d].map(v=>"".concat(v,"px")).join(", ")};function VR(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n,{id:u}=n,l=kf(n,NR),s=Qe(l);return g.createElement(Pw,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:s,needClip:o,clipPathId:t})}function HR(e){var{showLabels:t,children:r,points:n}=e,i=E.useMemo(()=>n?.map(a=>{var o,u,l={x:(o=a.x)!==null&&o!==void 0?o:0,y:(u=a.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Et(Et({},l),{},{value:a.value,payload:a.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return g.createElement(wf,{value:t?i:void 0},r)}function Cm(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:o,layout:u,connectNulls:l,needClip:s,shape:c}=a,f=kf(a,$R),d=Et(Et({},qe(f)),{},{fill:"none",className:"recharts-line-curve",clipPath:s?"url(#clipPath-".concat(t,")"):void 0,points:n,type:o,layout:u,connectNulls:l,strokeDasharray:i??a.strokeDasharray});return g.createElement(g.Fragment,null,n?.length>1&&g.createElement(ko,Yn({shapeType:"curve",option:c},d,{pathRef:r})),g.createElement(VR,{points:n,clipPathId:t,props:a}))}function GR(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function YR(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:u,isAnimationActive:l,animationBegin:s,animationDuration:c,animationEasing:f,animateNewValues:d,width:v,height:p,onAnimationEnd:m,onAnimationStart:h}=r,y=i.current,b=sn(o,"recharts-line-"),w=E.useRef(b),[x,P]=E.useState(!1),O=!x,S=E.useCallback(()=>{typeof m=="function"&&m(),P(!1)},[m]),_=E.useCallback(()=>{typeof h=="function"&&h(),P(!0)},[h]),T=GR(n.current),M=E.useRef(0);w.current!==b&&(M.current=a.current,w.current=b);var j=M.current;return g.createElement(HR,{points:o,showLabels:O},r.children,g.createElement(ln,{animationId:b,begin:s,duration:c,isActive:l,easing:f,onAnimationEnd:S,onAnimationStart:_,key:b},I=>{var C=ue(j,T+j,I),z=Math.min(C,T),W;if(l)if(u){var K="".concat(u).split(/[,\s]+/gim).map(B=>parseFloat(B));W=UR(z,T,K)}else W=zw(T,z);else W=u==null?void 0:String(u);if(I>0&&T>0&&(i.current=o,a.current=Math.max(a.current,z)),y){var F=y.length/o.length,H=I===1?o:o.map((B,ye)=>{var fe=Math.floor(ye*F);if(y[fe]){var be=y[fe];return Et(Et({},B),{},{x:ue(be.x,B.x,I),y:ue(be.y,B.y,I)})}return d?Et(Et({},B),{},{x:ue(v*2,B.x,I),y:ue(p/2,B.y,I)}):Et(Et({},B),{},{x:B.x,y:B.y})});return i.current=H,g.createElement(Cm,{props:r,points:H,clipPathId:t,pathRef:n,strokeDasharray:W})}return g.createElement(Cm,{props:r,points:o,clipPathId:t,pathRef:n,strokeDasharray:W})}),g.createElement(_o,{label:r.label}))}function XR(e){var{clipPathId:t,props:r}=e,n=E.useRef(null),i=E.useRef(0),a=E.useRef(null);return g.createElement(YR,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:a})}var ZR=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:ee(e.payload,t)}};class QR extends E.Component{render(){var{hide:t,dot:r,points:n,className:i,xAxisId:a,yAxisId:o,top:u,left:l,width:s,height:c,id:f,needClip:d,zIndex:v}=this.props;if(t)return null;var p=Y("recharts-line",i),m=f,{r:h,strokeWidth:y}=Lw(r),b=Pf(r),w=h*2+y,x=d?"url(#clipPath-".concat(b?"":"dots-").concat(m,")"):void 0;return g.createElement(Ye,{zIndex:v},g.createElement(Ee,{className:p},d&&g.createElement("defs",null,g.createElement(If,{clipPathId:m,xAxisId:a,yAxisId:o}),!b&&g.createElement("clipPath",{id:"clipPath-dots-".concat(m)},g.createElement("rect",{x:l-w/2,y:u-w/2,width:s+w,height:c+w}))),g.createElement(jf,{xAxisId:a,yAxisId:o,data:n,dataPointFormatter:ZR,errorBarOffset:0},g.createElement(XR,{props:this.props,clipPathId:m}))),g.createElement(Aw,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:x}))}}var Bw={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:ge.line,type:"linear"};function JR(e){var t=Se(e,Bw),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:u,dot:l,hide:s,isAnimationActive:c,label:f,legendType:d,xAxisId:v,yAxisId:p,id:m}=t,h=kf(t,RR),{needClip:y}=zo(v,p),b=Lo(),w=fr(),x=Le(),P=L(M=>vR(M,v,p,x,m));if(w!=="horizontal"&&w!=="vertical"||P==null||b==null)return null;var{height:O,width:S,x:_,y:T}=b;return g.createElement(QR,Yn({},h,{id:m,connectNulls:u,dot:l,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:c,hide:s,label:f,legendType:d,xAxisId:v,yAxisId:p,points:P,layout:w,height:O,width:S,left:_,top:T,needClip:y}))}function eL(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:u,displayedData:l}=e;return l.map((s,c)=>{var f=ee(s,o);if(t==="horizontal"){var d=Bl({axis:r,ticks:i,bandSize:u,entry:s,index:c}),v=ce(f)?null:n.scale.map(f);return{x:d,y:v??null,value:f,payload:s}}var p=ce(f)?null:r.scale.map(f),m=Bl({axis:n,ticks:a,bandSize:u,entry:s,index:c});return p==null||m==null?null:{x:p,y:m,value:f,payload:s}}).filter(Boolean)}function tL(e){var t=Se(e,Bw),r=Le();return g.createElement($o,{id:t.id,type:"line"},n=>g.createElement(g.Fragment,null,g.createElement(Ef,{legendPayload:WR(t)}),g.createElement(KR,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),g.createElement(Sf,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),g.createElement(JR,Yn({},t,{id:n}))))}var Fw=g.memo(tL,wi);Fw.displayName="Line";function hr(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:Ew}function mr(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:Ew}var rL=process.env.NODE_ENV==="production",wl="Invariant failed";function nL(e,t){if(rL)throw new Error(wl);var r=typeof t=="function"?t():t,n=r?"".concat(wl,": ").concat(r):wl;throw new Error(n)}function hs(){return hs=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},hs.apply(null,arguments)}function La(e){return g.createElement(ko,hs({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var iL=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if($(t))return t;var a=$(n)||ce(n);return a?t(n,i):(a||nL(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},aL=(e,t,r)=>r,oL=(e,t)=>t,xi=A([fi,oL],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),uL=A([xi],e=>e?.maxBarSize),lL=(e,t,r,n)=>n,sL=A([G,fi,hr,mr,aL],(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")),cL=(e,t,r)=>{var n=G(e),i=hr(e,t),a=mr(e,t);if(!(i==null||a==null))return n==="horizontal"?Ia(e,"yAxis",a,r):Ia(e,"xAxis",i,r)},fL=(e,t)=>{var r=G(e),n=hr(e,t),i=mr(e,t);if(!(n==null||i==null))return r==="horizontal"?ch(e,"xAxis",n):ch(e,"yAxis",i)},dL=A([sL,_j,fL],YN),vL=(e,t,r)=>{var n,i,a=xi(e,t);if(a==null)return 0;var o=hr(e,t),u=mr(e,t);if(o==null||u==null)return 0;var l=G(e),s=Fb(e),{maxBarSize:c}=a,f=ce(c)?s:c,d,v;return l==="horizontal"?(d=qt(e,"xAxis",o,r),v=Kt(e,"xAxis",o,r)):(d=qt(e,"yAxis",u,r),v=Kt(e,"yAxis",u,r)),(n=(i=Nr(d,v,!0))!==null&&i!==void 0?i:f)!==null&&n!==void 0?n:0},Ww=(e,t,r)=>{var n=G(e),i=hr(e,t),a=mr(e,t);if(!(i==null||a==null)){var o,u;return n==="horizontal"?(o=qt(e,"xAxis",i,r),u=Kt(e,"xAxis",i,r)):(o=qt(e,"yAxis",a,r),u=Kt(e,"yAxis",a,r)),Nr(o,u)}},pL=A([dL,Fb,Aj,Wb,vL,Ww,uL],e$),hL=(e,t,r)=>{var n=hr(e,t);if(n!=null)return qt(e,"xAxis",n,r)},mL=(e,t,r)=>{var n=mr(e,t);if(n!=null)return qt(e,"yAxis",n,r)},yL=(e,t,r)=>{var n=hr(e,t);if(n!=null)return Kt(e,"xAxis",n,r)},gL=(e,t,r)=>{var n=mr(e,t);if(n!=null)return Kt(e,"yAxis",n,r)},bL=A([pL,xi],r$),wL=A([cL,xi],t$),xL=A([Ae,Us,hL,mL,yL,gL,bL,G,jb,Ww,wL,xi,lL],(e,t,r,n,i,a,o,u,l,s,c,f,d)=>{var{chartData:v,dataStartIndex:p,dataEndIndex:m}=l;if(!(f==null||o==null||t==null||u!=="horizontal"&&u!=="vertical"||r==null||n==null||i==null||a==null||s==null)){var{data:h}=f,y;if(h!=null&&h.length>0?y=h:y=v?.slice(p,m+1),y!=null)return YL({layout:u,barSettings:f,pos:o,parentViewBox:t,bandSize:s,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:c,displayedData:y,offset:e,cells:d,dataStartIndex:p})}}),OL=["index"];function ms(){return ms=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},ms.apply(null,arguments)}function PL(e,t){if(e==null)return{};var r,n,i=EL(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 EL(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 Kw=E.createContext(void 0),SL=e=>{var t=E.useContext(Kw);if(t!=null)return t.stackId;if(e!=null)return mg(e)},AL=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),_L=e=>{var t=E.useContext(Kw);if(t!=null){var{stackId:r}=t;return"url(#".concat(AL(r,e),")")}},qw=e=>{var{index:t}=e,r=PL(e,OL),n=_L(t);return g.createElement(Ee,ms({className:"recharts-bar-stack-layer",clipPath:n},r))},CL=["onMouseEnter","onMouseLeave","onClick"],jL=["value","background","tooltipPosition"],IL=["id"],kL=["onMouseEnter","onClick","onMouseLeave"];function Vt(){return Vt=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},Vt.apply(null,arguments)}function jm(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 Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(r),!0).forEach(function(n){TL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TL(e,t,r){return(t=DL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DL(e){var t=ML(e,"string");return typeof t=="symbol"?t:t+""}function ML(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 za(e,t){if(e==null)return{};var r,n,i=NL(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 NL(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 $L=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Wr(r,t),payload:e}]},RL=g.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:u,tooltipType:l,id:s}=e,c={dataDefinedOnItem:void 0,getPosition:cr,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Wr(a,t),hide:o,type:l,color:i,unit:u,graphicalItemId:s}};return g.createElement(No,{tooltipEntrySettings:c})});function LL(e){var t=L(Ut),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:u,onClick:l}=a,s=za(a,CL),c=To(o,n,a.id),f=Do(u),d=Mo(l,n,a.id);if(!i||r==null)return null;var v=ur(i);return g.createElement(Ye,{zIndex:n$(i,ge.barBackground)},r.map((p,m)=>{var{value:h,background:y,tooltipPosition:b}=p,w=za(p,jL);if(!y)return null;var x=c(p,m),P=f(p,m),O=d(p,m),S=Ue(Ue(Ue(Ue(Ue({option:i,isActive:String(m)===t},w),{},{fill:"#eee"},y),v),Zn(s,p,m)),{},{onMouseEnter:x,onMouseLeave:P,onClick:O,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return g.createElement(La,Vt({key:"background-bar-".concat(m)},S))}))}function zL(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 Ue(Ue({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return g.createElement(wf,{value:t?i:void 0},r)}function BL(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,u=L(Ut),l=L(df),s=r&&String(a)===u&&(l==null||o===l),c=s?r:t;return s?g.createElement(Ye,{zIndex:ge.activeBar},g.createElement(qw,{index:a},g.createElement(La,Vt({},n,{name:String(n.name)},i,{isActive:s,option:c,index:a,dataKey:o})))):g.createElement(La,Vt({},n,{name:String(n.name)},i,{isActive:s,option:c,index:a,dataKey:o}))}function FL(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return g.createElement(La,Vt({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function WL(e){var t,{data:r,props:n}=e,i=(t=Qe(n))!==null&&t!==void 0?t:{},{id:a}=i,o=za(i,IL),{shape:u,dataKey:l,activeBar:s}=n,{onMouseEnter:c,onClick:f,onMouseLeave:d}=n,v=za(n,kL),p=To(c,l,a),m=Do(d),h=Mo(f,l,a);return r?g.createElement(g.Fragment,null,r.map((y,b)=>g.createElement(qw,Vt({index:b,key:"rectangle-".concat(y?.x,"-").concat(y?.y,"-").concat(y?.value,"-").concat(b),className:"recharts-bar-rectangle"},Zn(v,y,b),{onMouseEnter:p(y,b),onMouseLeave:m(y,b),onClick:h(y,b)}),s?g.createElement(BL,{shape:u,activeBar:s,baseProps:o,entry:y,index:b,dataKey:l}):g.createElement(FL,{shape:u,baseProps:o,entry:y,index:b,dataKey:l})))):null}function KL(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:u,animationEasing:l,onAnimationEnd:s,onAnimationStart:c}=t,f=r.current,d=sn(t,"recharts-bar-"),[v,p]=E.useState(!1),m=!v,h=E.useCallback(()=>{typeof s=="function"&&s(),p(!1)},[s]),y=E.useCallback(()=>{typeof c=="function"&&c(),p(!0)},[c]);return g.createElement(zL,{showLabels:m,rects:n},g.createElement(ln,{animationId:d,begin:o,duration:u,isActive:a,easing:l,onAnimationEnd:h,onAnimationStart:y,key:d},b=>{var w=b===1?n:n?.map((x,P)=>{var O=f&&f[P];if(O)return Ue(Ue({},x),{},{x:ue(O.x,x.x,b),y:ue(O.y,x.y,b),width:ue(O.width,x.width,b),height:ue(O.height,x.height,b)});if(i==="horizontal"){var S=ue(0,x.height,b),_=ue(x.stackedBarStart,x.y,b);return Ue(Ue({},x),{},{y:_,height:S})}var T=ue(0,x.width,b),M=ue(x.stackedBarStart,x.x,b);return Ue(Ue({},x),{},{width:T,x:M})});return b>0&&(r.current=w??null),w==null?null:g.createElement(Ee,null,g.createElement(WL,{props:t,data:w}))}),g.createElement(_o,{label:t.label}),t.children)}function qL(e){var t=E.useRef(null);return g.createElement(KL,{previousRectanglesRef:t,props:e})}var Uw=0,UL=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:ee(e,t)}};class VL extends E.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:u,background:l,id:s}=this.props;if(t||r==null)return null;var c=Y("recharts-bar",i),f=s;return g.createElement(Ee,{className:c,id:s},u&&g.createElement("defs",null,g.createElement(If,{clipPathId:f,xAxisId:a,yAxisId:o})),g.createElement(Ee,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(f,")"):void 0},g.createElement(LL,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),g.createElement(qL,this.props)))}}var HL={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:Uw,xAxisId:0,yAxisId:0,zIndex:ge.bar};function GL(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:l,animationEasing:s,isAnimationActive:c}=e,{needClip:f}=zo(t,r),d=fr(),v=Le(),p=Io(e.children,gi),m=L(b=>xL(b,e.id,v,p));if(d!=="vertical"&&d!=="horizontal")return null;var h,y=m?.[0];return y==null||y.height==null||y.width==null?h=0:h=d==="vertical"?y.height/2:y.width/2,g.createElement(jf,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:UL,errorBarOffset:h},g.createElement(VL,Vt({},e,{layout:d,needClip:f,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:l,animationEasing:s,isAnimationActive:c})))}function YL(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:o,yAxis:u,xAxisTicks:l,yAxisTicks:s,stackedData:c,displayedData:f,offset:d,cells:v,parentViewBox:p,dataStartIndex:m}=e,h=t==="horizontal"?u:o,y=c?h.scale.domain():null,b=cE({numericAxis:h}),w=h.scale.map(b);return f.map((x,P)=>{var O,S,_,T,M,j;if(c){var I=c[P+m];if(I==null)return null;O=aE(I,y)}else O=ee(x,r),Array.isArray(O)||(O=[b,O]);var C=iL(n,Uw)(O[1],P);if(t==="horizontal"){var z,W=u.scale.map(O[0]),K=u.scale.map(O[1]);if(W==null||K==null)return null;S=fv({axis:o,ticks:l,bandSize:a,offset:i.offset,entry:x,index:P}),_=(z=K??W)!==null&&z!==void 0?z:void 0,T=i.size;var F=W-K;if(M=mt(F)?0:F,j={x:S,y:d.top,width:T,height:d.height},Math.abs(C)>0&&Math.abs(M)<Math.abs(C)){var H=Te(M||C)*(Math.abs(C)-Math.abs(M));_-=H,M+=H}}else{var B=o.scale.map(O[0]),ye=o.scale.map(O[1]);if(B==null||ye==null)return null;if(S=B,_=fv({axis:u,ticks:s,bandSize:a,offset:i.offset,entry:x,index:P}),T=ye-B,M=i.size,j={x:d.left,y:_,width:d.width,height:M},Math.abs(C)>0&&Math.abs(T)<Math.abs(C)){var fe=Te(T||C)*(Math.abs(C)-Math.abs(T));T+=fe}}if(S==null||_==null||T==null||M==null)return null;var be=Ue(Ue({},x),{},{stackedBarStart:w,x:S,y:_,width:T,height:M,value:c?O:O[1],payload:x,background:j,tooltipPosition:{x:S+T/2,y:_+M/2},parentViewBox:p},v&&v[P]&&v[P].props);return be}).filter(Boolean)}function XL(e){var t=Se(e,HL),r=SL(t.stackId),n=Le();return g.createElement($o,{id:t.id,type:"bar"},i=>g.createElement(g.Fragment,null,g.createElement(Ef,{legendPayload:$L(t)}),g.createElement(RL,{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}),g.createElement(Sf,{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}),g.createElement(Ye,{zIndex:t.zIndex},g.createElement(GL,Vt({},t,{id:i})))))}var Tf=g.memo(XL,wi);Tf.displayName="Bar";var ZL=["domain","range"],QL=["domain","range"];function Im(e,t){if(e==null)return{};var r,n,i=JL(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 JL(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 km(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 Vw(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=Im(e,ZL),{domain:a,range:o}=t,u=Im(t,QL);return!km(r,a)||!km(n,o)?!1:wi(i,u)}var e2=["type"],t2=["dangerouslySetInnerHTML","ticks","scale"],r2=["id","scale"];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)}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 Dm(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){n2(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 n2(e,t,r){return(t=i2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i2(e){var t=a2(e,"string");return typeof t=="symbol"?t:t+""}function a2(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 gs(e,t){if(e==null)return{};var r,n,i=o2(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 o2(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 u2(e){var t=ie(),r=E.useRef(null),n=Xs(),{type:i}=e,a=gs(e,e2),o=yo(n,"xAxis",i),u=E.useMemo(()=>{if(o!=null)return Dm(Dm({},a),{},{type:o})},[a,o]);return E.useLayoutEffect(()=>{u!=null&&(r.current===null?t(MN(u)):r.current!==u&&t(NN({prev:r.current,next:u})),r.current=u)},[u,t]),E.useLayoutEffect(()=>()=>{r.current&&(t($N(r.current)),r.current=null)},[t]),null}var l2=e=>{var{xAxisId:t,className:r}=e,n=L(Us),i=Le(),a="xAxis",o=L(y=>O0(y,a,t,i)),u=L(y=>g0(y,t)),l=L(y=>_I(y,t)),s=L(y=>Qb(y,t));if(u==null||l==null||s==null)return null;var{dangerouslySetInnerHTML:c,ticks:f,scale:d}=e,v=gs(e,t2),{id:p,scale:m}=s,h=gs(s,r2);return g.createElement(_f,ys({},v,h,{x:l.x,y:l.y,width:u.width,height:u.height,className:Y("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:o,axisType:a}))},s2={allowDataOverflow:je.allowDataOverflow,allowDecimals:je.allowDecimals,allowDuplicatedCategory:je.allowDuplicatedCategory,angle:je.angle,axisLine:Lt.axisLine,height:je.height,hide:!1,includeHidden:je.includeHidden,interval:je.interval,label:!1,minTickGap:je.minTickGap,mirror:je.mirror,orientation:je.orientation,padding:je.padding,reversed:je.reversed,scale:je.scale,tick:je.tick,tickCount:je.tickCount,tickLine:Lt.tickLine,tickSize:Lt.tickSize,type:je.type,xAxisId:0},c2=e=>{var t=Se(e,s2);return g.createElement(g.Fragment,null,g.createElement(u2,{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}),g.createElement(l2,t))},Df=g.memo(c2,Vw);Df.displayName="XAxis";var f2=["type"],d2=["dangerouslySetInnerHTML","ticks","scale"],v2=["id","scale"];function bs(){return bs=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},bs.apply(null,arguments)}function Mm(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 Nm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mm(Object(r),!0).forEach(function(n){p2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p2(e,t,r){return(t=h2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h2(e){var t=m2(e,"string");return typeof t=="symbol"?t:t+""}function m2(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 ws(e,t){if(e==null)return{};var r,n,i=y2(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 y2(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 g2(e){var t=ie(),r=E.useRef(null),n=Xs(),{type:i}=e,a=ws(e,f2),o=yo(n,"yAxis",i),u=E.useMemo(()=>{if(o!=null)return Nm(Nm({},a),{},{type:o})},[o,a]);return E.useLayoutEffect(()=>{u!=null&&(r.current===null?t(RN(u)):r.current!==u&&t(LN({prev:r.current,next:u})),r.current=u)},[u,t]),E.useLayoutEffect(()=>()=>{r.current&&(t(zN(r.current)),r.current=null)},[t]),null}function b2(e){var{yAxisId:t,className:r,width:n,label:i}=e,a=E.useRef(null),o=E.useRef(null),u=L(Us),l=Le(),s=ie(),c="yAxis",f=L(O=>b0(O,t)),d=L(O=>jI(O,t)),v=L(O=>O0(O,c,t,l)),p=L(O=>Jb(O,t));if(E.useLayoutEffect(()=>{if(!(n!=="auto"||!f||bf(i)||E.isValidElement(i)||p==null)){var O=a.current;if(O){var S=O.getCalculatedWidth();Math.round(f.width)!==Math.round(S)&&s(BN({id:t,width:S}))}}},[v,f,s,i,t,n,p]),f==null||d==null||p==null)return null;var{dangerouslySetInnerHTML:m,ticks:h,scale:y}=e,b=ws(e,d2),{id:w,scale:x}=p,P=ws(p,v2);return g.createElement(_f,bs({},b,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:Y("recharts-".concat(c," ").concat(c),r),viewBox:u,ticks:v,axisType:c}))}var w2={allowDataOverflow:Ie.allowDataOverflow,allowDecimals:Ie.allowDecimals,allowDuplicatedCategory:Ie.allowDuplicatedCategory,angle:Ie.angle,axisLine:Lt.axisLine,hide:!1,includeHidden:Ie.includeHidden,interval:Ie.interval,label:!1,minTickGap:Ie.minTickGap,mirror:Ie.mirror,orientation:Ie.orientation,padding:Ie.padding,reversed:Ie.reversed,scale:Ie.scale,tick:Ie.tick,tickCount:Ie.tickCount,tickLine:Lt.tickLine,tickSize:Lt.tickSize,type:Ie.type,width:Ie.width,yAxisId:0},x2=e=>{var t=Se(e,w2);return g.createElement(g.Fragment,null,g.createElement(g2,{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}),g.createElement(b2,t))},Mf=g.memo(x2,Vw);Mf.displayName="YAxis";var O2=(e,t)=>t,Nf=A([O2,G,Yb,Me,B0,Jt,Kk,Ae],Xk),$f=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)}},Hw=ft("mouseClick"),Gw=ti();Gw.startListening({actionCreator:Hw,effect:(e,t)=>{var r=e.payload,n=Nf(t.getState(),$f(r));n?.activeIndex!=null&&t.dispatch(WI({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var xs=ft("mouseMove"),Yw=ti(),Ki=null;Yw.startListening({actionCreator:xs,effect:(e,t)=>{var r=e.payload;Ki!==null&&cancelAnimationFrame(Ki);var n=$f(r);Ki=requestAnimationFrame(()=>{var i=t.getState(),a=af(i,i.tooltip.settings.shared);if(a==="axis"){var o=Nf(i,n);o?.activeIndex!=null?t.dispatch(k0({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(j0())}Ki=null})}});function P2(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 $m={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},Xw=Je({name:"rootProps",initialState:$m,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:$m.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}}}),E2=Xw.reducer,{updateOptions:S2}=Xw.actions,A2=null,_2={updatePolarOptions:(e,t)=>t.payload},Zw=Je({name:"polarOptions",initialState:A2,reducers:_2}),{updatePolarOptions:C2}=Zw.actions,j2=Zw.reducer,Qw=ft("keyDown"),Jw=ft("focus"),Rf=ti();Rf.startListening({actionCreator:Qw,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=uf(i,gn(r),vi(r),mi(r)),u=o==null?-1:Number(o);if(!(!Number.isFinite(u)||u<0)){var l=Jt(r);if(a==="Enter"){var s=Ta(r,"axis","hover",String(i.index));t.dispatch(ss({active:!i.active,activeIndex:i.index,activeCoordinate:s}));return}var c=MI(r),f=c==="left-to-right"?1:-1,d=a==="ArrowRight"?1:-1,v=u+d*f;if(!(l==null||v>=l.length||v<0)){var p=Ta(r,"axis","hover",String(v));t.dispatch(ss({active:!0,activeIndex:v.toString(),activeCoordinate:p}))}}}}}});Rf.startListening({actionCreator:Jw,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=Ta(r,"axis","hover",String(a));t.dispatch(ss({active:!0,activeIndex:a,activeCoordinate:o}))}}}});var st=ft("externalEvent"),ex=ti(),xl=new Map;ex.startListening({actionCreator:st,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var i=n.type,a=xl.get(i);a!==void 0&&cancelAnimationFrame(a);var o=requestAnimationFrame(()=>{try{var u=t.getState(),l={activeCoordinate:Ck(u),activeDataKey:df(u),activeIndex:Ut(u),activeLabel:K0(u),activeTooltipIndex:Ut(u),isTooltipActive:jk(u)};r(l,n)}finally{xl.delete(i)}});xl.set(i,o)}}});var I2=A([mn],e=>e.tooltipItemPayloads),k2=A([I2,(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)}}}),tx=ft("touchMove"),rx=ti();rx.startListening({actionCreator:tx,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),i=af(n,n.tooltip.settings.shared);if(i==="axis"){var a=r.touches[0];if(a==null)return;var o=Nf(n,$f({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,l=r.touches[0];if(document.elementFromPoint==null||l==null)return;var s=document.elementFromPoint(l.clientX,l.clientY);if(!s||!s.getAttribute)return;var c=s.getAttribute(gg),f=(u=s.getAttribute(qs))!==null&&u!==void 0?u:void 0,d=yn(n).find(m=>m.id===f);if(c==null||d==null||f==null)return;var{dataKey:v}=d,p=k2(n,c,f);t.dispatch(of({activeDataKey:v,activeIndex:c,activeCoordinate:p,activeGraphicalItemId:f}))}}}});var T2=My({brush:a$,cartesianAxis:FN,chartData:CT,errorBars:nR,graphicalItems:YM,layout:eE,legend:sS,options:OT,polarAxis:lM,polarOptions:j2,referenceElements:v$,rootProps:E2,tooltip:KI,zIndex:cT}),D2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return A1({reducer:T2,preloadedState:t,middleware:n=>{var i;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([Gw.middleware,Yw.middleware,Rf.middleware,ex.middleware,rx.middleware])},enhancers:n=>{var i=n;return typeof n=="function"&&(i=n()),i.concat(Jy({type:"raf"}))},devTools:{serialize:{replacer:P2},name:"recharts-".concat(r)}})};function Lf(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Le(),a=E.useRef(null);if(i)return r;a.current==null&&(a.current=D2(t,n));var o=Rs;return g.createElement(TR,{context:o,store:a.current},r)}function M2(e){var{layout:t,margin:r}=e,n=ie(),i=Le();return E.useEffect(()=>{i||(n(Z1(t)),n(dg(r)))},[n,i,t,r]),null}var nx=E.memo(M2,wi);function ix(e){var t=ie();return E.useEffect(()=>{t(S2(e))},[t,e]),null}function Rm(e){var{zIndex:t,isPanorama:r}=e,n=E.useRef(null),i=ie();return E.useLayoutEffect(()=>(n.current&&i(lT({zIndex:t,element:n.current,isPanorama:r})),()=>{i(sT({zIndex:t,isPanorama:r}))}),[i,t,r]),g.createElement("g",{tabIndex:-1,ref:n})}function Lm(e){var{children:t,isPanorama:r}=e,n=L(Qk);if(!n||n.length===0)return t;var i=n.filter(o=>o<0),a=n.filter(o=>o>0);return g.createElement(g.Fragment,null,i.map(o=>g.createElement(Rm,{key:o,zIndex:o,isPanorama:r})),t,a.map(o=>g.createElement(Rm,{key:o,zIndex:o,isPanorama:r})))}var N2=["children"];function $2(e,t){if(e==null)return{};var r,n,i=R2(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 R2(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 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)}var L2={width:"100%",height:"100%",display:"block"},z2=E.forwardRef((e,t)=>{var r=Gs(),n=Ys(),i=Ng();if(!bt(r)||!bt(n))return null;var{children:a,otherAttributes:o,title:u,desc:l}=e,s,c;return o!=null&&(typeof o.tabIndex=="number"?s=o.tabIndex:s=i?0:void 0,typeof o.role=="string"?c=o.role:c=i?"application":void 0),g.createElement(Ss,Ba({},o,{title:u,desc:l,role:c,tabIndex:s,width:r,height:n,style:L2,ref:t}),a)}),B2=e=>{var{children:t}=e,r=L(no);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return g.createElement(Ss,{width:n,height:i,x:o,y:a},t)},zm=E.forwardRef((e,t)=>{var{children:r}=e,n=$2(e,N2),i=Le();return i?g.createElement(B2,null,g.createElement(Lm,{isPanorama:!0},r)):g.createElement(z2,Ba({ref:t},n),g.createElement(Lm,{isPanorama:!1},r))});function F2(){var e=ie(),[t,r]=E.useState(null),n=L(mE);return E.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;V(a)&&a!==n&&e(J1(a))}},[t,e,n]),r}function Bm(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 W2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bm(Object(r),!0).forEach(function(n){K2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K2(e,t,r){return(t=q2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q2(e){var t=U2(e,"string");return typeof t=="symbol"?t:t+""}function U2(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 or(){return or=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},or.apply(null,arguments)}var V2=()=>(RT(),null);function Fa(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var H2=E.forwardRef((e,t)=>{var r,n,i=E.useRef(null),[a,o]=E.useState({containerWidth:Fa((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Fa((n=e.style)===null||n===void 0?void 0:n.height)}),u=E.useCallback((s,c)=>{o(f=>{var d=Math.round(s),v=Math.round(c);return f.containerWidth===d&&f.containerHeight===v?f:{containerWidth:d,containerHeight:v}})},[]),l=E.useCallback(s=>{if(typeof t=="function"&&t(s),s!=null&&typeof ResizeObserver<"u"){var{width:c,height:f}=s.getBoundingClientRect();u(c,f);var d=p=>{var m=p[0];if(m!=null){var{width:h,height:y}=m.contentRect;u(h,y)}},v=new ResizeObserver(d);v.observe(s),i.current=v}},[t,u]);return E.useEffect(()=>()=>{var s=i.current;s?.disconnect()},[u]),g.createElement(g.Fragment,null,g.createElement(un,{width:a.containerWidth,height:a.containerHeight}),g.createElement("div",or({ref:l},e)))}),G2=E.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=E.useState({containerWidth:Fa(r),containerHeight:Fa(n)}),o=E.useCallback((l,s)=>{a(c=>{var f=Math.round(l),d=Math.round(s);return c.containerWidth===f&&c.containerHeight===d?c:{containerWidth:f,containerHeight:d}})},[]),u=E.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:s,height:c}=l.getBoundingClientRect();o(s,c)}},[t,o]);return g.createElement(g.Fragment,null,g.createElement(un,{width:i.containerWidth,height:i.containerHeight}),g.createElement("div",or({ref:u},e)))}),Y2=E.forwardRef((e,t)=>{var{width:r,height:n}=e;return g.createElement(g.Fragment,null,g.createElement(un,{width:r,height:n}),g.createElement("div",or({ref:t},e)))}),X2=E.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?g.createElement(G2,or({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?g.createElement(Y2,or({},e,{width:r,height:n,ref:t})):g.createElement(g.Fragment,null,g.createElement(un,{width:r,height:n}),g.createElement("div",or({ref:t},e)))});function Z2(e){return e?H2:X2}var ax=E.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:u,onMouseDown:l,onMouseEnter:s,onMouseLeave:c,onMouseMove:f,onMouseUp:d,onTouchEnd:v,onTouchMove:p,onTouchStart:m,style:h,width:y,responsive:b,dispatchTouchEvents:w=!0}=e,x=E.useRef(null),P=ie(),[O,S]=E.useState(null),[_,T]=E.useState(null),M=F2(),j=Vs(),I=j?.width>0?j.width:y,C=j?.height>0?j.height:i,z=E.useCallback(k=>{M(k),typeof t=="function"&&t(k),S(k),T(k),k!=null&&(x.current=k)},[M,t,S,T]),W=E.useCallback(k=>{P(Hw(k)),P(st({handler:a,reactEvent:k}))},[P,a]),K=E.useCallback(k=>{P(xs(k)),P(st({handler:s,reactEvent:k}))},[P,s]),F=E.useCallback(k=>{P(j0()),P(st({handler:c,reactEvent:k}))},[P,c]),H=E.useCallback(k=>{P(xs(k)),P(st({handler:f,reactEvent:k}))},[P,f]),B=E.useCallback(()=>{P(Jw())},[P]),ye=E.useCallback(k=>{P(Qw(k.key))},[P]),fe=E.useCallback(k=>{P(st({handler:o,reactEvent:k}))},[P,o]),be=E.useCallback(k=>{P(st({handler:u,reactEvent:k}))},[P,u]),et=E.useCallback(k=>{P(st({handler:l,reactEvent:k}))},[P,l]),ze=E.useCallback(k=>{P(st({handler:d,reactEvent:k}))},[P,d]),Tt=E.useCallback(k=>{P(st({handler:m,reactEvent:k}))},[P,m]),yr=E.useCallback(k=>{w&&P(tx(k)),P(st({handler:p,reactEvent:k}))},[P,w,p]),Be=E.useCallback(k=>{P(st({handler:v,reactEvent:k}))},[P,v]),bn=Z2(b);return g.createElement(yf.Provider,{value:O},g.createElement(Xm.Provider,{value:_},g.createElement(bn,{width:I??h?.width,height:C??h?.height,className:Y("recharts-wrapper",n),style:W2({position:"relative",cursor:"default",width:I,height:C},h),onClick:W,onContextMenu:fe,onDoubleClick:be,onFocus:B,onKeyDown:ye,onMouseDown:et,onMouseEnter:K,onMouseLeave:F,onMouseMove:H,onMouseUp:ze,onTouchEnd:Be,onTouchMove:yr,onTouchStart:Tt,ref:z},g.createElement(V2,null),r)))}),Q2=["width","height","responsive","children","className","style","compact","title","desc"];function J2(e,t){if(e==null)return{};var r,n,i=ez(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 ez(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 ox=E.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:o,style:u,compact:l,title:s,desc:c}=e,f=J2(e,Q2),d=Qe(f);return l?g.createElement(g.Fragment,null,g.createElement(un,{width:r,height:n}),g.createElement(zm,{otherAttributes:d,title:s,desc:c},a)):g.createElement(ax,{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},g.createElement(zm,{otherAttributes:d,title:s,desc:c,ref:t},g.createElement(p$,null,a)))});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)}var tz={top:5,right:5,bottom:5,left:5},rz={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:tz,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},ux=E.forwardRef(function(t,r){var n,i=Se(t.categoricalChartProps,rz),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:u,tooltipPayloadSearcher:l,categoricalChartProps:s}=t,c={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:u,tooltipPayloadSearcher:l,eventEmitter:void 0};return g.createElement(Lf,{preloadedState:{options:c},reduxStoreName:(n=s.id)!==null&&n!==void 0?n:a},g.createElement(_w,{chartData:s.data}),g.createElement(nx,{layout:i.layout,margin:i.margin}),g.createElement(ix,{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}),g.createElement(ox,Os({},i,{ref:r})))}),nz=["axis","item"],lx=E.forwardRef((e,t)=>g.createElement(ux,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:nz,tooltipPayloadSearcher:gf,categoricalChartProps:e,ref:t}));function iz(e){var t=ie();return E.useEffect(()=>{t(C2(e))},[t,e]),null}var az=["layout"];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 oz(e,t){if(e==null)return{};var r,n,i=uz(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 uz(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 lz={top:5,right:5,bottom:5,left:5},sx={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:lz,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},sz=E.forwardRef(function(t,r){var n,i=Se(t.categoricalChartProps,sx),{layout:a}=i,o=oz(i,az),{chartName:u,defaultTooltipEventType:l,validateTooltipEventTypes:s,tooltipPayloadSearcher:c}=t,f={chartName:u,defaultTooltipEventType:l,validateTooltipEventTypes:s,tooltipPayloadSearcher:c,eventEmitter:void 0};return g.createElement(Lf,{preloadedState:{options:f},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:u},g.createElement(_w,{chartData:i.data}),g.createElement(nx,{layout:a,margin:i.margin}),g.createElement(ix,{baseValue:void 0,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}),g.createElement(iz,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),g.createElement(ox,Ps({},o,{ref:r})))});function Fm(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 Wm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fm(Object(r),!0).forEach(function(n){cz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cz(e,t,r){return(t=fz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fz(e){var t=dz(e,"string");return typeof t=="symbol"?t:t+""}function dz(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 vz=["item"],pz=Wm(Wm({},sx),{},{layout:"centric",startAngle:0,endAngle:360}),hz=E.forwardRef((e,t)=>{var r=Se(e,pz);return g.createElement(sz,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:vz,tooltipPayloadSearcher:gf,categoricalChartProps:r,ref:t})});const mz=({active:e,payload:t,label:r,color:n,valueName:i})=>!e||!t||!t.length?null:q.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:[q.jsx("div",{style:{fontWeight:600,marginBottom:6},children:r}),q.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[q.jsx("span",{style:{width:10,height:10,backgroundColor:n,marginRight:6,display:"inline-block"}}),q.jsxs("span",{children:[i||"Valeur"," : ",t[0].value]})]})]}),yz=({color:e,text:t,textColor:r,fontSize:n,fontWeight:i})=>q.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:"15px",color:r,fontSize:n,fontWeight:i},children:q.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[q.jsx("span",{style:{width:15,height:10,backgroundColor:e,marginRight:"5px",display:"inline-block"}}),t]})}),gz=({data:e,height:t=220,barColor:r="#94a3b8",textColor:n="#9CA3AF",fontSize:i="10px",fontWeight:a="400",lineColor:o="#F4F4F4",yAxisWidth:u=30,tickCount:l=6,padding:s="0",legendText:c="Valeur",valueName:f="Valeur",showLegend:d=!0,yDomain:v})=>{const p=E.useRef(null),[m,h]=E.useState(50);E.useLayoutEffect(()=>{const b=()=>{if(p.current){const w=p.current.getBoundingClientRect().width,x=e.labels?.length||1,_=(w-u-30-x*8)/x;h(Math.max(_,20))}};return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[e.labels,u]);const y=e.labels.map((b,w)=>({name:b,value:e.values[w]}));return q.jsxs("div",{ref:p,style:{width:"100%",padding:s,borderRadius:"12px"},children:[q.jsx(Og,{width:"100%",height:t,children:q.jsxs(lx,{data:y,margin:{top:20,right:30,left:0,bottom:0},children:[q.jsx(Cf,{strokeDasharray:"0",vertical:!1,stroke:o}),q.jsx(Df,{dataKey:"name",stroke:n,axisLine:!1,tickLine:!1,tick:{fontSize:i,fontWeight:a}}),q.jsx(Mf,{stroke:n,axisLine:!1,tickLine:!1,tickCount:l,tick:{fontSize:i,fontWeight:a},width:u,domain:v}),q.jsx(J0,{content:q.jsx(mz,{color:r,valueName:f}),cursor:{fill:"#f1f5f9",opacity:.4}}),q.jsx(Tf,{dataKey:"value",fill:r,barSize:m,radius:[2,2,0,0]})]})}),d&&q.jsx(yz,{color:r,text:c,textColor:n,fontSize:i,fontWeight:a})]})};exports.ActivePoints=Aw;exports.Bar=Tf;exports.BarChart=lx;exports.CartesianChart=ux;exports.CartesianGrid=Cf;exports.CartesianLabelContextProvider=sw;exports.CartesianLabelFromLabelProp=fw;exports.CartesianLabelListContextProvider=wf;exports.Cell=gi;exports.Curve=uo;exports.DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME=qs;exports.DefaultZIndexes=ge;exports.Dots=Pw;exports.Global=ai;exports.GraphicalItemClipPath=If;exports.Icon=Um;exports.JavascriptAnimate=ln;exports.LabelList=Dn;exports.LabelListFromLabelProp=_o;exports.Layer=Ee;exports.Line=Fw;exports.Move=mx;exports.PeriodRange=Tx;exports.Pie=Ow;exports.PieChart=hz;exports.RechartsStoreProvider=Lf;exports.RechartsWrapper=ax;exports.Rectangle=Js;exports.RegisterGraphicalItemId=$o;exports.ReportChartMargin=HE;exports.ReportChartSize=un;exports.ResponsiveContainer=Og;exports.SetCartesianGraphicalItem=Sf;exports.SetComputedData=i$;exports.SetErrorBarContext=jf;exports.SetLegendPayload=Ef;exports.SetTooltipEntrySettings=No;exports.Shape=ko;exports.SimpleBarChart=gz;exports.Surface=Ss;exports.Symbols=Ts;exports.Text=bi;exports.Tooltip=J0;exports.TooltipPortalContext=yf;exports.XAxis=Df;exports.YAxis=Mf;exports.ZIndexLayer=Ye;exports.adaptEventsOfChild=Zn;exports.addLine=f$;exports.arrayTooltipSearcher=gf;exports.clsx=Y;exports.commonjsGlobal=yx;exports.createLucideIcon=Vm;exports.createSelector=A;exports.findAllByType=Io;exports.get=lr;exports.getAugmentedNamespace=gx;exports.getBandSizeOfAxis=Nr;exports.getCateCoordinateOfLine=Bl;exports.getDefaultExportFromCjs=Ht;exports.getLinearRegression=jO;exports.getNormalizedStackId=mg;exports.getRadiusAndStrokeWidthFromDot=Lw;exports.getStackSeriesIdentifier=bo;exports.getTooltipNameProp=Wr;exports.getUniqPayload=Ay;exports.getValueByDataKey=ee;exports.implicitZAxis=e0;exports.interpolate=ue;exports.isCategoricalAxis=jt;exports.isClipDot=Pf;exports.isNan=mt;exports.isNonEmptyArray=FO;exports.isNotNil=Ve;exports.isNullish=ce;exports.isNumOrStr=yt;exports.isNumber=$;exports.isPositiveNumber=bt;exports.isWellBehavedNumber=V;exports.mouseLeaveItem=C0;exports.noop=cr;exports.propsAreEqual=wi;exports.rectWithCoords=u$;exports.removeLine=d$;exports.requireIdentity=Ms;exports.requireIteratee=Sy;exports.resolveDefaultProps=Se;exports.selectActiveTooltipIndex=Ut;exports.selectAxisScale=hi;exports.selectAxisWithScale=qt;exports.selectChartBaseValue=Cj;exports.selectChartDataWithIndexesIfNotInPanoramaPosition3=jb;exports.selectChartDataWithIndexesIfNotInPanoramaPosition4=ho;exports.selectChartLayout=G;exports.selectLegendPayload=WP;exports.selectStackGroups=Ia;exports.selectTicksOfGraphicalItem=Kt;exports.selectUnfilteredCartesianItems=fi;exports.selectXAxisIdFromGraphicalItemId=hr;exports.selectXAxisSettings=It;exports.selectYAxisIdFromGraphicalItemId=mr;exports.selectYAxisSettings=kt;exports.selectZAxisWithScale=DI;exports.setActiveClickItemIndex=I0;exports.setActiveMouseOverItemIndex=of;exports.setLegendSettings=lS;exports.setLegendSize=uS;exports.svgPropertiesAndEvents=qe;exports.svgPropertiesNoEvents=Qe;exports.svgPropertiesNoEventsFromUnknown=ur;exports.useAnimationId=sn;exports.useAppDispatch=ie;exports.useAppSelector=L;exports.useCartesianChartLayout=Xs;exports.useChartHeight=Ys;exports.useChartLayout=fr;exports.useChartName=V0;exports.useChartWidth=Gs;exports.useClipPathId=h$;exports.useElementOffset=Ty;exports.useIsPanorama=Le;exports.useLegendPortal=Kx;exports.useMargin=UE;exports.useMouseClickItemDispatch=Mo;exports.useMouseEnterItemDispatch=To;exports.useMouseLeaveItemDispatch=Do;exports.useNeedsClip=zo;exports.usePlotArea=Lo;exports.useViewBox=ni;
|