@sentry/junior-dashboard 0.290.0 → 0.292.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/app.js +3 -3
  2. package/dist/client-manifest.json +1 -1
  3. package/dist/index.js +3 -3
  4. package/dist/public/chunks/{AdminPage-htjffg0n.js → AdminPage-fdz3hucf.js} +1 -1
  5. package/dist/public/chunks/{Area-hr2tz6ad.js → Area-f1nin66q.js} +1 -1
  6. package/dist/public/chunks/{AutomationPage-eihr9acm.js → AutomationPage-d5mdkrn9.js} +3 -3
  7. package/dist/public/chunks/{AutomationRunDetails-op6rfaji.js → AutomationRunDetails-hyjcewq8.js} +1 -1
  8. package/dist/public/chunks/AutomationRunsPage-fcez9yb2.js +1 -0
  9. package/dist/public/chunks/AutomationsPage-in07jyvb.js +15 -0
  10. package/dist/public/chunks/{BarChart-cg02osy4.js → BarChart-hdlbq093.js} +1 -1
  11. package/dist/public/chunks/{BoardPage-mbypholh.js → BoardPage-jmv26j4s.js} +1 -1
  12. package/dist/public/chunks/{CodeChangeRow-oyge0uo2.js → CodeChangeRow-enn40527.js} +2 -2
  13. package/dist/public/chunks/CodePage-ous0utk0.js +1 -0
  14. package/dist/public/chunks/{CodeSummaryCards-gikkczl6.js → CodeSummaryCards-d2oxdoq1.js} +1 -1
  15. package/dist/public/chunks/{ConnectionsPage-l2d6sesm.js → ConnectionsPage-lilwyiau.js} +2 -2
  16. package/dist/public/chunks/{DrawerContent-jt25bpic.js → DrawerContent-jg0soa2u.js} +1 -1
  17. package/dist/public/chunks/{FilterBar-h4ab22b1.js → FilterBar-lsllb7tj.js} +1 -1
  18. package/dist/public/chunks/{FormNotice-oukmcfaj.js → FormNotice-mmzuj60h.js} +1 -1
  19. package/dist/public/chunks/{LocationDetailPage-gldsmom2.js → LocationDetailPage-cf82jjul.js} +1 -1
  20. package/dist/public/chunks/{LocationsPage-glec25wm.js → LocationsPage-g9b4zhrs.js} +1 -1
  21. package/dist/public/chunks/{McpSettingsPage-nfv7qia1.js → McpSettingsPage-gibci7qd.js} +1 -1
  22. package/dist/public/chunks/{PeoplePage-kd1ad63d.js → PeoplePage-cphdlfgf.js} +1 -1
  23. package/dist/public/chunks/{PersonProfilePage-diqz6hmw.js → PersonProfilePage-mf6i9tif.js} +1 -1
  24. package/dist/public/chunks/{PersonalTokensPage-mwkwnlc7.js → PersonalTokensPage-iodbv05e.js} +1 -1
  25. package/dist/public/chunks/PluginReportRecordSet-fossppyd.js +1 -0
  26. package/dist/public/chunks/{PluginUserPage-l7q0ylyz.js → PluginUserPage-ismd883z.js} +2 -2
  27. package/dist/public/chunks/RepositoryPage-dwvax7uv.js +1 -0
  28. package/dist/public/chunks/SettingsPage-f9kssan6.js +1 -0
  29. package/dist/public/chunks/{SystemPage-mpp6dtwm.js → SystemPage-a5t28k3w.js} +1 -1
  30. package/dist/public/chunks/{WorkspaceFormPage-o74u0sno.js → WorkspaceFormPage-h21lnuo4.js} +2 -2
  31. package/dist/public/chunks/WorkspacesPage-h0lwq044.js +1 -0
  32. package/dist/public/chunks/{automationFormat-bhjz2hx6.js → automationFormat-nmiq4qj2.js} +1 -1
  33. package/dist/public/chunks/{chart-mxqu3c8e.js → chart-dbzd0ka8.js} +1 -1
  34. package/dist/public/chunks/{code-highlighter-dd09ntlw.js → code-highlighter-lmx9nqyd.js} +1 -1
  35. package/dist/public/chunks/{format-eev8is9c.js → format-c4b0iyrx.js} +2 -2
  36. package/dist/public/chunks/{junior-btnqqkq5.js → junior-gfsokzu9.js} +2 -2
  37. package/dist/public/chunks/{workspaceQueries-i5xdl0za.js → workspaceQueries-l3p6sri7.js} +1 -1
  38. package/dist/public/client-mgf2bxi7.js +165 -0
  39. package/dist/public/styles-6XAAC7O5.css +2 -0
  40. package/dist/tailwind.css +1 -1
  41. package/package.json +4 -4
  42. package/src/client/conversations/ConversationMeta.tsx +127 -34
  43. package/src/client/conversations/ConversationWorkspace.tsx +45 -30
  44. package/src/client/conversations/conversationSections.ts +3 -2
  45. package/src/client/format.ts +1 -0
  46. package/src/client/types.ts +2 -0
  47. package/dist/public/chunks/AutomationRunsPage-sx9tdkxv.js +0 -1
  48. package/dist/public/chunks/AutomationsPage-mnstyn9j.js +0 -15
  49. package/dist/public/chunks/CodePage-ojiokuht.js +0 -1
  50. package/dist/public/chunks/PluginReportRecordSet-ea6phh3k.js +0 -1
  51. package/dist/public/chunks/RepositoryPage-f61pzf0s.js +0 -1
  52. package/dist/public/chunks/SettingsPage-oqgh66n1.js +0 -1
  53. package/dist/public/chunks/WorkspacesPage-kfphmgpt.js +0 -1
  54. package/dist/public/client-ll3qwj84.js +0 -165
  55. package/dist/public/styles-GFFU7LPU.css +0 -2
@@ -1,4 +1,4 @@
1
- import{n as e,r as t,t as n}from"./rolldown-runtime-bnnw9q4a.js";import{nt as r,rt as i}from"./vendor-lthmb2su.js";import{C as a,S as o,x as s}from"./vendor-react-ggbyvons.js";import{ln as c}from"./vendor-ui-kvc1qhaw.js";import{a as l,i as u,n as d,o as f,t as p}from"./tooltip-c9bbl0em.js";import{t as m}from"./styles-j0007fov.js";import{T as h}from"./format-eev8is9c.js";var g=/* @__PURE__ */ t(a()),_=/* @__PURE__ */ t(s()),v=c(),y=/* @__PURE__ */ `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`.split(`.`);function b(e){return typeof e==`string`&&y.includes(e)}var x=/* @__PURE__ */ new Set(/* @__PURE__ */ `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`.split(`.`));function S(e){return typeof e==`string`&&x.has(e)}function C(e){return typeof e==`string`&&e.startsWith(`data-`)}function w(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(S(n)||C(n))&&(t[n]=e[n]);return t}function T(e){if(e==null)return null;if(/*#__PURE__*/ (0,g.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return w(t)}return typeof e==`object`&&!Array.isArray(e)?w(e):null}function E(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(S(n)||C(n)||b(n))&&(t[n]=e[n]);return t}function D(e){return e==null?null:/*#__PURE__*/ (0,g.isValidElement)(e)?E(e.props):typeof e==`object`&&!Array.isArray(e)?E(e):null}var O=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(null,arguments)}function ee(e,t){if(e==null)return{};var n,r,i=te(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function te(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var A=/*#__PURE__*/ (0,g.forwardRef)((e,t)=>{var{children:n,width:i,height:a,viewBox:o,className:s,style:c,title:l,desc:u}=e,d=ee(e,O),f=o||{width:i,height:a,x:0,y:0},p=r(`recharts-surface`,s);return/*#__PURE__*/ g.createElement(`svg`,k({},E(d),{className:p,width:i,height:a,style:c,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:t}),/*#__PURE__*/ g.createElement(`title`,null,l),/*#__PURE__*/ g.createElement(`desc`,null,u),n)}),j=[`children`,`className`];function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(null,arguments)}function re(e,t){if(e==null)return{};var n,r,i=ie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ae=/*#__PURE__*/ g.forwardRef((e,t)=>{var{children:n,className:i}=e,a=re(e,j),o=r(`recharts-layer`,i);return/*#__PURE__*/ g.createElement(`g`,ne({className:o},E(a),{ref:t}),n)}),oe=/*#__PURE__*/ (0,g.createContext)(null);function M(e){return function(){return e}}const se=Math.PI,ce=2*se,le=1e-6,ue=ce-le;function de(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function fe(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return de;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var pe=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?de:fe(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>le){if(!(Math.abs(u*s-c*l)>le)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((se-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>le&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>le||Math.abs(this._y1-l)>le)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%ce+ce),d>ue?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>le&&this._append`A${n},${n},0,${+(d>=se)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};pe.prototype;function me(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new pe(t)}Array.prototype.slice;function he(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ge(e){this._context=e}ge.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)}}};function _e(e){return new ge(e)}function ve(e){return e[0]}function ye(e){return e[1]}function be(e,t){var n=M(!0),r=null,i=_e,a=null,o=me(s);e=typeof e==`function`?e:e===void 0?ve:M(e),t=typeof t==`function`?t:t===void 0?ye:M(t);function s(s){var c,l=(s=he(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:M(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:M(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:M(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function xe(e,t,n){var r=null,i=M(!0),a=null,o=_e,s=null,c=me(l);e=typeof e==`function`?e:e===void 0?ve:M(+e),t=typeof t==`function`?t:M(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ye:M(+n);function l(l){var u,d,f,p=(l=he(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return be().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:M(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:M(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:M(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:M(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:M(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:M(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:M(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var Se=class{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function Ce(e){return new Se(e,!0)}function we(e){return new Se(e,!1)}function Te(){}function Ee(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function De(e){this._context=e}De.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:Ee(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:Ee(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Oe(e){return new De(e)}function ke(e){this._context=e}ke.prototype={areaStart:Te,areaEnd:Te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ee(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ae(e){return new ke(e)}function je(e){this._context=e}je.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ee(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Me(e){return new je(e)}function Ne(e){this._context=e}Ne.prototype={areaStart:Te,areaEnd:Te,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 Pe(e){return new Ne(e)}function Fe(e){return e<0?-1:1}function Ie(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Fe(a)+Fe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Le(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Re(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function ze(e){this._context=e}ze.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:Re(this,this._t0,Le(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=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,Re(this,Le(this,n=Ie(this,e,t)),n);break;default:Re(this,this._t0,n=Ie(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Be(e){this._context=new Ve(e)}(Be.prototype=Object.create(ze.prototype)).point=function(e,t){ze.prototype.point.call(this,t,e)};function Ve(e){this._context=e}Ve.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function He(e){return new ze(e)}function Ue(e){return new Be(e)}function We(e){this._context=e}We.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ge(e),i=Ge(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===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 Ge(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Ke(e){return new We(e)}function qe(e,t){this._context=e,this._t=t}qe.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Je(e){return new qe(e,.5)}function Ye(e){return new qe(e,0)}function Xe(e){return new qe(e,1)}function Ze(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Qe(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function $e(e,t){return e[t]}function et(e){let t=[];return t.key=e,t}function tt(){var e=M([]),t=Qe,n=Ze,r=$e;function i(i){var a=Array.from(e.apply(this,arguments),et),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=he(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:M(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:M(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Qe:typeof e==`function`?e:M(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Ze,i):n},i}function nt(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Ze(e,t)}}function rt(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Ze(e,t)}}function it(e,t){if((o=e.length)>0&&(a=(i=e[t[0]]).length)>0){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Ze(e,t)}}function at(e){return e===`__proto__`}const ot=Object.prototype.hasOwnProperty;function st(e,t){return ot.call(e,t)}const ct=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function lt(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:ct.test(e);default:return!1}}function ut(e){var t;return typeof e==`string`||typeof e==`symbol`?e:Object.is(e==null||(t=e.valueOf)==null?void 0:t.call(e),-0)?`-0`:String(e)}function dt(e){return typeof e==`symbol`||e instanceof Symbol}function ft(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=``;for(let n=0;n<e.length;n++)n>0&&(t+=`,`),t+=ft(e[n]);return t}if(dt(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function pt(e){return e==null?``:ft(e)}function mt(e){if(Array.isArray(e))return e.map(ut);if(typeof e==`symbol`)return[e];e=pt(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function ht(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(at(t))return n;let r=e[t];return r===void 0?lt(t)&&!st(e,t)?ht(e,mt(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=ut(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return gt(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),at(t))return n;let r=e[t];return r===void 0?n:r}}}function gt(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||at(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var _t=4;function vt(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:_t),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function N(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+vt(i)+n},``)}var yt=e=>e===0?0:e>0?1:-1,bt=e=>typeof e==`number`&&e!=+e,xt=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,P=e=>(typeof e==`number`||e instanceof Number)&&!bt(e),St=e=>P(e)||typeof e==`string`,Ct=0,wt=e=>{var t=++Ct;return`${e||``}${t}`},Tt=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!P(e)&&typeof e!=`string`)return n;var i;if(xt(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return bt(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Et=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function Dt(e,t,n){return P(e)&&P(t)?vt(e+n*(t-e)):t}function Ot(e,t,n){if(e&&e.length)return e.find(e=>e&&(typeof t==`function`?t(e):ht(e,t))===n)}var kt=e=>{for(var t=e.length,n=0,r=0,i=0,a=0,o=1/0,s=-1/0,c=0,l=0,u=0;u<t;u++)c=e[u]?.cx||0,l=e[u]?.cy||0,n+=c,r+=l,i+=c*l,a+=c*c,o=Math.min(o,c),s=Math.max(s,c);var d=t*a===n*n?0:(t*i-n*r)/(t*a-n*n);return{xmin:o,xmax:s,a:d,b:(r-d*n)/t}},At=e=>e==null,jt=e=>At(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Mt(e){return e!=null}function Nt(){}var Pt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Ft=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if(/*#__PURE__*/ (0,g.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{b(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},It=(e,t,n)=>r=>(e(t,n,r),null),Lt=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];b(i)&&typeof a==`function`&&(r||={},r[i]=It(a,t,n))}),r},Rt=e=>Array.isArray(e)&&e.length>0;function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zt(Object(n),!0).forEach(function(t){Vt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vt(e,t,n){return(t=Ht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e){var t=Ut(e,`string`);return typeof t==`symbol`?t:t+``}function Ut(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Wt(e,t){var n=Bt({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function Gt(e,t){let n=/* @__PURE__ */ new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function Kt(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function qt(e){return e}function Jt(e){return Number.isSafeInteger(e)&&e>=0}function Yt(e){return e!=null&&typeof e!=`function`&&Jt(e.length)}function Xt(e){return function(t){return ht(t,e)}}function Zt(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function Qt(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}const $t=`[object String]`,en=`[object Number]`,tn=`[object Boolean]`,nn=`[object Arguments]`;function rn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function an(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function on(e,t,n){return typeof n==`function`?sn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?sn(t,r,e,s,!1):!!c},/* @__PURE__ */ new Map,!0):on(e,t,()=>void 0)}function sn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return cn(e,t,n,r,i);case`function`:return Object.keys(t).length>0?sn(e,Object.assign({},t),n,r,i):rn(e,t);default:return an(e)&&i?typeof t!=`string`||t===``:rn(e,t)}}function cn(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return un(e,t,n,r);if(t instanceof Map)return ln(e,t,n,r);if(t instanceof Set)return dn(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)Zt(e)&&(e=Object(e));else{if(Qt(t)===`[object Error]`)return Qt(e)===`[object Error]`&&e.name===t.name&&e.message===t.message;let n=Qt(e);if(n!==`[object Object]`&&n!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function ln(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function un(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=/* @__PURE__ */ new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function dn(e,t,n,r){return t.size===0||e instanceof Set&&un([...e],[...t],n,r)}function fn(e,t){return on(e,t,()=>void 0)}function pn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}const mn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function hn(e){return mn.Buffer!==void 0&&mn.Buffer.isBuffer(e)}function gn(e){return hn(e)}function _n(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function vn(e){return _n(e)}function yn(e,t){return bn(e,void 0,e,/* @__PURE__ */ new Map,t)}function bn(e,t,n,r,i){if(i!=null){let a=i(e,t,n,r);if(a!==void 0)return a}if(Zt(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=bn(e[a],a,n,r,i);return st(e,`index`)&&(t.index=e.index),st(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=/* @__PURE__ */ new Map;return r.set(e,t),e.forEach((e,a)=>{t.set(a,bn(e,a,n,r,i))}),t}if(e instanceof Set){let t=/* @__PURE__ */ new Set;return r.set(e,t),e.forEach(e=>{t.add(bn(e,void 0,n,r,i))}),t}if(gn(e))return e.subarray();if(vn(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=bn(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),xn(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),xn(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),xn(t,e,n,r,i),t}let a=Qt(e);if(a===`[object Error]`)return e===n?{}:e;switch(a){case en:case $t:case tn:{let t=new e.constructor(e.valueOf());return r.set(e,t),xn(t,e,n,r,i),t}case nn:{let t={};return r.set(e,t),xn(t,e,n,r,i),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}}if(typeof e==`object`&&Sn(a)){let t=a===`[object Object]`&&typeof e.constructor!=`function`?{}:Object.create(Object.getPrototypeOf(e));return r.set(e,t),xn(t,e,n,r,i),t}return e}function xn(e,t,n,r,i){let a=[...Object.keys(t),...pn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=bn(t[s],s,n,r,i))}}function Sn(e){switch(e){case nn:case`[object Array]`:case`[object ArrayBuffer]`:case`[object DataView]`:case tn:case`[object Date]`:case`[object Float32Array]`:case`[object Float64Array]`:case`[object Int8Array]`:case`[object Int16Array]`:case`[object Int32Array]`:case`[object Map]`:case en:case`[object Object]`:case`[object RegExp]`:case`[object Set]`:case $t:case`[object Symbol]`:case`[object Uint8Array]`:case`[object Uint8ClampedArray]`:case`[object Uint16Array]`:case`[object Uint32Array]`:return!0;default:return!1}}function Cn(e){return yn(e)}function wn(e){return e=Cn(e),t=>fn(t,e)}const Tn=/^(?:0|[1-9]\d*)$/;function En(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return Tn.test(e)}}function Dn(e){return typeof e==`object`&&!!e&&Qt(e)===`[object Arguments]`}function On(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&lt(t)&&!(t in Object(e))?mt(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=ut(n[e]);if((r==null||!st(r,t))&&!((Array.isArray(r)||Dn(r))&&En(t)&&Number(t)<r.length))return!1;r=r[t]}return!0}function kn(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=ut(e)}return t=Cn(t),function(n){let r=ht(n,e);return r===void 0?On(n,e):t===void 0?r===void 0:fn(r,t)}}function An(e){if(e==null)return qt;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?kn(e[0],e[1]):wn(e);default:return Xt(e)}}function jn(e){return e===0?0:e}function Mn(e,t=qt){return Yt(e)?Gt(Array.from(e),Kt(An(t),1)).map(jn):[]}function Nn(e,t,n){return t===!0?Mn(e,n):typeof t==`function`?Mn(e,t):e}var Pn=/*#__PURE__*/ (0,g.createContext)(null),Fn=e=>e,F=()=>{var e=(0,g.useContext)(Pn);return e?e.store.dispatch:Fn},In=()=>{},Ln=()=>In,Rn=(e,t)=>e===t;function I(e){var t=(0,g.useContext)(Pn),n=(0,g.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:In,[t,e]);return(0,v.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Ln,t?t.store.getState:In,t?t.store.getState:In,n,Rn)}function zn(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Bn(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function Vn(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var Hn=e=>Array.isArray(e)?e:[e];function Un(e){let t=Array.isArray(e[0])?e[0]:e;return Vn(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Wn(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Gn=class{constructor(e){this.value=e}deref(){return this.value}},Kn=typeof WeakRef<`u`?WeakRef:Gn,qn=0,Jn=1;function Yn(){return{s:qn,v:void 0,o:null,p:null}}function Xn(e,t={}){let n=Yn(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=/* @__PURE__ */ new WeakMap);let r=e.get(n);r===void 0?(t=Yn(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=/* @__PURE__ */ new Map);let r=e.get(n);r===void 0?(t=Yn(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Jn)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Kn(c):c}return s.s=Jn,s.v=c,c}return o.clearCache=()=>{n=Yn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Zn(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),zn(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Xn,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=Hn(c),p=Hn(u),m=Un(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=Wn(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var L=/* @__PURE__ */ Zn(Xn),Qn=Object.assign((e,t=L)=>{Bn(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>Qn});function $n(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function er(e,t,n){return an(n)&&(typeof t==`number`&&Yt(n)&&En(t)&&t<n.length||typeof t==`string`&&t in n)?rn(n[t],e):!1}function tr(e){let t=Object.keys(e),n=Array(t.length);for(let r=0;r<t.length;r++)n[r]=e[t[r]];return n}function nr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}const rr=(e,t,n)=>{if(e!==t){let r=nr(e),i=nr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0},ir=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ar=/^\w*$/;function or(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||dt(e)?!0:typeof e==`string`&&(ar.test(e)||!ir.test(e))||t!=null&&st(t,e)}function sr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Yt(e)?Array.from(e):tr(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?st(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||or(e)?e:{key:e,path:mt(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=rr(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function cr(e,...t){let n=t.length;return n>1&&er(e,t[0],t[1])?t=[]:n>2&&er(t[0],t[1],t[2])&&(t=[t[0]]),sr(e,$n(t),[`asc`])}var lr=e=>e.legend.settings,ur=e=>e.legend.size;L([e=>e.legend.payload,lr],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?cr(r,n):r});var dr=1;function fr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=(0,g.useState)({height:0,left:0,top:0,width:0});return[t,(0,g.useCallback)(e=>{if(e!=null){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>dr||Math.abs(i.left-t.left)>dr||Math.abs(i.top-t.top)>dr||Math.abs(i.width-t.width)>dr)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e])]}function pr(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 mr=typeof Symbol==`function`&&Symbol.observable||`@@observable`,hr=()=>Math.random().toString(36).substring(7).split(``).join(`.`),gr={INIT:`@@redux/INIT${/* @__PURE__ */ hr()}`,REPLACE:`@@redux/REPLACE${/* @__PURE__ */ hr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${hr()}`};function _r(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vr(e,t,n){if(typeof e!=`function`)throw Error(pr(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(pr(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(pr(1));return n(vr)(e,t)}let r=e,i=t,a=/* @__PURE__ */ new Map,o=a,s=0,c=!1;function l(){o===a&&(o=/* @__PURE__ */ new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(pr(3));return i}function d(e){if(typeof e!=`function`)throw Error(pr(4));if(c)throw Error(pr(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(pr(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!_r(e))throw Error(pr(7));if(e.type===void 0)throw Error(pr(8));if(typeof e.type!=`string`)throw Error(pr(17));if(c)throw Error(pr(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(pr(10));r=e,f({type:gr.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(pr(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[mr](){return this}}}return f({type:gr.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[mr]:m}}function yr(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:gr.INIT})===void 0)throw Error(pr(12));if(n(void 0,{type:gr.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(pr(13))})}function br(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{yr(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(pr(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function xr(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Sr(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(pr(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=xr(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function Cr(e){return _r(e)&&`type`in e&&typeof e.type==`string`}var wr=Symbol.for(`immer-nothing`),Tr=Symbol.for(`immer-draftable`),Er=Symbol.for(`immer-state`);function Dr(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Or=Object,kr=Or.getPrototypeOf,Ar=`constructor`,jr=`prototype`,Mr=`configurable`,Nr=`enumerable`,Pr=`writable`,Fr=`value`,Ir=e=>!!e&&!!e[Er];function Lr(e){return e?Br(e)||qr(e)||!!e[Tr]||!!e[Ar]?.[Tr]||Jr(e)||Yr(e):!1}var Rr=Or[jr][Ar].toString(),zr=/* @__PURE__ */ new WeakMap;function Br(e){if(!e||!Xr(e))return!1;let t=kr(e);if(t===null||t===Or[jr])return!0;let n=Or.hasOwnProperty.call(t,Ar)&&t[Ar];if(n===Object)return!0;if(!Zr(n))return!1;let r=zr.get(n);return r===void 0&&(r=Function.toString.call(n),zr.set(n,r)),r===Rr}function Vr(e,t,n=!0){Hr(e)===0?(n?Reflect.ownKeys(e):Or.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Hr(e){let t=e[Er];return t?t.type_:qr(e)?1:Jr(e)?2:Yr(e)?3:0}var Ur=(e,t,n=Hr(e))=>n===2?e.has(t):Or[jr].hasOwnProperty.call(e,t),Wr=(e,t,n=Hr(e))=>n===2?e.get(t):e[t],Gr=(e,t,n,r=Hr(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Kr(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var qr=Array.isArray,Jr=e=>e instanceof Map,Yr=e=>e instanceof Set,Xr=e=>typeof e==`object`,Zr=e=>typeof e==`function`,Qr=e=>typeof e==`boolean`;function $r(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ei=e=>e.copy_||e.base_,ti=e=>e.modified_?e.copy_:e.base_;function ni(e,t){if(Jr(e))return new Map(e);if(Yr(e))return new Set(e);if(qr(e))return Array[jr].slice.call(e);let n=Br(e);if(t===!0||t===`class_only`&&!n){let t=Or.getOwnPropertyDescriptors(e);delete t[Er];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Pr]===!1&&(a[Pr]=!0,a[Mr]=!0),(a.get||a.set)&&(t[i]={[Mr]:!0,[Pr]:!0,[Nr]:a[Nr],[Fr]:e[i]})}return Or.create(kr(e),t)}{let t=kr(e);if(t!==null&&n)return{...e};let r=Or.create(t);return Or.assign(r,e)}}function ri(e,t=!1){return oi(e)||Ir(e)||!Lr(e)||(Hr(e)>1&&Or.defineProperties(e,{set:ai,add:ai,clear:ai,delete:ai}),Or.freeze(e),t&&Vr(e,(e,t)=>{ri(t,!0)},!1)),e}function ii(){Dr(2)}var ai={[Fr]:ii};function oi(e){return e===null||!Xr(e)||Or.isFrozen(e)}var si=`MapSet`,ci=`Patches`,li=`ArrayMethods`,ui={};function di(e){let t=ui[e];return t||Dr(0,e),t}var fi=e=>!!ui[e],pi,mi=()=>pi,hi=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:/* @__PURE__ */ new Set,processedForPatches_:/* @__PURE__ */ new Set,mapSetPlugin_:fi(si)?di(si):void 0,arrayMethodsPlugin_:fi(li)?di(li):void 0});function gi(e,t){t&&(e.patchPlugin_=di(ci),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _i(e){vi(e),e.drafts_.forEach(bi),e.drafts_=null}function vi(e){e===pi&&(pi=e.parent_)}var yi=e=>pi=hi(pi,e);function bi(e){let t=e[Er];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function xi(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Er].modified_&&(_i(t),Dr(4)),Lr(e)&&(e=Si(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Er].base_,e,t)}else e=Si(t,n);return Ci(t,e,!0),_i(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===wr?void 0:e}function Si(e,t){if(oi(t))return t;let n=t[Er];if(!n)return ji(t,e.handledSet_,e);if(!Ti(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);ki(n,e)}return n.copy_}function Ci(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ri(t,n)}function wi(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ti=(e,t)=>e.scope_===t,Ei=[];function Di(e,t,n,r){let i=ei(e),a=e.type_;if(r!==void 0&&Wr(i,r,a)===t){Gr(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=/* @__PURE__ */ new Map;Vr(i,(e,n)=>{if(Ir(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Ei;for(let e of o)Gr(i,e,n,a)}function Oi(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Ti(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=ti(i);Di(e,i.draft_??i,a,n),ki(i,r)})}function ki(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}wi(e)}}function Ai(e,t,n){let{scope_:r}=e;if(Ir(n)){let i=n[Er];Ti(i,r)&&i.callbacks_.push(function(){Bi(e),Di(e,n,ti(i),t)})}else Lr(n)&&e.callbacks_.push(function(){let i=ei(e);e.type_===3?i.has(n)&&ji(n,r.handledSet_,r):Wr(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ji(Wr(e.copy_,t,e.type_),r.handledSet_,r)})}function ji(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Ir(e)||t.has(e)||!Lr(e)||oi(e)||(t.add(e),Vr(e,(r,i)=>{if(Ir(i)){let t=i[Er];Ti(t,n)&&(Gr(e,r,ti(t),e.type_),wi(t))}else Lr(i)&&ji(i,t,n)})),e}function Mi(e,t){let n=qr(e),r={type_:+!!n,scope_:t?t.scope_:mi(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Ni;n&&(i=[r],a=Pi);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Ni={get(e,t){if(t===Er)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=ei(e);if(!Ur(i,t,e.type_))return Li(e,i,t);let a=i[t];if(e.finalized_||!Lr(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&$r(t))return a;if(a===Fi(e.base_,t)||Ii(e,t,a)){Bi(e);let n=e.type_===1?+t:t,r=Hi(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in ei(e)},ownKeys(e){return Reflect.ownKeys(ei(e))},set(e,t,n){let r=Ri(ei(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Fi(ei(e),t),i=r?.[Er];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.delete(t),!0;if(Kr(n,r)&&(n!==void 0||Ur(e.base_,t,e.type_)))return!0;Bi(e),zi(e)}return e.copy_[t]===n&&(n!==void 0||Ur(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Ai(e,t,n)),!0},deleteProperty(e,t){return Bi(e),Fi(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),zi(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=ei(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Pr]:!0,[Mr]:e.type_!==1||t!==`length`,[Nr]:r[Nr],[Fr]:n[t]}},defineProperty(){Dr(11)},getPrototypeOf(e){return kr(e.base_)},setPrototypeOf(){Dr(12)}},Pi={};for(let e in Ni){let t=Ni[e];Pi[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Pi.deleteProperty=function(e,t){return Pi.set.call(this,e,t,void 0)},Pi.set=function(e,t,n){return Ni.set.call(this,e[0],t,n,e[0])};function Fi(e,t){let n=e[Er];return(n?ei(n):e)[t]}function Ii(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||!Lr(n)||n[Er]?!1:e.baseRefs_.has(n)}function Li(e,t,n){let r=Ri(t,n);return r?Fr in r?r[Fr]:r.get?.call(e.draft_):void 0}function Ri(e,t){if(!(t in e))return;let n=kr(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=kr(n)}}function zi(e){e.modified_||(e.modified_=!0,e.parent_&&zi(e.parent_))}function Bi(e){e.copy_||=(e.assigned_=/* @__PURE__ */ new Map,ni(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vi=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Zr(e)&&!Zr(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Zr(t)||Dr(6),n!==void 0&&!Zr(n)&&Dr(7);let r;if(Lr(e)){let i=yi(this),a=Hi(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?_i(i):vi(i)}return gi(i,n),xi(r,i)}if(!e||!Xr(e)){if(r=t(e),r===void 0&&(r=e),r===wr&&(r=void 0),this.autoFreeze_&&ri(r,!0),n){let t=[],i=[];di(ci).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}Dr(1,e)},this.produceWithPatches=(e,t)=>{if(Zr(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Qr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Qr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Qr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Lr(e)||Dr(8),Ir(e)&&(e=Ui(e));let t=yi(this),n=Hi(t,e,void 0);return n[Er].isManual_=!0,vi(t),n}finishDraft(e,t){let n=e&&e[Er];n&&n.isManual_||Dr(9);let{scope_:r}=n;return gi(r,t),xi(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=di(ci).applyPatches_;return Ir(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Hi(e,t,n,r){let[i,a]=Jr(t)?di(si).proxyMap_(t,n):Yr(t)?di(si).proxySet_(t,n):Mi(t,n);return(n?.scope_??mi()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Oi(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Ui(e){return Ir(e)||Dr(10,e),Wi(e)}function Wi(e){if(!Lr(e)||oi(e))return e;let t=e[Er],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ni(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=ni(e,!0);let i=n;return Yr(n)&&(n=/* @__PURE__ */ new Set),Vr(i,(e,t)=>{Gr(n,e,Wi(t))},r),t&&(t.finalized_=!1),n}globalThis.Iterator?.from;var Gi=new Vi().produce;function Ki(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var qi=Ki(),Ji=Ki;const Yi=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?xr:xr.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Xi(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(no(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Cr(t)&&t.type===e,n}var Zi=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Qi(e){return Lr(e)?Gi(e,()=>{}):e}function $i(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function ea(e){return typeof e==`boolean`}const ta=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Zi;return t&&(ea(t)?a.push(qi):a.push(Ji(t.extraArgument))),a},na=`RTK_autoBatch`,R=()=>e=>({payload:e,meta:{[na]:!0}}),ra=e=>t=>{setTimeout(t,e)},ia=(e,t)=>n=>{let r=!1,i,a,o=()=>{r||(r=!0,cancelAnimationFrame(i),clearTimeout(a),n())};i=e(o),a=setTimeout(o,t)},aa=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=/* @__PURE__ */ new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?ia(window.requestAnimationFrame,100):ra(10):e.type===`callback`?e.queueNotification:ra(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[na],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},oa=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Zi(e);return n&&r.push(aa(typeof n==`object`?n:void 0)),r};function sa(e){let t=ta(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(_r(n))c=br(n);else throw Error(no(1));let l;l=typeof r==`function`?r(t):t();let u=xr;i&&(u=Yi({trace:!1,...typeof i==`object`&&i}));let d=Sr(...l),f=oa(d),p=typeof s==`function`?s(f):f(),m=u(...p);return vr(c,o,m)}function ca(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(no(28));if(r in t)throw Error(no(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function la(e){return typeof e==`function`}function ua(e,t){let[n,r,i]=ca(t),a;if(la(e))a=()=>Qi(e());else{let t=Qi(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n){if(Ir(e)){let r=n(e,t);return r===void 0?e:r}if(Lr(e))return Gi(e,e=>n(e,t));{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(no(9))}return r}}return e},e)}return o.getInitialState=a,o}let da=(e=21)=>{let t=``,n=e;for(;n--;)t+=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`[Math.random()*64|0];return t};const fa=/* @__PURE__ */ Symbol.for(`rtk-slice-createasyncthunk`);function pa(e,t){return`${e}/${t}`}function ma({creators:e}={}){let t=e?.asyncThunk?.[fa];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(no(11));let i=(typeof e.reducers==`function`?e.reducers(_a()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(no(12));if(n in o.sliceCaseReducersByType)throw Error(no(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:pa(n,r),createNotation:typeof e.reducers==`function`};ya(a)?xa(o,a,s,t):va(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?ca(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return ua(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=/* @__PURE__ */ new Map,d=/* @__PURE__ */ new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=$i(d,r,m)),i}function i(t=l){return $i($i(u,n,()=>/* @__PURE__ */ new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=ha(a,t,()=>$i(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function ha(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}const ga=/* @__PURE__ */ ma();function _a(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function va({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!ba(r))throw Error(no(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Xi(e,o):Xi(e))}function ya(e){return e._reducerDefinitionType===`asyncThunk`}function ba(e){return e._reducerDefinitionType===`reducerWithPrepare`}function xa({type:e,reducerName:t},n,r,i){if(!i)throw Error(no(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||Sa,pending:s||Sa,rejected:c||Sa,settled:l||Sa})}function Sa(){}const Ca=`listener`,wa=`completed`,Ta=`cancelled`,Ea=`task-${Ta}`,Da=`task-${wa}`,Oa=`${Ca}-${Ta}`,ka=`${Ca}-${wa}`;var Aa=class{code;name=`TaskAbortError`;message;constructor(e){this.code=e,this.message=`task ${Ta} (reason: ${e})`}};const ja=(e,t)=>{if(typeof e!=`function`)throw TypeError(no(32))},Ma=()=>{},Na=(e,t=Ma)=>(e.catch(t),e),Pa=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),Fa=e=>{if(e.aborted)throw new Aa(e.reason)};function Ia(e,t){let n=Ma;return new Promise((r,i)=>{let a=()=>i(new Aa(e.reason));e.aborted?a():(n=Pa(e,a),t.finally(()=>n()).then(r,i))}).finally(()=>{n=Ma})}const La=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof Aa?`cancelled`:`rejected`,error:e}}finally{t?.()}},Ra=e=>t=>Na(Ia(e,t).then(t=>(Fa(e),t))),za=e=>{let t=Ra(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Ba}=Object,Va={},Ha=`listenerMiddleware`,Ua=(e,t)=>{let n=t=>Pa(e,()=>t.abort(e.reason));return(r,i)=>{ja(r,`taskExecutor`);let a=new AbortController;n(a);let o=La(async()=>{Fa(e),Fa(a.signal);let t=await r({pause:Ra(a.signal),delay:za(a.signal),signal:a.signal});return Fa(a.signal),t},()=>a.abort(Da));return i?.autoJoin&&t.push(o.catch(Ma)),{result:Ra(e)(o),cancel(){a.abort(Ea)}}}},Wa=(e,t)=>{let n=async(n,r)=>{Fa(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await Ia(t,Promise.race(a));return Fa(t),e}finally{i()}};return((e,t)=>Na(n(e,t)))},Ga=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Xi(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(no(21));return ja(a,`options.listener`),{predicate:i,type:t,effect:a}},Ka=/* @__PURE__ */ Ba(e=>{let{type:t,predicate:n,effect:r}=Ga(e);return{id:da(),effect:r,type:t,predicate:n,pending:/* @__PURE__ */ new Set,unsubscribe:()=>{throw Error(no(22))}}},{withTypes:()=>Ka}),qa=(e,t)=>{let{type:n,effect:r,predicate:i}=Ga(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Ja=e=>{e.pending.forEach(e=>{e.abort(Oa)})},Ya=(e,t)=>()=>{for(let e of t.keys())Ja(e);e.clear()},Xa=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Za=/* @__PURE__ */ Ba(/* @__PURE__ */ Xi(`${Ha}/add`),{withTypes:()=>Za}),Qa=/* @__PURE__ */ Xi(`${Ha}/removeAll`),$a=/* @__PURE__ */ Ba(/* @__PURE__ */ Xi(`${Ha}/remove`),{withTypes:()=>$a}),eo=(...e)=>{console.error(`${Ha}/error`,...e)},to=(e={})=>{let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=eo}=e;ja(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Ja(e)}),c=(e=>{let n=qa(t,e)??Ka(e);return s(n)});Ba(c,{withTypes:()=>c});let l=e=>{let n=qa(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Ja(n)),!!n};Ba(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=Wa(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,Ba({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:za(u.signal),pause:Ra(u.signal),extra:a,signal:u.signal,fork:Ua(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(Oa),n.delete(e))})},cancel:()=>{u.abort(Oa),e.pending.delete(u)},throwIfCancelled:()=>{Fa(u.signal)}})))}catch(e){e instanceof Aa||Xa(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(ka),i(e),e.pending.delete(u)}},d=Ya(t,n);return{middleware:e=>n=>r=>{if(!Cr(r))return n(r);if(Za.match(r))return c(r.payload);if(Qa.match(r)){d();return}if($a.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===Va)throw Error(no(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,Xa(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=Va}return s},startListening:c,stopListening:l,clearListeners:d}};function no(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 ro=ga({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),{setMargin:io,setLayout:ao,setChartSize:oo,setScale:so}=ro.actions,co=ro.reducer;function lo(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function z(e){return Number.isFinite(e)}function uo(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fo(Object(n),!0).forEach(function(t){mo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mo(e,t,n){return(t=ho(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(e){var t=go(e,`string`);return typeof t==`symbol`?t:t+``}function go(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _o(e,t,n){return At(e)||At(t)?n:St(t)?ht(e,t,n):typeof t==`function`?t(e):n}var vo=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:o,layout:s}=t;if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&P(e[a]))return po(po({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&P(e[o]))return po(po({},e),{},{[o]:e[o]+(i||0)})}return e},yo=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,bo=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},xo=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:o,realScaleType:s,isCategorical:c,categoricalDomain:l,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?yt(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return z(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(Mt):c&&l?l.map((e,t)=>{var n=o.map(e);return z(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Mt):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return z(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Mt):o.domain().map((e,t)=>{var n=o.map(e);return z(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(Mt)},So=(e,t)=>{if(!t||t.length!==2||!P(t[0])||!P(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!P(e[0])||e[0]<n)&&(i[0]=n),(!P(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Co={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=bt(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:nt,none:Ze,silhouette:rt,wiggle:it,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=bt(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},wo=(e,t,n)=>{var r=Co[n]??Ze,i=tt().keys(t).value((e,t)=>Number(_o(e,t,0))).order(Qe).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=_o(e[i],t[r],0);Array.isArray(a)&&a.length===2&&P(a[0])&&P(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function To(e){return e==null?void 0:String(e)}function Eo(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:o}=e;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!At(i[t.dataKey])){var s=Ot(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=_o(i,At(o)?t.dataKey:o),l=t.scale.map(c);return P(l)?l:null}var Do=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:o}=e;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=_o(a,t.dataKey,t.scale.domain()[o]);if(At(s))return null;var c=t.scale.map(s);return P(c)?c-i/2+r:null},Oo=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},ko=e=>{var t=e.flat(2).filter(P);return[Math.min(...t),Math.max(...t)]},Ao=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],jo=(e,t,n)=>{if(e!=null)return Ao(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:o}=a,s=o.reduce((e,r)=>{var i=ko(lo(r,t,n));return!z(i[0])||!z(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},Mo=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,No=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Po=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=cr(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c?.coordinate||0)-(l?.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0};function Fo(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return po(po({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Io(e,t){if(e)return String(e);if(typeof t==`string`)return t}var Lo=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},Ro=(e,t)=>t===`centric`?e.angle:e.radius,zo=e=>e.layout.width,Bo=e=>e.layout.height,Vo=e=>e.layout.scale,Ho=e=>e.layout.margin,Uo=L(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Wo=L(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Go=`data-recharts-item-index`,Ko=`data-recharts-item-id`;function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qo(Object(n),!0).forEach(function(t){Yo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yo(e,t,n){return(t=Xo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xo(e){var t=Zo(e,`string`);return typeof t==`symbol`?t:t+``}function Zo(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Qo=e=>e.brush.height;function $o(e){return Wo(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function es(e){return Wo(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function ts(e){return Uo(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function ns(e){return Uo(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var B=L([zo,Bo,Ho,Qo,$o,es,ts,ns,lr,ur],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=Jo(Jo({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=vo(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Jo(Jo({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),rs=L(B,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),is=L(zo,Bo,(e,t)=>({x:0,y:0,width:e,height:t})),as=/*#__PURE__*/ (0,g.createContext)(null),os=()=>(0,g.useContext)(as)!=null,ss=e=>e.brush,cs=L([ss,B,Ho],(e,t,n)=>({height:e.height,x:P(e.x)?e.x:t.left,y:P(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:P(e.width)?e.width:t.width}));function ls(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function us(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=ls(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?((r||i)&&(s=e.apply(this,t)),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function ds(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return us(e,t,{leading:r,maxWait:t,trailing:i})}var fs=function(e,t){var n=[...arguments].slice(2);if(typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e)){if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}}},ps={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ms=(e,t,n)=>{var{width:r=ps.width,height:i=ps.height,aspect:a,maxHeight:o}=n,s=xt(r)?e:Number(r),c=xt(i)?t:Number(i);return a&&a>0&&(s?c=s/a:c&&(s=c*a),o&&c!=null&&c>o&&(c=o)),{calculatedWidth:s,calculatedHeight:c}},hs={width:0,height:0,overflow:`visible`},gs={width:0,overflowX:`visible`},_s={height:0,overflowY:`visible`},vs={},ys=e=>{var{width:t,height:n}=e,r=xt(t),i=xt(n);return r&&i?hs:r?gs:i?_s:vs};function bs(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=ps.width,a=ps.height):i===void 0?i=r&&r>0?void 0:ps.width:a===void 0&&(a=r&&r>0?void 0:ps.height),{width:i,height:a}}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(null,arguments)}function Ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ss(Object(n),!0).forEach(function(t){ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ws(e,t,n){return(t=Ts(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ts(e){var t=Es(e,`string`);return typeof t==`symbol`?t:t+``}function Es(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ds=/*#__PURE__*/ (0,g.createContext)(ps.initialDimension);function Os(e){return uo(e.width)&&uo(e.height)}function ks(e){var{children:t,width:n,height:r}=e,i=(0,g.useMemo)(()=>({width:n,height:r}),[n,r]);return Os(i)?/*#__PURE__*/ g.createElement(Ds.Provider,{value:i},t):null}var As=()=>(0,g.useContext)(Ds),js=/*#__PURE__*/ (0,g.forwardRef)((e,t)=>{var{aspect:n,initialDimension:i=ps.initialDimension,width:a,height:o,minWidth:s=ps.minWidth,minHeight:c,maxHeight:l,children:u,debounce:d=ps.debounce,id:f,className:p,onResize:m,style:h={}}=e,_=(0,g.useRef)(null),v=(0,g.useRef)();v.current=m,(0,g.useImperativeHandle)(t,()=>_.current);var[y,b]=(0,g.useState)({containerWidth:i.width,containerHeight:i.height}),x=(0,g.useCallback)((e,t)=>{b(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,g.useEffect)(()=>{if(_.current==null||typeof ResizeObserver>`u`)return Nt;var e=e=>{var t,n=e[0];if(n!=null){var{width:r,height:i}=n.contentRect;x(r,i),(t=v.current)==null||t.call(v,r,i)}};d>0&&(e=ds(e,d,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=_.current.getBoundingClientRect();return x(n,r),t.observe(_.current),()=>{t.disconnect()}},[x,d]);var{containerWidth:S,containerHeight:C}=y;fs(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var{calculatedWidth:w,calculatedHeight:T}=ms(S,C,{width:a,height:o,aspect:n,maxHeight:l});return fs(w!=null&&w>0||T!=null&&T>0,`The width(%s) and height(%s) of chart should be greater than 0,
1
+ import{n as e,r as t,t as n}from"./rolldown-runtime-bnnw9q4a.js";import{nt as r,rt as i}from"./vendor-lthmb2su.js";import{C as a,S as o,x as s}from"./vendor-react-ggbyvons.js";import{ln as c}from"./vendor-ui-kvc1qhaw.js";import{a as l,i as u,n as d,o as f,t as p}from"./tooltip-c9bbl0em.js";import{t as m}from"./styles-j0007fov.js";import{T as h}from"./format-c4b0iyrx.js";var g=/* @__PURE__ */ t(a()),_=/* @__PURE__ */ t(s()),v=c(),y=/* @__PURE__ */ `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`.split(`.`);function b(e){return typeof e==`string`&&y.includes(e)}var x=/* @__PURE__ */ new Set(/* @__PURE__ */ `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`.split(`.`));function S(e){return typeof e==`string`&&x.has(e)}function C(e){return typeof e==`string`&&e.startsWith(`data-`)}function w(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(S(n)||C(n))&&(t[n]=e[n]);return t}function T(e){if(e==null)return null;if(/*#__PURE__*/ (0,g.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return w(t)}return typeof e==`object`&&!Array.isArray(e)?w(e):null}function E(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(S(n)||C(n)||b(n))&&(t[n]=e[n]);return t}function D(e){return e==null?null:/*#__PURE__*/ (0,g.isValidElement)(e)?E(e.props):typeof e==`object`&&!Array.isArray(e)?E(e):null}var O=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(null,arguments)}function ee(e,t){if(e==null)return{};var n,r,i=te(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function te(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var A=/*#__PURE__*/ (0,g.forwardRef)((e,t)=>{var{children:n,width:i,height:a,viewBox:o,className:s,style:c,title:l,desc:u}=e,d=ee(e,O),f=o||{width:i,height:a,x:0,y:0},p=r(`recharts-surface`,s);return/*#__PURE__*/ g.createElement(`svg`,k({},E(d),{className:p,width:i,height:a,style:c,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:t}),/*#__PURE__*/ g.createElement(`title`,null,l),/*#__PURE__*/ g.createElement(`desc`,null,u),n)}),j=[`children`,`className`];function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ne.apply(null,arguments)}function re(e,t){if(e==null)return{};var n,r,i=ie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ae=/*#__PURE__*/ g.forwardRef((e,t)=>{var{children:n,className:i}=e,a=re(e,j),o=r(`recharts-layer`,i);return/*#__PURE__*/ g.createElement(`g`,ne({className:o},E(a),{ref:t}),n)}),oe=/*#__PURE__*/ (0,g.createContext)(null);function M(e){return function(){return e}}const se=Math.PI,ce=2*se,le=1e-6,ue=ce-le;function de(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function fe(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return de;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var pe=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?de:fe(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>le){if(!(Math.abs(u*s-c*l)>le)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((se-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>le&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>le||Math.abs(this._y1-l)>le)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%ce+ce),d>ue?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>le&&this._append`A${n},${n},0,${+(d>=se)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};pe.prototype;function me(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new pe(t)}Array.prototype.slice;function he(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ge(e){this._context=e}ge.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)}}};function _e(e){return new ge(e)}function ve(e){return e[0]}function ye(e){return e[1]}function be(e,t){var n=M(!0),r=null,i=_e,a=null,o=me(s);e=typeof e==`function`?e:e===void 0?ve:M(e),t=typeof t==`function`?t:t===void 0?ye:M(t);function s(s){var c,l=(s=he(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:M(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:M(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:M(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function xe(e,t,n){var r=null,i=M(!0),a=null,o=_e,s=null,c=me(l);e=typeof e==`function`?e:e===void 0?ve:M(+e),t=typeof t==`function`?t:M(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ye:M(+n);function l(l){var u,d,f,p=(l=he(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return be().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:M(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:M(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:M(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:M(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:M(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:M(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:M(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var Se=class{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function Ce(e){return new Se(e,!0)}function we(e){return new Se(e,!1)}function Te(){}function Ee(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function De(e){this._context=e}De.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:Ee(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:Ee(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Oe(e){return new De(e)}function ke(e){this._context=e}ke.prototype={areaStart:Te,areaEnd:Te,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ee(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ae(e){return new ke(e)}function je(e){this._context=e}je.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ee(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Me(e){return new je(e)}function Ne(e){this._context=e}Ne.prototype={areaStart:Te,areaEnd:Te,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 Pe(e){return new Ne(e)}function Fe(e){return e<0?-1:1}function Ie(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Fe(a)+Fe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Le(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Re(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function ze(e){this._context=e}ze.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:Re(this,this._t0,Le(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=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,Re(this,Le(this,n=Ie(this,e,t)),n);break;default:Re(this,this._t0,n=Ie(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Be(e){this._context=new Ve(e)}(Be.prototype=Object.create(ze.prototype)).point=function(e,t){ze.prototype.point.call(this,t,e)};function Ve(e){this._context=e}Ve.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function He(e){return new ze(e)}function Ue(e){return new Be(e)}function We(e){this._context=e}We.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ge(e),i=Ge(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===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 Ge(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Ke(e){return new We(e)}function qe(e,t){this._context=e,this._t=t}qe.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Je(e){return new qe(e,.5)}function Ye(e){return new qe(e,0)}function Xe(e){return new qe(e,1)}function Ze(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Qe(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function $e(e,t){return e[t]}function et(e){let t=[];return t.key=e,t}function tt(){var e=M([]),t=Qe,n=Ze,r=$e;function i(i){var a=Array.from(e.apply(this,arguments),et),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=he(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:M(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:M(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Qe:typeof e==`function`?e:M(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Ze,i):n},i}function nt(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Ze(e,t)}}function rt(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Ze(e,t)}}function it(e,t){if((o=e.length)>0&&(a=(i=e[t[0]]).length)>0){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Ze(e,t)}}function at(e){return e===`__proto__`}const ot=Object.prototype.hasOwnProperty;function st(e,t){return ot.call(e,t)}const ct=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function lt(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:ct.test(e);default:return!1}}function ut(e){var t;return typeof e==`string`||typeof e==`symbol`?e:Object.is(e==null||(t=e.valueOf)==null?void 0:t.call(e),-0)?`-0`:String(e)}function dt(e){return typeof e==`symbol`||e instanceof Symbol}function ft(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=``;for(let n=0;n<e.length;n++)n>0&&(t+=`,`),t+=ft(e[n]);return t}if(dt(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function pt(e){return e==null?``:ft(e)}function mt(e){if(Array.isArray(e))return e.map(ut);if(typeof e==`symbol`)return[e];e=pt(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function ht(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(at(t))return n;let r=e[t];return r===void 0?lt(t)&&!st(e,t)?ht(e,mt(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=ut(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return gt(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),at(t))return n;let r=e[t];return r===void 0?n:r}}}function gt(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||at(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var _t=4;function vt(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:_t),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function N(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+vt(i)+n},``)}var yt=e=>e===0?0:e>0?1:-1,bt=e=>typeof e==`number`&&e!=+e,xt=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,P=e=>(typeof e==`number`||e instanceof Number)&&!bt(e),St=e=>P(e)||typeof e==`string`,Ct=0,wt=e=>{var t=++Ct;return`${e||``}${t}`},Tt=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!P(e)&&typeof e!=`string`)return n;var i;if(xt(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return bt(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Et=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function Dt(e,t,n){return P(e)&&P(t)?vt(e+n*(t-e)):t}function Ot(e,t,n){if(e&&e.length)return e.find(e=>e&&(typeof t==`function`?t(e):ht(e,t))===n)}var kt=e=>{for(var t=e.length,n=0,r=0,i=0,a=0,o=1/0,s=-1/0,c=0,l=0,u=0;u<t;u++)c=e[u]?.cx||0,l=e[u]?.cy||0,n+=c,r+=l,i+=c*l,a+=c*c,o=Math.min(o,c),s=Math.max(s,c);var d=t*a===n*n?0:(t*i-n*r)/(t*a-n*n);return{xmin:o,xmax:s,a:d,b:(r-d*n)/t}},At=e=>e==null,jt=e=>At(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Mt(e){return e!=null}function Nt(){}var Pt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Ft=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if(/*#__PURE__*/ (0,g.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{b(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},It=(e,t,n)=>r=>(e(t,n,r),null),Lt=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];b(i)&&typeof a==`function`&&(r||={},r[i]=It(a,t,n))}),r},Rt=e=>Array.isArray(e)&&e.length>0;function zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zt(Object(n),!0).forEach(function(t){Vt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vt(e,t,n){return(t=Ht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e){var t=Ut(e,`string`);return typeof t==`symbol`?t:t+``}function Ut(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Wt(e,t){var n=Bt({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function Gt(e,t){let n=/* @__PURE__ */ new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function Kt(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function qt(e){return e}function Jt(e){return Number.isSafeInteger(e)&&e>=0}function Yt(e){return e!=null&&typeof e!=`function`&&Jt(e.length)}function Xt(e){return function(t){return ht(t,e)}}function Zt(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function Qt(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}const $t=`[object String]`,en=`[object Number]`,tn=`[object Boolean]`,nn=`[object Arguments]`;function rn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function an(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function on(e,t,n){return typeof n==`function`?sn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?sn(t,r,e,s,!1):!!c},/* @__PURE__ */ new Map,!0):on(e,t,()=>void 0)}function sn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return cn(e,t,n,r,i);case`function`:return Object.keys(t).length>0?sn(e,Object.assign({},t),n,r,i):rn(e,t);default:return an(e)&&i?typeof t!=`string`||t===``:rn(e,t)}}function cn(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return un(e,t,n,r);if(t instanceof Map)return ln(e,t,n,r);if(t instanceof Set)return dn(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)Zt(e)&&(e=Object(e));else{if(Qt(t)===`[object Error]`)return Qt(e)===`[object Error]`&&e.name===t.name&&e.message===t.message;let n=Qt(e);if(n!==`[object Object]`&&n!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function ln(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function un(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=/* @__PURE__ */ new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function dn(e,t,n,r){return t.size===0||e instanceof Set&&un([...e],[...t],n,r)}function fn(e,t){return on(e,t,()=>void 0)}function pn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}const mn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function hn(e){return mn.Buffer!==void 0&&mn.Buffer.isBuffer(e)}function gn(e){return hn(e)}function _n(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function vn(e){return _n(e)}function yn(e,t){return bn(e,void 0,e,/* @__PURE__ */ new Map,t)}function bn(e,t,n,r,i){if(i!=null){let a=i(e,t,n,r);if(a!==void 0)return a}if(Zt(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=bn(e[a],a,n,r,i);return st(e,`index`)&&(t.index=e.index),st(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=/* @__PURE__ */ new Map;return r.set(e,t),e.forEach((e,a)=>{t.set(a,bn(e,a,n,r,i))}),t}if(e instanceof Set){let t=/* @__PURE__ */ new Set;return r.set(e,t),e.forEach(e=>{t.add(bn(e,void 0,n,r,i))}),t}if(gn(e))return e.subarray();if(vn(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=bn(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),xn(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),xn(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),xn(t,e,n,r,i),t}let a=Qt(e);if(a===`[object Error]`)return e===n?{}:e;switch(a){case en:case $t:case tn:{let t=new e.constructor(e.valueOf());return r.set(e,t),xn(t,e,n,r,i),t}case nn:{let t={};return r.set(e,t),xn(t,e,n,r,i),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}}if(typeof e==`object`&&Sn(a)){let t=a===`[object Object]`&&typeof e.constructor!=`function`?{}:Object.create(Object.getPrototypeOf(e));return r.set(e,t),xn(t,e,n,r,i),t}return e}function xn(e,t,n,r,i){let a=[...Object.keys(t),...pn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=bn(t[s],s,n,r,i))}}function Sn(e){switch(e){case nn:case`[object Array]`:case`[object ArrayBuffer]`:case`[object DataView]`:case tn:case`[object Date]`:case`[object Float32Array]`:case`[object Float64Array]`:case`[object Int8Array]`:case`[object Int16Array]`:case`[object Int32Array]`:case`[object Map]`:case en:case`[object Object]`:case`[object RegExp]`:case`[object Set]`:case $t:case`[object Symbol]`:case`[object Uint8Array]`:case`[object Uint8ClampedArray]`:case`[object Uint16Array]`:case`[object Uint32Array]`:return!0;default:return!1}}function Cn(e){return yn(e)}function wn(e){return e=Cn(e),t=>fn(t,e)}const Tn=/^(?:0|[1-9]\d*)$/;function En(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return Tn.test(e)}}function Dn(e){return typeof e==`object`&&!!e&&Qt(e)===`[object Arguments]`}function On(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&lt(t)&&!(t in Object(e))?mt(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=ut(n[e]);if((r==null||!st(r,t))&&!((Array.isArray(r)||Dn(r))&&En(t)&&Number(t)<r.length))return!1;r=r[t]}return!0}function kn(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=ut(e)}return t=Cn(t),function(n){let r=ht(n,e);return r===void 0?On(n,e):t===void 0?r===void 0:fn(r,t)}}function An(e){if(e==null)return qt;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?kn(e[0],e[1]):wn(e);default:return Xt(e)}}function jn(e){return e===0?0:e}function Mn(e,t=qt){return Yt(e)?Gt(Array.from(e),Kt(An(t),1)).map(jn):[]}function Nn(e,t,n){return t===!0?Mn(e,n):typeof t==`function`?Mn(e,t):e}var Pn=/*#__PURE__*/ (0,g.createContext)(null),Fn=e=>e,F=()=>{var e=(0,g.useContext)(Pn);return e?e.store.dispatch:Fn},In=()=>{},Ln=()=>In,Rn=(e,t)=>e===t;function I(e){var t=(0,g.useContext)(Pn),n=(0,g.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:In,[t,e]);return(0,v.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Ln,t?t.store.getState:In,t?t.store.getState:In,n,Rn)}function zn(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Bn(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function Vn(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var Hn=e=>Array.isArray(e)?e:[e];function Un(e){let t=Array.isArray(e[0])?e[0]:e;return Vn(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Wn(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Gn=class{constructor(e){this.value=e}deref(){return this.value}},Kn=typeof WeakRef<`u`?WeakRef:Gn,qn=0,Jn=1;function Yn(){return{s:qn,v:void 0,o:null,p:null}}function Xn(e,t={}){let n=Yn(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=/* @__PURE__ */ new WeakMap);let r=e.get(n);r===void 0?(t=Yn(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=/* @__PURE__ */ new Map);let r=e.get(n);r===void 0?(t=Yn(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Jn)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Kn(c):c}return s.s=Jn,s.v=c,c}return o.clearCache=()=>{n=Yn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Zn(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),zn(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Xn,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=Hn(c),p=Hn(u),m=Un(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=Wn(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var L=/* @__PURE__ */ Zn(Xn),Qn=Object.assign((e,t=L)=>{Bn(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>Qn});function $n(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function er(e,t,n){return an(n)&&(typeof t==`number`&&Yt(n)&&En(t)&&t<n.length||typeof t==`string`&&t in n)?rn(n[t],e):!1}function tr(e){let t=Object.keys(e),n=Array(t.length);for(let r=0;r<t.length;r++)n[r]=e[t[r]];return n}function nr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}const rr=(e,t,n)=>{if(e!==t){let r=nr(e),i=nr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0},ir=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ar=/^\w*$/;function or(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||dt(e)?!0:typeof e==`string`&&(ar.test(e)||!ir.test(e))||t!=null&&st(t,e)}function sr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Yt(e)?Array.from(e):tr(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?st(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||or(e)?e:{key:e,path:mt(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=rr(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function cr(e,...t){let n=t.length;return n>1&&er(e,t[0],t[1])?t=[]:n>2&&er(t[0],t[1],t[2])&&(t=[t[0]]),sr(e,$n(t),[`asc`])}var lr=e=>e.legend.settings,ur=e=>e.legend.size;L([e=>e.legend.payload,lr],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?cr(r,n):r});var dr=1;function fr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=(0,g.useState)({height:0,left:0,top:0,width:0});return[t,(0,g.useCallback)(e=>{if(e!=null){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>dr||Math.abs(i.left-t.left)>dr||Math.abs(i.top-t.top)>dr||Math.abs(i.width-t.width)>dr)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e])]}function pr(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 mr=typeof Symbol==`function`&&Symbol.observable||`@@observable`,hr=()=>Math.random().toString(36).substring(7).split(``).join(`.`),gr={INIT:`@@redux/INIT${/* @__PURE__ */ hr()}`,REPLACE:`@@redux/REPLACE${/* @__PURE__ */ hr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${hr()}`};function _r(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vr(e,t,n){if(typeof e!=`function`)throw Error(pr(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(pr(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(pr(1));return n(vr)(e,t)}let r=e,i=t,a=/* @__PURE__ */ new Map,o=a,s=0,c=!1;function l(){o===a&&(o=/* @__PURE__ */ new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(pr(3));return i}function d(e){if(typeof e!=`function`)throw Error(pr(4));if(c)throw Error(pr(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(pr(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!_r(e))throw Error(pr(7));if(e.type===void 0)throw Error(pr(8));if(typeof e.type!=`string`)throw Error(pr(17));if(c)throw Error(pr(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(pr(10));r=e,f({type:gr.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(pr(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[mr](){return this}}}return f({type:gr.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[mr]:m}}function yr(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:gr.INIT})===void 0)throw Error(pr(12));if(n(void 0,{type:gr.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(pr(13))})}function br(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{yr(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(pr(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function xr(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Sr(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(pr(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=xr(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function Cr(e){return _r(e)&&`type`in e&&typeof e.type==`string`}var wr=Symbol.for(`immer-nothing`),Tr=Symbol.for(`immer-draftable`),Er=Symbol.for(`immer-state`);function Dr(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Or=Object,kr=Or.getPrototypeOf,Ar=`constructor`,jr=`prototype`,Mr=`configurable`,Nr=`enumerable`,Pr=`writable`,Fr=`value`,Ir=e=>!!e&&!!e[Er];function Lr(e){return e?Br(e)||qr(e)||!!e[Tr]||!!e[Ar]?.[Tr]||Jr(e)||Yr(e):!1}var Rr=Or[jr][Ar].toString(),zr=/* @__PURE__ */ new WeakMap;function Br(e){if(!e||!Xr(e))return!1;let t=kr(e);if(t===null||t===Or[jr])return!0;let n=Or.hasOwnProperty.call(t,Ar)&&t[Ar];if(n===Object)return!0;if(!Zr(n))return!1;let r=zr.get(n);return r===void 0&&(r=Function.toString.call(n),zr.set(n,r)),r===Rr}function Vr(e,t,n=!0){Hr(e)===0?(n?Reflect.ownKeys(e):Or.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Hr(e){let t=e[Er];return t?t.type_:qr(e)?1:Jr(e)?2:Yr(e)?3:0}var Ur=(e,t,n=Hr(e))=>n===2?e.has(t):Or[jr].hasOwnProperty.call(e,t),Wr=(e,t,n=Hr(e))=>n===2?e.get(t):e[t],Gr=(e,t,n,r=Hr(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Kr(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var qr=Array.isArray,Jr=e=>e instanceof Map,Yr=e=>e instanceof Set,Xr=e=>typeof e==`object`,Zr=e=>typeof e==`function`,Qr=e=>typeof e==`boolean`;function $r(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ei=e=>e.copy_||e.base_,ti=e=>e.modified_?e.copy_:e.base_;function ni(e,t){if(Jr(e))return new Map(e);if(Yr(e))return new Set(e);if(qr(e))return Array[jr].slice.call(e);let n=Br(e);if(t===!0||t===`class_only`&&!n){let t=Or.getOwnPropertyDescriptors(e);delete t[Er];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Pr]===!1&&(a[Pr]=!0,a[Mr]=!0),(a.get||a.set)&&(t[i]={[Mr]:!0,[Pr]:!0,[Nr]:a[Nr],[Fr]:e[i]})}return Or.create(kr(e),t)}{let t=kr(e);if(t!==null&&n)return{...e};let r=Or.create(t);return Or.assign(r,e)}}function ri(e,t=!1){return oi(e)||Ir(e)||!Lr(e)||(Hr(e)>1&&Or.defineProperties(e,{set:ai,add:ai,clear:ai,delete:ai}),Or.freeze(e),t&&Vr(e,(e,t)=>{ri(t,!0)},!1)),e}function ii(){Dr(2)}var ai={[Fr]:ii};function oi(e){return e===null||!Xr(e)||Or.isFrozen(e)}var si=`MapSet`,ci=`Patches`,li=`ArrayMethods`,ui={};function di(e){let t=ui[e];return t||Dr(0,e),t}var fi=e=>!!ui[e],pi,mi=()=>pi,hi=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:/* @__PURE__ */ new Set,processedForPatches_:/* @__PURE__ */ new Set,mapSetPlugin_:fi(si)?di(si):void 0,arrayMethodsPlugin_:fi(li)?di(li):void 0});function gi(e,t){t&&(e.patchPlugin_=di(ci),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _i(e){vi(e),e.drafts_.forEach(bi),e.drafts_=null}function vi(e){e===pi&&(pi=e.parent_)}var yi=e=>pi=hi(pi,e);function bi(e){let t=e[Er];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function xi(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Er].modified_&&(_i(t),Dr(4)),Lr(e)&&(e=Si(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Er].base_,e,t)}else e=Si(t,n);return Ci(t,e,!0),_i(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===wr?void 0:e}function Si(e,t){if(oi(t))return t;let n=t[Er];if(!n)return ji(t,e.handledSet_,e);if(!Ti(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);ki(n,e)}return n.copy_}function Ci(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ri(t,n)}function wi(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ti=(e,t)=>e.scope_===t,Ei=[];function Di(e,t,n,r){let i=ei(e),a=e.type_;if(r!==void 0&&Wr(i,r,a)===t){Gr(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=/* @__PURE__ */ new Map;Vr(i,(e,n)=>{if(Ir(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Ei;for(let e of o)Gr(i,e,n,a)}function Oi(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Ti(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=ti(i);Di(e,i.draft_??i,a,n),ki(i,r)})}function ki(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}wi(e)}}function Ai(e,t,n){let{scope_:r}=e;if(Ir(n)){let i=n[Er];Ti(i,r)&&i.callbacks_.push(function(){Bi(e),Di(e,n,ti(i),t)})}else Lr(n)&&e.callbacks_.push(function(){let i=ei(e);e.type_===3?i.has(n)&&ji(n,r.handledSet_,r):Wr(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ji(Wr(e.copy_,t,e.type_),r.handledSet_,r)})}function ji(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Ir(e)||t.has(e)||!Lr(e)||oi(e)||(t.add(e),Vr(e,(r,i)=>{if(Ir(i)){let t=i[Er];Ti(t,n)&&(Gr(e,r,ti(t),e.type_),wi(t))}else Lr(i)&&ji(i,t,n)})),e}function Mi(e,t){let n=qr(e),r={type_:+!!n,scope_:t?t.scope_:mi(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Ni;n&&(i=[r],a=Pi);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Ni={get(e,t){if(t===Er)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=ei(e);if(!Ur(i,t,e.type_))return Li(e,i,t);let a=i[t];if(e.finalized_||!Lr(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&$r(t))return a;if(a===Fi(e.base_,t)||Ii(e,t,a)){Bi(e);let n=e.type_===1?+t:t,r=Hi(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in ei(e)},ownKeys(e){return Reflect.ownKeys(ei(e))},set(e,t,n){let r=Ri(ei(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Fi(ei(e),t),i=r?.[Er];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.delete(t),!0;if(Kr(n,r)&&(n!==void 0||Ur(e.base_,t,e.type_)))return!0;Bi(e),zi(e)}return e.copy_[t]===n&&(n!==void 0||Ur(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Ai(e,t,n)),!0},deleteProperty(e,t){return Bi(e),Fi(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),zi(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=ei(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Pr]:!0,[Mr]:e.type_!==1||t!==`length`,[Nr]:r[Nr],[Fr]:n[t]}},defineProperty(){Dr(11)},getPrototypeOf(e){return kr(e.base_)},setPrototypeOf(){Dr(12)}},Pi={};for(let e in Ni){let t=Ni[e];Pi[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Pi.deleteProperty=function(e,t){return Pi.set.call(this,e,t,void 0)},Pi.set=function(e,t,n){return Ni.set.call(this,e[0],t,n,e[0])};function Fi(e,t){let n=e[Er];return(n?ei(n):e)[t]}function Ii(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||!Lr(n)||n[Er]?!1:e.baseRefs_.has(n)}function Li(e,t,n){let r=Ri(t,n);return r?Fr in r?r[Fr]:r.get?.call(e.draft_):void 0}function Ri(e,t){if(!(t in e))return;let n=kr(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=kr(n)}}function zi(e){e.modified_||(e.modified_=!0,e.parent_&&zi(e.parent_))}function Bi(e){e.copy_||=(e.assigned_=/* @__PURE__ */ new Map,ni(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Vi=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Zr(e)&&!Zr(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Zr(t)||Dr(6),n!==void 0&&!Zr(n)&&Dr(7);let r;if(Lr(e)){let i=yi(this),a=Hi(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?_i(i):vi(i)}return gi(i,n),xi(r,i)}if(!e||!Xr(e)){if(r=t(e),r===void 0&&(r=e),r===wr&&(r=void 0),this.autoFreeze_&&ri(r,!0),n){let t=[],i=[];di(ci).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}Dr(1,e)},this.produceWithPatches=(e,t)=>{if(Zr(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Qr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Qr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Qr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Lr(e)||Dr(8),Ir(e)&&(e=Ui(e));let t=yi(this),n=Hi(t,e,void 0);return n[Er].isManual_=!0,vi(t),n}finishDraft(e,t){let n=e&&e[Er];n&&n.isManual_||Dr(9);let{scope_:r}=n;return gi(r,t),xi(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=di(ci).applyPatches_;return Ir(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Hi(e,t,n,r){let[i,a]=Jr(t)?di(si).proxyMap_(t,n):Yr(t)?di(si).proxySet_(t,n):Mi(t,n);return(n?.scope_??mi()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Oi(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Ui(e){return Ir(e)||Dr(10,e),Wi(e)}function Wi(e){if(!Lr(e)||oi(e))return e;let t=e[Er],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ni(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=ni(e,!0);let i=n;return Yr(n)&&(n=/* @__PURE__ */ new Set),Vr(i,(e,t)=>{Gr(n,e,Wi(t))},r),t&&(t.finalized_=!1),n}globalThis.Iterator?.from;var Gi=new Vi().produce;function Ki(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var qi=Ki(),Ji=Ki;const Yi=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?xr:xr.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Xi(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(no(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Cr(t)&&t.type===e,n}var Zi=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Qi(e){return Lr(e)?Gi(e,()=>{}):e}function $i(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function ea(e){return typeof e==`boolean`}const ta=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Zi;return t&&(ea(t)?a.push(qi):a.push(Ji(t.extraArgument))),a},na=`RTK_autoBatch`,R=()=>e=>({payload:e,meta:{[na]:!0}}),ra=e=>t=>{setTimeout(t,e)},ia=(e,t)=>n=>{let r=!1,i,a,o=()=>{r||(r=!0,cancelAnimationFrame(i),clearTimeout(a),n())};i=e(o),a=setTimeout(o,t)},aa=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=/* @__PURE__ */ new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?ia(window.requestAnimationFrame,100):ra(10):e.type===`callback`?e.queueNotification:ra(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[na],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},oa=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Zi(e);return n&&r.push(aa(typeof n==`object`?n:void 0)),r};function sa(e){let t=ta(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(_r(n))c=br(n);else throw Error(no(1));let l;l=typeof r==`function`?r(t):t();let u=xr;i&&(u=Yi({trace:!1,...typeof i==`object`&&i}));let d=Sr(...l),f=oa(d),p=typeof s==`function`?s(f):f(),m=u(...p);return vr(c,o,m)}function ca(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(no(28));if(r in t)throw Error(no(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function la(e){return typeof e==`function`}function ua(e,t){let[n,r,i]=ca(t),a;if(la(e))a=()=>Qi(e());else{let t=Qi(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n){if(Ir(e)){let r=n(e,t);return r===void 0?e:r}if(Lr(e))return Gi(e,e=>n(e,t));{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(no(9))}return r}}return e},e)}return o.getInitialState=a,o}let da=(e=21)=>{let t=``,n=e;for(;n--;)t+=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`[Math.random()*64|0];return t};const fa=/* @__PURE__ */ Symbol.for(`rtk-slice-createasyncthunk`);function pa(e,t){return`${e}/${t}`}function ma({creators:e}={}){let t=e?.asyncThunk?.[fa];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(no(11));let i=(typeof e.reducers==`function`?e.reducers(_a()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(no(12));if(n in o.sliceCaseReducersByType)throw Error(no(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:pa(n,r),createNotation:typeof e.reducers==`function`};ya(a)?xa(o,a,s,t):va(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?ca(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return ua(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=/* @__PURE__ */ new Map,d=/* @__PURE__ */ new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=$i(d,r,m)),i}function i(t=l){return $i($i(u,n,()=>/* @__PURE__ */ new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=ha(a,t,()=>$i(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function ha(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}const ga=/* @__PURE__ */ ma();function _a(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function va({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!ba(r))throw Error(no(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Xi(e,o):Xi(e))}function ya(e){return e._reducerDefinitionType===`asyncThunk`}function ba(e){return e._reducerDefinitionType===`reducerWithPrepare`}function xa({type:e,reducerName:t},n,r,i){if(!i)throw Error(no(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||Sa,pending:s||Sa,rejected:c||Sa,settled:l||Sa})}function Sa(){}const Ca=`listener`,wa=`completed`,Ta=`cancelled`,Ea=`task-${Ta}`,Da=`task-${wa}`,Oa=`${Ca}-${Ta}`,ka=`${Ca}-${wa}`;var Aa=class{code;name=`TaskAbortError`;message;constructor(e){this.code=e,this.message=`task ${Ta} (reason: ${e})`}};const ja=(e,t)=>{if(typeof e!=`function`)throw TypeError(no(32))},Ma=()=>{},Na=(e,t=Ma)=>(e.catch(t),e),Pa=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),Fa=e=>{if(e.aborted)throw new Aa(e.reason)};function Ia(e,t){let n=Ma;return new Promise((r,i)=>{let a=()=>i(new Aa(e.reason));e.aborted?a():(n=Pa(e,a),t.finally(()=>n()).then(r,i))}).finally(()=>{n=Ma})}const La=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof Aa?`cancelled`:`rejected`,error:e}}finally{t?.()}},Ra=e=>t=>Na(Ia(e,t).then(t=>(Fa(e),t))),za=e=>{let t=Ra(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Ba}=Object,Va={},Ha=`listenerMiddleware`,Ua=(e,t)=>{let n=t=>Pa(e,()=>t.abort(e.reason));return(r,i)=>{ja(r,`taskExecutor`);let a=new AbortController;n(a);let o=La(async()=>{Fa(e),Fa(a.signal);let t=await r({pause:Ra(a.signal),delay:za(a.signal),signal:a.signal});return Fa(a.signal),t},()=>a.abort(Da));return i?.autoJoin&&t.push(o.catch(Ma)),{result:Ra(e)(o),cancel(){a.abort(Ea)}}}},Wa=(e,t)=>{let n=async(n,r)=>{Fa(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await Ia(t,Promise.race(a));return Fa(t),e}finally{i()}};return((e,t)=>Na(n(e,t)))},Ga=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Xi(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(no(21));return ja(a,`options.listener`),{predicate:i,type:t,effect:a}},Ka=/* @__PURE__ */ Ba(e=>{let{type:t,predicate:n,effect:r}=Ga(e);return{id:da(),effect:r,type:t,predicate:n,pending:/* @__PURE__ */ new Set,unsubscribe:()=>{throw Error(no(22))}}},{withTypes:()=>Ka}),qa=(e,t)=>{let{type:n,effect:r,predicate:i}=Ga(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Ja=e=>{e.pending.forEach(e=>{e.abort(Oa)})},Ya=(e,t)=>()=>{for(let e of t.keys())Ja(e);e.clear()},Xa=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Za=/* @__PURE__ */ Ba(/* @__PURE__ */ Xi(`${Ha}/add`),{withTypes:()=>Za}),Qa=/* @__PURE__ */ Xi(`${Ha}/removeAll`),$a=/* @__PURE__ */ Ba(/* @__PURE__ */ Xi(`${Ha}/remove`),{withTypes:()=>$a}),eo=(...e)=>{console.error(`${Ha}/error`,...e)},to=(e={})=>{let t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=eo}=e;ja(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Ja(e)}),c=(e=>{let n=qa(t,e)??Ka(e);return s(n)});Ba(c,{withTypes:()=>c});let l=e=>{let n=qa(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Ja(n)),!!n};Ba(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=Wa(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,Ba({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:za(u.signal),pause:Ra(u.signal),extra:a,signal:u.signal,fork:Ua(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(Oa),n.delete(e))})},cancel:()=>{u.abort(Oa),e.pending.delete(u)},throwIfCancelled:()=>{Fa(u.signal)}})))}catch(e){e instanceof Aa||Xa(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(ka),i(e),e.pending.delete(u)}},d=Ya(t,n);return{middleware:e=>n=>r=>{if(!Cr(r))return n(r);if(Za.match(r))return c(r.payload);if(Qa.match(r)){d();return}if($a.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===Va)throw Error(no(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,Xa(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=Va}return s},startListening:c,stopListening:l,clearListeners:d}};function no(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 ro=ga({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),{setMargin:io,setLayout:ao,setChartSize:oo,setScale:so}=ro.actions,co=ro.reducer;function lo(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function z(e){return Number.isFinite(e)}function uo(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fo(Object(n),!0).forEach(function(t){mo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mo(e,t,n){return(t=ho(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(e){var t=go(e,`string`);return typeof t==`symbol`?t:t+``}function go(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _o(e,t,n){return At(e)||At(t)?n:St(t)?ht(e,t,n):typeof t==`function`?t(e):n}var vo=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:o,layout:s}=t;if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&P(e[a]))return po(po({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&P(e[o]))return po(po({},e),{},{[o]:e[o]+(i||0)})}return e},yo=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,bo=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},xo=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:o,realScaleType:s,isCategorical:c,categoricalDomain:l,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?yt(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return z(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(Mt):c&&l?l.map((e,t)=>{var n=o.map(e);return z(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Mt):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return z(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Mt):o.domain().map((e,t)=>{var n=o.map(e);return z(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(Mt)},So=(e,t)=>{if(!t||t.length!==2||!P(t[0])||!P(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!P(e[0])||e[0]<n)&&(i[0]=n),(!P(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Co={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=bt(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:nt,none:Ze,silhouette:rt,wiggle:it,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=bt(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},wo=(e,t,n)=>{var r=Co[n]??Ze,i=tt().keys(t).value((e,t)=>Number(_o(e,t,0))).order(Qe).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=_o(e[i],t[r],0);Array.isArray(a)&&a.length===2&&P(a[0])&&P(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function To(e){return e==null?void 0:String(e)}function Eo(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:o}=e;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!At(i[t.dataKey])){var s=Ot(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=_o(i,At(o)?t.dataKey:o),l=t.scale.map(c);return P(l)?l:null}var Do=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:o}=e;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=_o(a,t.dataKey,t.scale.domain()[o]);if(At(s))return null;var c=t.scale.map(s);return P(c)?c-i/2+r:null},Oo=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},ko=e=>{var t=e.flat(2).filter(P);return[Math.min(...t),Math.max(...t)]},Ao=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],jo=(e,t,n)=>{if(e!=null)return Ao(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:o}=a,s=o.reduce((e,r)=>{var i=ko(lo(r,t,n));return!z(i[0])||!z(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},Mo=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,No=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Po=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=cr(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c?.coordinate||0)-(l?.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0};function Fo(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return po(po({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Io(e,t){if(e)return String(e);if(typeof t==`string`)return t}var Lo=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},Ro=(e,t)=>t===`centric`?e.angle:e.radius,zo=e=>e.layout.width,Bo=e=>e.layout.height,Vo=e=>e.layout.scale,Ho=e=>e.layout.margin,Uo=L(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Wo=L(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Go=`data-recharts-item-index`,Ko=`data-recharts-item-id`;function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qo(Object(n),!0).forEach(function(t){Yo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yo(e,t,n){return(t=Xo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xo(e){var t=Zo(e,`string`);return typeof t==`symbol`?t:t+``}function Zo(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Qo=e=>e.brush.height;function $o(e){return Wo(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function es(e){return Wo(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function ts(e){return Uo(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function ns(e){return Uo(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var B=L([zo,Bo,Ho,Qo,$o,es,ts,ns,lr,ur],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=Jo(Jo({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=vo(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Jo(Jo({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),rs=L(B,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),is=L(zo,Bo,(e,t)=>({x:0,y:0,width:e,height:t})),as=/*#__PURE__*/ (0,g.createContext)(null),os=()=>(0,g.useContext)(as)!=null,ss=e=>e.brush,cs=L([ss,B,Ho],(e,t,n)=>({height:e.height,x:P(e.x)?e.x:t.left,y:P(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:P(e.width)?e.width:t.width}));function ls(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function us(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=ls(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?((r||i)&&(s=e.apply(this,t)),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function ds(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return us(e,t,{leading:r,maxWait:t,trailing:i})}var fs=function(e,t){var n=[...arguments].slice(2);if(typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e)){if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}}},ps={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ms=(e,t,n)=>{var{width:r=ps.width,height:i=ps.height,aspect:a,maxHeight:o}=n,s=xt(r)?e:Number(r),c=xt(i)?t:Number(i);return a&&a>0&&(s?c=s/a:c&&(s=c*a),o&&c!=null&&c>o&&(c=o)),{calculatedWidth:s,calculatedHeight:c}},hs={width:0,height:0,overflow:`visible`},gs={width:0,overflowX:`visible`},_s={height:0,overflowY:`visible`},vs={},ys=e=>{var{width:t,height:n}=e,r=xt(t),i=xt(n);return r&&i?hs:r?gs:i?_s:vs};function bs(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=ps.width,a=ps.height):i===void 0?i=r&&r>0?void 0:ps.width:a===void 0&&(a=r&&r>0?void 0:ps.height),{width:i,height:a}}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(null,arguments)}function Ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ss(Object(n),!0).forEach(function(t){ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ws(e,t,n){return(t=Ts(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ts(e){var t=Es(e,`string`);return typeof t==`symbol`?t:t+``}function Es(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ds=/*#__PURE__*/ (0,g.createContext)(ps.initialDimension);function Os(e){return uo(e.width)&&uo(e.height)}function ks(e){var{children:t,width:n,height:r}=e,i=(0,g.useMemo)(()=>({width:n,height:r}),[n,r]);return Os(i)?/*#__PURE__*/ g.createElement(Ds.Provider,{value:i},t):null}var As=()=>(0,g.useContext)(Ds),js=/*#__PURE__*/ (0,g.forwardRef)((e,t)=>{var{aspect:n,initialDimension:i=ps.initialDimension,width:a,height:o,minWidth:s=ps.minWidth,minHeight:c,maxHeight:l,children:u,debounce:d=ps.debounce,id:f,className:p,onResize:m,style:h={}}=e,_=(0,g.useRef)(null),v=(0,g.useRef)();v.current=m,(0,g.useImperativeHandle)(t,()=>_.current);var[y,b]=(0,g.useState)({containerWidth:i.width,containerHeight:i.height}),x=(0,g.useCallback)((e,t)=>{b(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,g.useEffect)(()=>{if(_.current==null||typeof ResizeObserver>`u`)return Nt;var e=e=>{var t,n=e[0];if(n!=null){var{width:r,height:i}=n.contentRect;x(r,i),(t=v.current)==null||t.call(v,r,i)}};d>0&&(e=ds(e,d,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=_.current.getBoundingClientRect();return x(n,r),t.observe(_.current),()=>{t.disconnect()}},[x,d]);var{containerWidth:S,containerHeight:C}=y;fs(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var{calculatedWidth:w,calculatedHeight:T}=ms(S,C,{width:a,height:o,aspect:n,maxHeight:l});return fs(w!=null&&w>0||T!=null&&T>0,`The width(%s) and height(%s) of chart should be greater than 0,
2
2
  please check the style of container, or the props width(%s) and height(%s),
3
3
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
4
4
  height and width.`,w,T,a,o,s,c,n),/*#__PURE__*/ g.createElement(`div`,{id:f?`${f}`:void 0,className:r(`recharts-responsive-container`,p),style:Cs(Cs({},h),{},{width:a,height:o,minWidth:s,minHeight:c,maxHeight:l}),ref:_},/*#__PURE__*/ g.createElement(`div`,{style:ys({width:a,height:o})},/*#__PURE__*/ g.createElement(ks,{width:w,height:T},u)))}),Ms=/*#__PURE__*/ (0,g.forwardRef)((e,t)=>{var n=As();if(uo(n.width)&&uo(n.height))return e.children;var{width:r,height:i}=bs({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=ms(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return P(a)&&P(o)?/*#__PURE__*/ g.createElement(ks,{width:a,height:o},e.children):/*#__PURE__*/ g.createElement(js,xs({},e,{width:r,height:i,ref:t}))});function Ns(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 Ps=()=>{var e=os(),t=I(rs),n=I(cs),r=I(ss)?.padding;return!e||!n||!r?t:{width:n.width-r.left-r.right,height:n.height-r.top-r.bottom,x:r.left,y:r.top}},Fs={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Is=()=>I(B)??Fs,Ls=()=>I(zo),Rs=()=>I(Bo),V=e=>e.layout.layoutType,zs=()=>I(V),Bs=()=>{var e=zs();if(e===`horizontal`||e===`vertical`)return e},Vs=e=>{var t=e.layout.layoutType;if(t===`centric`||t===`radial`)return t},Hs=()=>zs()!==void 0,Us=e=>{var t=F(),n=os(),{width:r,height:i}=e,a=As(),o=r,s=i;return a&&(o=a.width>0?a.width:r,s=a.height>0?a.height:i),(0,g.useEffect)(()=>{!n&&uo(o)&&uo(s)&&t(oo({width:o,height:s}))},[t,n,o,s]),null},Ws=Symbol.for(`immer-nothing`),Gs=Symbol.for(`immer-draftable`),Ks=Symbol.for(`immer-state`);function qs(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Js=Object.getPrototypeOf;function Ys(e){return!!e&&!!e[Ks]}function Xs(e){return e?$s(e)||Array.isArray(e)||!!e[Gs]||!!e.constructor?.[Gs]||ac(e)||oc(e):!1}var Zs=Object.prototype.constructor.toString(),Qs=/* @__PURE__ */ new WeakMap;function $s(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;if(n===Object)return!0;if(typeof n!=`function`)return!1;let r=Qs.get(n);return r===void 0&&(r=Function.toString.call(n),Qs.set(n,r)),r===Zs}function ec(e,t,n=!0){tc(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function tc(e){let t=e[Ks];return t?t.type_:Array.isArray(e)?1:ac(e)?2:oc(e)?3:0}function nc(e,t){return tc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rc(e,t,n){let r=tc(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function ic(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function ac(e){return e instanceof Map}function oc(e){return e instanceof Set}function sc(e){return e.copy_||e.base_}function cc(e,t){if(ac(e))return new Map(e);if(oc(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=$s(e);if(t===!0||t===`class_only`&&!n){let t=Object.getOwnPropertyDescriptors(e);delete t[Ks];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Js(e),t)}{let t=Js(e);if(t!==null&&n)return{...e};let r=Object.create(t);return Object.assign(r,e)}}function lc(e,t=!1){return fc(e)||Ys(e)||!Xs(e)||(tc(e)>1&&Object.defineProperties(e,{set:dc,add:dc,clear:dc,delete:dc}),Object.freeze(e),t&&Object.values(e).forEach(e=>lc(e,!0))),e}function uc(){qs(2)}var dc={value:uc};function fc(e){return typeof e!=`object`||!e||Object.isFrozen(e)}var pc={};function mc(e){let t=pc[e];return t||qs(0,e),t}var hc;function gc(){return hc}function _c(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function vc(e,t){t&&(mc(`Patches`),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yc(e){bc(e),e.drafts_.forEach(Sc),e.drafts_=null}function bc(e){e===hc&&(hc=e.parent_)}function xc(e){return hc=_c(hc,e)}function Sc(e){let t=e[Ks];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Cc(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ks].modified_&&(yc(t),qs(4)),Xs(e)&&(e=wc(t,e),t.parent_||Ec(t,e)),t.patches_&&mc(`Patches`).generateReplacementPatches_(n[Ks].base_,e,t.patches_,t.inversePatches_)):e=wc(t,n,[]),yc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Ws?void 0:e}function wc(e,t,n){if(fc(t))return t;let r=e.immer_.shouldUseStrictIteration(),i=t[Ks];if(!i)return ec(t,(r,a)=>Tc(e,i,t,r,a,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return Ec(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,a=t,o=!1;i.type_===3&&(a=new Set(t),t.clear(),o=!0),ec(a,(r,a)=>Tc(e,i,t,r,a,n,o),r),Ec(e,t,!1),n&&e.patches_&&mc(`Patches`).generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Tc(e,t,n,r,i,a,o){if(i==null||typeof i!=`object`&&!o)return;let s=fc(i);if(!s||o){if(Ys(i)){let o=wc(e,i,a&&t&&t.type_!==3&&!nc(t.assigned_,r)?a.concat(r):void 0);if(rc(n,r,o),Ys(o))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(Xs(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&s)return;wc(e,i),(!t||!t.scope_.parent_)&&typeof r!=`symbol`&&(ac(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Ec(e,i)}}}function Ec(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&lc(t,n)}function Dc(e,t){let n=Array.isArray(e),r={type_:+!!n,scope_:t?t.scope_:gc(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=r,a=Oc;n&&(i=[r],a=kc);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var Oc={get(e,t){if(t===Ks)return e;let n=sc(e);if(!nc(n,t))return jc(e,n,t);let r=n[t];return e.finalized_||!Xs(r)?r:r===Ac(e.base_,t)?(Pc(e),e.copy_[t]=Ic(r,e)):r},has(e,t){return t in sc(e)},ownKeys(e){return Reflect.ownKeys(sc(e))},set(e,t,n){let r=Mc(sc(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Ac(sc(e),t),i=r?.[Ks];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(ic(n,r)&&(n!==void 0||nc(e.base_,t)))return!0;Pc(e),Nc(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Ac(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Pc(e),Nc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=sc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty(){qs(11)},getPrototypeOf(e){return Js(e.base_)},setPrototypeOf(){qs(12)}},kc={};ec(Oc,(e,t)=>{kc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),kc.deleteProperty=function(e,t){return kc.set.call(this,e,t,void 0)},kc.set=function(e,t,n){return Oc.set.call(this,e[0],t,n,e[0])};function Ac(e,t){let n=e[Ks];return(n?sc(n):e)[t]}function jc(e,t,n){let r=Mc(t,n);return r?`value`in r?r.value:r.get?.call(e.draft_):void 0}function Mc(e,t){if(!(t in e))return;let n=Js(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Js(n)}}function Nc(e){e.modified_||(e.modified_=!0,e.parent_&&Nc(e.parent_))}function Pc(e){e.copy_||=cc(e.base_,e.scope_.immer_.useStrictShallowCopy_)}var Fc=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if(typeof e==`function`&&typeof t!=`function`){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}typeof t!=`function`&&qs(6),n!==void 0&&typeof n!=`function`&&qs(7);let r;if(Xs(e)){let i=xc(this),a=Ic(e,void 0),o=!0;try{r=t(a),o=!1}finally{o?yc(i):bc(i)}return vc(i,n),Cc(r,i)}if(!e||typeof e!=`object`){if(r=t(e),r===void 0&&(r=e),r===Ws&&(r=void 0),this.autoFreeze_&&lc(r,!0),n){let t=[],i=[];mc(`Patches`).generateReplacementPatches_(e,r,t,i),n(t,i)}return r}qs(1,e)},this.produceWithPatches=(e,t)=>{if(typeof e==`function`)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},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){Xs(e)||qs(8),Ys(e)&&(e=Lc(e));let t=xc(this),n=Ic(e,void 0);return n[Ks].isManual_=!0,bc(t),n}finishDraft(e,t){let n=e&&e[Ks];n&&n.isManual_||qs(9);let{scope_:r}=n;return vc(r,t),Cc(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=mc(`Patches`).applyPatches_;return Ys(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Ic(e,t){let n=ac(e)?mc(`MapSet`).proxyMap_(e,t):oc(e)?mc(`MapSet`).proxySet_(e,t):Dc(e,t);return(t?t.scope_:gc()).drafts_.push(n),n}function Lc(e){return Ys(e)||qs(10,e),Rc(e)}function Rc(e){if(!Xs(e)||fc(e))return e;let t=e[Ks],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=cc(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=cc(e,!0);return ec(n,(e,t)=>{rc(n,e,Rc(t))},r),t&&(t.finalized_=!1),n}new Fc().produce;function H(e){return e}var zc=ga({name:`legend`,initialState:{settings:{layout:`horizontal`,align:`center`,verticalAlign:`middle`,itemSorter:`value`},size:{width:0,height:0},payload:[]},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(H(t.payload))},prepare:R()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Ui(e).payload.indexOf(H(n));i>-1&&(e.payload[i]=H(r))},prepare:R()},removeLegendPayload:{reducer(e,t){var n=Ui(e).payload.indexOf(H(t.payload));n>-1&&e.payload.splice(n,1)},prepare:R()}}}),{setLegendSize:Bc,setLegendSettings:Vc,addLegendPayload:Hc,replaceLegendPayload:Uc,removeLegendPayload:Wc}=zc.actions,Gc=zc.reducer,Kc=/* @__PURE__ */ n((e=>{