import{a as e,r as t,t as n}from"./rolldown-runtime-Cyuzqnbw.js";import{C as r,n as i,w as a}from"./react-Cthodp0K.js";import{wn as o}from"./mantine-Btq-Wi7n.js";var s=n((e=>{var t=a();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return s(function(){a.value=n,a.getSnapshot=t,u(a)&&l({inst:a})},[e,n,t]),o(function(){return u(a)&&l({inst:a}),e(function(){u(a)&&l({inst:a})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),c=n(((e,t)=>{t.exports=s()})),l=e(a()),u=e(r()),d=`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 f(e){return typeof e==`string`?d.includes(e):!1}var p=new Set(`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 m(e){return typeof e==`string`?p.has(e):!1}function h(e){return typeof e==`string`&&e.startsWith(`data-`)}function g(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(m(n)||h(n))&&(t[n]=e[n]);return t}function _(e){if(e==null)return null;if((0,l.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return g(t)}return typeof e==`object`&&!Array.isArray(e)?g(e):null}function v(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(m(n)||h(n)||f(n))&&(t[n]=e[n]);return t}function y(e){return e==null?null:(0,l.isValidElement)(e)?v(e.props):typeof e==`object`&&!Array.isArray(e)?v(e):null}var b=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n=e.children,r=e.width,i=e.height,a=e.viewBox,s=e.className,c=e.style,u=e.title,d=e.desc,f=S(e,b),p=a||{width:r,height:i,x:0,y:0},m=o(`recharts-surface`,s);return l.createElement(`svg`,x({},v(f),{className:m,width:r,height:i,style:c,viewBox:`${p.x} ${p.y} ${p.width} ${p.height}`,ref:t}),l.createElement(`title`,null,u),l.createElement(`desc`,null,d),n)}),T=[`children`,`className`];function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n=e.children,r=e.className,i=D(e,T),a=o(`recharts-layer`,r);return l.createElement(`g`,E({className:a},v(i),{ref:t}),n)}),A=(0,l.createContext)(null),j=()=>(0,l.useContext)(A);function M(e){return function(){return e}}var N=Math.cos,ee=Math.sin,te=Math.sqrt,ne=Math.PI;ne/2;var re=2*ne,ie=Math.PI,ae=2*ie,oe=1e-6,se=ae-oe;function ce(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return ce;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;toe)if(!(Math.abs(u*s-c*l)>oe)||!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((ie-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>oe&&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)>oe||Math.abs(this._y1-l)>oe)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%ae+ae),d>se?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>oe&&this._append`A${n},${n},0,${+(d>=ie)},${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._}};function de(){return new ue}de.prototype=ue.prototype;function fe(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 ue(t)}Array.prototype.slice;function pe(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function me(e){this._context=e}me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function he(e){return new me(e)}function ge(e){return e[0]}function _e(e){return e[1]}function ve(e,t){var n=M(!0),r=null,i=he,a=null,o=fe(s);e=typeof e==`function`?e:e===void 0?ge:M(e),t=typeof t==`function`?t:t===void 0?_e:M(t);function s(s){var c,l=(s=pe(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c=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 ve().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 be=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);break}this._x0=e,this._y0=t}};function xe(e){return new be(e,!0)}function Se(e){return new be(e,!1)}var Ce={draw(e,t){let n=te(t/ne);e.moveTo(n,0),e.arc(0,0,n,0,re)}},we={draw(e,t){let n=te(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Te=te(1/3),Ee=Te*2,De={draw(e,t){let n=te(t/Ee),r=n*Te;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Oe={draw(e,t){let n=te(t),r=-n/2;e.rect(r,r,n,n)}},ke=.8908130915292852,Ae=ee(ne/10)/ee(7*ne/10),je=ee(re/10)*Ae,Me=-N(re/10)*Ae,Ne={draw(e,t){let n=te(t*ke),r=je*n,i=Me*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=re*t/5,o=N(a),s=ee(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Pe=te(3),Fe={draw(e,t){let n=-te(t/(Pe*3));e.moveTo(0,n*2),e.lineTo(-Pe*n,-n),e.lineTo(Pe*n,-n),e.closePath()}},Ie=-.5,Le=te(3)/2,Re=1/te(12),ze=(Re/2+1)*3,Be={draw(e,t){let n=te(t/ze),r=n/2,i=n*Re,a=r,o=n*Re+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Ie*r-Le*i,Le*r+Ie*i),e.lineTo(Ie*a-Le*o,Le*a+Ie*o),e.lineTo(Ie*s-Le*c,Le*s+Ie*c),e.lineTo(Ie*r+Le*i,Ie*i-Le*r),e.lineTo(Ie*a+Le*o,Ie*o-Le*a),e.lineTo(Ie*s+Le*c,Ie*c-Le*s),e.closePath()}};function Ve(e,t){let n=null,r=fe(i);e=typeof e==`function`?e:M(e||Ce),t=typeof t==`function`?t:M(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:M(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:M(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function He(){}function Ue(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 We(e){this._context=e}We.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:Ue(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ue(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ge(e){return new We(e)}function Ke(e){this._context=e}Ke.prototype={areaStart:He,areaEnd:He,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ue(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qe(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:Ue(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ye(e){return new Je(e)}function Xe(e){this._context=e}Xe.prototype={areaStart:He,areaEnd:He,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 Ze(e){return new Xe(e)}function Qe(e){return e<0?-1:1}function $e(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(Qe(a)+Qe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function et(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tt(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 nt(e){this._context=e}nt.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:tt(this,this._t0,et(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var 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,tt(this,et(this,n=$e(this,e,t)),n);break;default:tt(this,this._t0,n=$e(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function rt(e){this._context=new it(e)}(rt.prototype=Object.create(nt.prototype)).point=function(e,t){nt.prototype.point.call(this,t,e)};function it(e){this._context=e}it.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 at(e){return new nt(e)}function ot(e){return new rt(e)}function st(e){this._context=e}st.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=ct(e),i=ct(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=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)}break}this._x=e,this._y=t}};function dt(e){return new ut(e,.5)}function ft(e){return new ut(e,0)}function pt(e){return new ut(e,1)}function mt(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function gt(e,t){return e[t]}function _t(e){let t=[];return t.key=e,t}function vt(){var e=M([]),t=ht,n=mt,r=gt;function i(i){var a=Array.from(e.apply(this,arguments),_t),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===`__proto__`}e.isUnsafeProperty=t})),Ct=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}e.isDeepKey=t})),wt=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}e.toKey=t})),Tt=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(t).join(`,`);let n=String(e);return n===`0`&&Object.is(Number(e),-0)?`-0`:n}e.toString=t})),Et=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Tt(),n=wt();function r(e){if(Array.isArray(e))return e.map(n.toKey);if(typeof e==`symbol`)return[e];e=t.toString(e);let r=[],i=e.length;if(i===0)return r;let a=0,o=``,s=``,c=!1;for(e.charCodeAt(0)===46&&(r.push(``),a++);a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=St(),n=Ct(),r=wt(),i=Et();function a(e,s,c){if(e==null)return c;switch(typeof s){case`string`:{if(t.isUnsafeProperty(s))return c;let r=e[s];return r===void 0?n.isDeepKey(s)?a(e,i.toPath(s),c):c:r}case`number`:case`symbol`:{typeof s==`number`&&(s=r.toKey(s));let t=e[s];return t===void 0?c:t}default:{if(Array.isArray(s))return o(e,s,c);if(s=Object.is(s?.valueOf(),-0)?`-0`:String(s),t.isUnsafeProperty(s))return c;let n=e[s];return n===void 0?c:n}}}function o(e,n,r){if(n.length===0)return r;let i=e;for(let e=0;e{t.exports=Dt().get}))()),kt=4;function At(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:kt),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function jt(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+At(i)+n},``)}var Mt=e=>e===0?0:e>0?1:-1,Nt=e=>typeof e==`number`&&e!=+e,Pt=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,P=e=>(typeof e==`number`||e instanceof Number)&&!Nt(e),Ft=e=>P(e)||typeof e==`string`,It=0,Lt=e=>{var t=++It;return`${e||``}${t}`},Rt=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]:!1;if(!P(e)&&typeof e!=`string`)return n;var i;if(Pt(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Nt(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},zt=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;re&&(typeof t==`function`?t(e):(0,Ot.default)(e,t))===n)}var Ht=e=>e==null,Ut=e=>Ht(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Wt(e){return e!=null}function Gt(){}var Kt=[`type`,`size`,`sizeType`];function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;ttn[`symbol${Ut(e)}`]||Ce,an=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*nn;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},on=(e,t)=>{tn[`symbol${Ut(e)}`]=t},sn=e=>{var t=e.type,n=t===void 0?`circle`:t,r=e.size,i=r===void 0?64:r,a=e.sizeType,s=a===void 0?`area`:a,c=Yt(Yt({},$t(e,Kt)),{},{type:n,size:i,sizeType:s}),u=`circle`;typeof n==`string`&&(u=n);var d=()=>{var e=rn(u),t=Ve().type(e).size(an(i,s,u))();if(t!==null)return t},f=c.className,p=c.cx,m=c.cy,h=v(c);return P(p)&&P(m)&&P(i)?l.createElement(`path`,qt({},h,{className:o(`recharts-symbols`,f),transform:`translate(${p}, ${m})`,d:d()})):null};sn.registerSymbol=on;var cn=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,ln=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,l.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{f(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},un=(e,t,n)=>r=>(e(t,n,r),null),dn=(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];f(i)&&typeof a==`function`&&(r||={},r[i]=un(a,t,n))}),r};function fn(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 pn(e){for(var t=1;t(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var p=t.formatter||i,m=o({"recharts-legend-item":!0,[`legend-item-${r}`]:!0,inactive:t.inactive});if(t.type===`none`)return null;var h=typeof c==`object`?bn({},c):{};h.color=t.inactive?a:h.color||t.color;var g=p?p(t.value,t,r):t.value;return l.createElement(`li`,vn({className:m,style:d,key:`legend-item-${r}`},dn(e,t,r)),l.createElement(w,{width:n,height:n,viewBox:u,style:f,"aria-label":`${t.value} legend icon`},l.createElement(Dn,{data:t,iconType:s,inactiveColor:a})),l.createElement(`span`,{className:`recharts-legend-item-text`,style:h},g))})}var kn=e=>{var t=_n(e,Tn),n=t.payload,r=t.layout,i=t.align;if(!n||!n.length)return null;var a={padding:0,margin:0,textAlign:r===`horizontal`?i:`left`};return l.createElement(`ul`,{className:`recharts-default-legend`,style:a},l.createElement(On,vn({},t,{payload:n})))},An=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){let n=new Map;for(let r=0;r{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}e.ary=t})),Mn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e}e.identity=t})),Nn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Number.isSafeInteger(e)&&e>=0}e.isLength=t})),Pn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Nn();function n(e){return e!=null&&typeof e!=`function`&&t.isLength(e.length)}e.isArrayLike=n})),Fn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`object`&&!!e}e.isObjectLike=t})),In=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Pn(),n=Fn();function r(e){return n.isObjectLike(e)&&t.isArrayLike(e)}e.isArrayLikeObject=r})),Ln=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Dt();function n(e){return function(n){return t.get(n,e)}}e.property=n})),Rn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}e.isObject=t})),zn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null||typeof e!=`object`&&typeof e!=`function`}e.isPrimitive=t})),Bn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}e.isEqualsSameValueZero=t})),Vn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Rn(),n=zn(),r=Bn();function i(e,t,n){return typeof n==`function`?a(e,t,function e(t,r,i,o,s,c){let l=n(t,r,i,o,s,c);return l===void 0?a(t,r,e,c):!!l},new Map):i(e,t,()=>void 0)}function a(e,n,i,s){if(n===e)return!0;switch(typeof n){case`object`:return o(e,n,i,s);case`function`:return Object.keys(n).length>0?a(e,{...n},i,s):r.isEqualsSameValueZero(e,n);default:return t.isObject(e)?typeof n==`string`?n===``:!0:r.isEqualsSameValueZero(e,n)}}function o(e,t,r,i){if(t==null)return!0;if(Array.isArray(t))return c(e,t,r,i);if(t instanceof Map)return s(e,t,r,i);if(t instanceof Set)return l(e,t,r,i);let a=Object.keys(t);if(e==null||n.isPrimitive(e))return a.length===0;if(a.length===0)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let o=0;o{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Vn();function n(e,n){return t.isMatchWith(e,n,()=>void 0)}e.isMatch=n})),Un=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}e.getSymbols=t})),Wn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}e.getTag=t})),Gn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.argumentsTag=`[object Arguments]`,e.arrayBufferTag=`[object ArrayBuffer]`,e.arrayTag=`[object Array]`,e.bigInt64ArrayTag=`[object BigInt64Array]`,e.bigUint64ArrayTag=`[object BigUint64Array]`,e.booleanTag=`[object Boolean]`,e.dataViewTag=`[object DataView]`,e.dateTag=`[object Date]`,e.errorTag=`[object Error]`,e.float32ArrayTag=`[object Float32Array]`,e.float64ArrayTag=`[object Float64Array]`,e.functionTag=`[object Function]`,e.int16ArrayTag=`[object Int16Array]`,e.int32ArrayTag=`[object Int32Array]`,e.int8ArrayTag=`[object Int8Array]`,e.mapTag=`[object Map]`,e.numberTag=`[object Number]`,e.objectTag=`[object Object]`,e.regexpTag=`[object RegExp]`,e.setTag=`[object Set]`,e.stringTag=`[object String]`,e.symbolTag=`[object Symbol]`,e.uint16ArrayTag=`[object Uint16Array]`,e.uint32ArrayTag=`[object Uint32Array]`,e.uint8ArrayTag=`[object Uint8Array]`,e.uint8ClampedArrayTag=`[object Uint8ClampedArray]`})),Kn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.globalThis=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)()})),qn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Kn();function n(e){return t.globalThis.Buffer!==void 0&&t.globalThis.Buffer.isBuffer(e)}e.isBuffer=n})),Jn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}e.isTypedArray=t})),Yn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Un(),n=Wn(),r=Gn(),i=qn(),a=zn(),o=Jn();function s(e,t){return c(e,void 0,e,new Map,t)}function c(e,t,n,r=new Map,s=void 0){let d=s?.(e,t,n,r);if(d!==void 0)return d;if(a.isPrimitive(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 i=0;i{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Yn();function n(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}e.cloneDeep=n})),Zn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Hn(),n=Xn();function r(e){return e=n.cloneDeep(e),n=>t.isMatch(n,e)}e.matches=r})),Qn=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Yn(),n=Wn(),r=Gn();function i(e,i){return t.cloneDeepWith(e,(a,o,s,c)=>{let l=i?.(a,o,s,c);if(l!==void 0)return l;if(typeof e==`object`){if(n.getTag(e)===r.objectTag&&typeof e.constructor!=`function`){let n={};return c.set(e,n),t.copyProperties(n,e,s,c),n}switch(Object.prototype.toString.call(e)){case r.numberTag:case r.stringTag:case r.booleanTag:{let n=new e.constructor(e?.valueOf());return t.copyProperties(n,e),n}case r.argumentsTag:{let n={};return t.copyProperties(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}default:return}}})}e.cloneDeepWith=i})),$n=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Qn();function n(e){return t.cloneDeepWith(e)}e.cloneDeep=n})),er=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=/^(?:0|[1-9]\d*)$/;function n(e,n=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Wn();function n(e){return typeof e==`object`&&!!e&&t.getTag(e)===`[object Arguments]`}e.isArguments=n})),nr=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ct(),n=er(),r=tr(),i=Et();function a(e,a){let o;if(o=Array.isArray(a)?a:typeof a==`string`&&t.isDeepKey(a)&&e?.[a]==null?i.toPath(a):[a],o.length===0)return!1;let s=e;for(let e=0;e{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Hn(),n=wt(),r=$n(),i=Dt(),a=nr();function o(e,o){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=n.toKey(e);break}return o=r.cloneDeep(o),function(n){let r=i.get(n,e);return r===void 0?a.has(n,e):o===void 0?r===void 0:t.isMatch(r,o)}}e.matchesProperty=o})),ir=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Mn(),n=Ln(),r=Zn(),i=rr();function a(e){if(e==null)return t.identity;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?i.matchesProperty(e[0],e[1]):r.matches(e);case`string`:case`symbol`:case`number`:return n.property(e)}}e.iteratee=a})),ar=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=An(),n=jn(),r=Mn(),i=In(),a=ir();function o(e,o=r.identity){return i.isArrayLikeObject(e)?t.uniqBy(Array.from(e),n.ary(a.iteratee(o),1)):[]}e.uniqBy=o})),or=e(n(((e,t)=>{t.exports=ar().uniqBy}))());function sr(e,t,n){return t===!0?(0,or.default)(e,n):typeof t==`function`?(0,or.default)(e,t):e}var cr=n((e=>{var t=a(),n=c();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,o=n.useSyncExternalStore,s=t.useRef,l=t.useEffect,u=t.useMemo,d=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var c=s(null);if(c.current===null){var f={hasValue:!1,value:null};c.current=f}else f=c.current;c=u(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),a!==void 0&&f.hasValue){var t=f.value;if(a(t,e))return c=t}return c=e}if(t=c,i(s,e))return t;var n=r(e);return a!==void 0&&a(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,a]);var p=o(e,c[0],c[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),d(p),p}})),lr=n(((e,t)=>{t.exports=cr()}))(),ur=(0,l.createContext)(null),dr=e=>e,fr=()=>{var e=(0,l.useContext)(ur);return e?e.store.dispatch:dr},pr=()=>{},mr=()=>pr,hr=(e,t)=>e===t;function F(e){var t=(0,l.useContext)(ur),n=(0,l.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:pr,[t,e]);return(0,lr.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:mr,t?t.store.getState:pr,t?t.store.getState:pr,n,hr)}function gr(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function _r(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 vr=e=>Array.isArray(e)?e:[e];function yr(e){let t=Array.isArray(e[0])?e[0]:e;return _r(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function br(e,t){let n=[],{length:r}=e;for(let i=0;i`u`?xr:WeakRef,Cr=0,wr=1;function Tr(){return{s:Cr,v:void 0,o:null,p:null}}function Er(e){return e instanceof Sr?e.deref():e}function Dr(e,t={}){let n=Tr(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e{n=Tr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Or(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()),gr(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Dr,argsMemoizeOptions:u=[]}={...n,...a},d=vr(c),f=vr(u),p=yr(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=br(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var I=Or(Dr),kr=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}e.compareValues=(e,n,r)=>{if(e!==n){let i=t(e),a=t(n);if(i===a&&i===0){if(en)return r===`desc`?-1:1}return r===`desc`?a-i:i-a}return 0}})),Ar=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`||e instanceof Symbol}e.isSymbol=t})),jr=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ar(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(e,i){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||t.isSymbol(e)?!0:typeof e==`string`&&(r.test(e)||!n.test(e))||i!=null&&Object.hasOwn(i,e)}e.isKey=i})),Mr=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=kr(),n=jr(),r=Et();function i(e,i,a,o){if(e==null)return[];a=o?void 0:a,Array.isArray(e)||(e=Object.values(e)),Array.isArray(i)||(i=i==null?[null]:[i]),i.length===0&&(i=[null]),Array.isArray(a)||(a=a==null?[]:[a]),a=a.map(e=>String(e));let s=(e,t)=>{let n=e;for(let e=0;et==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:s(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?s(t,e):typeof t==`object`?t[e]:t,l=i.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||n.isKey(e)?e:{key:e,path:r.toPath(e)}));return e.map(e=>({original:e,criteria:l.map(t=>c(t,e))})).slice().sort((e,n)=>{for(let r=0;re.original)}e.orderBy=i})),Nr=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=er(),n=Pn(),r=Rn(),i=Bn();function a(e,a,o){return r.isObject(o)&&(typeof a==`number`&&n.isArrayLike(o)&&t.isIndex(a)&&a{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Mr(),n=Nr(),r=Pr();function i(e,...i){let a=i.length;return a>1&&r.isIterateeCall(e,i[0],i[1])?i=[]:a>2&&r.isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),t.orderBy(e,n.flatten(i),[`asc`])}e.sortBy=i})),Ir=e(n(((e,t)=>{t.exports=Fr().sortBy}))()),Lr=e=>e.legend.settings,Rr=e=>e.legend.size,zr=I([e=>e.legend.payload,Lr],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?(0,Ir.default)(r,n):r});function Br(){return F(zr)}function Vr(e,t){return Kr(e)||Gr(e,t)||Ur(e,t)||Hr()}function Hr(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ur(e,t){if(e){if(typeof e==`string`)return Wr(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wr(e,t):void 0}}function Wr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nqr||Math.abs(e.left-t.left)>qr||Math.abs(e.top-t.top)>qr||Math.abs(e.width-t.width)>qr}function Yr(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function Xr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=Vr((0,l.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,l.useRef)(null),a=(0,l.useRef)(n);a.current=n;var o=(0,l.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=Yr(e);if(Jr(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=Yr(e);Jr(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,l.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}function Zr(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 Qr=typeof Symbol==`function`&&Symbol.observable||`@@observable`,$r=()=>Math.random().toString(36).substring(7).split(``).join(`.`),ei={INIT:`@@redux/INIT${$r()}`,REPLACE:`@@redux/REPLACE${$r()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$r()}`};function ti(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 ni(e,t,n){if(typeof e!=`function`)throw Error(Zr(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Zr(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Zr(1));return n(ni)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Zr(3));return i}function d(e){if(typeof e!=`function`)throw Error(Zr(4));if(c)throw Error(Zr(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Zr(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!ti(e))throw Error(Zr(7));if(e.type===void 0)throw Error(Zr(8));if(typeof e.type!=`string`)throw Error(Zr(17));if(c)throw Error(Zr(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(Zr(10));r=e,f({type:ei.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Zr(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Qr](){return this}}}return f({type:ei.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Qr]:m}}function ri(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:ei.INIT})===void 0)throw Error(Zr(12));if(n(void 0,{type:ei.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Zr(13))})}function ii(e){let t=Object.keys(e),n={};for(let r=0;re:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function oi(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Zr(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=ai(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function si(e){return ti(e)&&`type`in e&&typeof e.type==`string`}var ci=Symbol.for(`immer-nothing`),li=Symbol.for(`immer-draftable`),ui=Symbol.for(`immer-state`);function di(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fi=Object,pi=fi.getPrototypeOf,mi=`constructor`,hi=`prototype`,gi=`configurable`,_i=`enumerable`,vi=`writable`,yi=`value`,bi=e=>!!e&&!!e[ui];function xi(e){return e?wi(e)||ji(e)||!!e[li]||!!e[mi]?.[li]||Mi(e)||Ni(e):!1}var Si=fi[hi][mi].toString(),Ci=new WeakMap;function wi(e){if(!e||!Pi(e))return!1;let t=pi(e);if(t===null||t===fi[hi])return!0;let n=fi.hasOwnProperty.call(t,mi)&&t[mi];if(n===Object)return!0;if(!Fi(n))return!1;let r=Ci.get(n);return r===void 0&&(r=Function.toString.call(n),Ci.set(n,r)),r===Si}function Ti(e,t,n=!0){Ei(e)===0?(n?Reflect.ownKeys(e):fi.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ei(e){let t=e[ui];return t?t.type_:ji(e)?1:Mi(e)?2:Ni(e)?3:0}var Di=(e,t,n=Ei(e))=>n===2?e.has(t):fi[hi].hasOwnProperty.call(e,t),Oi=(e,t,n=Ei(e))=>n===2?e.get(t):e[t],ki=(e,t,n,r=Ei(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Ai(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var ji=Array.isArray,Mi=e=>e instanceof Map,Ni=e=>e instanceof Set,Pi=e=>typeof e==`object`,Fi=e=>typeof e==`function`,Ii=e=>typeof e==`boolean`;function Li(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Ri=e=>e.copy_||e.base_,zi=e=>e.modified_?e.copy_:e.base_;function Bi(e,t){if(Mi(e))return new Map(e);if(Ni(e))return new Set(e);if(ji(e))return Array[hi].slice.call(e);let n=wi(e);if(t===!0||t===`class_only`&&!n){let t=fi.getOwnPropertyDescriptors(e);delete t[ui];let n=Reflect.ownKeys(t);for(let r=0;r1&&fi.defineProperties(e,{set:Ui,add:Ui,clear:Ui,delete:Ui}),fi.freeze(e),t&&Ti(e,(e,t)=>{Vi(t,!0)},!1),e)}function Hi(){di(2)}var Ui={[yi]:Hi};function Wi(e){return e===null||!Pi(e)?!0:fi.isFrozen(e)}var Gi=`MapSet`,Ki=`Patches`,qi=`ArrayMethods`,Ji={};function Yi(e){let t=Ji[e];return t||di(0,e),t}var Xi=e=>!!Ji[e],Zi,Qi=()=>Zi,$i=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Xi(Gi)?Yi(Gi):void 0,arrayMethodsPlugin_:Xi(qi)?Yi(qi):void 0});function ea(e,t){t&&(e.patchPlugin_=Yi(Ki),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ta(e){na(e),e.drafts_.forEach(ia),e.drafts_=null}function na(e){e===Zi&&(Zi=e.parent_)}var ra=e=>Zi=$i(Zi,e);function ia(e){let t=e[ui];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function aa(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[ui].modified_&&(ta(t),di(4)),xi(e)&&(e=oa(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[ui].base_,e,t)}else e=oa(t,n);return sa(t,e,!0),ta(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===ci?void 0:e}function oa(e,t){if(Wi(t))return t;let n=t[ui];if(!n)return ha(t,e.handledSet_,e);if(!la(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);pa(n,e)}return n.copy_}function sa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Vi(t,n)}function ca(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var la=(e,t)=>e.scope_===t,ua=[];function da(e,t,n,r){let i=Ri(e),a=e.type_;if(r!==void 0&&Oi(i,r,a)===t){ki(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Ti(i,(e,n)=>{if(bi(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??ua;for(let e of o)ki(i,e,n,a)}function fa(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!la(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=zi(i);da(e,i.draft_??i,a,n),pa(i,r)})}function pa(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)}ca(e)}}function ma(e,t,n){let{scope_:r}=e;if(bi(n)){let i=n[ui];la(i,r)&&i.callbacks_.push(function(){Ca(e),da(e,n,zi(i),t)})}else xi(n)&&e.callbacks_.push(function(){let i=Ri(e);e.type_===3?i.has(n)&&ha(n,r.handledSet_,r):Oi(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ha(Oi(e.copy_,t,e.type_),r.handledSet_,r)})}function ha(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||bi(e)||t.has(e)||!xi(e)||Wi(e)?e:(t.add(e),Ti(e,(r,i)=>{if(bi(i)){let t=i[ui];la(t,n)&&(ki(e,r,zi(t),e.type_),ca(t))}else xi(i)&&ha(i,t,n)}),e)}function ga(e,t){let n=ji(e),r={type_:+!!n,scope_:t?t.scope_:Qi(),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=_a;n&&(i=[r],a=va);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var _a={get(e,t){if(t===ui)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=Ri(e);if(!Di(i,t,e.type_))return ba(e,i,t);let a=i[t];if(e.finalized_||!xi(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Li(t))return a;if(a===ya(e.base_,t)){Ca(e);let n=e.type_===1?+t:t,r=Ta(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Ri(e)},ownKeys(e){return Reflect.ownKeys(Ri(e))},set(e,t,n){let r=xa(Ri(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=ya(Ri(e),t),i=r?.[ui];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Ai(n,r)&&(n!==void 0||Di(e.base_,t,e.type_)))return!0;Ca(e),Sa(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),ma(e,t,n),!0)},deleteProperty(e,t){return Ca(e),ya(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Sa(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Ri(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[vi]:!0,[gi]:e.type_!==1||t!==`length`,[_i]:r[_i],[yi]:n[t]}},defineProperty(){di(11)},getPrototypeOf(e){return pi(e.base_)},setPrototypeOf(){di(12)}},va={};for(let e in _a){let t=_a[e];va[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}va.deleteProperty=function(e,t){return va.set.call(this,e,t,void 0)},va.set=function(e,t,n){return _a.set.call(this,e[0],t,n,e[0])};function ya(e,t){let n=e[ui];return(n?Ri(n):e)[t]}function ba(e,t,n){let r=xa(t,n);return r?yi in r?r[yi]:r.get?.call(e.draft_):void 0}function xa(e,t){if(!(t in e))return;let n=pi(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=pi(n)}}function Sa(e){e.modified_||(e.modified_=!0,e.parent_&&Sa(e.parent_))}function Ca(e){e.copy_||=(e.assigned_=new Map,Bi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wa=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Fi(e)&&!Fi(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Fi(t)||di(6),n!==void 0&&!Fi(n)&&di(7);let r;if(xi(e)){let i=ra(this),a=Ta(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?ta(i):na(i)}return ea(i,n),aa(r,i)}else if(!e||!Pi(e)){if(r=t(e),r===void 0&&(r=e),r===ci&&(r=void 0),this.autoFreeze_&&Vi(r,!0),n){let t=[],i=[];Yi(Ki).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else di(1,e)},this.produceWithPatches=(e,t)=>{if(Fi(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]},Ii(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ii(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ii(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){xi(e)||di(8),bi(e)&&(e=Ea(e));let t=ra(this),n=Ta(t,e,void 0);return n[ui].isManual_=!0,na(t),n}finishDraft(e,t){let n=e&&e[ui];(!n||!n.isManual_)&&di(9);let{scope_:r}=n;return ea(r,t),aa(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=Yi(Ki).applyPatches_;return bi(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Ta(e,t,n,r){let[i,a]=Mi(t)?Yi(Gi).proxyMap_(t,n):Ni(t)?Yi(Gi).proxySet_(t,n):ga(t,n);return(n?.scope_??Qi()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?fa(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 Ea(e){return bi(e)||di(10,e),Da(e)}function Da(e){if(!xi(e)||Wi(e))return e;let t=e[ui],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Bi(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Bi(e,!0);return Ti(n,(e,t)=>{ki(n,e,Da(t))},r),t&&(t.finalized_=!1),n}var Oa=new wa().produce;function ka(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Aa=ka(),ja=ka,Ma=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?ai:ai.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Na(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Uo(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=>si(t)&&t.type===e,n}var Pa=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 Fa(e){return xi(e)?Oa(e,()=>{}):e}function Ia(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function La(e){return typeof e==`boolean`}var Ra=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Pa;return t&&(La(t)?a.push(Aa):a.push(ja(t.extraArgument))),a},za=`RTK_autoBatch`,Ba=()=>e=>({payload:e,meta:{[za]:!0}}),Va=e=>t=>{setTimeout(t,e)},Ha=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},Ua=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?Ha(window.requestAnimationFrame,100):Va(10):e.type===`callback`?e.queueNotification:Va(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?.[za],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Wa=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Pa(e);return n&&r.push(Ua(typeof n==`object`?n:void 0)),r};function Ga(e){let t=Ra(),{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(ti(n))c=ii(n);else throw Error(Uo(1));let l;l=typeof r==`function`?r(t):t();let u=ai;i&&(u=Ma({trace:!1,...typeof i==`object`&&i}));let d=Wa(oi(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return ni(c,o,p)}function Ka(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Uo(28));if(r in t)throw Error(Uo(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 qa(e){return typeof e==`function`}function Ja(e,t){let[n,r,i]=Ka(t),a;if(qa(e))a=()=>Fa(e());else{let t=Fa(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(bi(e)){let r=n(e,t);return r===void 0?e:r}else if(xi(e))return Oa(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var Ya=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,Xa=(e=21)=>{let t=``,n=e;for(;n--;)t+=Ya[Math.random()*64|0];return t},Za=Symbol.for(`rtk-slice-createasyncthunk`);function Qa(e,t){return`${e}/${t}`}function $a({creators:e}={}){let t=e?.asyncThunk?.[Za];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Uo(11));let i=(typeof e.reducers==`function`?e.reducers(no()):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(Uo(12));if(n in o.sliceCaseReducersByType)throw Error(Uo(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:Qa(n,r),createNotation:typeof e.reducers==`function`};io(a)?oo(o,a,s,t):ro(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Ka(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return Ja(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=new Map,d=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=Ia(d,r,m)),i}function i(t=l){return Ia(Ia(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=eo(a,t,()=>Ia(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 eo(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}var to=$a();function no(){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 ro({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!ao(r))throw Error(Uo(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Na(e,o):Na(e))}function io(e){return e._reducerDefinitionType===`asyncThunk`}function ao(e){return e._reducerDefinitionType===`reducerWithPrepare`}function oo({type:e,reducerName:t},n,r,i){if(!i)throw Error(Uo(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||so,pending:s||so,rejected:c||so,settled:l||so})}function so(){}var co=`task`,lo=`listener`,uo=`completed`,fo=`cancelled`,po=`task-${fo}`,mo=`task-${uo}`,ho=`${lo}-${fo}`,go=`${lo}-${uo}`,_o=class{constructor(e){this.code=e,this.message=`${co} ${fo} (reason: ${e})`}code;name=`TaskAbortError`;message},vo=(e,t)=>{if(typeof e!=`function`)throw TypeError(Uo(32))},yo=()=>{},bo=(e,t=yo)=>(e.catch(t),e),xo=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),So=e=>{if(e.aborted)throw new _o(e.reason)};function Co(e,t){let n=yo;return new Promise((r,i)=>{let a=()=>i(new _o(e.reason));if(e.aborted){a();return}n=xo(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=yo})}var wo=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof _o?`cancelled`:`rejected`,error:e}}finally{t?.()}},To=e=>t=>bo(Co(e,t).then(t=>(So(e),t))),Eo=e=>{let t=To(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Do}=Object,Oo={},ko=`listenerMiddleware`,Ao=(e,t)=>{let n=t=>xo(e,()=>t.abort(e.reason));return(r,i)=>{vo(r,`taskExecutor`);let a=new AbortController;n(a);let o=wo(async()=>{So(e),So(a.signal);let t=await r({pause:To(a.signal),delay:Eo(a.signal),signal:a.signal});return So(a.signal),t},()=>a.abort(mo));return i?.autoJoin&&t.push(o.catch(yo)),{result:To(e)(o),cancel(){a.abort(po)}}}},jo=(e,t)=>{let n=async(n,r)=>{So(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 Co(t,Promise.race(a));return So(t),e}finally{i()}};return((e,t)=>bo(n(e,t)))},Mo=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Na(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Uo(21));return vo(a,`options.listener`),{predicate:i,type:t,effect:a}},No=Do(e=>{let{type:t,predicate:n,effect:r}=Mo(e);return{id:Xa(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Uo(22))}}},{withTypes:()=>No}),Po=(e,t)=>{let{type:n,effect:r,predicate:i}=Mo(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Fo=e=>{e.pending.forEach(e=>{e.abort(ho)})},Io=(e,t)=>()=>{for(let e of t.keys())Fo(e);e.clear()},Lo=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Ro=Do(Na(`${ko}/add`),{withTypes:()=>Ro}),zo=Na(`${ko}/removeAll`),Bo=Do(Na(`${ko}/remove`),{withTypes:()=>Bo}),Vo=(...e)=>{console.error(`${ko}/error`,...e)},Ho=(e={})=>{let t=new Map,n=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=Vo}=e;vo(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Fo(e)}),c=(e=>s(Po(t,e)??No(e)));Do(c,{withTypes:()=>c});let l=e=>{let n=Po(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Fo(n)),!!n};Do(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=jo(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,Do({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:Eo(u.signal),pause:To(u.signal),extra:a,signal:u.signal,fork:Ao(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(ho),n.delete(e))})},cancel:()=>{u.abort(ho),e.pending.delete(u)},throwIfCancelled:()=>{So(u.signal)}})))}catch(e){e instanceof _o||Lo(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(go),i(e),e.pending.delete(u)}},d=Io(t,n);return{middleware:e=>n=>r=>{if(!si(r))return n(r);if(Ro.match(r))return c(r.payload);if(zo.match(r)){d();return}if(Bo.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===Oo)throw Error(Uo(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,Lo(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=Oo}return s},startListening:c,stopListening:l,clearListeners:d}};function Uo(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 Wo=to({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}}}),Go=Wo.actions,Ko=Go.setMargin,qo=Go.setLayout,Jo=Go.setChartSize,Yo=Go.setScale,Xo=Wo.reducer;function Zo(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function L(e){return Number.isFinite(e)}function Qo(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function $o(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 es(e){for(var t=1;t{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout;if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&P(e[a]))return es(es({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&P(e[o]))return es(es({},e),{},{[o]:e[o]+(i||0)})}return e},os=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,ss=(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},cs=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,s=e.realScaleType,c=e.isCategorical,l=e.categoricalDomain,u=e.tickCount,d=e.ticks,f=e.niceTicks,p=e.axisType;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?Mt(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 L(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(Wt):c&&l?l.map((e,t)=>{var n=o.map(e);return L(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Wt):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return L(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Wt):o.domain().map((e,t)=>{var n=o.map(e);return L(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(Wt)},ls=(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]r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:yt,none:mt,silhouette:bt,wiggle:xt,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},ds=(e,t,n)=>{var r=us[n]??mt,i=vt().keys(t).value((e,t)=>Number(is(e,t,0))).order(ht).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=is(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 fs(e){return e==null?void 0:String(e)}function ps(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ht(i[t.dataKey])){var s=Vt(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=is(i,Ht(o)?t.dataKey:o),l=t.scale.map(c);return P(l)?l:null}var ms=e=>{var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,a=e.entry,o=e.index;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=is(a,t.dataKey,t.scale.domain()[o]);if(Ht(s))return null;var c=t.scale.map(s);return P(c)?c-i/2+r:null},hs=e=>{var t=e.numericAxis,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]},gs=e=>{var t=e.flat(2).filter(P);return[Math.min(...t),Math.max(...t)]},_s=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],vs=(e,t,n)=>{if(!(e==null||Object.keys(e).length===0))return _s(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=gs(Zo(r,t,n));return!L(i[0])||!L(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},ys=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bs=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xs=(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=(0,Ir.default)(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},Ts=(e,t)=>t===`centric`?e.angle:e.radius,Es=e=>e.layout.width,Ds=e=>e.layout.height,Os=e=>e.layout.scale,ks=e=>e.layout.margin,As=I(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),js=I(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Ms=`data-recharts-item-index`;function Ns(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 Ps(e){for(var t=1;te.brush.height;function zs(e){return js(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Bs(e){return js(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Vs(e){return As(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function Hs(e){return As(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var Us=I([Es,Ds,ks,Rs,zs,Bs,Vs,Hs,Lr,Rr],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=Ps(Ps({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=as(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Ps(Ps({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Ws=I(Us,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Gs=I(Es,Ds,(e,t)=>({x:0,y:0,width:e,height:t})),Ks=(0,l.createContext)(null),qs=()=>(0,l.useContext)(Ks)!=null,Js=e=>e.brush,Ys=I([Js,Us,ks],(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})),Xs=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(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}e.debounce=t})),Zs=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Xs();function n(e,n=0,r={}){typeof r!=`object`&&(r={});let{leading:i=!1,trailing:a=!0,maxWait:o}=r,s=[,,];i&&(s[0]=`leading`),a&&(s[1]=`trailing`);let c,l=null,u=t.debounce(function(...t){c=e.apply(this,t),l=null},n,{edges:s}),d=function(...t){return o!=null&&(l===null&&(l=Date.now()),Date.now()-l>=o)?(c=e.apply(this,t),l=Date.now(),u.cancel(),u.schedule(),c):(u.apply(this,t),c)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),c),d}e.debounce=n})),Qs=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Zs();function n(e,n=0,r={}){let{leading:i=!0,trailing:a=!0}=r;return t.debounce(e,n,{leading:i,maxWait:n,trailing:a})}e.throttle=n})),$s=e(n(((e,t)=>{t.exports=Qs().throttle}))()),ec=!0,tc=function(e,t){var n=[...arguments].slice(2);if(ec&&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++]))}},nc={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},rc=(e,t,n)=>{var r=n.width,i=r===void 0?nc.width:r,a=n.height,o=a===void 0?nc.height:a,s=n.aspect,c=n.maxHeight,l=Pt(i)?e:Number(i),u=Pt(o)?t:Number(o);return s&&s>0&&(l?u=l/s:u&&(l=u*s),c&&u!=null&&u>c&&(u=c)),{calculatedWidth:l,calculatedHeight:u}},ic={width:0,height:0,overflow:`visible`},ac={width:0,overflowX:`visible`},oc={height:0,overflowY:`visible`},sc={},cc=e=>{var t=e.width,n=e.height,r=Pt(t),i=Pt(n);return r&&i?ic:r?ac:i?oc:sc};function lc(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=nc.width,a=nc.height):i===void 0?i=r&&r>0?void 0:nc.width:a===void 0&&(a=r&&r>0?void 0:nc.height),{width:i,height:a}}var uc=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n({width:n,height:r}),[n,r]);return Ec(i)?l.createElement(Tc.Provider,{value:i},t):null}var Oc=()=>(0,l.useContext)(Tc),kc=(0,l.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?nc.initialDimension:r,a=e.width,s=e.height,c=e.minWidth,u=c===void 0?nc.minWidth:c,d=e.minHeight,f=e.maxHeight,p=e.children,m=e.debounce,h=m===void 0?nc.debounce:m,g=e.id,_=e.className,v=e.onResize,y=e.style,b=y===void 0?{}:y,x=Cc(e,uc),S=(0,l.useRef)(null),C=(0,l.useRef)();C.current=v,(0,l.useImperativeHandle)(t,()=>S.current);var w=_c((0,l.useState)({containerWidth:i.width,containerHeight:i.height}),2),T=w[0],E=w[1],D=(0,l.useCallback)((e,t)=>{E(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,l.useEffect)(()=>{if(S.current==null||typeof ResizeObserver>`u`)return Gt;var e=e=>{var t,n=e[0];if(n!=null){var r=n.contentRect,i=r.width,a=r.height;D(i,a),(t=C.current)==null||t.call(C,i,a)}};h>0&&(e=(0,$s.default)(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect(),r=n.width,i=n.height;return D(r,i),t.observe(S.current),()=>{t.disconnect()}},[D,h]);var O=T.containerWidth,k=T.containerHeight;tc(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var A=rc(O,k,{width:a,height:s,aspect:n,maxHeight:f}),j=A.calculatedWidth,M=A.calculatedHeight;return tc(O<0||k<0||j!=null&&j>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the height and width.`,j,M,a,s,u,d,n),l.createElement(`div`,dc({id:g?`${g}`:void 0,className:o(`recharts-responsive-container`,_),style:pc(pc({},b),{},{width:a,height:s,minWidth:u,minHeight:d,maxHeight:f}),ref:S},x),l.createElement(`div`,{style:cc({width:a,height:s})},l.createElement(Dc,{width:j,height:M},p)))}),Ac=(0,l.forwardRef)((e,t)=>{var n=Oc();if(Qo(n.width)&&Qo(n.height))return e.children;var r=lc({width:e.width,height:e.height,aspect:e.aspect}),i=r.width,a=r.height,o=rc(void 0,void 0,{width:i,height:a,aspect:e.aspect,maxHeight:e.maxHeight}),s=o.calculatedWidth,c=o.calculatedHeight;return P(s)&&P(c)?l.createElement(Dc,{width:s,height:c},e.children):l.createElement(kc,dc({},e,{width:i,height:a,ref:t}))});function jc(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 Mc=()=>{var e=qs(),t=F(Ws),n=F(Ys),r=F(Js)?.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}},Nc={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Pc=()=>F(Us)??Nc,Fc=()=>F(Es),Ic=()=>F(Ds),Lc=()=>F(e=>e.layout.margin),Rc=e=>e.layout.layoutType,zc=()=>F(Rc),Bc=()=>{var e=zc();if(e===`horizontal`||e===`vertical`)return e},Vc=e=>{var t=e.layout.layoutType;if(t===`centric`||t===`radial`)return t},Hc=()=>zc()!==void 0,Uc=e=>{var t=fr(),n=qs(),r=e.width,i=e.height,a=Oc(),o=r,s=i;return a&&(o=a.width>0?a.width:r,s=a.height>0?a.height:i),(0,l.useEffect)(()=>{!n&&Qo(o)&&Qo(s)&&t(Jo({width:o,height:s}))},[t,n,o,s]),null},Wc=Symbol.for(`immer-nothing`),Gc=Symbol.for(`immer-draftable`),Kc=Symbol.for(`immer-state`);function qc(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Jc=Object.getPrototypeOf;function Yc(e){return!!e&&!!e[Kc]}function Xc(e){return e?$c(e)||Array.isArray(e)||!!e[Gc]||!!e.constructor?.[Gc]||al(e)||ol(e):!1}var Zc=Object.prototype.constructor.toString(),Qc=new WeakMap;function $c(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=Qc.get(n);return r===void 0&&(r=Function.toString.call(n),Qc.set(n,r)),r===Zc}function el(e,t,n=!0){tl(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 tl(e){let t=e[Kc];return t?t.type_:Array.isArray(e)?1:al(e)?2:ol(e)?3:0}function nl(e,t){return tl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rl(e,t,n){let r=tl(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function il(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function al(e){return e instanceof Map}function ol(e){return e instanceof Set}function sl(e){return e.copy_||e.base_}function cl(e,t){if(al(e))return new Map(e);if(ol(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=$c(e);if(t===!0||t===`class_only`&&!n){let t=Object.getOwnPropertyDescriptors(e);delete t[Kc];let n=Reflect.ownKeys(t);for(let r=0;r1&&Object.defineProperties(e,{set:dl,add:dl,clear:dl,delete:dl}),Object.freeze(e),t&&Object.values(e).forEach(e=>ll(e,!0)),e)}function ul(){qc(2)}var dl={value:ul};function fl(e){return typeof e!=`object`||!e?!0:Object.isFrozen(e)}var pl={};function ml(e){let t=pl[e];return t||qc(0,e),t}var hl;function gl(){return hl}function _l(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function vl(e,t){t&&(ml(`Patches`),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yl(e){bl(e),e.drafts_.forEach(Sl),e.drafts_=null}function bl(e){e===hl&&(hl=e.parent_)}function xl(e){return hl=_l(hl,e)}function Sl(e){let t=e[Kc];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Cl(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return e!==void 0&&e!==n?(n[Kc].modified_&&(yl(t),qc(4)),Xc(e)&&(e=wl(t,e),t.parent_||El(t,e)),t.patches_&&ml(`Patches`).generateReplacementPatches_(n[Kc].base_,e,t.patches_,t.inversePatches_)):e=wl(t,n,[]),yl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Wc?void 0:e}function wl(e,t,n){if(fl(t))return t;let r=e.immer_.shouldUseStrictIteration(),i=t[Kc];if(!i)return el(t,(r,a)=>Tl(e,i,t,r,a,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return El(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),el(a,(r,a)=>Tl(e,i,t,r,a,n,o),r),El(e,t,!1),n&&e.patches_&&ml(`Patches`).generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Tl(e,t,n,r,i,a,o){if(i==null||typeof i!=`object`&&!o)return;let s=fl(i);if(!(s&&!o)){if(Yc(i)){let o=wl(e,i,a&&t&&t.type_!==3&&!nl(t.assigned_,r)?a.concat(r):void 0);if(rl(n,r,o),Yc(o))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(Xc(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&s)return;wl(e,i),(!t||!t.scope_.parent_)&&typeof r!=`symbol`&&(al(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&El(e,i)}}}function El(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ll(t,n)}function Dl(e,t){let n=Array.isArray(e),r={type_:+!!n,scope_:t?t.scope_:gl(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=r,a=Ol;n&&(i=[r],a=kl);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var Ol={get(e,t){if(t===Kc)return e;let n=sl(e);if(!nl(n,t))return jl(e,n,t);let r=n[t];return e.finalized_||!Xc(r)?r:r===Al(e.base_,t)?(Pl(e),e.copy_[t]=Il(r,e)):r},has(e,t){return t in sl(e)},ownKeys(e){return Reflect.ownKeys(sl(e))},set(e,t,n){let r=Ml(sl(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Al(sl(e),t),i=r?.[Kc];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(il(n,r)&&(n!==void 0||nl(e.base_,t)))return!0;Pl(e),Nl(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty(e,t){return Al(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Pl(e),Nl(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=sl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty(){qc(11)},getPrototypeOf(e){return Jc(e.base_)},setPrototypeOf(){qc(12)}},kl={};el(Ol,(e,t)=>{kl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),kl.deleteProperty=function(e,t){return kl.set.call(this,e,t,void 0)},kl.set=function(e,t,n){return Ol.set.call(this,e[0],t,n,e[0])};function Al(e,t){let n=e[Kc];return(n?sl(n):e)[t]}function jl(e,t,n){let r=Ml(t,n);return r?`value`in r?r.value:r.get?.call(e.draft_):void 0}function Ml(e,t){if(!(t in e))return;let n=Jc(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Jc(n)}}function Nl(e){e.modified_||(e.modified_=!0,e.parent_&&Nl(e.parent_))}function Pl(e){e.copy_||=cl(e.base_,e.scope_.immer_.useStrictShallowCopy_)}var Fl=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`&&qc(6),n!==void 0&&typeof n!=`function`&&qc(7);let r;if(Xc(e)){let i=xl(this),a=Il(e,void 0),o=!0;try{r=t(a),o=!1}finally{o?yl(i):bl(i)}return vl(i,n),Cl(r,i)}else if(!e||typeof e!=`object`){if(r=t(e),r===void 0&&(r=e),r===Wc&&(r=void 0),this.autoFreeze_&&ll(r,!0),n){let t=[],i=[];ml(`Patches`).generateReplacementPatches_(e,r,t,i),n(t,i)}return r}else qc(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){Xc(e)||qc(8),Yc(e)&&(e=Ll(e));let t=xl(this),n=Il(e,void 0);return n[Kc].isManual_=!0,bl(t),n}finishDraft(e,t){let n=e&&e[Kc];(!n||!n.isManual_)&&qc(9);let{scope_:r}=n;return vl(r,t),Cl(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=ml(`Patches`).applyPatches_;return Yc(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Il(e,t){let n=al(e)?ml(`MapSet`).proxyMap_(e,t):ol(e)?ml(`MapSet`).proxySet_(e,t):Dl(e,t);return(t?t.scope_:gl()).drafts_.push(n),n}function Ll(e){return Yc(e)||qc(10,e),Rl(e)}function Rl(e){if(!Xc(e)||fl(e))return e;let t=e[Kc],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=cl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=cl(e,!0);return el(n,(e,t)=>{rl(n,e,Rl(t))},r),t&&(t.finalized_=!1),n}new Fl().produce;function R(e){return e}var zl=to({name:`legend`,initialState:{settings:{layout:`horizontal`,align:`center`,verticalAlign:`bottom`,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(R(t.payload))},prepare:Ba()},replaceLegendPayload:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=Ea(e).payload.indexOf(R(r));a>-1&&(e.payload[a]=R(i))},prepare:Ba()},removeLegendPayload:{reducer(e,t){var n=Ea(e).payload.indexOf(R(t.payload));n>-1&&e.payload.splice(n,1)},prepare:Ba()}}}),Bl=zl.actions,Vl=Bl.setLegendSize,Hl=Bl.setLegendSettings,Ul=Bl.addLegendPayload,Wl=Bl.replaceLegendPayload,Gl=Bl.removeLegendPayload,Kl=zl.reducer,ql=n((e=>{var t=a();t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue}));n(((e,t)=>{t.exports=ql()}))();function Jl(e){e()}function Yl(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Jl(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Xl={notify(){},get:()=>[]};function Zl(e,t){let n,r=Xl,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Yl())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Xl)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var Ql=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,$l=typeof navigator<`u`&&navigator.product===`ReactNative`,eu=Ql||$l?l.useLayoutEffect:l.useEffect;function tu(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function nu(e,t){if(tu(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r({store:i,subscription:Zl(i),getServerState:r?()=>r:void 0}),[i,r]),o=l.useMemo(()=>i.getState(),[i]);eu(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||ou;return l.createElement(s.Provider,{value:a},t)}var cu=su,lu=new Set([`axisLine`,`tickLine`,`activeBar`,`activeDot`,`activeLabel`,`activeShape`,`allowEscapeViewBox`,`background`,`cursor`,`dot`,`label`,`line`,`margin`,`padding`,`position`,`shape`,`style`,`tick`,`wrapperStyle`,`radius`,`throttledEvents`]);function uu(e,t){return e==null&&t==null?!0:typeof e==`number`&&typeof t==`number`?e===t||e!==e&&t!==t:e===t}function du(e,t){for(var n of new Set([...Object.keys(e),...Object.keys(t)]))if(lu.has(n)){if(e[n]==null&&t[n]==null)continue;if(!nu(e[n],t[n]))return!1}else if(!uu(e[n],t[n]))return!1;return!0}var fu=[`contextPayload`];function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{a(Hl({align:t,layout:n,verticalAlign:r,itemSorter:i}))},[a,t,n,r,i]),null}function ju(e){var t=e.width,n=e.height,r=fr();return(0,l.useLayoutEffect)(()=>{r(Vl({width:t,height:n}))},[r,t,n]),(0,l.useLayoutEffect)(()=>()=>{r(Vl({width:0,height:0}))},[r]),null}function Mu(e,t,n,r){return e===`vertical`&&t!=null?{height:t}:e===`horizontal`?{width:n||r}:null}var Nu={align:`center`,iconSize:14,inactiveColor:`#ccc`,itemSorter:`value`,labelStyle:{},layout:`horizontal`,verticalAlign:`bottom`};function Pu(e){var t=_n(e,Nu),n=Br(),r=j(),i=Lc(),a=t.width,o=t.height,s=t.wrapperStyle,c=t.portal,d=mu(Xr([n]),2),f=d[0],p=d[1],m=Fc(),h=Ic();if(m==null||h==null)return null;var g=m-(i?.left||0)-(i?.right||0),_=Mu(t.layout,o,a,g),v=c?s:xu(xu({position:`absolute`,width:_?.width||a||`auto`,height:_?.height||o||`auto`},ku(s,t,i,m,h,f)),s),y=c??r;return y==null||n==null?null:(0,u.createPortal)(l.createElement(`div`,{className:`recharts-legend-wrapper`,style:v,ref:p},l.createElement(Au,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!c&&l.createElement(ju,{width:f.width,height:f.height}),l.createElement(Ou,pu({},t,_,{margin:i,chartWidth:m,chartHeight:h,contextPayload:n}))),y)}var Fu=l.memo(Pu,du);Fu.displayName=`Legend`;function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{var t=e.separator,n=t===void 0?Yu.separator:t,r=e.contentStyle,i=e.itemStyle,a=e.labelStyle,s=a===void 0?Yu.labelStyle:a,c=e.payload,u=e.formatter,d=e.itemSorter,f=e.wrapperClassName,p=e.labelClassName,m=e.label,h=e.labelFormatter,g=e.accessibilityLayer,_=g===void 0?Yu.accessibilityLayer:g,v=()=>{if(c&&c.length){var e={padding:0,margin:0},t=Xu(c,d).map((e,t)=>{if(!e||e.type===`none`)return null;var r=e.formatter||u||Ju,a=e.value,o=e.name,s=a,d=o;if(r){var f=r(a,o,e,t,c);if(Array.isArray(f)){var p=Hu(f,2);s=p[0],d=p[1]}else if(f!=null)s=f;else return null}var m=Ru(Ru({},Yu.itemStyle),{},{color:e.color||Yu.itemStyle.color},i);return l.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${t}`,style:m},Ft(d)?l.createElement(`span`,{className:`recharts-tooltip-item-name`},d):null,Ft(d)?l.createElement(`span`,{className:`recharts-tooltip-item-separator`},n):null,l.createElement(`span`,{className:`recharts-tooltip-item-value`},s),l.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return l.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},t)}return null},y=Ru(Ru({},Yu.contentStyle),r),b=Ru({margin:0},s),x=!Ht(m),S=x?m:``,C=o(`recharts-default-tooltip`,f),w=o(`recharts-tooltip-label`,p);x&&h&&c!=null&&(S=h(m,c));var T=_?{role:`status`,"aria-live":`assertive`}:{};return l.createElement(`div`,Iu({className:C,style:y},T),l.createElement(`p`,{className:w,style:b},l.isValidElement(S)?S:`${S}`),v())},Qu=`recharts-tooltip-wrapper`,$u={visibility:`hidden`};function ed(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return o(Qu,{[`${Qu}-right`]:P(n)&&t&&P(t.x)&&n>=t.x,[`${Qu}-left`]:P(n)&&t&&P(t.x)&&n=t.y,[`${Qu}-top`]:P(r)&&t&&P(t.y)&&r0?i:0),d=n[r]+i;if(t[r])return o[r]?u:d;var f=c[r];return f==null?0:o[r]?Math.max(uf+l?Math.max(u,f):Math.max(d,f)}function nd(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function rd(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTop,i=e.offsetLeft,a=e.position,o=e.reverseDirection,s=e.tooltipBox,c=e.useTranslate3d,l=e.viewBox,u,d,f;return s.height>0&&s.width>0&&n?(d=td({allowEscapeViewBox:t,coordinate:n,key:`x`,offset:i,position:a,reverseDirection:o,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),f=td({allowEscapeViewBox:t,coordinate:n,key:`y`,offset:r,position:a,reverseDirection:o,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),u=nd({translateX:d,translateY:f,useTranslate3d:c})):u=$u,{cssProperties:u,cssClasses:ed({translateX:d,translateY:f,coordinate:n})}}var id={devToolsEnabled:!0,isSsr:!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)};function ad(e,t){return ud(e)||ld(e,t)||sd(e,t)||od()}function od(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sd(e,t){if(e){if(typeof e==`string`)return cd(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cd(e,t):void 0}}function cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nid.isSsr||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches),2),t=e[0],n=e[1];return(0,l.useEffect)(()=>{if(window.matchMedia){var e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>{n(e.matches)};return e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}},[]),t}function fd(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 pd(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})),2),r=n[0],i=n[1];l.useEffect(()=>{var t=t=>{t.key===`Escape`&&i({dismissed:!0,dismissedAtCoordinate:{x:e.coordinate?.x??0,y:e.coordinate?.y??0}})};return document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[e.coordinate?.x,e.coordinate?.y]),r.dismissed&&((e.coordinate?.x??0)!==r.dismissedAtCoordinate.x||(e.coordinate?.y??0)!==r.dismissedAtCoordinate.y)&&i(pd(pd({},r),{},{dismissed:!1}));var a=rd({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset==`number`?e.offset:e.offset.x,offsetTop:typeof e.offset==`number`?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),o=a.cssClasses,s=a.cssProperties,c=pd(pd({},e.hasPortalFromProps?{}:pd(pd({transition:Cd({prefersReducedMotion:t,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},s),{},{pointerEvents:`none`,position:`absolute`,top:0,left:0})),{},{visibility:!r.dismissed&&e.active&&e.hasPayload?`visible`:`hidden`},e.wrapperStyle);return l.createElement(`div`,{xmlns:`http://www.w3.org/1999/xhtml`,tabIndex:-1,className:o,style:c,ref:e.innerRef},e.children)}var Td=l.memo(wd),Ed=()=>F(e=>e.rootProps.accessibilityLayer)??!0;function Dd(){return Dd=Object.assign?Object.assign.bind():function(e){for(var t=1;tL(e.x)&&L(e.y),Fd=e=>e.base!=null&&Pd(e.base)&&Pd(e),Id=e=>e.x,Ld=e=>e.y,Rd=(e,t)=>{if(typeof e==`function`)return e;var n=`curve${Ut(e)}`;if((n===`curveMonotone`||n===`curveBump`)&&t){var r=Nd[`${n}${t===`vertical`?`Y`:`X`}`];if(r)return r}return Nd[n]||he},zd={connectNulls:!1,type:`linear`},Bd=e=>{var t=e.type,n=t===void 0?zd.type:t,r=e.points,i=r===void 0?[]:r,a=e.baseLine,o=e.layout,s=e.connectNulls,c=s===void 0?zd.connectNulls:s,l=Rd(n,o),u=c?i.filter(Pd):i;if(Array.isArray(a)){var d,f=i.map((e,t)=>kd(kd({},e),{},{base:a[t]}));return d=o===`vertical`?ye().y(Ld).x1(Id).x0(e=>e.base.x):ye().x(Id).y1(Ld).y0(e=>e.base.y),d.defined(Fd).curve(l)(c?f.filter(Fd):f)}return(o===`vertical`&&P(a)?ye().y(Ld).x1(Id).x0(a):P(a)?ye().x(Id).y1(Ld).y0(a):ve().x(Id).y(Ld)).defined(Pd).curve(l)(u)},Vd=e=>{var t=e.className,n=e.points,r=e.path,i=e.pathRef,a=zc();if((!n||!n.length)&&!r)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},c=n&&n.length?Bd(s):r;return l.createElement(`path`,Dd({},g(e),ln(e),{className:o(`recharts-curve`,t),d:c===null?void 0:c,ref:i}))},Hd=[`x`,`y`,`top`,`left`,`width`,`height`,`className`];function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t`M${e},${i}v${r}M${a},${t}h${n}`,Qd=e=>{var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.top,s=a===void 0?0:a,c=e.left,u=c===void 0?0:c,d=e.width,f=d===void 0?0:d,p=e.height,m=p===void 0?0:p,h=e.className,g=Yd(e,Hd),_=Gd({x:n,y:i,top:s,left:u,width:f,height:m},g);return!P(n)||!P(i)||!P(f)||!P(m)||!P(s)||!P(u)?null:l.createElement(`path`,Ud({},v(_),{className:o(`recharts-cross`,h),d:Zd(n,i,f,m,s,u)}))};function $d(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}var ef=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],tf=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),nf=(e,t)=>n=>tf(ef(e,t),n),rf=(e,t)=>n=>tf([...ef(e,t).map((e,t)=>e*t).slice(1),0],n),af=e=>{var t,n=e.split(`(`);if(n.length!==2||n[0]!==`cubic-bezier`)return null;var r=(t=n[1])==null||(t=t.split(`)`)[0])==null?void 0:t.split(`,`);if(r==null||r.length!==4)return null;var i=r.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]},of=function(){var e=[...arguments];if(e.length===1)switch(e[0]){case`linear`:return[0,0,1,1];case`ease`:return[.25,.1,.25,1];case`ease-in`:return[.42,0,1,1];case`ease-out`:return[.42,0,.58,1];case`ease-in-out`:return[0,0,.58,1];default:var t=af(e[0]);if(t)return t}return e.length===4?e:[0,0,1,1]},sf=(e,t,n,r)=>{var i=nf(e,n),a=nf(t,r),o=rf(e,n),s=e=>e>1?1:e<0?0:e,c=e=>{for(var t=e>1?1:e,n=t,r=0;r<8;++r){var c=i(n)-t,l=o(n);if(Math.abs(c-t)<1e-4||l<1e-4)return a(n);n=s(n-c/l)}return a(n)};return c.isStepper=!1,c},cf=function(){return sf(...of(...arguments))},lf=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,a=e.dt,o=a===void 0?16.67:a,s=1,c=[0],l=0,u=0,d=1e4,f=0;f{if(e<=0)return 0;if(e>=1)return s;var t=e*h,n=Math.floor(t),r=t-n;return(c[n]??0)+((c[n+1]??0)-(c[n]??0))*r}},uf=e=>{if(typeof e==`string`)switch(e){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return cf(e);case`spring`:return lf();default:if(e.split(`(`)[0]===`cubic-bezier`)return cf(e)}return typeof e==`function`?e:null},df=(0,l.createContext)((e,t,n)=>{var r,i=a=>{var o=t.tick(a);if(t.getState()===`active`){if(n(t.getInterpolated()),t.getProgress()===1){t.complete(),r=void 0;return}r=e.setTimeout(i,o);return}r=e.setTimeout(i,o)};return r=e.setTimeout(i,0),()=>r?.()});df.Provider;function ff(e){var t=(0,l.useContext)(df);return(0,l.useMemo)(()=>e??t,[e,t])}function pf(e,t,n){return(t=mf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mf(e){var t=hf(e,`string`);return typeof t==`symbol`?t:t+``}function hf(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 gf=`init`,_f=`pending`,vf=`active`,yf=`completed`;function bf(e){return Math.max(0,e)}var xf=class{getAnimationStartedTime(){return this.animationStartedTime}getBeginStartedTime(){return this.beginStartedTime}constructor(e){var t;pf(this,`state`,gf),this.animationId=e.animationId,this.onAnimationEnd=e.onAnimationEnd,this.animationDuration=bf(e.animationDuration),this.animationBegin=bf(e.animationBegin),this.progress=0,this.from=e.from,this.to=e.to,this.easing=e.easing,(t=e.onAnimationStart)==null||t.call(e)}getState(){return this.state}getEasing(){return this.easing}getAnimationDuration(){return this.animationDuration}tick(e){if(this.getState()===gf)return this.state=_f,this.beginStartedTime=e,this.animationBegin;if(this.getState()===_f){if(this.beginStartedTime==null)throw Error();var t=e-this.beginStartedTime;return t>=this.animationBegin?(this.state=vf,this.animationStartedTime=e,this.nextAnimationUpdate(0)):bf(this.animationBegin-t)}if(this.getState()===vf){if(this.animationStartedTime==null)throw Error();var n=e-this.animationStartedTime;return this.setProgress(n/this.animationDuration),this.nextAnimationUpdate(n)}return 0}setProgress(e){this.progress=Math.min(1,Math.max(0,e))}getProgress(){return this.progress}complete(){if(this.progress=1,this.state===`active`){var e;(e=this.onAnimationEnd)==null||e.call(this)}this.state=yf}getFrom(){return this.from}getTo(){return this.to}getAnimationId(){return this.animationId}getAnimationBegin(){return this.animationBegin}},Sf=class extends xf{nextAnimationUpdate(){return 0}getInterpolated(){return this.easing(Bt(this.getFrom(),this.getTo(),this.getProgress()))}},Cf=class{setTimeout(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),r=null,i=a=>{a-n>=t?e(a):r=requestAnimationFrame(i)};return r=requestAnimationFrame(i),()=>{r!=null&&cancelAnimationFrame(r)}}};function wf(e,t){return kf(e)||Of(e,t)||Ef(e,t)||Tf()}function Tf(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ef(e,t){if(e){if(typeof e==`string`)return Df(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Df(e,t):void 0}}function Df(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{},onAnimationStart:()=>{}},jf=0,Mf=1;function Nf(e){var t=_n(e,Af),n=t.animationId,r=t.isActive,i=t.canBegin,a=t.duration,o=t.easing,s=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,d=t.children,f=dd(),p=r===`auto`?!id.isSsr&&!f:r,m=ff(t.animationController),h=wf((0,l.useState)(p?jf:Mf),2),g=h[0],_=h[1];return(0,l.useEffect)(()=>{p||_(Mf)},[p]),(0,l.useEffect)(()=>{var e=uf(o);return!p||!i||e==null?Gt:m(new Cf,new Sf({animationId:n,easing:e,animationDuration:a,animationBegin:s,onAnimationStart:u,onAnimationEnd:c,from:jf,to:Mf}),_)},[m,n,p,i,a,o,s,u,c]),d(Number(g))}function Pf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`animation-`,n=(0,l.useRef)(Lt(t)),r=(0,l.useRef)(e);return r.current!==e&&(n.current=Lt(t),r.current=e),n.current}var Ff=e=>e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),If=(e,t,n)=>e.map(e=>`${Ff(e)} ${t}ms ${n}`).join(`,`),Lf=[`radius`],Rf=[`radius`],zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf;function Yf(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 Xf(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{var a=At(n),o=At(r),s=Math.min(Math.abs(a)/2,Math.abs(o)/2),c=o>=0?1:-1,l=a>=0?1:-1,u=+(o>=0&&a>=0||o<0&&a<0),d;if(s>0&&Array.isArray(i)){for(var f=[0,0,0,0],p=0,m=4;ps?s:h}d=jt(zf||=lp([`M`,`,`,``]),e,t+c*f[0]),f[0]>0&&(d+=jt(Bf||=lp([`A `,`,`,`,0,0,`,`,`,`,`,``]),f[0],f[0],u,e+l*f[0],t)),d+=jt(Vf||=lp([`L `,`,`,``]),e+n-l*f[1],t),f[1]>0&&(d+=jt(Hf||=lp([`A `,`,`,`,0,0,`,`, `,`,`,``]),f[1],f[1],u,e+n,t+c*f[1])),d+=jt(Uf||=lp([`L `,`,`,``]),e+n,t+r-c*f[2]),f[2]>0&&(d+=jt(Wf||=lp([`A `,`,`,`,0,0,`,`, `,`,`,``]),f[2],f[2],u,e+n-l*f[2],t+r)),d+=jt(Gf||=lp([`L `,`,`,``]),e+l*f[3],t+r),f[3]>0&&(d+=jt(Kf||=lp([`A `,`,`,`,0,0,`,`, `,`,`,``]),f[3],f[3],u,e,t+r-c*f[3])),d+=`Z`}else if(s>0&&i===+i&&i>0){var g=Math.min(s,i);d=jt(qf||=lp(`M .,. A .,.,0,0,.,.,. L .,. A .,.,0,0,.,.,. L .,. A .,.,0,0,.,.,. L .,. A .,.,0,0,.,.,. Z`.split(`.`)),e,t+c*g,g,g,u,e+l*g,t,e+n-l*g,t,g,g,u,e+n,t+c*g,e+n,t+r-c*g,g,g,u,e+n-l*g,t+r,e+l*g,t+r,g,g,u,e,t+r-c*g)}else d=jt(Jf||=lp([`M `,`,`,` h `,` v `,` h `,` Z`]),e,t,n,r,-n);return d},dp={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},fp=e=>{var t=_n(e,dp),n=(0,l.useRef)(null),r=rp((0,l.useState)(-1),2),i=r[0],a=r[1];(0,l.useEffect)(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var s=t.x,c=t.y,u=t.width,d=t.height,f=t.radius,p=t.className,m=t.animationEasing,h=t.animationDuration,g=t.animationBegin,_=t.isAnimationActive,y=t.isUpdateAnimationActive,b=(0,l.useRef)(u),x=(0,l.useRef)(d),S=(0,l.useRef)(s),C=(0,l.useRef)(c),w=Pf((0,l.useMemo)(()=>({x:s,y:c,width:u,height:d,radius:f}),[s,c,u,d,f]),`rectangle-`);if(s!==+s||c!==+c||u!==+u||d!==+d||u===0||d===0)return null;var T=o(`recharts-rectangle`,p);if(!y){var E=v(t);E.radius;var D=tp(E,Lf);return l.createElement(`path`,ep({},D,{x:At(s),y:At(c),width:At(u),height:At(d),radius:typeof f==`number`?f:void 0,className:T,d:up(s,c,u,d,f)}))}var O=b.current,k=x.current,A=S.current,j=C.current,M=`0px ${i===-1?1:i}px`,N=`${i}px ${i}px`,ee=If([`strokeDasharray`],h,typeof m==`string`?m:dp.animationEasing);return l.createElement(Nf,{animationId:w,key:w,canBegin:i>0,duration:h,easing:m,isActive:y,begin:g},e=>{var r=Bt(O,u,e),i=Bt(k,d,e),a=Bt(A,s,e),o=Bt(j,c,e);n.current&&(b.current=r,x.current=i,S.current=a,C.current=o);var p=_?e>0?{transition:ee,strokeDasharray:N}:{strokeDasharray:M}:{strokeDasharray:N},m=v(t);m.radius;var h=tp(m,Rf);return l.createElement(`path`,ep({},h,{radius:typeof f==`number`?f:void 0,className:T,d:up(a,o,r,i,f),ref:n,style:Xf(Xf({},p),t.style)}))})};function pp(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 mp(e){for(var t=1;te*180/Math.PI,bp=(e,t,n,r)=>({x:e+Math.cos(-vp*r)*n,y:t+Math.sin(-vp*r)*n}),xp=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},Sp=(e,t)=>{var n=e.x,r=e.y,i=t.x,a=t.y;return Math.sqrt((n-i)**2+(r-a)**2)},Cp=(e,t)=>{var n=e.x,r=e.y,i=t.cx,a=t.cy,o=Sp({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:yp(c),angleInRadian:c}},wp=e=>{var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},Tp=(e,t)=>{var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},Ep=(e,t)=>{var n=e.relativeX,r=e.relativeY,i=Cp({x:n,y:r},t),a=i.radius,o=i.angle,s=t.innerRadius,c=t.outerRadius;if(ac||a===0)return null;var l=wp(t),u=l.startAngle,d=l.endAngle,f=o,p;if(u<=d){for(;f>d;)f-=360;for(;f=u&&f<=d}else{for(;f>u;)f-=360;for(;f=d&&f<=u}return p?mp(mp({},t),{},{radius:a,angle:Tp(f,t)}):null};function Dp(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle;return{points:[bp(t,n,r,i),bp(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var Op,kp,Ap,jp,Mp,Np,Pp;function Fp(){return Fp=Object.assign?Object.assign.bind():function(e){for(var t=1;tMt(t-e)*Math.min(Math.abs(t-e),359.999),Rp=e=>{var t=e.cx,n=e.cy,r=e.radius,i=e.angle,a=e.sign,o=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(o?1:-1)+r,u=Math.asin(s/l)/vp,d=c?i:i+a*u,f=bp(t,n,l,d),p=bp(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:bp(t,n,l*Math.cos(u*vp),m),theta:u}},zp=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.startAngle,o=e.endAngle,s=Lp(a,o),c=a+s,l=bp(t,n,i,a),u=bp(t,n,i,c),d=jt(Op||=Ip([`M `,`,`,` A `,`,`,`,0, `,`,`,`, `,`,`,` `]),l.x,l.y,i,i,+(Math.abs(s)>180),+(a>c),u.x,u.y);if(r>0){var f=bp(t,n,r,a),p=bp(t,n,r,c);d+=jt(kp||=Ip([`L `,`,`,` A `,`,`,`,0, `,`,`,`, `,`,`,` Z`]),p.x,p.y,r,r,+(Math.abs(s)>180),+(a<=c),f.x,f.y)}else d+=jt(Ap||=Ip([`L `,`,`,` Z`]),t,n);return d},Bp=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,o=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=Mt(l-c),d=Rp({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,m=d.theta,h=Rp({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=h.circleTangency,_=h.lineTangency,v=h.theta,y=s?Math.abs(c-l):Math.abs(c-l)-m-v;if(y<0)return o?jt(jp||=Ip([`M `,`,`,` a`,`,`,`,0,0,1,`,`,0 a`,`,`,`,0,0,1,`,`,0 `]),p.x,p.y,a,a,a*2,a,a,-a*2):zp({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var b=jt(Mp||=Ip([`M `,`,`,` A`,`,`,`,0,0,`,`,`,`,`,` A`,`,`,`,0,`,`,`,`,`,`,`,` A`,`,`,`,0,0,`,`,`,`,`,` `]),p.x,p.y,a,a,+(u<0),f.x,f.y,i,i,+(y>180),+(u<0),g.x,g.y,a,a,+(u<0),_.x,_.y);if(r>0){var x=Rp({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),S=x.circleTangency,C=x.lineTangency,w=x.theta,T=Rp({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=T.circleTangency,D=T.lineTangency,O=T.theta,k=s?Math.abs(c-l):Math.abs(c-l)-w-O;if(k<0&&a===0)return`${b}L${t},${n}Z`;b+=jt(Np||=Ip([`L`,`,`,` A`,`,`,`,0,0,`,`,`,`,`,` A`,`,`,`,0,`,`,`,`,`,`,`,` A`,`,`,`,0,0,`,`,`,`,`,`Z`]),D.x,D.y,a,a,+(u<0),E.x,E.y,r,r,+(k>180),+(u>0),S.x,S.y,a,a,+(u<0),C.x,C.y)}else b+=jt(Pp||=Ip([`L`,`,`,`Z`]),t,n);return b},Vp={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Hp=e=>{var t=_n(e,Vp),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.cornerRadius,c=t.forceCornerRadius,u=t.cornerIsExternal,d=t.startAngle,f=t.endAngle,p=t.className;if(a0&&Math.abs(d-f)<360?Bp({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(g,h/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:d,endAngle:f}):zp({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:d,endAngle:f});return l.createElement(`path`,Fp({},v(t),{className:m,d:_}))};function Up(e,t,n){if(e===`horizontal`)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e===`vertical`)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(cn(t)){if(e===`centric`){var r=t.cx,i=t.cy,a=t.innerRadius,o=t.outerRadius,s=t.angle,c=bp(r,i,a,s),l=bp(r,i,o,s);return[{x:c.x,y:c.y},{x:l.x,y:l.y}]}return Dp(t)}}var Wp=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ar();function n(e){return t.isSymbol(e)?NaN:Number(e)}e.toNumber=n})),Gp=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Wp();function n(e){return e?(e=t.toNumber(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}e.toFinite=n})),Kp=n((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Pr(),n=Gp();function r(e,r,i){i&&typeof i!=`number`&&t.isIterateeCall(e,r,i)&&(r=i=void 0),e=n.toFinite(e),r===void 0?(r=e,e=0):r=n.toFinite(r),i=i===void 0?e{t.exports=Kp().range}))()),Jp=e=>e.chartData,Yp=I([Jp],e=>{var t=e.chartData==null?0:e.chartData.length-1;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Xp=(e,t,n,r)=>r?Yp(e):Jp(e),Zp=(e,t,n)=>n?Yp(e):Jp(e),Qp=I([Xp],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)});I([Yp],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)});var $p=I([Jp],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)});function em(e,t){return am(e)||im(e,t)||nm(e,t)||tm()}function tm(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nm(e,t){if(e){if(typeof e==`string`)return rm(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rm(e,t):void 0}}function rm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||en)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;tr?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),rh||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}else if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i);if((i=e[r=`LN10`])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i);return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}))());function um(e){return e===0?1:Math.floor(new z.default(e).abs().log(10).toNumber())+1}function dm(e,t,n){for(var r=new z.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}function fm(e,t){return _m(e)||gm(e,t)||mm(e,t)||pm()}function pm(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mm(e,t){if(e){if(typeof e==`string`)return hm(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hm(e,t):void 0}}function hm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{var t=fm(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]},ym=(e,t,n)=>{if(e.lte(0))return new z.default(0);var r=um(e.toNumber()),i=new z.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new z.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?new z.default(s.toNumber()):new z.default(Math.ceil(s.toNumber()))},bm=(e,t,n)=>{if(e.lte(0))return new z.default(0);var r=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new z.default(i).abs().log(10).toNumber()),o=new z.default(10).pow(a),s=e.div(o).toNumber(),c=r.findIndex(e=>e>=s-1e-10);if(c===-1&&(o=o.mul(10),c=0),c+=n,c>=r.length){var l=Math.floor(c/r.length);c%=r.length,o=o.mul(new z.default(10).pow(l))}var u=new z.default(r[c]??1).mul(o);return t?u:new z.default(Math.ceil(u.toNumber()))},xm=(e,t,n)=>{var r=new z.default(1),i=new z.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new z.default(10).pow(um(e)-1),i=new z.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new z.default(Math.floor(e)))}else e===0?i=new z.default(Math.floor((t-1)/2)):n||(i=new z.default(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],c=0;c4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:ym;if(!Number.isFinite((t-e)/(n-1)))return{step:new z.default(0),tickMin:new z.default(0),tickMax:new z.default(0)};var o=a(new z.default(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new z.default(0):(s=new z.default(e).add(t).div(2),s=s.sub(new z.default(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),l=Math.ceil(new z.default(t).sub(s).div(o).toNumber()),u=c+l+1;return u>n?Sm(e,t,n,r,i+1,a):(u0?l+(n-u):l,c=t>0?c:c+(n-u)),{step:o,tickMin:s.sub(new z.default(c).mul(o)),tickMax:s.add(new z.default(l).mul(o))})},Cm=function(e){var t=fm(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,s=Math.max(i,2),c=fm(vm([n,r]),2),l=c[0],u=c[1];if(l===-1/0||u===1/0){var d=u===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),u];return n>r?d.reverse():d}if(l===u)return xm(l,i,a);var f=Sm(l,u,s,a,0,o===`snap125`?bm:ym),p=f.step,m=f.tickMin,h=f.tickMax,g=dm(m,h.add(new z.default(.1).mul(p)),p);return n>r?g.reverse():g},wm=function(e,t){var n=fm(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,s=fm(vm([r,i]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0)return[r,i];if(c===l)return[c];var u=o===`snap125`?bm:ym,d=Math.max(t,2),f=u(new z.default(l).sub(c).div(d-1),a,0),p=[...dm(new z.default(c),new z.default(l),f),l];return a===!1&&(p=p.map(e=>Math.round(e))),r>i?p.reverse():p},Tm=e=>e.rootProps.maxBarSize,Em=e=>e.rootProps.barGap,Dm=e=>e.rootProps.barCategoryGap,Om=e=>e.rootProps.barSize,km=e=>e.rootProps.stackOffset,Am=e=>e.rootProps.reverseStackOrder,jm=e=>e.options.chartName,Mm=e=>e.rootProps.syncId,Nm=e=>e.rootProps.syncMethod,Pm=e=>e.options.eventEmitter,Fm=e=>e.rootProps.baseValue,Im={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Lm={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:`polygon`,cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:`auto`,orientation:`outer`,reversed:!1,scale:`auto`,tick:!0,tickLine:!0,tickSize:8,type:`auto`,zIndex:Im.axis},Rm={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:`auto`,label:!1,orientation:`right`,radiusAxisId:0,reversed:!1,scale:`auto`,stroke:`#ccc`,tick:!0,tickCount:5,tickLine:!0,type:`auto`,zIndex:Im.axis},zm=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Bm(e,t,n){if(n!==`auto`)return n;if(e!=null)return os(e,t)?`category`:`number`}function Vm(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 Hm(e){for(var t=1;t{if(t!=null)return e.polarAxis.angleAxis[t]},Vc],(e,t)=>{if(e!=null)return e;var n=Bm(t,`angleAxis`,Km.type)??`category`;return Hm(Hm({},Km),{},{type:n})}),Ym=I([(e,t)=>e.polarAxis.radiusAxis[t],Vc],(e,t)=>{if(e!=null)return e;var n=Bm(t,`radiusAxis`,qm.type)??`category`;return Hm(Hm({},qm),{},{type:n})}),Xm=e=>e.polarOptions,Zm=I([Es,Ds,Us],xp),Qm=I([Xm,Zm],(e,t)=>{if(e!=null)return Rt(e.innerRadius,t,0)}),$m=I([Xm,Zm],(e,t)=>{if(e!=null)return Rt(e.outerRadius,t,t*.8)}),eh=I([Xm],e=>e==null?[0,0]:[e.startAngle,e.endAngle]);I([Jm,eh],zm);var th=I([Zm,Qm,$m],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});I([Ym,th],zm);var nh=I([Rc,Xm,Qm,$m,Es,Ds],(e,t,n,r,i,a)=>{if(!(e!==`centric`&&e!==`radial`||t==null||n==null||r==null)){var o=t.cx,s=t.cy,c=t.startAngle,l=t.endAngle;return{cx:Rt(o,i,i/2),cy:Rt(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:l,clockWise:!1}}}),rh=(e,t)=>t,ih=(e,t,n)=>n;function ah(e){return e?.id}function oh(e,t,n){var r=t.chartData,i=r===void 0?[]:r,a=n.allowDuplicatedCategory,o=n.dataKey,s=new Map;return e.forEach(e=>{var t=e.data??i;if(!(t==null||t.length===0)){var n=ah(e);t.forEach((t,r)=>{var i=o==null||a?r:String(is(t,o,null)),c=is(t,e.dataKey,0),l=s.has(i)?s.get(i):{};Object.assign(l,{[n]:c}),s.set(i,l)})}}),Array.from(s.values())}function sh(e){return`stackId`in e&&e.stackId!=null&&e.dataKey!=null}var ch=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function lh(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function uh(e,t){if(e.length===t.length){for(var n=0;n{var t=Rc(e);return t===`horizontal`?`xAxis`:t===`vertical`?`yAxis`:t===`centric`?`angleAxis`:`radiusAxis`},fh=e=>e.tooltip.settings.axisId;function ph(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],n=i[1];return t<=n?e>=t&&e<=n:e>=n&&e<=t},bandwidth:n?()=>n.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(t,n)=>{var r=e(t);if(r!=null){if(e.bandwidth&&n!=null&&n.position){var i=e.bandwidth();switch(n.position){case`middle`:r+=i/2;break;case`end`:r+=i;break;default:break}}return r}}}}}var mh=(e,t)=>{if(t!=null)switch(e){case`linear`:if(!om(t)){for(var n,r,i=0;ir)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t;default:return t}};function hh(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function gh(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function _h(e){let t,n,r;e.length===2?(t=e===hh||e===gh?e:vh,n=e,r=e):(t=hh,n=(t,n)=>hh(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i>>1;n(e[t],r)<0?i=t+1:a=t}while(i>>1;n(e[t],r)<=0?i=t+1:a=t}while(in&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function vh(){return 0}function yh(e){return e===null?NaN:+e}function*bh(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var xh=_h(hh),Sh=xh.right;xh.left,_h(yh).center;var Ch=class extends Map{constructor(e,t=Dh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(wh(this,e))}has(e){return super.has(wh(this,e))}set(e,t){return super.set(Th(this,e),t)}delete(e){return super.delete(Eh(this,e))}};function wh({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Th({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Eh({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Dh(e){return typeof e==`object`&&e?e.valueOf():e}function Oh(e=hh){if(e===hh)return kh;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function kh(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et))}var Ah=Math.sqrt(50),jh=Math.sqrt(10),Mh=Math.sqrt(2);function Nh(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Ah?10:a>=jh?5:a>=Mh?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/lt&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*lt&&--c),c0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function Rh(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function zh(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?kh:Oh(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));zh(e,t,u,d,i)}let a=e[t],o=n,s=r;for(Bh(e,n,t),i(e[r],a)>0&&Bh(e,n,r);o0;)--s}i(e[n],a)===0?Bh(e,n,s):(++s,Bh(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Bh(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function Vh(e,t,n){if(e=Float64Array.from(bh(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Rh(e);if(t>=1)return Lh(e);var r,i=(r-1)*t,a=Math.floor(i),o=Lh(zh(e,a).subarray(0,a+1));return o+(Rh(e.subarray(a+1))-o)*(i-a)}}function Hh(e,t,n=yh){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function Uh(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?yg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?yg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=og.exec(e))?new Sg(t[1],t[2],t[3],1):(t=sg.exec(e))?new Sg(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cg.exec(e))?yg(t[1],t[2],t[3],t[4]):(t=lg.exec(e))?yg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ug.exec(e))?kg(t[1],t[2]/100,t[3]/100,1):(t=dg.exec(e))?kg(t[1],t[2]/100,t[3]/100,t[4]):fg.hasOwnProperty(e)?vg(fg[e]):e===`transparent`?new Sg(NaN,NaN,NaN,0):null}function vg(e){return new Sg(e>>16&255,e>>8&255,e&255,1)}function yg(e,t,n,r){return r<=0&&(e=t=n=NaN),new Sg(e,t,n,r)}function bg(e){return e instanceof $h||(e=_g(e)),e?(e=e.rgb(),new Sg(e.r,e.g,e.b,e.opacity)):new Sg}function xg(e,t,n,r){return arguments.length===1?bg(e):new Sg(e,t,n,r??1)}function Sg(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Zh(Sg,xg,Qh($h,{brighter(e){return e=e==null?tg:tg**+e,new Sg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?eg:eg**+e,new Sg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Sg(Dg(this.r),Dg(this.g),Dg(this.b),Eg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Cg,formatHex:Cg,formatHex8:wg,formatRgb:Tg,toString:Tg}));function Cg(){return`#${Og(this.r)}${Og(this.g)}${Og(this.b)}`}function wg(){return`#${Og(this.r)}${Og(this.g)}${Og(this.b)}${Og((isNaN(this.opacity)?1:this.opacity)*255)}`}function Tg(){let e=Eg(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Dg(this.r)}, ${Dg(this.g)}, ${Dg(this.b)}${e===1?`)`:`, ${e})`}`}function Eg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Og(e){return e=Dg(e),(e<16?`0`:``)+e.toString(16)}function kg(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mg(e,t,n,r)}function Ag(e){if(e instanceof Mg)return new Mg(e.h,e.s,e.l,e.opacity);if(e instanceof $h||(e=_g(e)),!e)return new Mg;if(e instanceof Mg)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&c<1?0:o,new Mg(o,s,c,e.opacity)}function jg(e,t,n,r){return arguments.length===1?Ag(e):new Mg(e,t,n,r??1)}function Mg(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Zh(Mg,jg,Qh($h,{brighter(e){return e=e==null?tg:tg**+e,new Mg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?eg:eg**+e,new Mg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Sg(Fg(e>=240?e-240:e+120,i,r),Fg(e,i,r),Fg(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Mg(Ng(this.h),Pg(this.s),Pg(this.l),Eg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Eg(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Ng(this.h)}, ${Pg(this.s)*100}%, ${Pg(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Ng(e){return e=(e||0)%360,e<0?e+360:e}function Pg(e){return Math.max(0,Math.min(1,e||0))}function Fg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Ig=e=>()=>e;function Lg(e,t){return function(n){return e+n*t}}function Rg(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function zg(e){return(e=+e)==1?Bg:function(t,n){return n-t?Rg(t,n,e):Ig(isNaN(t)?n:t)}}function Bg(e,t){var n=t-e;return n?Lg(e,n):Ig(isNaN(e)?t:e)}var Vg=(function e(t){var n=zg(t);function r(e,t){var r=n((e=xg(e)).r,(t=xg(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Bg(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Hg(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Kg(r,i)})),n=Yg.lastIndex;return nt&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function c_(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?l_:c_,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),Kg))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,r_),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=e_,u()},d.clamp=function(e){return arguments.length?(o=e?!0:a_,u()):o!==a_},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function f_(){return d_()(a_,a_)}function p_(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function m_(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function h_(e){return e=m_(Math.abs(e)),e?e[1]:NaN}function g_(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function __(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var v_=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function y_(e){if(!(t=v_.exec(e)))throw Error(`invalid format: `+e);var t;return new b_({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}y_.prototype=b_.prototype;function b_(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}b_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function x_(e){out:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var S_;function C_(e,t){var n=m_(e,t);if(!n)return S_=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(S_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+m_(e,Math.max(0,t+a-1))[0]}function w_(e,t){var n=m_(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var T_={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:p_,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>w_(e*100,t),r:w_,s:C_,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function E_(e){return e}var D_=Array.prototype.map,O_=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function k_(e){var t=e.grouping===void 0||e.thousands===void 0?E_:g_(D_.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?E_:__(D_.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=y_(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):T_[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=T_[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=x_(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&S_!==void 0?O_[8+S_/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++op||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(h_(t)/3)))*3,r=10**-n,i=l((e=y_(e),e.type=`f`,e),{suffix:O_[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var A_,j_,M_;N_({thousands:`,`,grouping:[3],currency:[`$`,``]});function N_(e){return A_=k_(e),j_=A_.format,M_=A_.formatPrefix,A_}function P_(e){return Math.max(0,-h_(Math.abs(e)))}function F_(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(h_(t)/3)))*3-h_(Math.abs(e)))}function I_(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,h_(t)-h_(e))+1}function L_(e,t,n,r){var i=Ih(e,t,n),a;switch(r=y_(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=F_(i,o))&&(r.precision=a),M_(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=I_(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=P_(i))&&(r.precision=a-(r.type===`%`)*2);break}return j_(r)}function R_(e){var t=e.domain;return e.ticks=function(e){var n=t();return Ph(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return L_(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s0;){if(l=Fh(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function z_(){var e=f_();return e.copy=function(){return u_(e,z_())},Wh.apply(e,arguments),R_(e)}function B_(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,r_),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return B_(e).unknown(t)},e=arguments.length?Array.from(e,r_):[0,1],R_(n)}function V_(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return ae**+t}function J_(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Y_(e){return(t,n)=>-e(-t,n)}function X_(e){let t=e(H_,U_),n=t.domain,r=10,i,a;function o(){return i=J_(r),a=q_(r),n()[0]<0?(i=Y_(i),a=Y_(a),e(W_,G_)):e(H_,U_),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s0){for(;l<=u;++l)for(d=1;ds)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(fs)break;m.push(f)}m.length*2{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=y_(n)).precision==null&&(n.trim=!0),n=j_(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*rn(V_(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function Z_(){let e=X_(d_()).domain([1,10]);return e.copy=()=>u_(e,Z_()).base(e.base()),Wh.apply(e,arguments),e}function Q_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function $_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ev(e){var t=1,n=e(Q_(t),$_(t));return n.constant=function(n){return arguments.length?e(Q_(t=+n),$_(t)):t},R_(n)}function tv(){var e=ev(d_());return e.copy=function(){return u_(e,tv()).constant(e.constant())},Wh.apply(e,arguments)}function nv(e){return function(t){return t<0?-((-t)**+e):t**+e}}function rv(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function iv(e){return e<0?-e*e:e*e}function av(e){var t=e(a_,a_),n=1;function r(){return n===1?e(a_,a_):n===.5?e(rv,iv):e(nv(n),nv(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},R_(t)}function ov(){var e=av(d_());return e.copy=function(){return u_(e,ov()).exponent(e.exponent())},Wh.apply(e,arguments),e}function sv(){return ov.apply(null,arguments).exponent(.5)}function cv(e){return Math.sign(e)*e*e}function lv(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function uv(){var e=f_(),t=[0,1],n=!1,r;function i(t){var i=lv(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(cv(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,r_)).map(cv)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return uv(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Wh.apply(i,arguments),R_(i)}function dv(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r0?n[i-1]:e[0],i=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return fv().domain([e,t]).range(i).unknown(a)},Wh.apply(R_(o),arguments)}function pv(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[Sh(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return pv().domain(e).range(t).unknown(n)},Wh.apply(i,arguments)}var mv=new Date,hv=new Date;function gv(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(sgv(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(mv.setTime(+t),hv.setTime(+r),e(mv),e(hv),Math.floor(n(mv,hv))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var _v=gv(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_v.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?gv(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_v),_v.range;var vv=1e3,yv=vv*60,bv=yv*60,xv=bv*24,Sv=xv*7,Cv=xv*30,wv=xv*365,Tv=gv(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vv)},(e,t)=>(t-e)/vv,e=>e.getUTCSeconds());Tv.range;var Ev=gv(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vv)},(e,t)=>{e.setTime(+e+t*yv)},(e,t)=>(t-e)/yv,e=>e.getMinutes());Ev.range;var Dv=gv(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*yv)},(e,t)=>(t-e)/yv,e=>e.getUTCMinutes());Dv.range;var Ov=gv(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vv-e.getMinutes()*yv)},(e,t)=>{e.setTime(+e+t*bv)},(e,t)=>(t-e)/bv,e=>e.getHours());Ov.range;var kv=gv(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*bv)},(e,t)=>(t-e)/bv,e=>e.getUTCHours());kv.range;var Av=gv(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yv)/xv,e=>e.getDate()-1);Av.range;var jv=gv(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xv,e=>e.getUTCDate()-1);jv.range;var Mv=gv(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xv,e=>Math.floor(e/xv));Mv.range;function Nv(e){return gv(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yv)/Sv)}var Pv=Nv(0),Fv=Nv(1),Iv=Nv(2),Lv=Nv(3),Rv=Nv(4),zv=Nv(5),Bv=Nv(6);Pv.range,Fv.range,Iv.range,Lv.range,Rv.range,zv.range,Bv.range;function Vv(e){return gv(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Sv)}var Hv=Vv(0),Uv=Vv(1),Wv=Vv(2),Gv=Vv(3),Kv=Vv(4),qv=Vv(5),Jv=Vv(6);Hv.range,Uv.range,Wv.range,Gv.range,Kv.range,qv.range,Jv.range;var Yv=gv(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Yv.range;var Xv=gv(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Xv.range;var Zv=gv(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Zv.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gv(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Zv.range;var Qv=gv(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qv.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gv(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Qv.range;function $v(e,t,n,r,i,a){let o=[[Tv,1,vv],[Tv,5,5*vv],[Tv,15,15*vv],[Tv,30,30*vv],[a,1,yv],[a,5,5*yv],[a,15,15*yv],[a,30,30*yv],[i,1,bv],[i,3,3*bv],[i,6,6*bv],[i,12,12*bv],[r,1,xv],[r,2,2*xv],[n,1,Sv],[t,1,Cv],[t,3,3*Cv],[e,1,wv]];function s(e,t,n){let r=te).right(o,i);if(a===o.length)return e.every(Ih(t/wv,n/wv,r));if(a===0)return _v.every(Math.max(Ih(t,n,r),1));let[s,c]=o[i/o[a-1][2]53)return null;`w`in r||(r.w=1),`Z`in r?(a=ay(oy(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Uv.ceil(a):Uv(a),a=jv.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=iy(oy(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Fv.ceil(a):Fv(a),a=Av.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?ay(oy(r.y,0,1)).getUTCDay():iy(oy(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,ay(r)):iy(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in cy?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function ee(e){return a[e.getDay()]}function te(e){return c[e.getMonth()]}function ne(e){return s[e.getMonth()]}function re(e){return i[+(e.getHours()>=12)]}function ie(e){return 1+~~(e.getMonth()/3)}function ae(e){return o[e.getUTCDay()]}function oe(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function le(e){return i[+(e.getUTCHours()>=12)]}function ue(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var cy={"-":``,_:` `,0:`0`},ly=/^\s*\d+/,uy=/^%/,dy=/[\\^$*+?|[\]().{}]/g;function B(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a[e.toLowerCase(),t]))}function hy(e,t,n){var r=ly.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function gy(e,t,n){var r=ly.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _y(e,t,n){var r=ly.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function vy(e,t,n){var r=ly.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function yy(e,t,n){var r=ly.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function by(e,t,n){var r=ly.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xy(e,t,n){var r=ly.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Sy(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Cy(e,t,n){var r=ly.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function wy(e,t,n){var r=ly.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ty(e,t,n){var r=ly.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ey(e,t,n){var r=ly.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Dy(e,t,n){var r=ly.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Oy(e,t,n){var r=ly.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ky(e,t,n){var r=ly.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ay(e,t,n){var r=ly.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function jy(e,t,n){var r=ly.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function My(e,t,n){var r=uy.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ny(e,t,n){var r=ly.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Py(e,t,n){var r=ly.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Fy(e,t){return B(e.getDate(),t,2)}function Iy(e,t){return B(e.getHours(),t,2)}function Ly(e,t){return B(e.getHours()%12||12,t,2)}function Ry(e,t){return B(1+Av.count(Zv(e),e),t,3)}function zy(e,t){return B(e.getMilliseconds(),t,3)}function By(e,t){return zy(e,t)+`000`}function Vy(e,t){return B(e.getMonth()+1,t,2)}function Hy(e,t){return B(e.getMinutes(),t,2)}function Uy(e,t){return B(e.getSeconds(),t,2)}function Wy(e){var t=e.getDay();return t===0?7:t}function Gy(e,t){return B(Pv.count(Zv(e)-1,e),t,2)}function Ky(e){var t=e.getDay();return t>=4||t===0?Rv(e):Rv.ceil(e)}function qy(e,t){return e=Ky(e),B(Rv.count(Zv(e),e)+(Zv(e).getDay()===4),t,2)}function Jy(e){return e.getDay()}function Yy(e,t){return B(Fv.count(Zv(e)-1,e),t,2)}function Xy(e,t){return B(e.getFullYear()%100,t,2)}function Zy(e,t){return e=Ky(e),B(e.getFullYear()%100,t,2)}function Qy(e,t){return B(e.getFullYear()%1e4,t,4)}function $y(e,t){var n=e.getDay();return e=n>=4||n===0?Rv(e):Rv.ceil(e),B(e.getFullYear()%1e4,t,4)}function eb(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+B(t/60|0,`0`,2)+B(t%60,`0`,2)}function tb(e,t){return B(e.getUTCDate(),t,2)}function nb(e,t){return B(e.getUTCHours(),t,2)}function rb(e,t){return B(e.getUTCHours()%12||12,t,2)}function ib(e,t){return B(1+jv.count(Qv(e),e),t,3)}function ab(e,t){return B(e.getUTCMilliseconds(),t,3)}function ob(e,t){return ab(e,t)+`000`}function sb(e,t){return B(e.getUTCMonth()+1,t,2)}function cb(e,t){return B(e.getUTCMinutes(),t,2)}function lb(e,t){return B(e.getUTCSeconds(),t,2)}function ub(e){var t=e.getUTCDay();return t===0?7:t}function db(e,t){return B(Hv.count(Qv(e)-1,e),t,2)}function fb(e){var t=e.getUTCDay();return t>=4||t===0?Kv(e):Kv.ceil(e)}function pb(e,t){return e=fb(e),B(Kv.count(Qv(e),e)+(Qv(e).getUTCDay()===4),t,2)}function mb(e){return e.getUTCDay()}function hb(e,t){return B(Uv.count(Qv(e)-1,e),t,2)}function gb(e,t){return B(e.getUTCFullYear()%100,t,2)}function _b(e,t){return e=fb(e),B(e.getUTCFullYear()%100,t,2)}function vb(e,t){return B(e.getUTCFullYear()%1e4,t,4)}function yb(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Kv(e):Kv.ceil(e),B(e.getUTCFullYear()%1e4,t,4)}function bb(){return`+0000`}function xb(){return`%`}function Sb(e){return+e}function Cb(e){return Math.floor(e/1e3)}var wb,Tb,Eb;Db({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function Db(e){return wb=sy(e),Tb=wb.format,wb.parse,Eb=wb.utcFormat,wb.utcParse,wb}function Ob(e){return new Date(e)}function kb(e){return e instanceof Date?+e:+new Date(+e)}function Ab(e,t,n,r,i,a,o,s,c,l){var u=f_(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>Vh(e,r/t))},n.copy=function(){return Bb(t).domain(e)},Gh.apply(n,arguments)}function Vb(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=a_,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*eJh,scaleDiverging:()=>Hb,scaleDivergingLog:()=>Ub,scaleDivergingPow:()=>Gb,scaleDivergingSqrt:()=>Kb,scaleDivergingSymlog:()=>Wb,scaleIdentity:()=>B_,scaleImplicit:()=>Kh,scaleLinear:()=>z_,scaleLog:()=>Z_,scaleOrdinal:()=>qh,scalePoint:()=>Xh,scalePow:()=>ov,scaleQuantile:()=>dv,scaleQuantize:()=>fv,scaleRadial:()=>uv,scaleSequential:()=>Fb,scaleSequentialLog:()=>Ib,scaleSequentialPow:()=>Rb,scaleSequentialQuantile:()=>Bb,scaleSequentialSqrt:()=>zb,scaleSequentialSymlog:()=>Lb,scaleSqrt:()=>sv,scaleSymlog:()=>tv,scaleThreshold:()=>pv,scaleTime:()=>jb,scaleUtc:()=>Mb,tickFormat:()=>L_});function Jb(e){var t=qb;if(e in t&&typeof t[e]==`function`)return t[e]();var n=`scale${Ut(e)}`;if(n in t&&typeof t[n]==`function`)return t[n]()}function Yb(e,t,n){if(typeof e==`function`)return e.copy().domain(t).range(n);if(e!=null){var r=Jb(e);if(r!=null)return r.domain(t).range(n),r}}function Xb(e,t,n,r){if(!(n==null||r==null))return typeof e.scale==`function`?Yb(e.scale,n,r):Yb(t,n,r)}function Zb(e){return`scale${Ut(e)}`}function Qb(e){return Zb(e)in qb}var $b=(e,t,n)=>{if(e!=null){var r=e.scale,i=e.type;if(r===`auto`)return i===`category`&&n&&(n.indexOf(`LineChart`)>=0||n.indexOf(`AreaChart`)>=0||n.indexOf(`ComposedChart`)>=0&&!t)?`point`:i===`category`?`band`:`linear`;if(typeof r==`string`)return Qb(r)?r:`point`}};function ex(e,t){for(var n=0,r=e.length,i=e[0]t)?n=a+1:r=a}return n}function tx(e,t){if(e){var n=t??e.domain(),r=n.map(t=>e(t)??0),i=e.range();if(!(n.length===0||i.length<2))return e=>{var t=ex(r,e);if(t<=0)return n[0];if(t>=n.length)return n[n.length-1];var i=r[t-1]??0,a=r[t]??0;return Math.abs(e-i)<=Math.abs(e-a)?n[t-1]:n[t]}}}function nx(e){if(e!=null)return`invert`in e&&typeof e.invert==`function`?e.invert.bind(e):tx(e,void 0)}function rx(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 ix(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.cartesianAxis.xAxis[t],_x=(e,t)=>gx(e,t)??hx,vx={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:mx,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`left`,padding:{top:0,bottom:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`number`,unit:void 0,niceTicks:`auto`,width:60},yx=(e,t)=>e.cartesianAxis.yAxis[t],bx=(e,t)=>yx(e,t)??vx,xx={domain:[0,`auto`],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:``,range:[64,64],scale:`auto`,type:`number`,unit:``},Sx=(e,t)=>e.cartesianAxis.zAxis[t]??xx,Cx=(e,t,n)=>{switch(t){case`xAxis`:return _x(e,n);case`yAxis`:return bx(e,n);case`zAxis`:return Sx(e,n);case`angleAxis`:return Jm(e,n);case`radiusAxis`:return Ym(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},wx=(e,t,n)=>{switch(t){case`xAxis`:return _x(e,n);case`yAxis`:return bx(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},Tx=(e,t,n)=>{switch(t){case`xAxis`:return _x(e,n);case`yAxis`:return bx(e,n);case`angleAxis`:return Jm(e,n);case`radiusAxis`:return Ym(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},Ex=e=>e.graphicalItems.cartesianItems.some(e=>e.type===`bar`)||e.graphicalItems.polarItems.some(e=>e.type===`radialBar`);function Dx(e,t){return n=>{switch(e){case`xAxis`:return`xAxisId`in n&&n.xAxisId===t;case`yAxis`:return`yAxisId`in n&&n.yAxisId===t;case`zAxis`:return`zAxisId`in n&&n.zAxisId===t;case`angleAxis`:return`angleAxisId`in n&&n.angleAxisId===t;case`radiusAxis`:return`radiusAxisId`in n&&n.radiusAxisId===t;default:return!1}}}var Ox=e=>e.graphicalItems.cartesianItems,kx=I([rh,ih],Dx),Ax=(e,t,n)=>e.filter(n).filter(e=>t?.includeHidden===!0?!0:!e.hide),jx=I([Ox,Cx,kx],Ax,{memoizeOptions:{resultEqualityCheck:lh}}),Mx=I([jx],e=>e.filter(e=>e.type===`area`||e.type===`bar`).filter(sh)),Nx=e=>e.filter(e=>!(`stackId`in e)||e.stackId===void 0),Px=I([jx],Nx),Fx=e=>e.map(e=>e.data).filter(Boolean).flat(1),Ix=I([jx],e=>e.some(e=>!e.data)),Lx=I([jx],Fx,{memoizeOptions:{resultEqualityCheck:lh}}),Rx=(e,t)=>{var n=t.chartData,r=n===void 0?[]:n,i=t.dataStartIndex,a=t.dataEndIndex;return e.length>0?e:r.slice(i,a+1)},zx=I([Lx,Xp],Rx),Bx=(e,t,n)=>t?.dataKey==null?n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:is(e,t)}))):e.map(e=>({value:e})):e.map(e=>({value:is(e,t.dataKey)})),Vx=(e,t,n,r,i,a)=>{var o=r.chartData,s=o===void 0?[]:o,c=r.dataStartIndex,l=r.dataEndIndex,u=Bx(e,t,n);return i&&t?.dataKey!=null&&a.length>0?[...s.slice(c,l+1).map(e=>({value:is(e,t.dataKey)})).filter(e=>e.value!=null),...u]:u},Hx=I([zx,Cx,jx,Xp,Ix,Lx],Vx);function Ux(e){if(Ft(e)||e instanceof Date){var t=Number(e);if(L(t))return t}}function Wx(e){if(Array.isArray(e)){var t=[Ux(e[0]),Ux(e[1])];return om(t)?t:void 0}var n=Ux(e);if(n!=null)return[n,n]}function Gx(e){return e.map(Ux).filter(Wt)}function Kx(e,t){var n=Ux(e),r=Ux(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var qx=I([Hx],e=>e?.map(e=>e.value).sort(Kx));function Jx(e,t){switch(e){case`xAxis`:return t.direction===`x`;case`yAxis`:return t.direction===`y`;default:return!1}}function Yx(e,t,n){if(!n||!n.length)return[];var r;if(typeof t==`number`&&!Nt(t))r=t;else if(Array.isArray(t)){var i=Gx(t);i.length>0&&(r=Math.max(...i))}return r==null?[]:Gx(n.flatMap(t=>{var n=is(e,t.dataKey),i,a;if(Array.isArray(n)){var o=cx(n,2);i=o[0],a=o[1]}else i=a=n;if(!(!L(i)||!L(a)))return[r-i,r+a]}))}var Xx=e=>Tx(e,dh(e),fh(e)),Zx=I([Xx],e=>e?.dataKey),Qx=I([Mx,Xp,Xx],oh),$x=(e,t,n,r)=>{var i=t.reduce((e,t)=>{if(t.stackId==null)return e;var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var i=cx(t,2),a=i[0],o=i[1],s=r?[...o].reverse():o;return[a,{stackedData:ds(e,s.map(ah),n),graphicalItems:s}]}))},eS=I([Qx,Mx,km,Am],$x),tS=(e,t,n,r)=>{var i=t.dataStartIndex,a=t.dataEndIndex;if(r==null&&n!==`zAxis`)return vs(e,i,a)},nS=I([Cx],e=>e.allowDataOverflow),rS=e=>{if(e==null||!(`domain`in e))return mx;if(e.domain!=null)return e.domain;if(`ticks`in e&&e.ticks!=null){if(e.type===`number`){var t=Gx(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===`category`)return e.ticks.map(String)}return e?.domain??mx},iS=I([Cx],rS),aS=I([iS,nS],cm),oS=I([eS,Jp,rh,aS],tS,{memoizeOptions:{resultEqualityCheck:ch}}),sS=e=>e.errorBars,cS=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>Jx(n,e)),lS=function(){var e=[...arguments].filter(Boolean);if(e.length!==0){var t=e.flat();return[Math.min(...t),Math.max(...t)]}},uS=function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o,s;if(n.length>0&&n.forEach(e=>{var n=e.data==null?a:[...e.data],c=r[e.id]?.filter(e=>Jx(i,e));n.forEach(n=>{var r=is(n,t.dataKey??e.dataKey),i=Yx(n,r,c);if(i.length>=2){var a=Math.min(...i),l=Math.max(...i);(o==null||as)&&(s=l)}var u=Wx(r);u!=null&&(o=o==null?u[0]:Math.min(o,u[0]),s=s==null?u[1]:Math.max(s,u[1]))})}),t?.dataKey!=null&&n.length===0&&e.forEach(e=>{var n=Wx(is(e,t.dataKey));n!=null&&(o=o==null?n[0]:Math.min(o,n[0]),s=s==null?n[1]:Math.max(s,n[1]))}),L(o)&&L(s))return[o,s]},dS=I([zx,Cx,Px,sS,rh,Qp],uS,{memoizeOptions:{resultEqualityCheck:ch}});function fS(e){var t=e.value;if(Ft(t)||t instanceof Date)return t}var pS=(e,t,n)=>{var r=e.map(fS).filter(e=>e!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&zt(r))?(0,qp.default)(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},mS=e=>e.referenceElements.dots,hS=(e,t,n)=>e.filter(e=>e.ifOverflow===`extendDomain`).filter(e=>t===`xAxis`?e.xAxisId===n:e.yAxisId===n),gS=I([mS,rh,ih],hS),_S=e=>e.referenceElements.areas,vS=I([_S,rh,ih],hS),yS=e=>e.referenceElements.lines,bS=I([yS,rh,ih],hS),xS=(e,t)=>{if(e!=null){var n=Gx(e.map(e=>t===`xAxis`?e.x:e.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},SS=I(gS,rh,xS),CS=(e,t)=>{if(e!=null){var n=Gx(e.flatMap(e=>[t===`xAxis`?e.x1:e.y1,t===`xAxis`?e.x2:e.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},wS=I([vS,rh],CS);function TS(e){if(e.x!=null)return Gx([e.x]);var t=e.segment?.map(e=>e.x);return t==null||t.length===0?[]:Gx(t)}function ES(e){if(e.y!=null)return Gx([e.y]);var t=e.segment?.map(e=>e.y);return t==null||t.length===0?[]:Gx(t)}var DS=(e,t)=>{if(e!=null){var n=e.flatMap(e=>t===`xAxis`?TS(e):ES(e));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},OS=I(SS,I([bS,rh],DS),wS,(e,t,n)=>lS(e,n,t)),kS=(e,t,n,r,i,a,o,s)=>n??lm(t,o===`vertical`&&s===`xAxis`||o===`horizontal`&&s===`yAxis`?lS(r,a,i):lS(a,i),e.allowDataOverflow),AS=I([Cx,iS,aS,oS,dS,OS,Rc,rh],kS,{memoizeOptions:{resultEqualityCheck:ch}}),jS=[0,1],MS=(e,t,n,r,i,a,o)=>{if(!((e==null||n==null||n.length===0)&&o===void 0)){var s=e.dataKey,c=e.type,l=os(t,a);return l&&s==null?(0,qp.default)(0,n?.length??0):c===`category`?pS(r,e,l):i===`expand`&&!l?jS:o}},NS=I([Cx,Rc,zx,Hx,km,rh,AS],MS),PS=I([Cx,Ex,jm],$b),FS=(e,t,n)=>{var r=t.niceTicks;if(r!==`none`){var i=rS(t),a=Array.isArray(i)&&(i[0]===`auto`||i[1]===`auto`);if((r===`snap125`||r===`adaptive`)&&t!=null&&t.tickCount&&om(e)){if(a)return Cm(e,t.tickCount,t.allowDecimals,r);if(t.type===`number`)return wm(e,t.tickCount,t.allowDecimals,r)}if(r===`auto`&&n===`linear`&&t!=null&&t.tickCount){if(a&&om(e))return Cm(e,t.tickCount,t.allowDecimals,`adaptive`);if(t.type===`number`&&om(e))return wm(e,t.tickCount,t.allowDecimals,`adaptive`)}}},IS=I([NS,Tx,PS],FS),LS=(e,t,n,r)=>{if(r!==`angleAxis`&&e?.type===`number`&&om(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0]??0,o=t[1],s=n[n.length-1]??0;return[Math.min(i,a),Math.max(o,s)]}return t},RS=I([Cx,NS,IS,rh],LS),zS=I(I(Hx,Cx,(e,t)=>{if(!(!t||t.type!==`number`)){var n=1/0,r=Array.from(Gx(e.map(e=>e.value))).sort((e,t)=>e-t),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var s=0;si,(e,t,n,r,i)=>{if(!L(e))return 0;var a=t===`vertical`?r.height:r.width;if(i===`gap`)return e*a/2;if(i===`no-gap`){var o=Rt(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),BS=(e,t,n)=>{var r=_x(e,t);return r==null||typeof r.padding!=`string`?0:zS(e,`xAxis`,t,n,r.padding)},VS=(e,t,n)=>{var r=bx(e,t);return r==null||typeof r.padding!=`string`?0:zS(e,`yAxis`,t,n,r.padding)},HS=I(_x,BS,(e,t)=>{if(e==null)return{left:0,right:0};var n=e.padding;return typeof n==`string`?{left:t,right:t}:{left:(n.left??0)+t,right:(n.right??0)+t}}),US=I(bx,VS,(e,t)=>{if(e==null)return{top:0,bottom:0};var n=e.padding;return typeof n==`string`?{top:t,bottom:t}:{top:(n.top??0)+t,bottom:(n.bottom??0)+t}}),WS=I([Us,HS,Ys,Js,(e,t,n)=>n],(e,t,n,r,i)=>{var a=r.padding;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),GS=I([Us,Rc,US,Ys,Js,(e,t,n)=>n],(e,t,n,r,i,a)=>{var o=i.padding;return a?[r.height-o.bottom,o.top]:t===`horizontal`?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),KS=(e,t,n,r)=>{switch(t){case`xAxis`:return WS(e,n,r);case`yAxis`:return GS(e,n,r);case`zAxis`:return Sx(e,n)?.range;case`angleAxis`:return eh(e);case`radiusAxis`:return th(e,n);default:return}},qS=I([Cx,KS],zm),JS=I([Cx,PS,I([PS,RS],mh),qS],Xb),YS=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var i=n.type,a=n.scale;if(os(e,r)&&(i===`number`||a!==`auto`))return t.map(e=>e.value)}},XS=I([Rc,Hx,Tx,rh],YS),ZS=I([JS],ph);I([JS],nx),I([JS,qx],tx),I([jx,sS,rh],cS);function QS(e,t){return e.idt.id)}var $S=(e,t)=>t,eC=(e,t,n)=>n,tC=I(As,$S,eC,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(QS)),nC=I(js,$S,eC,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(QS)),rC=(e,t)=>({width:e.width,height:t.height}),iC=(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height}),aC=I(Us,_x,rC),oC=(e,t,n)=>{switch(t){case`top`:return e.top;case`bottom`:return n-e.bottom;default:return 0}},sC=(e,t,n)=>{switch(t){case`left`:return e.left;case`right`:return n-e.right;default:return 0}},cC=I(Ds,Us,tC,$S,eC,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=rC(t,n);o??=oC(t,r,e);var c=r===`top`&&!i||r===`bottom`&&i;a[n.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),lC=I(Es,Us,nC,$S,eC,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=iC(t,n);o??=sC(t,r,e);var c=r===`left`&&!i||r===`right`&&i;a[n.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),uC=I([Us,_x,(e,t)=>{var n=_x(e,t);if(n!=null)return cC(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),dC=I([Us,bx,(e,t)=>{var n=bx(e,t);if(n!=null)return lC(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),fC=I(Us,bx,(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height})),pC=(e,t,n)=>{switch(t){case`xAxis`:return aC(e,n).width;case`yAxis`:return fC(e,n).height;default:return}},mC=(e,t,n,r)=>{if(n!=null){var i=n.allowDuplicatedCategory,a=n.type,o=n.dataKey,s=os(e,r),c=t.map(e=>e.value),l=c.filter(e=>e!=null);if(o&&s&&a===`category`&&i&&zt(l))return c}},hC=I([Rc,Hx,Cx,rh],mC),gC=I([Rc,wx,PS,ZS,hC,XS,KS,IS,rh],(e,t,n,r,i,a,o,s,c)=>{if(t!=null){var l=os(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:l,niceTicks:s,range:o,realScaleType:n,scale:r}}}),_C=I([Rc,Tx,PS,ZS,IS,KS,hC,XS,rh],(e,t,n,r,i,a,o,s,c)=>{if(!(t==null||r==null)){var l=os(e,c),u=t.type,d=t.ticks,f=t.tickCount,p=n===`scaleBand`&&typeof r.bandwidth==`function`?r.bandwidth()/2:2,m=u===`category`&&r.bandwidth?r.bandwidth()/p:0;m=c===`angleAxis`&&a!=null&&a.length>=2?Mt(a[0]-a[1])*2*m:m;var h=d||i;return h?h.map((e,t)=>{var n=o?o.indexOf(e):e,i=r.map(n);return L(i)?{index:t,coordinate:i+m,value:e,offset:m}:null}).filter(Wt):l&&s?s.map((e,t)=>{var n=r.map(e);return L(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Wt):r.ticks?r.ticks(f).map((e,t)=>{var n=r.map(e);return L(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Wt):r.domain().map((e,t)=>{var n=r.map(e);return L(n)?{coordinate:n+m,value:o?o[e]:e,index:t,offset:m}:null}).filter(Wt)}}),vC=I([Rc,Tx,ZS,KS,hC,XS,rh],(e,t,n,r,i,a,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=os(e,o),c=t.tickCount,l=0;return l=o===`angleAxis`&&r?.length>=2?Mt(r[0]-r[1])*2*l:l,s&&a?a.map((e,t)=>{var r=n.map(e);return L(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Wt):n.ticks?n.ticks(c).map((e,t)=>{var r=n.map(e);return L(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Wt):n.domain().map((e,t)=>{var r=n.map(e);return L(r)?{coordinate:r+l,value:i?i[e]:e,index:t,offset:l}:null}).filter(Wt)}}),yC=I(Cx,ZS,(e,t)=>{if(!(e==null||t==null))return ix(ix({},e),{},{scale:t})});I((e,t,n)=>Sx(e,n),I([I([Cx,PS,NS,qS],Xb)],ph),(e,t)=>{if(!(e==null||t==null))return ix(ix({},e),{},{scale:t})});var bC=I([Rc,As,js],(e,t,n)=>{switch(e){case`horizontal`:return t.some(e=>e.reversed)?`right-to-left`:`left-to-right`;case`vertical`:return n.some(e=>e.reversed)?`bottom-to-top`:`top-to-bottom`;case`centric`:case`radial`:return`left-to-right`;default:return}});I([(e,t,n)=>e.renderedTicks[t]?.[n]],e=>{if(!(!e||e.length===0))return t=>{var n=1/0,r=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);ae.options.defaultTooltipEventType,SC=e=>e.options.validateTooltipEventTypes;function CC(e,t,n){if(e==null)return t;var r=e?`axis`:`item`;return n==null?t:n.includes(r)?r:t}function wC(e,t){return CC(t,xC(e),SC(e))}function TC(e){return F(t=>wC(t,e))}var EC=(e,t)=>{var n,r=Number(t);if(!(Nt(r)||t==null))return r>=0?e==null||(n=e[r])==null?void 0:n.value:void 0},DC=e=>e.tooltip.settings,OC={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},kC=to({name:`tooltip`,initialState:{itemInteraction:{click:OC,hover:OC},axisInteraction:{click:OC,hover:OC},keyboardInteraction:OC,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:`hover`,axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(R(t.payload))},prepare:Ba()},replaceTooltipEntrySettings:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=Ea(e).tooltipItemPayloads.indexOf(R(r));a>-1&&(e.tooltipItemPayloads[a]=R(i))},prepare:Ba()},removeTooltipEntrySettings:{reducer(e,t){var n=Ea(e).tooltipItemPayloads.indexOf(R(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:Ba()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),AC=kC.actions,jC=AC.addTooltipEntrySettings,MC=AC.replaceTooltipEntrySettings,NC=AC.removeTooltipEntrySettings,PC=AC.setTooltipSettingsState,FC=AC.setActiveMouseOverItemIndex,IC=AC.mouseLeaveItem,LC=AC.mouseLeaveChart,RC=AC.setActiveClickItemIndex,zC=AC.setMouseOverAxisIndex,BC=AC.setMouseClickAxisIndex,VC=AC.setSyncInteraction,HC=AC.setKeyboardInteraction,UC=kC.reducer;function WC(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 GC(e){for(var t=1;t{if(t==null)return OC;var i=YC(e,t,n);if(i==null)return OC;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(XC(i)){if(a)return GC(GC({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return GC(GC({},OC),{},{coordinate:i.coordinate})};function QC(e){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function $C(e,t){var n=QC(e),r=t[0],i=t[1];return n===void 0?!1:n>=Math.min(r,i)&&n<=Math.max(r,i)}function ew(e,t,n){if(n==null||t==null)return!0;var r=is(e,t);return r==null||!om(n)?!0:$C(r,n)}var tw=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!L(a))return i;var o=0,s=1/0;t.length>0&&(s=t.length-1);var c=Math.max(o,Math.min(a,s)),l=t[c];return l==null||ew(l,n,r)?String(c):null},nw=(e,t,n,r,i,a,o)=>{if(a!=null){var s=o[0]?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(n){case`horizontal`:return{x:c.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:c.coordinate}}}},rw=(e,t,n,r)=>{if(t===`axis`)return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i=n===`hover`?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId;if(e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(r!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a==null?[]:[a]}return e.tooltipItemPayloads.filter(e=>e.settings?.graphicalItemId===i)},iw=e=>e.options.tooltipPayloadSearcher,aw=e=>e.tooltip;function ow(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 sw(e){for(var t=1;te(t)}function mw(e){if(typeof e==`string`)return e}function hw(e){if(!(typeof e!=`object`||!e))return{name:`name`in e?dw(e.name):void 0,unit:`unit`in e?fw(e.unit):void 0,dataKey:`dataKey`in e?pw(e.dataKey):void 0,payload:`payload`in e?e.payload:void 0,color:`color`in e?mw(e.color):void 0,fill:`fill`in e?mw(e.fill):void 0}}function gw(e,t){return e??t}var _w=(e,t,n,r,i,a,o)=>{if(!(t==null||a==null)){var s=n.chartData,c=n.computedData,l=n.dataStartIndex,u=n.dataEndIndex;return e.reduce((e,n)=>{var d=n.dataDefinedOnItem,f=n.settings,p=gw(d,s),m=Array.isArray(p)?Zo(p,l,u):p,h=f?.dataKey??r,g=f?.nameKey,_=r&&Array.isArray(m)&&!Array.isArray(m[0])&&o===`axis`?Vt(m,r,i):a(m,t,c,g);return Array.isArray(_)?_.forEach(t=>{var n=hw(t),r=n?.name,i=n?.dataKey,a=n?.payload,o=sw(sw({},f),{},{name:r,unit:n?.unit,color:n?.color??f?.color,fill:n?.fill??f?.fill});e.push(Ss({tooltipEntrySettings:o,dataKey:i,payload:a,value:is(a,i),name:r==null?void 0:String(r)}))}):e.push(Ss({tooltipEntrySettings:f,dataKey:h,payload:_,value:is(_,h),name:is(_,g)??f?.name})),e},[])}},vw=I([Xx,Ex,jm],$b),yw=I([I([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Xx,I([dh,fh],Dx)],Ax,{memoizeOptions:{resultEqualityCheck:lh}}),bw=I([yw],e=>e.filter(sh)),xw=I([yw],Fx,{memoizeOptions:{resultEqualityCheck:lh}}),Sw=I([yw],e=>e.some(e=>!e.data)),Cw=I([xw,Jp],Rx),ww=I([bw,Jp,Xx],oh),Tw=I([Cw,Xx,yw,Jp,Sw,xw],Vx),Ew=I([Xx],rS),Dw=I([Ew,I([Xx],e=>e.allowDataOverflow)],cm),Ow=I([I([ww,I([yw],e=>e.filter(sh)),km,Am],$x),Jp,dh,Dw],tS),kw=I([Cw,Xx,I([yw],Nx),sS,dh,$p],uS,{memoizeOptions:{resultEqualityCheck:ch}}),Aw=I([I([mS,dh,fh],hS),dh],xS),jw=I([I([_S,dh,fh],hS),dh],CS),Mw=I([Xx,Rc,Cw,Tw,km,dh,I([Xx,Ew,Dw,Ow,kw,I([Aw,I([I([yS,dh,fh],hS),dh],DS),jw],lS),Rc,dh],kS)],MS),Nw=I([Xx,Mw,I([Mw,Xx,vw],FS),dh],LS),Pw=e=>KS(e,dh(e),fh(e),!1),Fw=I([Xx,Pw],zm),Iw=I([I([Xx,vw,Nw,Fw],Xb)],ph),Lw=I([Rc,Xx,vw,Iw,Pw,I([Rc,Tw,Xx,dh],mC),I([Rc,Tw,Xx,dh],YS),dh],(e,t,n,r,i,a,o,s)=>{if(t){var c=t.type,l=os(e,s);if(r){var u=n===`scaleBand`&&r.bandwidth?r.bandwidth()/2:2,d=c===`category`&&r.bandwidth?r.bandwidth()/u:0;return d=s===`angleAxis`&&i!=null&&i?.length>=2?Mt(i[0]-i[1])*2*d:d,l&&o?o.map((e,t)=>{var n=r.map(e);return L(n)?{coordinate:n+d,value:e,index:t,offset:d}:null}).filter(Wt):r.domain().map((e,t)=>{var n=r.map(e);return L(n)?{coordinate:n+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(Wt)}}}),Rw=I([xC,SC,DC],(e,t,n)=>CC(n.shared,e,t)),zw=e=>e.tooltip.settings.trigger,Bw=e=>e.tooltip.settings.defaultIndex,Vw=I([aw,Rw,zw,Bw],ZC),Hw=I([Vw,Cw,Zx,Mw],tw),Uw=I([Lw,Hw],EC),Ww=I([Vw],e=>{if(e)return e.dataKey}),Gw=I([Vw],e=>{if(e)return e.graphicalItemId}),Kw=I([aw,Rw,zw,Bw],rw),qw=I([Vw,I([Es,Ds,Rc,Us,Lw,Bw,Kw],nw)],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Jw=I([Vw],e=>e?.active??!1),Yw=I([I([Kw,Hw,Jp,Zx,Uw,iw,Rw],_w)],e=>{if(e!=null){var t=e.map(e=>e.payload).filter(e=>e!=null);return Array.from(new Set(t))}});function Xw(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 Zw(e){for(var t=1;tF(Xx),nT=()=>{var e=tT(),t=F(Lw),n=F(Iw);return xs(!e||!n?void 0:Zw(Zw({},e),{},{scale:n}),t)};function rT(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 iT(e){for(var t=1;t{var i=t.find(e=>e&&e.index===n);if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.relativeY};if(e===`vertical`)return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},lT=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`centric`){var a=i.coordinate,o=r.radius;return iT(iT(iT({},r),bp(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,c=r.angle;return iT(iT(iT({},r),bp(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function uT(e,t){var n=e.relativeX,r=e.relativeY;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var dT=(e,t,n,r,i)=>{var a=t?.length??0;if(a<=1||e==null)return 0;if(r===`angleAxis`&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var o=0;o0?n[o-1]?.coordinate:n[a-1]?.coordinate,c=n[o]?.coordinate,l=o>=a-1?n[0]?.coordinate:n[o+1]?.coordinate,u=void 0;if(!(s==null||c==null||l==null))if(Mt(c-s)!==Mt(l-c)){var d=[];if(Mt(l-c)===Mt(i[1]-i[0])){u=l;var f=c+i[1]-i[0];d[0]=Math.min(f,(f+s)/2),d[1]=Math.max(f,(f+s)/2)}else{u=s;var p=l+i[1]-i[0];d[0]=Math.min(c,(p+c)/2),d[1]=Math.max(c,(p+c)/2)}var m=[Math.min(c,(u+c)/2),Math.max(c,(u+c)/2)];if(e>m[0]&&e<=m[1]||e>=d[0]&&e<=d[1])return n[o]?.index}else{var h=Math.min(s,l),g=Math.max(s,l);if(e>(h+c)/2&&e<=(g+c)/2)return n[o]?.index}}else if(t)for(var _=0;_(v.coordinate+b.coordinate)/2||_>0&&_(v.coordinate+b.coordinate)/2&&e<=(v.coordinate+y.coordinate)/2)return v.index}}return-1},fT=()=>F(jm),pT=(e,t)=>t,mT=(e,t,n)=>n,hT=(e,t,n,r)=>r,gT=I(Lw,e=>(0,Ir.default)(e,e=>e.coordinate)),_T=I([aw,pT,mT,hT],ZC),vT=I([_T,Cw,Zx,Mw],tw),yT=(e,t,n)=>{if(t!=null){var r=aw(e);return t===`axis`?n===`hover`?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n===`hover`?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},bT=I([aw,pT,mT,hT],rw),xT=I([Es,Ds,Rc,Us,Lw,hT,bT],nw),ST=I([_T,xT],(e,t)=>e.coordinate??t),CT=I([Lw,vT],EC),wT=I([bT,vT,Jp,Zx,CT,iw,pT],_w),TT=I([_T,vT],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),ET=(e,t,n,r,i,a,o)=>{if(!(!e||!n||!r||!i)&&uT(e,o)){var s=dT(ws(e,t),a,i,n,r),c=cT(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},DT=(e,t,n,r,i,a,o)=>{if(!(!e||!r||!i||!a||!n)){var s=Ep(e,n);if(s){var c=dT(Ts(s,t),o,a,r,i),l=lT(t,a,c,s);return{activeIndex:String(c),activeCoordinate:l}}}},OT=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a))return t===`horizontal`||t===`vertical`?ET(e,t,r,i,a,o,s):DT(e,t,n,r,i,a,o)},kT=I(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),AT=I(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(Im));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:uh}});function jT(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 MT(e){for(var t=1;tMT(MT({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},LT=new Set(Object.values(Im));function RT(e){return LT.has(e)}var zT=to({name:`zIndex`,initialState:IT,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Ba()},unregisterZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(--e.zIndexMap[n].consumers,e.zIndexMap[n].consumers<=0&&!RT(n)&&delete e.zIndexMap[n])},prepare:Ba()},registerZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload,r=n.zIndex,i=n.element,a=n.isPanorama;e.zIndexMap[r]?a?e.zIndexMap[r].panoramaElement=R(i):e.zIndexMap[r].element=R(i):e.zIndexMap[r]={consumers:0,element:a?void 0:R(i),panoramaElement:a?R(i):void 0}},prepare:Ba()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:Ba()}}}),BT=zT.actions,VT=BT.registerZIndexPortal,HT=BT.unregisterZIndexPortal,UT=BT.registerZIndexPortalElement,WT=BT.unregisterZIndexPortalElement,GT=zT.reducer;function KT(e){var t=e.zIndex,n=e.children,r=Hc()&&t!==void 0&&t!==0,i=qs(),a=(0,l.useRef)(void 0),o=(0,l.useRef)(new Set),s=fr(),c=F(e=>kT(e,t,i));if((0,l.useLayoutEffect)(()=>{if(!r){var e=o.current;e.forEach(e=>{s(HT({zIndex:e}))}),e.clear(),a.current=void 0;return}if(o.current.has(t)||(s(VT({zIndex:t})),o.current.add(t)),c){a.current=c;var n=o.current;n.forEach(e=>{e!==t&&(s(HT({zIndex:e})),n.delete(e))})}},[s,t,r,c]),(0,l.useLayoutEffect)(()=>{var e=o.current;return()=>{e.forEach(e=>{s(HT({zIndex:e}))}),e.clear()}},[s]),!r)return n;var d=c??a.current;return d?(0,u.createPortal)(n,d):null}function qT(){return qT=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,l.useContext)(nE),iE=e(n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Nt(n))return e[n]}},lE=to({name:`options`,initialState:{chartName:``,tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:`axis`},reducers:{createEventEmitter:e=>{e.eventEmitter??=Symbol(`rechartsEventEmitter`)}}}),uE=lE.reducer,dE=lE.actions.createEventEmitter;function fE(e){return e.tooltip.syncInteraction}var pE=to({name:`chartData`,initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=R(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var n=t.payload,r=n.startIndex,i=n.endIndex;r!=null&&(e.dataStartIndex=r),i!=null&&(e.dataEndIndex=i)}}}),mE=pE.actions,hE=mE.setChartData,gE=mE.setDataStartEndIndexes;mE.setComputedData;var _E=pE.reducer,vE=[`x`,`y`];function yE(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 bE(e){for(var t=1;t{if(e==null)return Gt;var s=(s,c,l)=>{if(t!==l&&e===s){if(c.payload.active===!1){n(VC({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r===`index`){var u;if(o&&c!=null&&(u=c.payload)!=null&&u.coordinate&&c.payload.sourceViewBox){var d=c.payload.coordinate,f=d.x,p=d.y,m=wE(d,vE),h=c.payload.sourceViewBox,g=h.x,_=h.y,v=h.width,y=h.height,b=bE(bE({},m),{},{x:o.x+(v?(f-g)/v:0)*o.width,y:o.y+(y?(p-_)/y:0)*o.height});n(bE(bE({},c),{},{payload:bE(bE({},c.payload),{},{coordinate:b})}))}else n(c);return}if(i!=null){var x;typeof r==`function`?x=i[r(i,{activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate})]:r===`value`&&(x=i.find(e=>String(e.value)===c.payload.label));var S=c.payload.coordinate;if(S==null||o==null){n(VC({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(x==null){n(VC({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));return}var C=S.x,w=S.y,T=Math.min(C,o.x+o.width),E=Math.min(w,o.y+o.height),D={x:a===`horizontal`?x.coordinate:T,y:a===`horizontal`?E:x.coordinate};n(VC({active:c.payload.active,coordinate:D,dataKey:c.payload.dataKey,index:String(x.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId}))}}};return aE.on(oE,s),()=>{aE.off(oE,s)}},[F(e=>e.rootProps.className),n,t,e,r,i,a,o])}function DE(){var e=F(Mm),t=F(Pm),n=fr();(0,l.useEffect)(()=>{if(e==null)return Gt;var r=(r,i,a)=>{t!==a&&e===r&&n(gE(i))};return aE.on(sE,r),()=>{aE.off(sE,r)}},[n,t,e])}function OE(){var e=fr();(0,l.useEffect)(()=>{e(dE())},[e]),EE(),DE()}function kE(e,t,n,r,i,a){var o=F(n=>yT(n,e,t)),s=F(Gw),c=F(Pm),u=F(Mm),d=F(Nm),f=F(fE)?.sourceViewBox!=null,p=Mc();(0,l.useEffect)(()=>{if(!f&&u!=null&&c!=null){var e=VC({active:a,coordinate:n,dataKey:o,index:i,label:typeof r==`number`?String(r):r,sourceViewBox:p,graphicalItemId:s});aE.emit(oE,u,e,c)}},[f,n,o,s,i,r,c,u,d,a,p])}function AE(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 jE(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{C(PC({shared:v,trigger:y,axisId:S,active:n,defaultIndex:w}))},[C,v,y,S,n,w]);var T=Mc(),E=Ed(),D=TC(v),O=F(e=>TT(e,D,y,w))??{},k=O.activeIndex,A=O.isActive,j=F(e=>wT(e,D,y,w)),M=F(e=>CT(e,D,y,w)),N=F(e=>ST(e,D,y,w)),ee=j,te=rE(),ne=n??A??!1,re=FE(Xr([ee,ne]),2),ie=re[0],ae=re[1],oe=D===`axis`?M:void 0;kE(D,y,N,oe,k,ne);var se=x??te;if(se==null||T==null||D==null)return null;var ce=ee??UE;ne||(ce=UE),s&&ce.length&&(ce=sr(ce.filter(e=>e.value!=null&&(e.hide!==!0||t.includeHidden)),f,VE));var le=ce.length>0,ue=jE(jE({},t),{},{payload:ce,label:oe,active:ne,activeIndex:k,coordinate:N,accessibilityLayer:E}),de=l.createElement(Td,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:c,active:ne,coordinate:N,hasPayload:le,offset:d,position:p,reverseDirection:m,useTranslate3d:h,viewBox:T,wrapperStyle:g,lastBoundingBox:ie,innerRef:ae,hasPortalFromProps:!!x},HE(o,ue));return l.createElement(l.Fragment,null,(0,u.createPortal)(de,se),ne&&l.createElement(tE,{cursor:_,tooltipEventType:D,coordinate:N,payload:ce,index:k}))}var KE=e=>null;KE.displayName=`Cell`;function qE(e,t,n){return(t=JE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JE(e){var t=YE(e,`string`);return typeof t==`symbol`?t:t+``}function YE(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 XE=class{constructor(e){qE(this,`cache`,new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};function ZE(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 QE(e){for(var t=1;t{try{var n=document.getElementById(aD);n||(n=document.createElement(`span`),n.setAttribute(`id`,aD),n.setAttribute(`aria-hidden`,`true`),document.body.appendChild(n)),Object.assign(n.style,iD,t),n.textContent=`${e}`;var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},cD=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||id.isSsr)return{width:0,height:0};if(!nD.enableCache)return sD(e,t);var n=oD(e,t),r=rD.get(n);if(r)return r;var i=sD(e,t);return rD.set(n,i),i},lD;function uD(e,t){return hD(e)||mD(e,t)||fD(e,t)||dD()}function dD(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fD(e,t){if(e){if(typeof e==`string`)return pD(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pD(e,t):void 0}}function pD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n{var t=e.children,n=e.breakAll,r=e.style;try{var i=[];return Ht(t)||(i=n?t.toString().split(``):t.toString().split(KD)),{wordsWithComputedWidth:i.map(e=>({word:e,width:cD(e,r).width})),spaceWidth:n?0:cD(`\xA0`,r).width}}catch{return null}};function JD(e){return e===`start`||e===`middle`||e===`end`||e===`inherit`}function YD(e){return Ht(e)||typeof e==`string`||typeof e==`number`||typeof e==`boolean`}var XD=(e,t,n,r)=>e.reduce((e,i)=>{var a=i.word,o=i.width,s=e[e.length-1];if(s&&o!=null&&(t==null||r||s.width+o+ne.reduce((e,t)=>e.width>t.width?e:t),QD=`…`,$D=(e,t,n,r,i,a,o,s)=>{var c=qD({breakAll:n,style:r,children:e.slice(0,t)+QD});if(!c)return[!1,[]];var l=XD(c.wordsWithComputedWidth,a,o,s);return[l.length>i||ZD(l).width>Number(a),l]},eO=(e,t,n,r,i)=>{var a=e.maxLines,o=e.children,s=e.style,c=e.breakAll,l=P(a),u=String(o),d=XD(t,r,n,i);if(!l||i||!(d.length>a||ZD(d).width>Number(r)))return d;for(var f=0,p=u.length-1,m=0,h;f<=p&&m<=u.length-1;){var g=Math.floor((f+p)/2),_=BD($D(u,g-1,c,s,a,r,n,i),2),v=_[0],y=_[1],b=BD($D(u,g,c,s,a,r,n,i),1)[0];if(!v&&!b&&(f=g+1),v&&b&&(p=g-1),!v&&b){h=y;break}m++}return h||d},tO=e=>[{words:Ht(e)?[]:e.toString().split(KD),width:void 0}],nO=e=>{var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,a=e.breakAll,o=e.maxLines;if((t||n)&&!id.isSsr){var s,c,l=qD({breakAll:a,children:r,style:i});if(l){var u=l.wordsWithComputedWidth,d=l.spaceWidth;s=u,c=d}else return tO(r);return eO({breakAll:a,children:r,maxLines:o,style:i},s,c,t,!!n)}return tO(r)},rO=`#808080`,iO={angle:0,breakAll:!1,capHeight:`0.71em`,fill:rO,lineHeight:`1em`,scaleToFit:!1,textAnchor:`start`,verticalAnchor:`end`,x:0,y:0},aO=(0,l.forwardRef)((e,t)=>{var n=_n(e,iO),r=n.x,i=n.y,a=n.lineHeight,s=n.capHeight,c=n.fill,u=n.scaleToFit,d=n.textAnchor,f=n.verticalAnchor,p=RD(n,FD),m=(0,l.useMemo)(()=>nO({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:u,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,u,p.style,p.width]),h=p.dx,g=p.dy,_=p.angle,y=p.className,b=p.breakAll,x=RD(p,ID);if(!Ft(r)||!Ft(i)||m.length===0)return null;var S=Number(r)+(P(h)?h:0),C=Number(i)+(P(g)?g:0);if(!L(S)||!L(C))return null;var w;switch(f){case`start`:w=PD(`calc(${s})`);break;case`middle`:w=PD(`calc(${(m.length-1)/2} * -${a} + (${s} / 2))`);break;default:w=PD(`calc(${m.length-1} * -${a})`);break}var T=[],E=m[0];if(u&&E!=null){var D=E.width,O=p.width;T.push(`scale(${P(O)&&P(D)?O/D:1})`)}return _&&T.push(`rotate(${_}, ${S}, ${C})`),T.length&&(x.transform=T.join(` `)),l.createElement(`text`,LD({},v(x),{ref:t,x:S,y:C,className:o(`recharts-text`,y),textAnchor:d,fill:c.includes(`url`)?rO:c}),m.map((e,t)=>{var n=e.words.join(b?``:` `);return l.createElement(`tspan`,{x:S,dy:t===0?w:a,key:`${n}-${t}`},n)}))});aO.displayName=`Text`;function oO(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 sO(e){for(var t=1;t{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=jc(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?sO({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?sO({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?sO({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?sO({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?sO({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?sO({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?sO({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?sO({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(P(n.x)||Pt(n.x))&&(P(n.y)||Pt(n.y))?sO({x:c+Rt(n.x,g),y:l+Rt(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):sO({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},fO=[`labelRef`],pO=[`content`];function mO(e,t){if(e==null)return{};var n,r,i=hO(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r{var t=e.x,n=e.y,r=e.upperWidth,i=e.lowerWidth,a=e.width,o=e.height,s=e.children,c=(0,l.useMemo)(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o}),[t,n,r,i,a,o]);return l.createElement(SO.Provider,{value:c},s)},wO=()=>{var e=(0,l.useContext)(SO),t=Mc();return e||(t?jc(t):void 0)},TO=(0,l.createContext)(null),EO=()=>{var e=(0,l.useContext)(TO),t=F(nh);return e||t},DO=e=>{var t=e.value,n=e.formatter,r=Ht(e.children)?t:e.children;return typeof n==`function`?n(r):r},OO=e=>e!=null&&typeof e==`function`,kO=(e,t)=>Mt(t-e)*Math.min(Math.abs(t-e),360),AO=(e,t,n,r,i)=>{var a=e.offset,s=e.className,c=i.cx,u=i.cy,d=i.innerRadius,f=i.outerRadius,p=i.startAngle,m=i.endAngle,h=i.clockWise,g=(d+f)/2,_=kO(p,m),v=_>=0?1:-1,y,b;switch(t){case`insideStart`:y=p+v*a,b=h;break;case`insideEnd`:y=m-v*a,b=!h;break;case`end`:y=m+v*a,b=h;break;default:throw Error(`Unsupported position ${t}`)}b=_<=0?b:!b;var x=bp(c,u,g,y),S=bp(c,u,g,y+(b?1:-1)*359),C=`M${x.x},${x.y} A${g},${g},0,1,${+!b}, ${S.x},${S.y}`,w=Ht(e.id)?Lt(`recharts-radial-line-`):e.id;return l.createElement(`text`,xO({},r,{dominantBaseline:`central`,className:o(`recharts-radial-bar-label`,s)}),l.createElement(`defs`,null,l.createElement(`path`,{id:w,d:C})),l.createElement(`textPath`,{xlinkHref:`#${w}`},n))},jO=(e,t,n)=>{var r=e.cx,i=e.cy,a=e.innerRadius,o=e.outerRadius,s=(e.startAngle+e.endAngle)/2;if(n===`outside`){var c=bp(r,i,o+t,s),l=c.x;return{x:l,y:c.y,textAnchor:l>=r?`start`:`end`,verticalAnchor:`middle`}}if(n===`center`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`middle`};if(n===`centerTop`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`start`};if(n===`centerBottom`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`end`};var u=bp(r,i,(a+o)/2,s);return{x:u.x,y:u.y,textAnchor:`middle`,verticalAnchor:`middle`}},MO=e=>e!=null&&`cx`in e&&P(e.cx),NO={angle:0,offset:5,zIndex:Im.label,position:`middle`,textBreakAll:!1};function PO(e){if(!MO(e))return e;var t=e.cx,n=e.cy,r=e.outerRadius,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function FO(e){var t=_n(e,NO),n=t.viewBox,r=t.parentViewBox,i=t.position,a=t.value,s=t.children,c=t.content,u=t.className,d=u===void 0?``:u,f=t.textBreakAll,p=t.labelRef,m=EO(),h=wO(),g=n==null?i===`center`?h:m??h:MO(n)?n:jc(n),_,y,b=PO(g);if(!g||Ht(a)&&Ht(s)&&!(0,l.isValidElement)(c)&&typeof c!=`function`)return null;var x=_O(_O({},t),{},{viewBox:g});if((0,l.isValidElement)(c))return x.labelRef,(0,l.cloneElement)(c,mO(x,fO));if(typeof c==`function`){if(x.content,_=(0,l.createElement)(c,mO(x,pO)),(0,l.isValidElement)(_))return _}else _=DO(t);var S=v(t);if(MO(g)){if(i===`insideStart`||i===`insideEnd`||i===`end`)return AO(t,i,_,S,g);y=jO(g,t.offset,t.position)}else{if(!b)return null;var C=dO({viewBox:b,position:i,offset:t.offset,parentViewBox:MO(r)?void 0:r,clamp:!0});y=_O(_O({x:C.x,y:C.y,textAnchor:C.horizontalAnchor,verticalAnchor:C.verticalAnchor},C.width===void 0?{}:{width:C.width}),C.height===void 0?{}:{height:C.height})}return l.createElement(KT,{zIndex:t.zIndex},l.createElement(aO,xO({ref:p,className:o(`recharts-label`,d)},S,y,{textAnchor:JD(S.textAnchor)?S.textAnchor:y.textAnchor,breakAll:f}),_))}FO.displayName=`Label`;var IO=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?l.createElement(FO,xO({key:`label-implicit`},r)):Ft(e)?l.createElement(FO,xO({key:`label-implicit`,value:e},r)):(0,l.isValidElement)(e)?e.type===FO?(0,l.cloneElement)(e,_O({key:`label-implicit`},r)):l.createElement(FO,xO({key:`label-implicit`,content:e},r)):OO(e)?l.createElement(FO,xO({key:`label-implicit`,content:e},r)):e&&typeof e==`object`?l.createElement(FO,xO({},e,{key:`label-implicit`},r)):null};function LO(e){var t=e.label,n=e.labelRef;return IO(t,wO(),n)||null}var RO=[`valueAccessor`],zO=[`dataKey`,`clockWise`,`id`,`textBreakAll`,`zIndex`];function BO(){return BO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(YD(t))return t},WO=(0,l.createContext)(void 0),GO=WO.Provider,KO=(0,l.createContext)(void 0);KO.Provider;function qO(){return(0,l.useContext)(WO)}function JO(){return(0,l.useContext)(KO)}function YO(e){var t=e.valueAccessor,n=t===void 0?UO:t,r=VO(e,RO),i=r.dataKey;r.clockWise;var a=r.id,o=r.textBreakAll,s=r.zIndex,c=VO(r,zO),u=qO(),d=JO(),f=u||d;return!f||!f.length?null:l.createElement(KT,{zIndex:s??Im.label},l.createElement(k,{className:`recharts-label-list`},f.map((e,t)=>{var s=Ht(i)?n(e,t):is(e.payload,i),u=Ht(a)?{}:{id:`${a}-${t}`};return l.createElement(FO,BO({key:`label-${t}`},v(e),c,u,{fill:r.fill??e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:t,zIndex:0}))})))}YO.displayName=`LabelList`;function XO(e){var t=e.label;return t?t===!0?l.createElement(YO,{key:`labelList-implicit`}):l.isValidElement(t)||OO(t)?l.createElement(YO,{key:`labelList-implicit`,content:t}):typeof t==`object`?l.createElement(YO,BO({key:`labelList-implicit`},t,{type:String(t.type)})):null:null}function ZO(){return ZO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=e.cx,n=e.cy,r=e.r,i=e.className,a=o(`recharts-dot`,i);return P(t)&&P(n)&&P(r)?l.createElement(`circle`,ZO({},g(e),ln(e),{className:a,cx:t,cy:n,r})):null},$O=to({name:`polarAxis`,initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=R(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=R(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),ek=$O.actions;ek.addRadiusAxis,ek.removeRadiusAxis,ek.addAngleAxis,ek.removeAngleAxis;var tk=$O.reducer;function nk(e){return e&&typeof e==`object`&&`className`in e&&typeof e.className==`string`?e.className:``}var rk=n((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.memo`):60115,m=t?Symbol.for(`react.lazy`):60116;function h(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case m:case p:case s:return e;default:return t}}case r:return t}}}e.isFragment=function(e){return h(e)===i}})),ik=n(((e,t)=>{t.exports=rk()}))(),ak=e=>typeof e==`string`?e:e?e.displayName||e.name||`Component`:``,ok=null,sk=null,ck=e=>{if(e===ok&&Array.isArray(sk))return sk;var t=[];return l.Children.forEach(e,e=>{Ht(e)||((0,ik.isFragment)(e)?t=t.concat(ck(e.props.children)):t.push(e))}),sk=t,ok=e,t};function lk(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(e=>ak(e)):[ak(t)],ck(e).forEach(e=>{var t=(0,Ot.default)(e,`type.displayName`)||(0,Ot.default)(e,`type.name`);t&&r.indexOf(t)!==-1&&n.push(e)}),n}var uk=e=>e&&typeof e==`object`&&`clipDot`in e?!!e.clipDot:!0;function dk(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 fk(e){for(var t=1;t{var r=fr();return(i,a)=>o=>{e?.(i,a,o),r(FC({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},Ck=e=>{var t=fr();return(n,r)=>i=>{e?.(n,r,i),t(IC())}},wk=(e,t,n)=>{var r=fr();return(i,a)=>o=>{e?.(i,a,o),r(RC({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function Tk(e){var t=e.tooltipEntrySettings,n=fr(),r=qs(),i=(0,l.useRef)(null);return(0,l.useLayoutEffect)(()=>{r||(i.current===null?n(jC(t)):i.current!==t&&n(MC({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,l.useLayoutEffect)(()=>()=>{i.current&&=(n(NC(i.current)),null)},[n]),null}function Ek(e){var t=e.legendPayload,n=fr(),r=qs(),i=(0,l.useRef)(null);return(0,l.useLayoutEffect)(()=>{r||(i.current===null?n(Ul(t)):i.current!==t&&n(Wl({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,l.useLayoutEffect)(()=>()=>{i.current&&=(n(Gl(i.current)),null)},[n]),null}function Dk(e,t){return Mk(e)||jk(e,t)||kk(e,t)||Ok()}function Ok(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kk(e,t){if(e){if(typeof e==`string`)return Ak(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ak(e,t):void 0}}function Ak(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:[],r=[];for(var i of n)r.push({status:`removed`,prev:i});for(var a=0;ae[Math.floor(r*n)]),t)}function Lk(e,t){return Fk(t.map((t,n)=>e[n]),t)}function Rk(e,t){for(var n=new Map,r=0;r{var a=n(e,t);if(a!=null){var o=r.get(a);if(o!==void 0)return i.add(a),o}}),o=[];for(var s of r){var c=Dk(s,2),l=c[0],u=c[1];i.has(l)||o.push(u)}return Fk(a,t,o)}function Bk(e,t,n){return t==null?null:e==null?t.map(e=>({status:`added`,next:e})):n===`index`?Ik(e,t):n===`append`?Lk(e,t):zk(e,t,n)}function Vk(e,t){var n=(0,l.useRef)(e),r=(0,l.useRef)(t.current),i=(0,l.useRef)(!0);n.current!==e&&(n.current=e,r.current=t.current,i.current=!1);var a=(0,l.useCallback)(function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(n===0){i.current=!0;return}n===1&&(r.current=e),n>0&&i.current&&a&&(t.current=e)},[t]);return{startValue:r.current,syncStepValue:a}}function Hk(e,t){return qk(e)||Kk(e,t)||Wk(e,t)||Uk()}function Uk(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wk(e,t){if(e){if(typeof e==`string`)return Gk(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gk(e,t):void 0}}function Gk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{typeof e==`function`&&e(),i(!0)},[e]),handleAnimationEnd:(0,l.useCallback)(()=>{typeof t==`function`&&t(),i(!1)},[t])}}function Yk(e){var t=e.animationInput,n=e.animationIdPrefix,r=e.items,i=e.previousItemsRef,a=e.isAnimationActive,o=e.animationBegin,s=e.animationDuration,c=e.animationEasing,u=e.onAnimationStart,d=e.onAnimationEnd,f=e.animationInterpolateFn,p=e.animationMatchBy,m=e.shouldUpdatePreviousRef,h=e.children,g=e.layout,_=Pf(t,n),v=Vk(_,i),y=v.startValue??null,b=Bk(y,r,p??Nk);return l.createElement(Nf,{animationId:_,begin:o,duration:s,isActive:a,easing:c,onAnimationEnd:d,onAnimationStart:u,key:_},e=>{var t=y==null,n=r==null?r:f(b,e,g),i=m?m(e):e>0;return v.syncStepValue(n,e,i),n==null?null:h(n,e,t)})}function Xk(e,t){return tA(e)||eA(e,t)||Qk(e,t)||Zk()}function Zk(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qk(e,t){if(e){if(typeof e==`string`)return $k(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$k(e,t):void 0}}function $k(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nXk(l.useState(()=>Lt(`uid-`)),1)[0]);function rA(e,t){var n=nA();return t||(e?`${e}-${n}`:n)}var iA=(0,l.createContext)(void 0),aA=e=>{var t=e.id,n=e.type,r=e.children,i=rA(`recharts-${n}`,t);return l.createElement(iA.Provider,{value:i},r(i))},oA=to({name:`graphicalItems`,initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(R(t.payload))},prepare:Ba()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=Ea(e).cartesianItems.indexOf(R(r));a>-1&&(e.cartesianItems[a]=R(i))},prepare:Ba()},removeCartesianGraphicalItem:{reducer(e,t){var n=Ea(e).cartesianItems.indexOf(R(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:Ba()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(R(t.payload))},prepare:Ba()},removePolarGraphicalItem:{reducer(e,t){var n=Ea(e).polarItems.indexOf(R(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:Ba()},replacePolarGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=Ea(e).polarItems.indexOf(R(r));a>-1&&(e.polarItems[a]=R(i))},prepare:Ba()}}}),sA=oA.actions,cA=sA.addCartesianGraphicalItem,lA=sA.replaceCartesianGraphicalItem,uA=sA.removeCartesianGraphicalItem;sA.addPolarGraphicalItem,sA.removePolarGraphicalItem,sA.replacePolarGraphicalItem;var dA=oA.reducer,fA=(0,l.memo)(e=>{var t=fr(),n=(0,l.useRef)(null);return(0,l.useLayoutEffect)(()=>{n.current===null?t(cA(e)):n.current!==e&&t(lA({prev:n.current,next:e})),n.current=e},[t,e]),(0,l.useLayoutEffect)(()=>()=>{n.current&&=(t(uA(n.current)),null)},[t]),null}),pA=[`points`];function mA(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 hA(e){for(var t=1;t{var s=hA(hA(hA({r:3},o),p),{},{index:r,cx:e.x??void 0,cy:e.y??void 0,dataKey:a,value:e.value,payload:e.payload,points:t});return l.createElement(SA,{key:`dot-${r}`,option:n,dotProps:s,className:i})}),h={};return s&&c!=null&&(h.clipPath=`url(#clipPath-${f?``:`dots-`}${c})`),l.createElement(KT,{zIndex:d},l.createElement(k,yA({className:r},h),m))}function TA(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 EA(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Es,Ds],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),VA=()=>F(BA),HA=()=>F(Yw);function UA(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 WA(e){for(var t=1;t{var t=e.point,n=e.childIndex,r=e.mainColor,i=e.activeDot,a=e.dataKey,o=e.clipPath;if(i===!1||t.x==null||t.y==null)return null;var s=WA(WA(WA({},{index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??`none`,strokeWidth:2,stroke:`#fff`,payload:t.payload,value:t.value}),_(i)),ln(i)),c=(0,l.isValidElement)(i)?(0,l.cloneElement)(i,s):typeof i==`function`?i(s):l.createElement(QO,s);return l.createElement(k,{className:`recharts-active-dot`,clipPath:o},c)};function YA(e){var t=e.points,n=e.mainColor,r=e.activeDot,i=e.itemDataKey,a=e.clipPath,o=e.zIndex,s=o===void 0?Im.activeDot:o,c=F(Hw),u=HA();if(t==null||u==null)return null;var d=t.find(e=>u.includes(e.payload));return Ht(d)?null:l.createElement(KT,{zIndex:s},l.createElement(JA,{point:d,childIndex:Number(c),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}function XA(e,t){return tj(e)||ej(e,t)||QA(e,t)||ZA()}function ZA(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QA(e,t){if(e){if(typeof e==`string`)return $A(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$A(e,t):void 0}}function $A(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{var r=n??e;if(!Ht(r))return Rt(r,t,0)},rj=(e,t,n)=>{var r={},i=e.filter(sh),a=e.filter(e=>e.stackId==null),o=i.reduce((e,t)=>{var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},r),s=Object.entries(o).map(e=>{var r=XA(e,2),i=r[0],a=r[1];return{stackId:i,dataKeys:a.map(e=>e.dataKey),barSize:nj(t,n,a[0]?.barSize)}}),c=a.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>e!=null),barSize:nj(t,n,e.barSize)}));return[...s,...c]};function ij(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 aj(e){for(var t=1;te+(t.barSize||0),0);d+=(a-1)*o,d>=n&&(d-=(a-1)*o,o=0),d>=n&&u>0&&(l=!0,u*=.9,d=a*u);var f={offset:Math.round((n-d)/2)-o,size:0};s=r.reduce((e,t)=>{var n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:f.offset+f.size+o,size:l?u:t.barSize??0}},r=[...e,n];return f=n.position,r},c)}else{var p=Rt(t,n,0,!0);n-2*p-(a-1)*o<=0&&(o=0);var m=(n-2*p-(a-1)*o)/a;m>1&&(m=Math.round(m));var h=L(i)?Math.min(m,i):m;s=r.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p+(m+o)*n+(m-h)/2,size:h}}],c)}return s}}var uj=(e,t,n,r,i,a,o)=>{var s=Ht(o)?t:o,c=lj(n,r,i===a?a:i,e,s);return i!==a&&c!=null&&(c=c.map(e=>aj(aj({},e),{},{position:aj(aj({},e.position),{},{offset:e.position.offset-i/2})}))),c},dj=(e,t)=>{var n=ah(t);if(!(!e||n==null||t==null)){var r=t.stackId;if(r!=null){var i=e[r];if(i){var a=i.stackedData;if(a)return a.find(e=>e.key===n)}}}},fj=(e,t)=>{if(!(e==null||t==null)){var n=e.find(e=>e.stackId===t.stackId&&t.dataKey!=null&&e.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function pj(e,t){return e&&typeof e==`object`&&`zIndex`in e&&typeof e.zIndex==`number`&&L(e.zIndex)?e.zIndex:t}var mj=e=>{var t=e.chartData,n=fr(),r=qs();return(0,l.useEffect)(()=>r?()=>{}:(n(hE(t)),()=>{n(hE(void 0))}),[t,n,r]),null},hj={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},gj=to({name:`brush`,initialState:hj,reducers:{setBrushSettings(e,t){return t.payload==null?hj:t.payload}}});gj.actions.setBrushSettings;var _j=gj.reducer,vj=(e,t)=>{var n=e.x,r=e.y,i=t.x,a=t.y;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},yj=e=>{var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return vj({x:t,y:n},{x:r,y:i})};function bj(e){return(e%180+180)%180}var xj=function(e){var t=e.width,n=e.height,r=bj(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Ea(e).dots.findIndex(e=>e===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Ea(e).areas.findIndex(e=>e===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(R(t.payload))},removeLine:(e,t)=>{var n=Ea(e).lines.findIndex(e=>e===t.payload);n!==-1&&e.lines.splice(n,1)}}}),Cj=Sj.actions;Cj.addDot,Cj.removeDot,Cj.addArea,Cj.removeArea;var wj=Cj.addLine,Tj=Cj.removeLine,Ej=Sj.reducer;function Dj(e,t){return Mj(e)||jj(e,t)||kj(e,t)||Oj()}function Oj(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kj(e,t){if(e){if(typeof e==`string`)return Aj(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Aj(e,t):void 0}}function Aj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{var t=e.children,n=Dj((0,l.useState)(`${Lt(`recharts`)}-clip`),1)[0],r=VA();if(r==null)return null;var i=r.x,a=r.y,o=r.width,s=r.height;return l.createElement(Nj.Provider,{value:n},l.createElement(`defs`,null,l.createElement(`clipPath`,{id:n},l.createElement(`rect`,{x:i,y:a,height:s,width:o}))),t)},Fj=()=>(0,l.useContext)(Nj),Ij=class{constructor(e){var t=e.x,n=e.y;this.xAxisScale=t,this.yAxisScale=n}map(e,t){var n=t.position;return{x:this.xAxisScale.map(e.x,{position:n})??0,y:this.yAxisScale.map(e.y,{position:n})??0}}mapWithFallback(e,t){var n=t.position,r=t.fallback,i=r===`rangeMin`?this.yAxisScale.rangeMin():r===`rangeMax`?this.yAxisScale.rangeMax():0,a=r===`rangeMin`?this.xAxisScale.rangeMin():r===`rangeMax`?this.xAxisScale.rangeMax():0;return{x:this.xAxisScale.map(e.x,{position:n})??a,y:this.yAxisScale.map(e.y,{position:n})??i}}isInRange(e){var t=e.x,n=e.y,r=t==null||this.xAxisScale.isInRange(t),i=n==null||this.yAxisScale.isInRange(n);return r&&i}};function Lj(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 Rj(e){for(var t=1;t{var n;if(l.isValidElement(e))n=l.cloneElement(e,t);else if(typeof e==`function`)n=e(t);else{if(!L(t.x1)||!L(t.y1)||!L(t.x2)||!L(t.y2))return null;n=l.createElement(`line`,Hj({},t,{className:`recharts-reference-line-line`}))}return n},Wj=(e,t,n,r,i,a)=>{var o=a.x,s=a.width,c=i.map(e,{position:n});if(!L(c)||t===`discard`&&!i.isInRange(c))return null;var l=[{x:o+s,y:c},{x:o,y:c}];return r===`left`?l.reverse():l},Gj=(e,t,n,r,i,a)=>{var o=a.y,s=a.height,c=i.map(e,{position:n});if(!L(c)||t===`discard`&&!i.isInRange(c))return null;var l=[{x:c,y:o+s},{x:c,y:o}];return r===`top`?l.reverse():l},Kj=(e,t,n,r)=>{var i=[r.mapWithFallback(e[0],{position:n,fallback:`rangeMin`}),r.mapWithFallback(e[1],{position:n,fallback:`rangeMax`})];return t===`discard`&&i.some(e=>!r.isInRange(e))?null:i},qj=(e,t,n,r,i,a,o)=>{var s=o.x,c=o.y,l=o.segment,u=o.ifOverflow,d=Ft(s);return Ft(c)?Wj(c,u,r,a,t,n):d?Gj(s,u,r,i,e,n):l!=null&&l.length===2?Kj(l,u,r,new Ij({x:e,y:t})):null};function Jj(e){var t=fr();return(0,l.useEffect)(()=>(t(wj(e)),()=>{t(Tj(e))})),null}function Yj(e){var t=e.xAxisId,n=e.yAxisId,r=e.shape,i=e.className,a=e.ifOverflow,s=qs(),c=Fj(),u=F(e=>_x(e,t)),d=F(e=>bx(e,n)),f=F(e=>ZS(e,`xAxis`,t,s)),p=F(e=>ZS(e,`yAxis`,n,s)),m=Mc();if(!c||!m||u==null||d==null||f==null||p==null)return null;var h=qj(f,p,m,e.position,u.orientation,d.orientation,e);if(!h)return null;var g=h[0],_=h[1];if(g==null||_==null)return null;var y=g.x,b=g.y,x=_.x,S=_.y,C=Rj(Rj({clipPath:a===`hidden`?`url(#${c})`:void 0},v(e)),{},{x1:y,y1:b,x2:x,y2:S}),w=yj({x1:y,y1:b,x2:x,y2:S});return l.createElement(KT,{zIndex:e.zIndex},l.createElement(k,{className:o(`recharts-reference-line`,i)},Uj(r,C),l.createElement(CO,Hj({},w,{lowerWidth:w.width,upperWidth:w.width}),l.createElement(LO,{label:e.label}),e.children)))}var Xj={ifOverflow:`discard`,xAxisId:0,yAxisId:0,fill:`none`,label:!1,stroke:`#ccc`,fillOpacity:1,strokeWidth:1,position:`middle`,zIndex:Im.line};function Zj(e){var t=_n(e,Xj);return l.createElement(l.Fragment,null,l.createElement(Jj,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),l.createElement(Yj,t))}Zj.displayName=`ReferenceLine`;function Qj(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;re*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function nM(e,t){return Qj(e,t+1)}function rM(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:Qj(r,l)};var a=c,d,f=()=>(d===void 0&&(d=n(t,a)),d),p=t.coordinate,m=c===0||tM(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function iM(e,t,n,r,i){var a=(r||[]).slice().length;if(a===0)return[];for(var o=t.start,s=t.end,c=1;c<=a;c++){for(var l=(a-1)%c,u=o,d=!0,f=function(){var t=r[m];if(t==null)return 0;var a=m,o,c=()=>(o===void 0&&(o=n(t,a)),o),f=t.coordinate,p=m===l||tM(e,f,c,u,s);if(!p)return d=!1,1;p&&(u=f+e*(c()/2+i))},p,m=l;m(u===void 0&&(u=n(r,t)),u);if(t===o-1){var f=e*(l.coordinate+e*d()/2-c);a[t]=l=oM(oM({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else a[t]=l=oM(oM({},l),{},{tickCoord:l.coordinate});l.tickCoord!=null&&tM(e,l.tickCoord,d,s,c)&&(c=l.tickCoord-e*(d()/2+i),a[t]=oM(oM({},l),{},{isShow:!0}))},u=o-1;u>=0;u--)if(l(u))continue;return a}function dM(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,c=t.start,l=t.end;if(a){var u=r[s-1];if(u!=null){var d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=oM(oM({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null&&tM(e,u.tickCoord,()=>d,c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=oM(oM({},u),{},{isShow:!0}))}}for(var p=a?s-1:s,m=function(t){var r=o[t];if(r==null)return 1;var a=r,s,u=()=>(s===void 0&&(s=n(r,t)),s);if(t===0){var d=e*(a.coordinate-e*u()/2-c);o[t]=a=oM(oM({},a),{},{tickCoord:d<0?a.coordinate-d*e:a.coordinate})}else o[t]=a=oM(oM({},a),{},{tickCoord:a.coordinate});a.tickCoord!=null&&tM(e,a.tickCoord,u,c,l)&&(c=a.tickCoord+e*(u()/2+i),o[t]=oM(oM({},a),{},{isShow:!0}))},h=0;h{var i=typeof l==`function`?l(e.value,r):e.value;return p===`width`?$j(cD(i,{fontSize:t,letterSpacing:n}),m,d):cD(i,{fontSize:t,letterSpacing:n})[p]},g=i[0],_=i[1],v=i.length>=2&&g!=null&&_!=null?Mt(_.coordinate-g.coordinate):1,y=eM(a,v,p);return c===`equidistantPreserveStart`?rM(v,y,h,i,o):c===`equidistantPreserveEnd`?iM(v,y,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?dM(v,y,h,i,o,c===`preserveStartEnd`):uM(v,y,h,i,o),f.filter(e=>e.isShow))}var pM=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,i=r===void 0?5:r,a=e.tickSize,o=a===void 0?0:a,s=e.tickMargin,c=s===void 0?0:s,l=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>l&&(l=t.width)}});var u=n?n.getBoundingClientRect().width:0,d=o+c,f=l+d+u+(n?i:0);return Math.round(f)}return 0},mM=to({name:`renderedTicks`,initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,i=n.axisId,a=n.ticks;e[r][i]=R(a)},removeRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,i=n.axisId;delete e[r][i]}}}),hM=mM.actions,gM=hM.setRenderedTicks,_M=hM.removeRenderedTicks,vM=mM.reducer,yM=[`axisLine`,`width`,`height`,`className`,`hide`,`ticks`,`axisType`,`axisId`];function bM(e,t){return TM(e)||wM(e,t)||SM(e,t)||xM()}function xM(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SM(e,t){if(e){if(typeof e==`string`)return CM(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CM(e,t):void 0}}function CM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr==null||n==null?Gt:(i(gM({ticks:t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index})),axisId:r,axisType:n})),()=>{i(_M({axisId:r,axisType:n}))}),[i,t,r,n]),null}var VM=(0,l.forwardRef)((e,t)=>{var n=e.ticks,r=n===void 0?[]:n,i=e.tick,a=e.tickLine,s=e.stroke,c=e.tickFormatter,u=e.unit,d=e.padding,f=e.tickTextProps,p=e.orientation,m=e.mirror,h=e.x,v=e.y,y=e.width,b=e.height,x=e.tickSize,S=e.tickMargin,C=e.fontSize,w=e.letterSpacing,T=e.getTicksConfig,E=e.events,D=e.axisType,O=e.axisId,A=fM(AM(AM({},T),{},{ticks:r}),C,w),j=g(T),M=_(i),N=JD(j.textAnchor)?j.textAnchor:LM(p,m),ee=RM(p,m),te={};typeof a==`object`&&(te=a);var ne=AM(AM({},j),{},{fill:`none`},te),re=A.map(e=>AM({entry:e},IM(e,h,v,y,b,p,x,m,S))),ie=re.map(e=>{var t=e.entry,n=e.line;return l.createElement(k,{className:`recharts-cartesian-axis-tick`,key:`tick-${t.value}-${t.coordinate}-${t.tickCoord}`},a&&l.createElement(`line`,OM({},ne,n,{className:o(`recharts-cartesian-axis-tick-line`,(0,Ot.default)(a,`className`))})))}),ae=re.map((e,t)=>{var n=e.entry,r=e.tick,a=AM(AM({},AM(AM(AM(AM({verticalAnchor:ee},j),{},{textAnchor:N,stroke:`none`,fill:s},r),{},{index:t,payload:n,visibleTicksCount:A.length,tickFormatter:c,padding:d},f),{},{angle:f?.angle??j.angle??0})),M);return l.createElement(k,OM({className:`recharts-cartesian-axis-tick-label`,key:`tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`},dn(E,n,t)),i&&l.createElement(zM,{option:i,tickProps:a,value:`${typeof c==`function`?c(n.value,t):n.value}${u||``}`}))});return l.createElement(`g`,{className:`recharts-cartesian-axis-ticks recharts-${D}-ticks`},l.createElement(BM,{ticks:A,axisId:O,axisType:D}),ae.length>0&&l.createElement(KT,{zIndex:Im.label},l.createElement(`g`,{className:`recharts-cartesian-axis-tick-labels recharts-${D}-tick-labels`,ref:t},ae)),ie.length>0&&l.createElement(`g`,{className:`recharts-cartesian-axis-tick-lines recharts-${D}-tick-lines`},ie))}),HM=(0,l.forwardRef)((e,t)=>{var n=e.axisLine,r=e.width,i=e.height,a=e.className,s=e.hide,c=e.ticks,u=e.axisType,d=e.axisId,f=EM(e,yM),p=bM((0,l.useState)(``),2),m=p[0],h=p[1],_=bM((0,l.useState)(``),2),v=_[0],y=_[1],b=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>pM({ticks:b.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}));var x=(0,l.useCallback)(e=>{if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`);b.current=t;var n=t[0];if(n){var r=window.getComputedStyle(n),i=r.fontSize,a=r.letterSpacing;(i!==m||a!==v)&&(h(i),y(a))}}},[m,v]);return s||r!=null&&r<=0||i!=null&&i<=0?null:l.createElement(KT,{zIndex:e.zIndex},l.createElement(k,{className:o(`recharts-cartesian-axis`,a)},l.createElement(FM,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:g(e)}),l.createElement(VM,{ref:x,axisType:u,events:f,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:v,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:c,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:d}),l.createElement(CO,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},l.createElement(LO,{label:e.label,labelRef:e.labelRef}),e.children)))}),UM=l.forwardRef((e,t)=>{var n=_n(e,PM);return l.createElement(HM,OM({},n,{ref:t}))});UM.displayName=`CartesianAxis`;var WM=[`x1`,`y1`,`x2`,`y2`,`key`],GM=[`offset`],KM=[`xAxisId`,`yAxisId`],qM=[`xAxisId`,`yAxisId`];function JM(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 YM(e){for(var t=1;t{var t=e.fill;if(!t||t===`none`)return null;var n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.ry;return l.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function rN(e){var t=e.option,n=e.lineItemProps,r;if(l.isValidElement(t))r=l.cloneElement(t,n);else if(typeof t==`function`)r=t(n);else{var i=n.x1,a=n.y1,o=n.x2,s=n.y2,c=n.key,u=g(eN(n,WM))??{};u.offset;var d=eN(u,GM);r=l.createElement(`line`,$M({},d,{x1:i,y1:a,x2:o,y2:s,fill:`none`,key:c}))}return r}function iN(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;e.xAxisId,e.yAxisId;var o=eN(e,KM),s=a.map((e,r)=>{var a=YM(YM({},o),{},{x1:t,y1:e,x2:t+n,y2:e,key:`line-${r}`,index:r});return l.createElement(rN,{key:`line-${r}`,option:i,lineItemProps:a})});return l.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},s)}function aN(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;e.xAxisId,e.yAxisId;var o=eN(e,qM),s=a.map((e,r)=>{var a=YM(YM({},o),{},{x1:e,y1:t,x2:e,y2:t+n,key:`line-${r}`,index:r});return l.createElement(rN,{option:i,lineItemProps:a,key:`line-${r}`})});return l.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},s)}function oN(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal;if(!(c===void 0||c)||!t||!t.length||s==null)return null;var u=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==u[0]&&u.unshift(0);var d=u.map((e,s)=>{var c=u[s+1],d=c==null?i+o-e:c-e;if(d<=0)return null;var f=s%t.length;return l.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:d,width:a,stroke:`none`,fill:t[f],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return l.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},d)}function sN(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map(e=>Math.round(e+a-a)).sort((e,t)=>e-t);a!==d[0]&&d.unshift(0);var f=d.map((e,t)=>{var n=d[t+1],u=n==null?a+s-e:n-e;if(u<=0)return null;var f=t%r.length;return l.createElement(`rect`,{key:`react-${t}`,x:e,y:o,width:u,height:c,stroke:`none`,fill:r[f],fillOpacity:i,className:`recharts-cartesian-grid-bg`})});return l.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},f)}var cN=(e,t)=>{var n=e.xAxis,r=e.width,i=e.height,a=e.offset;return ss(fM(YM(YM(YM({},PM),n),{},{ticks:cs(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},lN=(e,t)=>{var n=e.yAxis,r=e.width,i=e.height,a=e.offset;return ss(fM(YM(YM(YM({},PM),n),{},{ticks:cs(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},uN={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Im.grid};function dN(e){var t=Fc(),n=Ic(),r=Pc(),i=YM(YM({},_n(e,uN)),{},{x:P(e.x)?e.x:r.left,y:P(e.y)?e.y:r.top,width:P(e.width)?e.width:r.width,height:P(e.height)?e.height:r.height}),a=i.xAxisId,o=i.yAxisId,s=i.x,c=i.y,u=i.width,d=i.height,f=i.syncWithTicks,p=i.horizontalValues,m=i.verticalValues,h=qs(),g=F(e=>gC(e,`xAxis`,a,h)),_=F(e=>gC(e,`yAxis`,o,h));if(!Qo(u)||!Qo(d)||!P(s)||!P(c))return null;var v=i.verticalCoordinatesGenerator||cN,y=i.horizontalCoordinatesGenerator||lN,b=i.horizontalPoints,x=i.verticalPoints;if((!b||!b.length)&&typeof y==`function`){var S=p&&p.length,C=y({yAxis:_?YM(YM({},_),{},{ticks:S?p:_.ticks}):void 0,width:t??u,height:n??d,offset:r},S?!0:f);tc(Array.isArray(C),`horizontalCoordinatesGenerator should return Array but instead it returned [${typeof C}]`),Array.isArray(C)&&(b=C)}if((!x||!x.length)&&typeof v==`function`){var w=m&&m.length,T=v({xAxis:g?YM(YM({},g),{},{ticks:w?m:g.ticks}):void 0,width:t??u,height:n??d,offset:r},w?!0:f);tc(Array.isArray(T),`verticalCoordinatesGenerator should return Array but instead it returned [${typeof T}]`),Array.isArray(T)&&(x=T)}return l.createElement(KT,{zIndex:i.zIndex},l.createElement(`g`,{className:`recharts-cartesian-grid`},l.createElement(nN,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),l.createElement(oN,$M({},i,{horizontalPoints:b})),l.createElement(sN,$M({},i,{verticalPoints:x})),l.createElement(iN,$M({},i,{offset:r,horizontalPoints:b,xAxis:g,yAxis:_})),l.createElement(aN,$M({},i,{offset:r,verticalPoints:x,xAxis:g,yAxis:_}))))}dN.displayName=`CartesianGrid`;var fN=to({name:`errorBars`,initialState:{},reducers:{addErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.errorBar;e[r]||(e[r]=[]),e[r].push(i)},replaceErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.prev,a=n.next;e[r]&&(e[r]=e[r].map(e=>e.dataKey===i.dataKey&&e.direction===i.direction?a:e))},removeErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.errorBar;e[r]&&(e[r]=e[r].filter(e=>e.dataKey!==i.dataKey||e.direction!==i.direction))}}}),pN=fN.actions;pN.addErrorBar,pN.replaceErrorBar,pN.removeErrorBar;var mN=fN.reducer,hN=[`children`];function gN(e,t){if(e==null)return{};var n,r,i=_N(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r({x:0,y:0,value:0}),errorBarOffset:0});function yN(e){var t=e.children,n=gN(e,hN);return l.createElement(vN.Provider,{value:n},t)}function bN(e,t){var n=F(t=>_x(t,e)),r=F(e=>bx(e,t)),i=n?.allowDataOverflow??hx.allowDataOverflow,a=r?.allowDataOverflow??vx.allowDataOverflow;return{needClip:i||a,needClipX:i,needClipY:a}}function xN(e){var t=e.xAxisId,n=e.yAxisId,r=e.clipPathId,i=VA(),a=bN(t,n),o=a.needClipX,s=a.needClipY,c=a.needClip,u=F(e=>WS(e,t,!1)),d=F(e=>GS(e,n,!1));if(!c||!i)return null;var f=i.x,p=i.y,m=i.width,h=i.height,g=o&&u?Math.min(u[0],u[1]):f-m/2,_=s&&d?Math.min(d[0],d[1]):p-h/2,v=o&&u?Math.abs(u[1]-u[0]):m*2,y=s&&d?Math.abs(d[1]-d[0]):h*2;return l.createElement(`clipPath`,{id:`clipPath-${r}`},l.createElement(`rect`,{x:g,y:_,width:v,height:y}))}function SN(e){var t=_(e),n=3,r=2;if(t!=null){var i=t.r,a=t.strokeWidth,o=Number(i),s=Number(a);return(Number.isNaN(o)||o<0)&&(o=n),(Number.isNaN(s)||s<0)&&(s=r),{r:o,strokeWidth:s}}return{r:n,strokeWidth:r}}function CN(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.xAxisId??0}function wN(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.yAxisId??0}var TN=(e,t,n)=>yC(e,`xAxis`,CN(e,t),n),EN=(e,t,n)=>vC(e,`xAxis`,CN(e,t),n),DN=(e,t,n)=>yC(e,`yAxis`,wN(e,t),n),ON=(e,t,n)=>vC(e,`yAxis`,wN(e,t),n),kN=I([Rc,TN,DN,EN,ON],(e,t,n,r,i)=>os(e,`xAxis`)?xs(t,r,!1):xs(n,i,!1)),AN=I([Ox,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`area`).find(e=>e.id===t)),jN=e=>os(Rc(e),`xAxis`)?`yAxis`:`xAxis`,MN=(e,t)=>jN(e)===`yAxis`?wN(e,t):CN(e,t),NN=I([Rc,TN,DN,EN,ON,I([AN,(e,t,n)=>eS(e,jN(e),MN(e,t),n)],(e,t)=>{if(!(e==null||t==null)){var n=e.stackId,r=ah(e);if(!(n==null||r==null)){var i=(t[n]?.stackedData)?.find(e=>e.key===r);if(i!=null)return i.map(e=>[e[0],e[1]])}}}),Zp,kN,AN,Fm],(e,t,n,r,i,a,o,s,c,l)=>{var u=o.chartData,d=o.dataStartIndex,f=o.dataEndIndex;if(!(c==null||e!==`horizontal`&&e!==`vertical`||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var p=c.data,m=p&&p.length>0?p:u?.slice(d,f+1);if(m!=null)return fP({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:d,areaSettings:c,stackedData:a,displayedData:m,chartBaseValue:l,bandSize:s})}}),PN=[`animationElapsedTime`,`isAnimating`,`isEntrance`,`layout`,`isRange`,`stroke`,`connectNulls`],FN=[`id`,`baseLine`];function IN(){return IN=Object.assign?Object.assign.bind():function(e){for(var t=1;te.y||0));return P(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.y||0),c)),P(c)?l.createElement(`rect`,{x:ae.x||0));return P(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.x||0),c)),P(c)?l.createElement(`rect`,{x:0,y:ae==null?[]:t===1?e.flatMap(e=>e.status===`removed`?[]:[e.next]):e.flatMap(e=>e.status===`matched`?[YN(YN({},e.next),{},{x:Bt(e.prev.x,e.next.x,t),y:Bt(e.prev.y,e.next.y,t)})]:e.status===`added`?[e.next]:[]),connectNulls:!1,dot:!1,fill:`#3182bd`,fillOpacity:.6,hide:!1,isAnimationActive:`auto`,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,type:`linear`,label:!1,shape:HN,xAxisId:0,yAxisId:0,zIndex:Im.area};function eP(e,t){return e&&e!==`none`?e:t}var tP=e=>{var t=e.dataKey,n=e.name,r=e.stroke,i=e.fill,a=e.legendType;return[{inactive:e.hide,dataKey:t,type:a,color:eP(r,i),value:Cs(n,t),payload:e}]},nP=l.memo(e=>{var t=e.dataKey,n=e.data,r=e.stroke,i=e.strokeWidth,a=e.fill,o=e.name,s=e.hide,c=e.unit,u=e.tooltipType,d=e.id,f={dataDefinedOnItem:n,getPosition:Gt,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Cs(o,t),hide:s,type:u,color:eP(r,a),unit:c,graphicalItemId:d}};return l.createElement(Tk,{tooltipEntrySettings:f})});function rP(e){var t=e.clipPathId,n=e.points,r=e.props,i=r.needClip,a=r.dot,o=r.dataKey,s=g(r);return l.createElement(wA,{points:n,dot:a,className:`recharts-area-dots`,dotClassName:`recharts-area-dot`,dataKey:o,baseProps:s,needClip:i,clipPathId:t})}function iP(e){var t=e.showLabels,n=e.children,r=e.points.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return YN(YN({},t),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:t,fill:void 0})});return l.createElement(GO,{value:t?r:void 0},n)}function aP(e){var t=e.points,n=e.baseLine,r=e.needClip,i=e.clipPathId,a=e.props,o=e.animationElapsedTime,s=e.isAnimating,c=e.isEntrance,u=a.layout,d=a.type,f=a.stroke,p=a.connectNulls,m=a.isRange,h=a.shape,g=a.id,_=KN(a,UN),y=YN(YN({},v(_)),{},{id:g,points:t,connectNulls:p,type:d,baseLine:n,layout:u,stroke:f,isRange:m,animationElapsedTime:o,isAnimating:s,isEntrance:c});return l.createElement(l.Fragment,null,t?.length>1&&l.createElement(k,{clipPath:r?`url(#clipPath-${i})`:void 0},l.createElement(xk,{option:h,DefaultShape:$N.shape,shapeProps:y})),l.createElement(rP,{points:t,props:_,clipPathId:i}))}function oP(e,t,n){return P(e)?Bt(P(t)?t:void 0,e,n):Ht(e)||Nt(e)?Bt(P(t)?t:void 0,0,n):e}function sP(e){var t=e.needClip,n=e.clipPathId,r=e.props,i=e.previousPointsRef,a=e.previousBaselineRef,o=r.points,s=r.baseLine,c=r.isAnimationActive,u=r.animationBegin,d=r.animationDuration,f=r.animationEasing,p=r.animationMatchBy,m=r.animationInterpolateFn,h=(0,l.useMemo)(()=>({points:o,baseLine:s}),[o,s]),g=Vk(h,a),_=Bc(),v=Jk(r.onAnimationStart,r.onAnimationEnd),y=v.isAnimating,b=v.handleAnimationStart,x=v.handleAnimationEnd,S=g.startValue;if(_==null)return null;var C=Array.isArray(s)&&Array.isArray(S)?Bk(S,s,p):Array.isArray(s)?Bk(null,s,p):null;return l.createElement(Yk,{animationInput:h,animationIdPrefix:`recharts-area-`,items:o,previousItemsRef:i,isAnimationActive:c,animationBegin:u,animationDuration:d,animationEasing:f,onAnimationStart:b,onAnimationEnd:x,animationInterpolateFn:m,animationMatchBy:p,layout:_},(e,i,a)=>{var c=i===1?s:Array.isArray(s)?m(C,i,_):a?s:oP(s,S,i);return g.syncStepValue(c,i),l.createElement(iP,{showLabels:!y,points:o},r.children,l.createElement(aP,{points:e,baseLine:c,needClip:t,clipPathId:n,props:r,animationElapsedTime:i,isAnimating:y||i<1,isEntrance:a}),l.createElement(XO,{label:r.label}))})}function cP(e){var t=e.needClip,n=e.clipPathId,r=e.props,i=(0,l.useRef)(null),a=(0,l.useRef)();return l.createElement(sP,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}var lP=class extends l.PureComponent{render(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,s=e.left,c=e.needClip,u=e.xAxisId,d=e.yAxisId,f=e.width,p=e.height,m=e.id,h=e.baseLine,g=e.zIndex;if(t)return null;var _=o(`recharts-area`,i),v=m,y=SN(n),b=y.r,x=y.strokeWidth,S=uk(n),C=b*2+x,w=c?`url(#clipPath-${S?``:`dots-`}${v})`:void 0;return l.createElement(KT,{zIndex:g},l.createElement(k,{className:_},c&&l.createElement(`defs`,null,l.createElement(xN,{clipPathId:v,xAxisId:u,yAxisId:d}),!S&&l.createElement(`clipPath`,{id:`clipPath-dots-${v}`},l.createElement(`rect`,{x:s-C/2,y:a-C/2,width:f+C,height:p+C}))),l.createElement(cP,{needClip:c,clipPathId:v,props:this.props})),l.createElement(YA,{points:r,mainColor:eP(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:w}),this.props.isRange&&Array.isArray(h)&&l.createElement(YA,{points:h,mainColor:eP(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:w}))}};function uP(e){var t=e.activeDot,n=e.animationBegin,r=e.animationDuration,i=e.animationEasing,a=e.connectNulls,o=e.dot,s=e.fill,c=e.fillOpacity,u=e.hide,d=e.isAnimationActive,f=e.legendType,p=e.stroke,m=e.xAxisId,h=e.yAxisId,g=KN(e,WN),_=zc(),v=fT(),y=bN(m,h).needClip,b=qs(),x=F(t=>NN(t,e.id,b))??{},S=x.points,C=x.isRange,w=x.baseLine,T=VA();if(_!==`horizontal`&&_!==`vertical`||T==null||v!==`AreaChart`&&v!==`ComposedChart`)return null;var E=T.height,D=T.width,O=T.x,k=T.y;return!S||!S.length?null:l.createElement(lP,GN({},g,{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,baseLine:w,connectNulls:a,dot:o,fill:s,fillOpacity:c,height:E,hide:u,layout:_,isAnimationActive:d,isRange:C,legendType:f,needClip:y,points:S,stroke:p,width:D,left:O,top:k,xAxisId:m,yAxisId:h}))}var dP=(e,t,n,r,i)=>{var a=n??t;if(P(a))return a;var o=e===`horizontal`?i:r,s=o.scale.domain();if(o.type===`number`){var c=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return a===`dataMin`?l:a===`dataMax`||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return a===`dataMin`?s[0]:a===`dataMax`?s[1]:s[0]};function fP(e){var t=e.areaSettings,n=t.connectNulls,r=t.baseValue,i=t.dataKey,a=e.stackedData,o=e.layout,s=e.chartBaseValue,c=e.xAxis,l=e.yAxis,u=e.displayedData,d=e.dataStartIndex,f=e.xAxisTicks,p=e.yAxisTicks,m=e.bandSize,h=a&&a.length,g=dP(o,s,r,c,l),_=o===`horizontal`,v=!1,y=u.map((e,t)=>{var r;if(h)r=a[d+t];else{var o=is(e,i);Array.isArray(o)?(r=o,v=!0):r=[g,o]}var s=r?.[1]??null,u=s==null||h&&!n&&is(e,i)==null;return _?{x:ps({axis:c,ticks:f,bandSize:m,entry:e,index:t}),y:u?null:l.scale.map(s)??null,value:r,payload:e}:{x:u?null:c.scale.map(s)??null,y:ps({axis:l,ticks:p,bandSize:m,entry:e,index:t}),value:r,payload:e}});return{points:y,baseLine:(h||v?y.map(e=>{var t=Array.isArray(e.value)?e.value[0]:null;return _?{x:e.x,y:t!=null&&e.y!=null?l.scale.map(t)??null:null,payload:e.payload}:{x:t==null?null:c.scale.map(t)??null,y:e.y,payload:e.payload}}):_?l.scale.map(g):c.scale.map(g))??0,isRange:v}}function pP(e){var t=_n(e,$N),n=qs();return l.createElement(aA,{id:t.id,type:`area`},e=>l.createElement(l.Fragment,null,l.createElement(Ek,{legendPayload:tP(t)}),l.createElement(nP,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),l.createElement(fA,{type:`area`,id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:fs(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),l.createElement(uP,GN({},t,{id:e}))))}var mP=l.memo(pP,du);mP.displayName=`Area`;var hP=!0,gP=`Invariant failed`;function _P(e,t){if(!e){if(hP)throw Error(gP);var n=typeof t==`function`?t():t,r=n?`${gP}: ${n}`:gP;throw Error(r)}}var vP=[`option`];function yP(e,t){if(e==null)return{};var n,r,i=bP(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r1&&arguments[1]!==void 0?arguments[1]:0;return(n,r)=>{if(P(e))return e;var i=P(n)||Ht(n);return i?e(n,r):(!i&&_P(!1,`minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`),t)}},wP=(e,t,n)=>n,TP=I([Ox,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`bar`).find(e=>e.id===t)),EP=I([TP],e=>e?.maxBarSize),DP=(e,t,n,r)=>r,OP=I([Rc,Ox,CN,wN,wP],(e,t,n,r,i)=>t.filter(t=>e===`horizontal`?t.xAxisId===n:t.yAxisId===r).filter(e=>e.isPanorama===i).filter(e=>e.hide===!1).filter(e=>e.type===`bar`)),kP=(e,t,n)=>{var r=Rc(e),i=CN(e,t),a=wN(e,t);if(!(i==null||a==null))return r===`horizontal`?eS(e,`yAxis`,a,n):eS(e,`xAxis`,i,n)},AP=I([OP,Om,(e,t)=>{var n=Rc(e),r=CN(e,t),i=wN(e,t);if(!(r==null||i==null))return n===`horizontal`?pC(e,`xAxis`,r):pC(e,`yAxis`,i)}],rj),jP=(e,t,n)=>{var r=TP(e,t);if(r==null)return 0;var i=CN(e,t),a=wN(e,t);if(i==null||a==null)return 0;var o=Rc(e),s=Tm(e),c=r.maxBarSize,l=Ht(c)?s:c,u,d;return o===`horizontal`?(u=yC(e,`xAxis`,i,n),d=vC(e,`xAxis`,i,n)):(u=yC(e,`yAxis`,a,n),d=vC(e,`yAxis`,a,n)),xs(u,d,!0)??l??0},MP=(e,t,n)=>{var r=Rc(e),i=CN(e,t),a=wN(e,t);if(!(i==null||a==null)){var o,s;return r===`horizontal`?(o=yC(e,`xAxis`,i,n),s=vC(e,`xAxis`,i,n)):(o=yC(e,`yAxis`,a,n),s=vC(e,`yAxis`,a,n)),xs(o,s)}},NP=I([Us,Gs,(e,t,n)=>{var r=CN(e,t);if(r!=null)return yC(e,`xAxis`,r,n)},(e,t,n)=>{var r=wN(e,t);if(r!=null)return yC(e,`yAxis`,r,n)},(e,t,n)=>{var r=CN(e,t);if(r!=null)return vC(e,`xAxis`,r,n)},(e,t,n)=>{var r=wN(e,t);if(r!=null)return vC(e,`yAxis`,r,n)},I([I([AP,Tm,Em,Dm,jP,MP,EP],uj),TP],fj),Rc,Zp,MP,I([kP,TP],dj),TP,DP],(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{var p=c.chartData,m=c.dataStartIndex,h=c.dataEndIndex;if(!(d==null||o==null||t==null||s!==`horizontal`&&s!==`vertical`||n==null||r==null||i==null||a==null||l==null)){var g=d.data,_=g!=null&&g.length>0?g:p?.slice(m,h+1);if(_!=null)return SF({layout:s,barSettings:d,pos:o,parentViewBox:t,bandSize:l,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:_,offset:e,cells:f,dataStartIndex:m})}}),PP=[`index`];function FP(){return FP=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t=(0,l.useContext)(RP);if(t!=null)return t.stackId;if(e!=null)return fs(e)},BP=(e,t)=>`recharts-bar-stack-clip-path-${e}-${t}`,VP=e=>{var t=(0,l.useContext)(RP);if(t!=null){var n=t.stackId;return`url(#${BP(n,e)})`}},HP=e=>{var t=e.index,n=IP(e,PP),r=VP(t);return l.createElement(k,FP({className:`recharts-bar-stack-layer`,clipPath:r},n))},UP=[`onMouseEnter`,`onMouseLeave`,`onClick`],WP=[`value`,`background`,`tooltipPosition`],GP=[`id`],KP=[`onMouseEnter`,`onClick`,`onMouseLeave`];function qP(e,t){return QP(e)||ZP(e,t)||YP(e,t)||JP()}function JP(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YP(e,t){if(e){if(typeof e==`string`)return XP(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XP(e,t):void 0}}function XP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{var t=e.dataKey,n=e.name,r=e.fill,i=e.legendType;return[{inactive:e.hide,dataKey:t,type:i,color:r,value:Cs(n,t),payload:e}]},cF=l.memo(e=>{var t=e.dataKey,n=e.stroke,r=e.strokeWidth,i=e.fill,a=e.name,o=e.hide,s=e.unit,c=e.tooltipType,u=e.id,d={dataDefinedOnItem:void 0,getPosition:Gt,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Cs(a,t),hide:o,type:c,color:i,unit:s,graphicalItemId:u}};return l.createElement(Tk,{tooltipEntrySettings:d})});function lF(e){var t=F(Hw),n=e.data,r=e.dataKey,i=e.background,a=e.allOtherBarProps,o=a.onMouseEnter,s=a.onMouseLeave,c=a.onClick,u=aF(a,UP),d=Sk(o,r,a.id),f=Ck(s),p=wk(c,r,a.id);if(!i||n==null)return null;var m=_(i);return l.createElement(KT,{zIndex:pj(i,Im.barBackground)},n.map((e,n)=>{e.value;var a=e.background;e.tooltipPosition;var o=aF(e,WP);if(!a)return null;var s=d(e,e.originalDataIndex),c=f(e,e.originalDataIndex),h=p(e,e.originalDataIndex),g=tF(tF(tF(tF(tF({option:i,isActive:String(e.originalDataIndex)===t},o),{},{fill:`#eee`},a),m),dn(u,e,n)),{},{onMouseEnter:s,onMouseLeave:c,onClick:h,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return l.createElement(SP,$P({key:`background-bar-${n}`},g))}))}function uF(e){var t=e.showLabels,n=e.children,r=e.rects?.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return tF(tF({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return l.createElement(GO,{value:t?r:void 0},n)}function dF(e){var t=e.shape,n=e.activeBar,r=e.baseProps,i=e.entry,a=e.index,o=e.dataKey,s=F(Hw),c=F(Ww),u=n&&String(i.originalDataIndex)===s&&(c==null||o===c),d=qP((0,l.useState)(!1),2),f=d[0],p=d[1],m=qP((0,l.useState)(!1),2),h=m[0],g=m[1];(0,l.useEffect)(()=>{var e;return u?(p(!0),e=requestAnimationFrame(()=>{g(!0)})):g(!1),()=>{cancelAnimationFrame(e)}},[u]);var _=(0,l.useCallback)(()=>{u||p(!1)},[u]),v=u&&h,y=u||f,b=u?n===!0?t:n:t,x=l.createElement(SP,$P({},r,{name:String(r.name)},i,{isActive:v,option:b,index:a,dataKey:o,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance,onTransitionEnd:_}));return y?l.createElement(KT,{zIndex:Im.activeBar},l.createElement(HP,{index:i.originalDataIndex},x)):x}function fF(e){var t=e.shape,n=e.baseProps,r=e.entry,i=e.index,a=e.dataKey;return l.createElement(SP,$P({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance}))}function pF(e){var t=e.data,n=e.props,r=e.animationElapsedTime,i=e.isAnimating,a=e.isEntrance,o=g(n)??{},s=o.id,c=aF(o,GP),u=n.shape,d=n.dataKey,f=n.activeBar,p=n.onMouseEnter,m=n.onClick,h=n.onMouseLeave,_=aF(n,KP),v=Sk(p,d,s),y=Ck(h),b=wk(m,d,s);return t?l.createElement(l.Fragment,null,t.map((e,t)=>l.createElement(HP,$P({index:e.originalDataIndex,key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className:`recharts-bar-rectangle`},dn(_,e,t),{onMouseEnter:v(e,e.originalDataIndex),onMouseLeave:y(e,e.originalDataIndex),onClick:b(e,e.originalDataIndex)}),f?l.createElement(dF,{shape:u,activeBar:f,baseProps:c,entry:e,index:t,dataKey:d,animationElapsedTime:r,isAnimating:i,isEntrance:a}):l.createElement(fF,{shape:u,baseProps:c,entry:e,index:t,dataKey:d,animationElapsedTime:r,isAnimating:i,isEntrance:a})))):null}var mF=(e,t,n)=>e==null?[]:t===1?e.flatMap(e=>e.status===`removed`?[]:[e.next]):e.flatMap(e=>{if(e.status===`removed`)return n===`horizontal`?[tF(tF({},e.prev),{},{height:Bt(e.prev.height,0,t),y:Bt(e.prev.y,e.prev.y+e.prev.height,t)})]:[tF(tF({},e.prev),{},{width:Bt(e.prev.width,0,t)})];if(e.status===`matched`)return[tF(tF({},e.next),{},{x:Bt(e.prev.x,e.next.x,t),y:Bt(e.prev.y,e.next.y,t),width:Bt(e.prev.width,e.next.width,t),height:Bt(e.prev.height,e.next.height,t)})];var r=e.next;return n===`horizontal`?[tF(tF({},r),{},{height:Bt(0,r.height,t),y:Bt(r.stackedBarStart,r.y,t)})]:[tF(tF({},r),{},{width:Bt(0,r.width,t),x:Bt(r.stackedBarStart,r.x,t)})]});function hF(e){var t=e.props,n=e.previousRectanglesRef,r=t.data,i=t.isAnimationActive,a=t.animationBegin,o=t.animationDuration,s=t.animationEasing,c=t.animationInterpolateFn,u=t.layout,d=Jk(t.onAnimationStart,t.onAnimationEnd),f=d.isAnimating,p=d.handleAnimationStart,m=d.handleAnimationEnd;return l.createElement(uF,{showLabels:!f,rects:r},l.createElement(Yk,{animationInput:r,animationIdPrefix:`recharts-bar-`,items:r,previousItemsRef:n,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,onAnimationStart:p,onAnimationEnd:m,animationInterpolateFn:c,animationMatchBy:t.animationMatchBy,layout:u},(e,n,r)=>l.createElement(k,null,l.createElement(pF,{props:t,data:e,animationElapsedTime:n,isAnimating:f||n<1,isEntrance:r}))),l.createElement(XO,{label:t.label}),t.children)}function gF(e){var t=(0,l.useRef)(null);return l.createElement(hF,{previousRectanglesRef:t,props:e})}var _F=0,vF=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:is(e,t)}},yF=class extends l.PureComponent{render(){var e=this.props,t=e.hide,n=e.data,r=e.dataKey,i=e.className,a=e.xAxisId,s=e.yAxisId,c=e.needClip,u=e.background,d=e.id;if(t||n==null)return null;var f=o(`recharts-bar`,i),p=d;return l.createElement(k,{className:f,id:d},c&&l.createElement(`defs`,null,l.createElement(xN,{clipPathId:p,xAxisId:a,yAxisId:s})),l.createElement(k,{className:`recharts-bar-rectangles`,clipPath:c?`url(#clipPath-${p})`:void 0},l.createElement(lF,{data:n,dataKey:r,background:u,allOtherBarProps:this.props}),l.createElement(gF,this.props)))}},bF={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:`ease`,animationInterpolateFn:mF,animationMatchBy:Pk,background:!1,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`rect`,minPointSize:_F,shape:xP,xAxisId:0,yAxisId:0,zIndex:Im.bar};function xF(e){var t=e.xAxisId,n=e.yAxisId,r=e.hide,i=e.legendType,a=e.minPointSize,o=e.activeBar,s=e.animationBegin,c=e.animationDuration,u=e.animationEasing,d=e.isAnimationActive,f=bN(t,n).needClip,p=zc(),m=qs(),h=lk(e.children,KE),g=F(t=>NP(t,e.id,m,h));if(p!==`vertical`&&p!==`horizontal`)return null;var _,v=g?.[0];return _=v==null||v.height==null||v.width==null?0:p===`vertical`?v.height/2:v.width/2,l.createElement(yN,{xAxisId:t,yAxisId:n,data:g,dataPointFormatter:vF,errorBarOffset:_},l.createElement(yF,$P({},e,{layout:p,needClip:f,data:g,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:u,isAnimationActive:d})))}function SF(e){var t=e.layout,n=e.barSettings,r=n.dataKey,i=n.minPointSize,a=n.hasCustomShape,o=e.pos,s=e.bandSize,c=e.xAxis,l=e.yAxis,u=e.xAxisTicks,d=e.yAxisTicks,f=e.stackedData,p=e.displayedData,m=e.offset,h=e.cells,g=e.parentViewBox,_=e.dataStartIndex,v=t===`horizontal`?l:c,y=f?v.scale.domain():null,b=hs({numericAxis:v}),x=v.scale.map(b);return p.map((e,n)=>{var p,v,S,C,w,T;if(f){var E=f[n+_];if(E==null)return null;p=ls(E,y)}else p=is(e,r),Array.isArray(p)||(p=[b,p]);var D=CP(i,_F)(p[1],n);if(t===`horizontal`){var O=l.scale.map(p[0]),k=l.scale.map(p[1]);if(O==null||k==null)return null;v=ms({axis:c,ticks:u,bandSize:s,offset:o.offset,entry:e,index:n}),S=k??O??void 0,C=o.size;var A=O-k;if(w=Nt(A)?0:A,T={x:v,y:m.top,width:C,height:m.height},Math.abs(D)>0&&Math.abs(w)0&&Math.abs(C)l.createElement(l.Fragment,null,l.createElement(Ek,{legendPayload:sF(t)}),l.createElement(cF,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),l.createElement(fA,{type:`bar`,id:e,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null&&t.shape!==xP}),l.createElement(KT,{zIndex:t.zIndex},l.createElement(xF,$P({},t,{id:e})))))}var wF=l.memo(CF,du);wF.displayName=`Bar`;var TF=[`domain`,`range`],EF=[`domain`,`range`];function DF(e,t){if(e==null)return{};var n,r,i=OF(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r{if(o!=null)return IF(IF({},a),{},{type:o})},[a,o]);return(0,l.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(MA(s)):n.current!==s&&t(NA({prev:n.current,next:s})),n.current=s)},[s,t]),(0,l.useLayoutEffect)(()=>()=>{n.current&&=(t(PA(n.current)),null)},[t]),null}var UF=e=>{var t=e.xAxisId,n=e.className,r=F(Gs),i=qs(),a=`xAxis`,s=F(e=>_C(e,a,t,i)),c=F(e=>aC(e,t)),u=F(e=>uC(e,t)),d=F(e=>gx(e,t));if(c==null||u==null||d==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var f=BF(e,MF);d.id,d.scale;var p=BF(d,NF);return l.createElement(UM,PF({},f,p,{x:u.x,y:u.y,width:c.width,height:c.height,className:o(`recharts-${a} ${a}`,n),viewBox:r,ticks:s,axisType:a,axisId:t}))},WF={allowDataOverflow:hx.allowDataOverflow,allowDecimals:hx.allowDecimals,allowDuplicatedCategory:hx.allowDuplicatedCategory,angle:hx.angle,axisLine:PM.axisLine,height:hx.height,hide:!1,includeHidden:hx.includeHidden,interval:hx.interval,label:!1,minTickGap:hx.minTickGap,mirror:hx.mirror,orientation:hx.orientation,padding:hx.padding,reversed:hx.reversed,scale:hx.scale,tick:hx.tick,tickCount:hx.tickCount,tickLine:PM.tickLine,tickSize:PM.tickSize,type:hx.type,niceTicks:hx.niceTicks,xAxisId:0},GF=l.memo(e=>{var t=_n(e,WF);return l.createElement(l.Fragment,null,l.createElement(HF,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),l.createElement(UF,t))},AF);GF.displayName=`XAxis`;var KF=[`type`],qF=[`dangerouslySetInnerHTML`,`ticks`,`scale`],JF=[`id`,`scale`];function YF(){return YF=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(o!=null)return ZF(ZF({},a),{},{type:o})},[o,a]);return(0,l.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(FA(s)):n.current!==s&&t(IA({prev:n.current,next:s})),n.current=s)},[s,t]),(0,l.useLayoutEffect)(()=>()=>{n.current&&=(t(LA(n.current)),null)},[t]),null}function iI(e){var t=e.yAxisId,n=e.className,r=e.width,i=e.label,a=(0,l.useRef)(null),s=(0,l.useRef)(null),c=F(Gs),u=qs(),d=fr(),f=`yAxis`,p=F(e=>fC(e,t)),m=F(e=>dC(e,t)),h=F(e=>_C(e,f,t,u)),g=F(e=>yx(e,t));if((0,l.useLayoutEffect)(()=>{if(!(r!==`auto`||!p||OO(i)||(0,l.isValidElement)(i)||g==null)){var e=a.current;if(e){var n=e.getCalculatedWidth();Math.round(p.width)!==Math.round(n)&&d(RA({id:t,width:n}))}}},[h,p,d,i,t,r,g]),p==null||m==null||g==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var _=tI(e,qF);g.id,g.scale;var v=tI(g,JF);return l.createElement(UM,YF({},_,v,{ref:a,labelRef:s,x:m.x,y:m.y,tickTextProps:r===`auto`?{width:void 0}:{width:r},width:p.width,height:p.height,className:o(`recharts-${f} ${f}`,n),viewBox:c,ticks:h,axisType:f,axisId:t}))}var aI={allowDataOverflow:vx.allowDataOverflow,allowDecimals:vx.allowDecimals,allowDuplicatedCategory:vx.allowDuplicatedCategory,angle:vx.angle,axisLine:PM.axisLine,hide:!1,includeHidden:vx.includeHidden,interval:vx.interval,label:!1,minTickGap:vx.minTickGap,mirror:vx.mirror,orientation:vx.orientation,padding:vx.padding,reversed:vx.reversed,scale:vx.scale,tick:vx.tick,tickCount:vx.tickCount,tickLine:PM.tickLine,tickSize:PM.tickSize,type:vx.type,niceTicks:vx.niceTicks,width:vx.width,yAxisId:0},oI=l.memo(e=>{var t=_n(e,aI);return l.createElement(l.Fragment,null,l.createElement(rI,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),l.createElement(iI,t))},AF);oI.displayName=`YAxis`;var sI=I([(e,t)=>t,Rc,nh,dh,Fw,Lw,gT,Us],OT);function cI(e){return`getBBox`in e.currentTarget&&typeof e.currentTarget.getBBox==`function`}function lI(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(cI(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(e,i)=>({relativeX:Math.round((e-t.left)/n),relativeY:Math.round((i-t.top)/r)});return`touches`in e?Array.from(e.touches).map(e=>o(e.clientX,e.clientY)):o(e.clientX,e.clientY)}var uI=Na(`mouseClick`),dI=Ho();dI.startListening({actionCreator:uI,effect:(e,t)=>{var n=e.payload,r=sI(t.getState(),lI(n));r?.activeIndex!=null&&t.dispatch(BC({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var fI=Na(`mouseMove`),pI=Ho(),mI=null,hI=null,gI=null;pI.startListening({actionCreator:fI,effect:(e,t)=>{var n=e.payload,r=t.getState().eventSettings,i=r.throttleDelay,a=r.throttledEvents,o=a===`all`||a?.includes(`mousemove`);mI!==null&&(cancelAnimationFrame(mI),mI=null),hI!==null&&(typeof i!=`number`||!o)&&(clearTimeout(hI),hI=null),gI=lI(n);var s=()=>{var e=t.getState(),n=wC(e,e.tooltip.settings.shared);if(!gI){mI=null,hI=null;return}if(n===`axis`){var r=sI(e,gI);r?.activeIndex==null?t.dispatch(LC()):t.dispatch(zC({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}mI=null,hI=null};if(!o){s();return}i===`raf`?mI=requestAnimationFrame(s):typeof i==`number`&&hI===null&&(hI=setTimeout(s,i))}});function _I(e,t){return t instanceof HTMLElement?`HTMLElement <${t.tagName} class="${t.className}">`:t===window?`global.window`:e===`children`&&typeof t==`object`&&t?`<>`:t}var vI={accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:`none`,syncId:void 0,syncMethod:`index`,baseValue:void 0,reverseStackOrder:!1},yI=to({name:`rootProps`,initialState:vI,reducers:{updateOptions:(e,t)=>{e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=t.payload.barGap??vI.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),bI=yI.reducer,xI=yI.actions.updateOptions,SI=to({name:`polarOptions`,initialState:null,reducers:{updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}});SI.actions.updatePolarOptions;var CI=SI.reducer,wI=Na(`keyDown`),TI=Na(`focus`),EI=Na(`blur`),DI=Ho(),OI=null,kI=null,AI=null;DI.startListening({actionCreator:wI,effect:(e,t)=>{AI=e.payload,OI!==null&&(cancelAnimationFrame(OI),OI=null);var n=t.getState().eventSettings,r=n.throttleDelay,i=n.throttledEvents,a=i===`all`||i.includes(`keydown`);kI!==null&&(typeof r!=`number`||!a)&&(clearTimeout(kI),kI=null);var o=()=>{try{var e=t.getState();if(e.rootProps.accessibilityLayer===!1)return;var n=e.tooltip.keyboardInteraction,r=AI;if(r!==`ArrowRight`&&r!==`ArrowLeft`&&r!==`Enter`)return;var i=tw(n,Cw(e),Zx(e),Mw(e)),a=i==null?-1:Number(i),o=!Number.isFinite(a)||a<0,s=Lw(e),c=Cw(e),l=wC(e,e.tooltip.settings.shared);if(r===`Enter`){if(o)return;var u=xT(e,l,`hover`,String(n.index));t.dispatch(HC({active:!n.active,activeIndex:n.index,activeCoordinate:u}));return}var d=bC(e)===`left-to-right`?1:-1,f=r===`ArrowRight`?1:-1,p;if(o){var m=Zx(e),h=Mw(e),g=f*d,_=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(p=-1,g>0){for(var v=0;v=0;y--)if(tw(_(y),c,m,h)!=null){p=y;break}if(p<0)return}else{p=a+f*d;var b=s?.length||c.length;if(b===0||p>=b||p<0)return}var x=xT(e,l,`hover`,String(p));t.dispatch(HC({active:!0,activeIndex:p.toString(),activeCoordinate:x}))}finally{OI=null,kI=null}};if(!a){o();return}r===`raf`?OI=requestAnimationFrame(o):typeof r==`number`&&kI===null&&(o(),AI=null,kI=setTimeout(()=>{AI?o():(kI=null,OI=null)},r))}}),DI.startListening({actionCreator:TI,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var r=n.tooltip.keyboardInteraction;if(!r.active&&r.index==null){var i=`0`,a=xT(n,wC(n,n.tooltip.settings.shared),`hover`,String(i));t.dispatch(HC({active:!0,activeIndex:i,activeCoordinate:a}))}}}}),DI.startListening({actionCreator:EI,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var r=n.tooltip.keyboardInteraction;r.active&&t.dispatch(HC({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}});function jI(e){e.persist();var t=e.currentTarget;return new Proxy(e,{get:(e,n)=>{if(n===`currentTarget`)return t;var r=Reflect.get(e,n);return typeof r==`function`?r.bind(e):r}})}var MI=Na(`externalEvent`),NI=Ho(),PI=new Map,FI=new Map,II=new Map;NI.startListening({actionCreator:MI,effect:(e,t)=>{var n=e.payload,r=n.handler,i=n.reactEvent;if(r!=null){var a=i.type,o=jI(i);II.set(a,{handler:r,reactEvent:o});var s=PI.get(a);s!==void 0&&(cancelAnimationFrame(s),PI.delete(a));var c=t.getState().eventSettings,l=c.throttleDelay,u=c.throttledEvents,d=u===`all`||u?.includes(a),f=FI.get(a);f!==void 0&&(typeof l!=`number`||!d)&&(clearTimeout(f),FI.delete(a));var p=()=>{var e=II.get(a);try{if(!e)return;var n=e.handler,r=e.reactEvent,i=t.getState(),o={activeCoordinate:qw(i),activeDataKey:Ww(i),activeIndex:Hw(i),activeLabel:Uw(i),activeTooltipIndex:Hw(i),isTooltipActive:Jw(i)};n&&n(o,r)}finally{PI.delete(a),FI.delete(a),II.delete(a)}};if(!d){p();return}if(l===`raf`){var m=requestAnimationFrame(p);PI.set(a,m)}else if(typeof l==`number`){if(!FI.has(a)){p();var h=setTimeout(p,l);FI.set(a,h)}}else p()}}});var LI=I([I([aw],e=>e.tooltipItemPayloads),(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(e=>e.settings.graphicalItemId===n);if(r!=null){var i=r.getPosition;if(i!=null)return i(t)}}}),RI=Na(`touchMove`),zI=Ho(),BI=null,VI=null,HI=null,UI=null;zI.startListening({actionCreator:RI,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){UI=jI(n);var r=t.getState().eventSettings,i=r.throttleDelay,a=r.throttledEvents,o=a===`all`||a.includes(`touchmove`);BI!==null&&(cancelAnimationFrame(BI),BI=null),VI!==null&&(typeof i!=`number`||!o)&&(clearTimeout(VI),VI=null),HI=Array.from(n.touches).map(e=>lI({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var s=()=>{if(UI!=null){var e=t.getState(),n=wC(e,e.tooltip.settings.shared);if(n===`axis`){var r=HI?.[0];if(r==null){BI=null,VI=null;return}var i=sI(e,r);i?.activeIndex!=null&&t.dispatch(zC({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(n===`item`){var a=UI.touches[0];if(document.elementFromPoint==null||a==null)return;var o=document.elementFromPoint(a.clientX,a.clientY);if(!o||!o.getAttribute)return;var s=o.getAttribute(Ms),c=o.getAttribute(`data-recharts-item-id`)??void 0,l=yw(e).find(e=>e.id===c);if(s==null||l==null||c==null)return;var u=l.dataKey,d=LI(e,s,c);t.dispatch(FC({activeDataKey:u,activeIndex:s,activeCoordinate:d,activeGraphicalItemId:c}))}BI=null,VI=null}};if(!o){s();return}i===`raf`?BI=requestAnimationFrame(s):typeof i==`number`&&VI===null&&(s(),UI=null,VI=setTimeout(()=>{UI?s():(VI=null,BI=null)},i))}}});var WI={throttleDelay:`raf`,throttledEvents:[`mousemove`,`touchmove`,`pointermove`,`scroll`,`wheel`]},GI=to({name:`eventSettings`,initialState:WI,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=R(t.payload.throttledEvents))}}}),KI=GI.actions.setEventSettings,qI=GI.reducer,JI=ii({brush:_j,cartesianAxis:zA,chartData:_E,errorBars:mN,eventSettings:qI,graphicalItems:dA,layout:Xo,legend:Kl,options:uE,polarAxis:tk,polarOptions:CI,referenceElements:Ej,renderedTicks:vM,rootProps:bI,tooltip:UC,zIndex:GT}),YI=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Chart`;return Ga({reducer:JI,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:![`commonjs`,`es6`,`production`].includes(`es6`)}).concat([dI.middleware,pI.middleware,DI.middleware,NI.middleware,zI.middleware]),enhancers:e=>{var t=e;return typeof e==`function`&&(t=e()),t.concat(Ua({type:`raf`}))},devTools:id.devToolsEnabled&&{serialize:{replacer:_I},name:`recharts-${t}`}})};function XI(e){var t=e.preloadedState,n=e.children,r=e.reduxStoreName,i=qs(),a=(0,l.useRef)(null);if(i)return n;a.current??=YI(t,r);var o=ur;return l.createElement(cu,{context:o,store:a.current},n)}function ZI(e){var t=e.layout,n=e.margin,r=fr(),i=qs();return(0,l.useEffect)(()=>{i||(r(qo(t)),r(Ko(n)))},[r,i,t,n]),null}var QI=(0,l.memo)(ZI,du);function $I(e){var t=fr();return(0,l.useEffect)(()=>{t(xI(e))},[t,e]),null}var eL=(0,l.memo)(e=>{var t=fr();return(0,l.useEffect)(()=>{t(KI(e))},[t,e]),null},du);function tL(e){var t=e.zIndex,n=e.isPanorama,r=(0,l.useRef)(null),i=fr();return(0,l.useLayoutEffect)(()=>(r.current&&i(UT({zIndex:t,element:r.current,isPanorama:n})),()=>{i(WT({zIndex:t,isPanorama:n}))}),[i,t,n]),l.createElement(`g`,{tabIndex:-1,ref:r,className:`recharts-zIndex-layer_${t}`})}function nL(e){var t=e.children,n=e.isPanorama,r=F(AT);if(!r||r.length===0)return t;var i=r.filter(e=>e<0),a=r.filter(e=>e>0);return l.createElement(l.Fragment,null,i.map(e=>l.createElement(tL,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>l.createElement(tL,{key:e,zIndex:e,isPanorama:n})))}var rL=[`children`];function iL(e,t){if(e==null)return{};var n,r,i=aL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r{var n=Fc(),r=Ic(),i=Ed();if(!Qo(n)||!Qo(r))return null;var a=e.children,o=e.otherAttributes,s=e.title,c=e.desc,u,d;return o!=null&&(u=typeof o.tabIndex==`number`?o.tabIndex:i?0:void 0,d=typeof o.role==`string`?o.role:i?`application`:void 0),l.createElement(w,oL({},o,{title:s,desc:c,role:d,tabIndex:u,width:n,height:r,style:sL,ref:t}),a)}),lL=e=>{var t=e.children,n=F(Ys);if(!n)return null;var r=n.width,i=n.height,a=n.y,o=n.x;return l.createElement(w,{width:r,height:i,x:o,y:a},t)},uL=(0,l.forwardRef)((e,t)=>{var n=e.children,r=iL(e,rL);return qs()?l.createElement(lL,null,l.createElement(nL,{isPanorama:!0},n)):l.createElement(cL,oL({ref:t},r),l.createElement(nL,{isPanorama:!1},n))});function dL(e,t){return gL(e)||hL(e,t)||pL(e,t)||fL()}function fL(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pL(e,t){if(e){if(typeof e==`string`)return mL(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mL(e,t):void 0}}function mL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{if(n!=null){var t=n.getBoundingClientRect().width/n.offsetWidth;L(t)&&t!==i&&e(Yo(t))}},[n,e,i]),r}function vL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yL(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n(OE(),null);function jL(e){if(typeof e==`number`)return e;if(typeof e==`string`){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var ML=(0,l.forwardRef)((e,t)=>{var n=(0,l.useRef)(null),r=wL((0,l.useState)({containerWidth:jL(e.style?.width),containerHeight:jL(e.style?.height)}),2),i=r[0],a=r[1],o=(0,l.useCallback)((e,t)=>{a(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),s=(0,l.useCallback)(e=>{if(typeof t==`function`&&t(e),n.current!=null&&(n.current.disconnect(),n.current=null),e!=null&&typeof ResizeObserver<`u`){var r=e.getBoundingClientRect(),i=r.width,a=r.height;o(i,a);var s=new ResizeObserver(e=>{var t=e[0];if(t!=null){var n=t.contentRect,r=n.width,i=n.height;o(r,i)}});s.observe(e),n.current=s}},[t,o]);return(0,l.useEffect)(()=>()=>{n.current?.disconnect()},[o]),l.createElement(l.Fragment,null,l.createElement(Uc,{width:i.containerWidth,height:i.containerHeight}),l.createElement(`div`,CL({ref:s},e)))}),NL=(0,l.forwardRef)((e,t)=>{var n=e.width,r=e.height,i=wL((0,l.useState)({containerWidth:jL(n),containerHeight:jL(r)}),2),a=i[0],o=i[1],s=(0,l.useCallback)((e,t)=>{o(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),c=(0,l.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null){var n=e.getBoundingClientRect(),r=n.width,i=n.height;s(r,i)}},[t,s]);return l.createElement(l.Fragment,null,l.createElement(Uc,{width:a.containerWidth,height:a.containerHeight}),l.createElement(`div`,CL({ref:c},e)))}),PL=(0,l.forwardRef)((e,t)=>{var n=e.width,r=e.height;return l.createElement(l.Fragment,null,l.createElement(Uc,{width:n,height:r}),l.createElement(`div`,CL({ref:t},e)))}),FL=(0,l.forwardRef)((e,t)=>{var n=e.width,r=e.height;return typeof n==`string`||typeof r==`string`?l.createElement(NL,CL({},e,{ref:t})):typeof n==`number`&&typeof r==`number`?l.createElement(PL,CL({},e,{width:n,height:r,ref:t})):l.createElement(l.Fragment,null,l.createElement(Uc,{width:n,height:r}),l.createElement(`div`,CL({ref:t},e)))});function IL(e){return e?ML:FL}var LL=(0,l.forwardRef)((e,t)=>{var n=e.children,r=e.className,i=e.height,a=e.onClick,s=e.onContextMenu,c=e.onDoubleClick,u=e.onMouseDown,d=e.onMouseEnter,f=e.onMouseLeave,p=e.onMouseMove,m=e.onMouseUp,h=e.onTouchEnd,g=e.onTouchMove,_=e.onTouchStart,v=e.style,y=e.width,b=e.responsive,x=e.dispatchTouchEvents,S=x===void 0?!0:x,C=(0,l.useRef)(null),w=fr(),T=wL((0,l.useState)(null),2),E=T[0],D=T[1],O=wL((0,l.useState)(null),2),k=O[0],j=O[1],M=_L(),N=Oc(),ee=N?.width>0?N.width:y,te=N?.height>0?N.height:i,ne=(0,l.useCallback)(e=>{M(e),typeof t==`function`&&t(e),D(e),j(e),e!=null&&(C.current=e)},[M,t,D,j]),re=(0,l.useCallback)(e=>{w(uI(e)),w(MI({handler:a,reactEvent:e}))},[w,a]),ie=(0,l.useCallback)(e=>{w(fI(e)),w(MI({handler:d,reactEvent:e}))},[w,d]),ae=(0,l.useCallback)(e=>{w(LC()),w(MI({handler:f,reactEvent:e}))},[w,f]),oe=(0,l.useCallback)(e=>{w(fI(e)),w(MI({handler:p,reactEvent:e}))},[w,p]),se=(0,l.useCallback)(()=>{w(TI())},[w]),ce=(0,l.useCallback)(()=>{w(EI())},[w]),le=(0,l.useCallback)(e=>{w(wI(e.key))},[w]),ue=(0,l.useCallback)(e=>{w(MI({handler:s,reactEvent:e}))},[w,s]),de=(0,l.useCallback)(e=>{w(MI({handler:c,reactEvent:e}))},[w,c]),fe=(0,l.useCallback)(e=>{w(MI({handler:u,reactEvent:e}))},[w,u]),pe=(0,l.useCallback)(e=>{w(MI({handler:m,reactEvent:e}))},[w,m]),me=(0,l.useCallback)(e=>{w(MI({handler:_,reactEvent:e}))},[w,_]),he=(0,l.useCallback)(e=>{S&&w(RI(e)),w(MI({handler:g,reactEvent:e}))},[w,S,g]),ge=(0,l.useCallback)(e=>{w(MI({handler:h,reactEvent:e}))},[w,h]),_e=IL(b);return l.createElement(nE.Provider,{value:E},l.createElement(A.Provider,{value:k},l.createElement(_e,{width:ee??v?.width,height:te??v?.height,className:o(`recharts-wrapper`,r),style:yL({position:`relative`,cursor:`default`,width:ee,height:te},v),onClick:re,onContextMenu:ue,onDoubleClick:de,onFocus:se,onBlur:ce,onKeyDown:le,onMouseDown:fe,onMouseEnter:ie,onMouseLeave:ae,onMouseMove:oe,onMouseUp:pe,onTouchEnd:ge,onTouchMove:he,onTouchStart:me,ref:ne},l.createElement(AL,null),n)))}),RL=[`width`,`height`,`responsive`,`children`,`className`,`style`,`compact`,`title`,`desc`];function zL(e,t){if(e==null)return{};var n,r,i=BL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r{var n=e.width,r=e.height,i=e.responsive,a=e.children,o=e.className,s=e.style,c=e.compact,u=e.title,d=e.desc,f=g(zL(e,RL));return c?l.createElement(l.Fragment,null,l.createElement(Uc,{width:n,height:r}),l.createElement(uL,{otherAttributes:f,title:u,desc:d},a)):l.createElement(LL,{className:o,style:s,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},l.createElement(uL,{otherAttributes:f,title:u,desc:d,ref:t},l.createElement(Pj,null,a)))});function HL(){return HL=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.createElement(YL,{chartName:`BarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:XL,tooltipPayloadSearcher:cE,categoricalChartProps:e,ref:t})),QL=[`axis`],$L=(0,l.forwardRef)((e,t)=>l.createElement(YL,{chartName:`AreaChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:QL,tooltipPayloadSearcher:cE,categoricalChartProps:e,ref:t})),eR=i(),tR={};tR.d=(e,t)=>{for(var n in t)tR.o(t,n)&&!tR.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},tR.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var nR;(function(e){e.SVG_NS=`http://www.w3.org/2000/svg`,e.product=`Highcharts`,e.version=`12.6.0`,e.win=typeof window<`u`?window:{},e.doc=e.win.document,e.svg=!!e.doc?.createElementNS?.(e.SVG_NS,`svg`)?.createSVGRect,e.pageLang=e.doc?.documentElement?.closest(`[lang]`)?.lang,e.userAgent=e.win.navigator?.userAgent||``,e.isChrome=e.win.chrome,e.isFirefox=e.userAgent.indexOf(`Firefox`)!==-1,e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&e.userAgent.indexOf(`Safari`)!==-1,e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=e.userAgent.indexOf(`AppleWebKit`)!==-1,e.deg2rad=Math.PI*2/360,e.marginNames=[`plotTop`,`marginRight`,`marginBottom`,`plotLeft`],e.noop=function(){},e.supportsPassiveEvents=function(){let t=!1;if(!e.isMS){let n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener(`testPassive`,e.noop,n),e.win.removeEventListener(`testPassive`,e.noop,n))}return t}(),e.charts=[],e.composed=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0})(nR||={});var V=nR,rR={alignThresholds:!1,panning:{enabled:!1,type:`x`},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:`line`,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:`right`,x:-10,y:10}}},width:null,height:null,borderColor:`#334eff`,backgroundColor:`#ffffff`,plotBorderColor:`#cccccc`},iR={colors:[`#2caffe`,`#544fc5`,`#00e272`,`#fe6a35`,`#6b8abc`,`#d568fb`,`#2ee0ca`,`#fa4b42`,`#feb56a`,`#91e8e1`]},{doc:aR,win:oR}=V;function H(e,t,n,r={}){let i=typeof e==`function`&&e.prototype||e;Object.hasOwnProperty.call(i,`hcEvents`)||(i.hcEvents={});let a=i.hcEvents;V.Point&&e instanceof V.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let o=e.addEventListener;o&&o.call(e,t,n,V.supportsPassiveEvents?{passive:r.passive===void 0?t.indexOf(`touch`)!==-1:r.passive,capture:!1}:!1),a[t]||(a[t]=[]);let s={fn:n,order:typeof r.order==`number`?r.order:1/0};return a[t].push(s),a[t].sort((e,t)=>e.order-t.order),function(){LR(e,t,n)}}function sR(e){let t=e.length,n=e[0];for(;t--;)e[t]n&&(n=e[t]);return n}function lR(e,t,n){let r=J(t)&&!W(n),i,a=(t,n)=>{W(t)?e.setAttribute(n,t):r?(i=e.getAttribute(n),!i&&n===`class`&&(i=e.getAttribute(n+`Name`))):e.removeAttribute(n)};return J(t)?a(n,t):Z(t,a),i}function uR(e,t,n){return e>t?e0x5af3107a4000?e:parseFloat(e.toPrecision(t||14))}function fR(e,t,n,r,i){let a=aR.createElement(e);return t&&G(a,t),i&&U(a,{padding:`0`,border:`none`,margin:`0`}),n&&U(a,n),r&&r.appendChild(a),a}function pR(e,t=0,n){let r=t%2/2,i=n?-1:1;return(Math.round(e*i-r)+r)*i}function U(e,t){G(e.style,t)}function W(e){return e!=null}function mR(e,t,n){Z(e,function(r,i){r!==t&&r?.destroy&&r.destroy(),(r?.destroy||!n)&&delete e[i]})}function hR(e){e?.parentElement?.removeChild(e)}function gR(e,t,n,r){let i={};function a(e,t,i,o){let s=n?t:e;Z(e,function(n,c){if(!o&&r&&r.indexOf(c)>-1&&t[c]){n=RR(n),i[c]=[];for(let e=0;ee.order-t.order),r.forEach(t=>{t.fn.call(e,n,e)===!1&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}var yR=(e=``)=>({center:.5,right:1,middle:.5,bottom:1})[e]||0;function bR(e,t){let n=!t,r,i,a,o;return e.forEach(e=>{if(e.length>1)for(i=e.length-1,o=i;o>0;o--)a=e[o]-e[o-1],a<0&&!n?(t?.(),t=void 0):a&&(r===void 0||a=t-1&&(t=Math.floor(n)),Math.max(0,t-(CR(e,`padding-left`,!0)||0)-(CR(e,`padding-right`,!0)||0))}if(t===`height`)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(CR(e,`padding-top`,!0)||0)-(CR(e,`padding-bottom`,!0)||0));let i=oR.getComputedStyle(e,void 0);return i&&(r=i.getPropertyValue(t),Q(n,t!==`opacity`)&&(r=NR(r))),r}var wR=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let n,r=e.length;for(n=0;n-1/0}function J(e){return typeof e==`string`}function OR(e){let t=Object.prototype.toString.call(e);return t===`[object Array]`||t===`[object Array Iterator]`}function kR(e){return typeof e==`function`}function Y(e,t){return!!e&&typeof e==`object`&&(!t||!OR(e))}function X(e,...t){let n,r=[e,...t],i={},a=function(e,t){return typeof e!=`object`&&(e={}),Z(t,function(n,r){r===`__proto__`||r===`constructor`||(Y(n,!0)&&!DR(n)&&!ER(n)?e[r]=a(e[r]||{},n):e[r]=t[r])}),e};e===!0&&(i=r[1],r=Array.prototype.slice.call(r,2));let o=r.length;for(n=0;n=e||!i&&s<=(t[a]+(t[a+1]||t[a]))/2));a++);return o=dR(o*n,-Math.round(Math.log(.001)/Math.LN10)),o}function Z(e,t,n){for(let r in e)Object.hasOwnProperty.call(e,r)&&t.call(n||e[r],e[r],r,e)}function jR(e){let t=aR.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(oR.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(oR.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:n.width,height:n.height}}function MR(e,t,n){return Array((t||2)+1-String(e).replace(`-`,``).length).join(n||`0`)+e}function Q(){let e=arguments,t=e.length;for(let n=0;n0?setTimeout(e,t,n):(e.call(0,n),-1)}function VR(e){return J(e)?e.substring(0,1).toUpperCase()+e.substring(1):String(e)}function HR(e,t,n){let r=e[t];e[t]=function(){let e=arguments,t=this;return n.apply(this,[function(){return r.apply(t,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}}var{charts:UR,win:WR}=V;function GR(e,t,n,r){let i=t?`Highcharts error`:`Highcharts warning`;e===32&&(e=`${i}: Deprecated member`);let a=q(e),o=a?`${i} #${e}: www.highcharts.com/errors/${e}/`:e.toString(),s=function(){if(t)throw Error(o);WR.console&&GR.messages.indexOf(o)===-1&&console.warn(o)};if(r!==void 0){let e=``;a&&(o+=`?`),Z(r,function(t,n){e+=`\n - ${n}: ${t}`,a&&(o+=encodeURI(n)+`=`+encodeURI(t))}),o+=e}K(V,`displayError`,{chart:n,code:e,message:o,params:r},s),GR.messages.push(o)}(function(e){e.messages=[]})(GR||={});function KR(e,t){let n=e.options.index,r=t.length,i;for(i=e.options.isInternal?r:0;ie.main===void 0,tz=class{constructor(e,t){this.options={timezone:`UTC`},this.variableTimezone=!1,this.Date=QR.Date,this.update(e),this.lang=t}update(e={}){this.dTLCache={},this.options=e=X(!0,this.options,e);let{timezoneOffset:t,useUTC:n,locale:r}=e;this.Date=e.Date||QR.Date||Date;let i=e.timezone;W(n)&&(i=n?`UTC`:void 0),t&&t%60==0&&(i=`Etc/GMT`+(t>0?`+`:``)+t/60),this.variableTimezone=i!==`UTC`&&i?.indexOf(`Etc/GMT`)!==0,this.timezone=i,this.lang&&r&&(this.lang.locale=r),[`months`,`shortMonths`,`weekdays`,`shortWeekdays`].forEach(e=>{let t=/months/i.test(e),n=/short/.test(e),r={timeZone:`UTC`};r[t?`month`:`weekday`]=n?`short`:`long`,this[e]=(t?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(e=>this.dateFormat(r,(t?31:1)*24*36e5*e))})}toParts(e){let[t,n,r,i,a,o,s]=this.dateTimeFormat({weekday:`narrow`,day:`numeric`,month:`numeric`,year:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`},e,`es`).split(/(?:, | |\/|:)/g);return[i,r-1,n,a,o,s,Math.floor(Number(e)||0)%1e3,`DLMXJVS`.indexOf(t)].map(Number)}dateTimeFormat(e,t,n=this.options.locale||ZR){let r=JSON.stringify(e)+n;J(e)&&(e=this.str2dtf(e));let i=this.dTLCache[r];if(!i){e.timeZone??=this.timezone;try{i=new Intl.DateTimeFormat(n,e)}catch(t){/Invalid time zone/i.test(t.message)?(GR(34),e.timeZone=`UTC`,i=new Intl.DateTimeFormat(n,e)):GR(t.message,!1)}}return this.dTLCache[r]=i,i?.format(t)||``}str2dtf(e,t={}){let n={L:{fractionalSecondDigits:3},S:{second:`2-digit`},M:{minute:`numeric`},H:{hour:`2-digit`},k:{hour:`numeric`},E:{weekday:`narrow`},a:{weekday:`short`},A:{weekday:`long`},d:{day:`2-digit`},e:{day:`numeric`},b:{month:`short`},B:{month:`long`},m:{month:`2-digit`},o:{month:`numeric`},y:{year:`2-digit`},Y:{year:`numeric`}};return Object.keys(n).forEach(r=>{e.indexOf(r)!==-1&&G(t,n[r])}),t}makeTime(e,t,n=1,r=0,i,a,o){let s=this.Date.UTC(e,t,n,r,i||0,a||0,o||0);if(this.timezone!==`UTC`){let e=this.getTimezoneOffset(s);if(s+=e,[2,3,8,9,10,11].indexOf(t)!==-1&&(r<5||r>20)){let t=this.getTimezoneOffset(s);e===t?e-36e5===this.getTimezoneOffset(s-36e5)&&!$R&&(s-=36e5):s+=t-e}}return s}parse(e){if(!J(e))return e??void 0;e=e.replace(/\//g,`-`).replace(/(GMT|UTC)/,``);let t=e.indexOf(`Z`)>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(e),n=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(e);!t&&!n&&(e+=`Z`);let r=Date.parse(e);if(q(r))return r+(!t||n?this.getTimezoneOffset(r):0)}getTimezoneOffset(e){if(this.timezone!==`UTC`){let[t,n,r,i,a=0]=this.dateTimeFormat({timeZoneName:`shortOffset`},e,`en`).split(/(GMT|:)/).map(Number),o=-(r+a/60)*60*6e4;if(q(o))return o}return 0}dateFormat(e,t,n){let r=this.lang;if(!W(t)||isNaN(t))return r?.invalidDate||``;if(e??=`%Y-%m-%d %H:%M:%S`,J(e)){let n=/%\[([a-zA-Z]+)\]/g,i;for(;i=n.exec(e);)e=e.replace(i[0],this.dateTimeFormat(i[1],t,r?.locale))}if(J(e)&&e.indexOf(`%`)!==-1){let n=this,[i,a,o,s,c,l,u,d]=this.toParts(t),f=r?.weekdays||this.weekdays,p=r?.shortWeekdays||this.shortWeekdays,m=r?.months||this.months,h=r?.shortMonths||this.shortMonths;Z(G({a:p?p[d]:f[d].substr(0,3),A:f[d],d:MR(o),e:MR(o,2,` `),w:d,v:r?.weekFrom??``,b:h[a],B:m[a],m:MR(a+1),o:a+1,y:i.toString().substr(2,2),Y:i,H:MR(s),k:s,I:MR(s%12||12),l:s%12||12,M:MR(c),p:s<12?`AM`:`PM`,P:s<12?`am`:`pm`,S:MR(l),L:MR(u,3)},V.dateFormats),function(r,i){if(J(e))for(;e.indexOf(`%`+i)!==-1;)e=e.replace(`%`+i,typeof r==`function`?r.call(n,t,n):r)})}else if(Y(e)){let n=(this.getTimezoneOffset(t)||0)/(6e4*60),r=this.timezone||`Etc/GMT`+(n>=0?`+`:``)+n,{prefix:i=``,suffix:a=``}=e;e=i+this.dateTimeFormat(G({timeZone:r},e),t)+a}return n?VR(e):e}resolveDTLFormat(e){return Y(e,!0)?Y(e,!0)&&ez(e)?{main:e}:e:(e=RR(e),{main:e[0],from:e[1],to:e[2]})}getDateFormat(e,t,n,r){let i=this.dateFormat(`%m-%d %H:%M:%S.%L`,t),a=`01-01 00:00:00.000`,o={millisecond:15,second:12,minute:9,hour:6,day:3},s=`millisecond`,c=s;for(s in qR){if(e&&e===qR.week&&+this.dateFormat(`%w`,t)===n&&i.substr(6)===a.substr(6)){s=`week`;break}if(e&&qR[s]>e){s=c;break}if(o[s]&&i.substr(o[s])!==a.substr(o[s]))break;s!==`week`&&(c=s)}return this.resolveDTLFormat(r[s]).main}},nz=class extends tz{getTimeTicks(e,t,n,r){let i=this,a=[],o={},{count:s=1,unitRange:c}=e,[l,u,d,f,p,m]=i.toParts(t),h=(t||0)%1e3,g;if(r??=1,W(t)){if(h=c>=qR.second?0:s*Math.floor(h/s),c>=qR.second&&(m=c>=qR.minute?0:s*Math.floor(m/s)),c>=qR.minute&&(p=c>=qR.hour?0:s*Math.floor(p/s)),c>=qR.hour&&(f=c>=qR.day?0:s*Math.floor(f/s)),c>=qR.day&&(d=c>=qR.month?1:Math.max(1,s*Math.floor(d/s))),c>=qR.month&&(u=c>=qR.year?0:s*Math.floor(u/s)),c>=qR.year&&(l-=l%s),c===qR.week){s&&(t=i.makeTime(l,u,d,f,p,m,h));let e=this.dateTimeFormat({timeZone:this.timezone,weekday:`narrow`},t,`es`),n=`DLMXJVS`.indexOf(e);d+=-n+r+(n4*qR.month||i.getTimezoneOffset(t)!==i.getTimezoneOffset(n));let e=t,_=1;for(;e1?e=i.makeTime(l,u,d,f+_*s):e+=c*s,_++;a.push(e),c<=qR.hour&&a.length<1e4&&a.forEach(e=>{e%18e5==0&&i.dateFormat(`%H%M%S%L`,e)===`000000000`&&(o[e]=`day`)})}return a.info=G(e,{higherRanks:o,totalRange:c*s}),a}},{isTouchDevice:rz}=V,iz={colors:iR.colors,symbols:[`circle`,`diamond`,`square`,`triangle`,`triangle-down`],lang:{weekFrom:`week from`,chartTitle:`Chart title`,locale:void 0,loading:`Loading...`,months:void 0,seriesName:`Series {add index 1}`,shortMonths:void 0,weekdays:void 0,numericSymbols:[`k`,`M`,`G`,`T`,`P`,`E`],pieSliceName:`Slice`,resetZoom:`Reset zoom`,yAxisTitle:`Values`,resetZoomTitle:`Reset zoom level 1:1`},global:{buttonTheme:{fill:`#f7f7f7`,padding:8,r:2,stroke:`#cccccc`,"stroke-width":1,style:{color:`#333333`,cursor:`pointer`,fontSize:`0.8em`,fontWeight:`normal`},states:{hover:{fill:`#e6e6e6`},select:{fill:`#e6e9ff`,style:{color:`#000000`,fontWeight:`bold`}},disabled:{style:{color:`#cccccc`}}}}},time:{Date:void 0,timezone:`UTC`,timezoneOffset:0,useUTC:void 0},chart:rR,title:{style:{color:`#333333`,fontWeight:`bold`},text:`Chart title`,margin:15,minScale:.67},subtitle:{style:{color:`#666666`,fontSize:`0.8em`},text:``},caption:{margin:15,style:{color:`#666666`,fontSize:`0.8em`},text:``,align:`left`,verticalAlign:`bottom`},plotOptions:{},legend:{enabled:!0,align:`center`,alignColumns:!0,className:`highcharts-no-tooltip`,events:{},layout:`horizontal`,itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:`#999999`,borderRadius:0,navigation:{style:{fontSize:`0.8em`},activeColor:`#0022ff`,inactiveColor:`#cccccc`},itemStyle:{color:`#333333`,cursor:`pointer`,fontSize:`0.8em`,textDecoration:`none`,textOverflow:`ellipsis`},itemHoverStyle:{color:`#000000`},itemHiddenStyle:{color:`#666666`,textDecoration:`line-through`},shadow:!1,itemCheckboxStyle:{position:`absolute`,width:`13px`,height:`13px`},squareSymbol:!0,symbolPadding:5,verticalAlign:`bottom`,x:0,y:0,title:{style:{color:`#333333`,fontSize:`0.8em`,fontWeight:`bold`}}},loading:{labelStyle:{fontWeight:`bold`,position:`relative`,top:`45%`},style:{position:`absolute`,backgroundColor:`#ffffff`,opacity:.5,textAlign:`center`}},tooltip:{enabled:!0,animation:{duration:300,easing:e=>Math.sqrt(1-(e-1)**2)},borderRadius:3,dateTimeLabelFormats:{millisecond:`%[AebHMSL]`,second:`%[AebHMS]`,minute:`%[AebHM]`,hour:`%[AebHM]`,day:`%[AebY]`,week:`%v %[AebY]`,month:`%[BY]`,year:`%Y`},footerFormat:``,headerShape:`callout`,hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:rz?25:10,headerFormat:`{ucfirst point.key}
`,pointFormat:`● {series.name}: {point.y}
`,backgroundColor:`#ffffff`,borderWidth:void 0,stickOnContact:!1,style:{color:`#333333`,cursor:`default`,fontSize:`0.8em`},useHTML:!1},credits:{enabled:!0,href:`https://www.highcharts.com?credits`,position:{align:`right`,x:-10,verticalAlign:`bottom`,y:-5},style:{cursor:`pointer`,color:`#999999`,fontSize:`0.6em`},text:`Highcharts.com`}},az=new nz(iz.time,iz.lang);function oz(){return iz}function sz(e){return K(V,`setOptions`,{options:e}),X(!0,iz,e),e.time&&az.update(iz.time),e.lang&&`locale`in e.lang&&az.update({locale:e.lang.locale}),e.lang?.chartTitle&&(iz.title={...iz.title,text:e.lang.chartTitle}),iz}var cz={defaultOptions:iz,defaultTime:az,getOptions:oz,setOptions:sz},{win:lz}=V,uz=(e,t,n)=>`color-mix(in srgb,${e},${t} ${n*100}%)`,dz=e=>J(e)&&!!e&&e!==`none`,fz=class e{static parse(t){return t?new e(t):e.None}constructor(t){this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let n=V.Color;if(n&&n!==e)return new n(t);let r,i,a,o;if(typeof t==`object`&&t.stops!==void 0)this.stops=t.stops.map(t=>new e(t[1]));else if(typeof t==`string`)for(this.input=t=e.names[t.toLowerCase()]||t,a=e.parsers.length;a--&&!i;)o=e.parsers[a],r=o.regex.exec(t),r&&(i=o.parse(r));i&&(this.rgba=i)}get(e){let t=this.input,n=this.rgba;if(this.output)return this.output;if(typeof t==`object`&&this.stops!==void 0){let n=X(t);return n.stops=[].slice.call(n.stops),this.stops.forEach((t,r)=>{n.stops[r]=[n.stops[r][0],t.get(e)]}),n}return n&&q(n[0])?e===`rgb`||!e&&n[3]===1?`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`:e===`a`?`${n[3]}`:`rgba(`+n.join(`,`)+`)`:t}brighten(t){let n=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(q(t)&&t!==0)if(q(n[0]))for(let e=0;e<3;e++)n[e]+=NR(t*255),n[e]<0&&(n[e]=0),n[e]>255&&(n[e]=255);else e.useColorMix&&dz(this.input)&&(this.output=uz(this.input,t>0?`white`:`black`,Math.abs(t)));return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(t,n){let r=this.rgba,i=t.rgba;if(!q(r[0])||!q(i[0]))return e.useColorMix&&dz(this.input)&&dz(t.input)&&n<.99?uz(this.input,t.input,n):t.input||`none`;let a=i[3]!==1||r[3]!==1,o=(e,t)=>e+(r[t]-e)*(1-n),s=i.slice(0,3).map(o).map(Math.round);return a&&s.push(o(i[3],3)),(a?`rgba(`:`rgb(`)+s.join(`,`)+`)`}};fz.names={white:`#ffffff`,black:`#000000`},fz.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(e){return[NR(e[1]),NR(e[2]),NR(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(e){return[NR(e[1]),NR(e[2]),NR(e[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(e){return[NR(e[1]+e[1],16),NR(e[2]+e[2],16),NR(e[3]+e[3],16),W(e[4])?NR(e[4]+e[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(e){return[NR(e[1],16),NR(e[2],16),NR(e[3],16),W(e[4])?NR(e[4],16)/255:1]}}],fz.useColorMix=lz.CSS?.supports(`color`,`color-mix(in srgb,red,blue 9%)`),fz.None=new fz(``);var pz=fz,{parse:mz}=pz,{win:hz}=V,gz=class e{constructor(e,t,n){this.pos=NaN,this.options=t,this.elem=e,this.prop=n}dSetter(){let e=this.paths,t=e?.[0],n=e?.[1],r=this.now||0,i=[];if(r===1||!t||!n)i=this.toD||[];else if(t.length===n.length&&r<1)for(let e=0;e=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),o[this.prop]=!0,c=!0,Z(o,function(e){e!==!0&&(c=!1)}),c&&i&&i.call(r),s=!1):(this.pos=n.easing((t-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),s=!0),s}initPath(e,t,n){let r=e.startX,i=e.endX,a=n.slice(),o=e.isArea,s=o?2:1,c=t&&n.length>t.length&&n.hasStackedCliffs,l,u,d,f,p=t?.slice();if(!p||c)return[a,a];function m(e,t){for(;e.length{let n=yz(e.options.animation);a=Y(t)&&W(t.defer)?r.defer:Math.max(a,n.duration+n.defer),o=Math.min(r.duration,n.duration)}),e.renderer.forExport&&(a=0),{defer:Math.max(0,a-o),duration:Math.min(a,o)}}function xz(e,t,n){let r,i=``,a,o,s;Y(n)||(s=arguments,n={duration:s[2],easing:s[3],complete:s[4]}),q(n.duration)||(n.duration=400),n.easing=typeof n.easing==`function`?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=X(t),Z(t,function(s,c){Sz(e,c),o=new _z(e,n,c),a=void 0,c===`d`&&OR(t.d)?(o.paths=o.initPath(e,e.pathArray,t.d),o.toD=t.d,r=0,a=1):e.attr?r=e.attr(c):(r=parseFloat(CR(e,c))||0,c!==`opacity`&&(i=`px`)),a||=s,typeof a==`string`&&a.match(`px`)&&(a=a.replace(/px/g,``)),o.run(r,a,i)})}function Sz(e,t){let n=_z.timers.length;for(;n--;)_z.timers[n].elem===e&&(!t||t===_z.timers[n].prop)&&(_z.timers[n].stopped=!0)}var Cz={animate:xz,animObject:yz,getDeferredAnimation:bz,setAnimation:vz,stop:Sz},{SVG_NS:wz,win:Tz}=V,{trustedTypes:Ez}=Tz,Dz=Ez&&kR(Ez.createPolicy)&&Ez.createPolicy(`highcharts`,{createHTML:e=>e}),Oz=Dz?Dz.createHTML(``):``,kz=class e{static filterUserAttributes(t){return Z(t,(n,r)=>{let i=!0;e.allowedAttributes.indexOf(r)===-1&&(i=!1),[`background`,`dynsrc`,`href`,`lowsrc`,`src`].indexOf(r)!==-1&&(i=J(n)&&e.allowedReferences.some(e=>n.indexOf(e)===0)),i||(GR(33,!1,void 0,{"Invalid attribute in config":`${r}`}),delete t[r]),J(n)&&t[r]&&(t[r]=n.replace(/{let n=t.split(`:`).map(e=>e.trim()),r=n.shift();return r&&n.length&&(e[r.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=n.join(`:`)),e},{})}static setElementHTML(t,n){t.innerHTML=e.emptyHTML,n&&new e(n).addToDOM(t)}constructor(e){this.nodes=typeof e==`string`?this.parseMarkup(e):e}addToDOM(t){function n(t,r){let i;return RR(t).forEach(function(t){let a=t.tagName,o=t.textContent?V.doc.createTextNode(t.textContent):void 0,s=e.bypassHTMLFiltering,c;if(a)if(a===`#text`)c=o;else if(e.allowedTags.indexOf(a)!==-1||s){let i=a===`svg`?wz:r.namespaceURI||wz,l=V.doc.createElementNS(i,a),u=t.attributes||{};Z(t,function(e,t){t!==`tagName`&&t!==`attributes`&&t!==`children`&&t!==`style`&&t!==`textContent`&&(u[t]=e)}),lR(l,s?u:e.filterUserAttributes(u)),t.style&&U(l,t.style),o&&l.appendChild(o),n(t.children||[],l),c=l}else GR(33,!1,void 0,{"Invalid tagName in config":a});c&&r.appendChild(c),i=c}),i}return n(this.nodes,t)}parseMarkup(t){let n=[];t=t.trim().replace(/ style=(["'])/g,` data-style=$1`);let r;try{r=new DOMParser().parseFromString(Dz?Dz.createHTML(t):t,`text/html`)}catch{}if(!r){let e=fR(`div`);e.innerHTML=t,r={body:e}}let i=(t,n)=>{let r=t.nodeName.toLowerCase(),a={tagName:r};r===`#text`&&(a.textContent=t.textContent||``);let o=t.attributes;if(o){let t={};[].forEach.call(o,n=>{n.name===`data-style`?a.style=e.parseStyle(n.value):t[n.name]=n.value}),a.attributes=t}if(t.childNodes.length){let e=[];[].forEach.call(t.childNodes,t=>{i(t,e)}),e.length&&(a.children=e)}n.push(a)};return[].forEach.call(r.body.childNodes,e=>i(e,n)),n}};kz.allowedAttributes=`alt.aria-controls.aria-describedby.aria-expanded.aria-haspopup.aria-hidden.aria-label.aria-labelledby.aria-live.aria-pressed.aria-readonly.aria-roledescription.aria-selected.class.clip-path.color.colspan.cx.cy.d.disabled.dx.dy.fill.filterUnits.flood-color.flood-opacity.height.href.id.in.in2.markerHeight.markerWidth.offset.opacity.operator.orient.padding.paddingLeft.paddingRight.patternUnits.r.radius.refX.refY.result.role.rowspan.scope.slope.src.startOffset.stdDeviation.stroke-linecap.stroke-width.stroke.style.summary.tabindex.tableValues.target.text-align.text-anchor.textAnchor.textLength.title.type.valign.width.x.x1.x2.xlink:href.y.y1.y2.zIndex`.split(`.`),kz.allowedReferences=[`https://`,`http://`,`mailto:`,`/`,`../`,`./`,`#`],kz.allowedTags=`#text.a.abbr.b.br.button.caption.circle.clipPath.code.dd.defs.div.dl.dt.em.feComponentTransfer.feComposite.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feMerge.feMergeNode.feMorphology.feOffset.filter.h1.h2.h3.h4.h5.h6.hr.i.img.li.linearGradient.marker.ol.p.path.pattern.pre.rect.small.span.stop.strong.style.sub.sup.svg.table.tbody.td.text.textPath.th.thead.title.tr.tspan.u.ul`.split(`.`),kz.emptyHTML=Oz,kz.bypassHTMLFiltering=!1;var Az=kz,{defaultOptions:jz,defaultTime:Mz}=cz,{pageLang:Nz}=V,Pz={add:(e,t)=>e+t,divide:(e,t)=>t===0?``:e/t,eq:(e,t)=>e==t,each:function(e){let t=arguments[arguments.length-1];return OR(e)?e.map((n,r)=>Rz(t.body,G(Y(n)?n:{"@this":n},{"@index":r,"@first":r===0,"@last":r===e.length-1}))).join(``):!1},ge:(e,t)=>e>=t,gt:(e,t)=>e>t,if:e=>!!e,le:(e,t)=>e<=t,lt:(e,t)=>ee*t,ne:(e,t)=>e!=t,subtract:(e,t)=>e-t,ucfirst:VR,unless:e=>!e},Fz={},Iz=e=>/^["'].+["']$/.test(e);function Lz(e,t,n){return Mz.dateFormat(e,t,n)}function Rz(e=``,t,n){let r=RegExp(`\\{([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+"'’= #\\(\\)]+)\\}`,`gu`),i=RegExp(`\\(([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+"'= ]+)\\)`,`gu`),a=[],o=/f$/,s=/\.(\d)/,c=n?.options?.lang||jz.lang,l=n?.time||Mz,u=n?.numberFormatter||zz.bind(n),d=(e=``)=>{let n;return e===`true`?!0:e===`false`?!1:(n=Number(e)).toString()===e?n:Iz(e)?e.slice(1,-1):SR(e,t)},f,p,m=0,h;for(;(f=r.exec(e))!==null;){let n=f,r=i.exec(f[1]);r&&(f=r,h=!0),p?.isBlock||(p={ctx:t,expression:f[1],find:f[0],isBlock:f[1].charAt(0)===`#`,start:f.index,startInner:f.index+f[0].length,length:f[0].length});let o=(p.isBlock?n:f)[1].split(` `)[0].replace(`#`,``);Pz[o]&&(p.isBlock&&o===p.fn&&m++,p.fn||=o);let s=f[1]===`else`;if(p.isBlock&&p.fn&&(f[1]===`/${p.fn}`||s))if(m)s||m--;else{let t=p.startInner,n=e.substr(t,f.index-t);p.body===void 0?(p.body=n,p.startInner=f.index+f[0].length):p.elseBody=n,p.find+=n+f[0],s||(a.push(p),p=void 0)}else p.isBlock||a.push(p);if(r&&!p?.isBlock)break}return a.forEach(r=>{let{body:a,elseBody:f,expression:p,fn:m}=r,h,g;if(m){let e=[r],i=[],o=p.length,s=0,c;for(g=0;g<=o;g++){let e=p.charAt(g);!c&&(e===`"`||e===`'`)?c=e:c===e&&(c=``),!c&&(e===` `||g===o)&&(i.push(p.substr(s,g-s)),s=g+1)}for(g=Pz[m].length;g--;)e.unshift(d(i[g+1]));h=Pz[m].apply(t,e),r.isBlock&&typeof h==`boolean`&&(h=Rz(h?a:f,t,n))}else{let e=Iz(p)?[p]:p.split(`:`);if(h=d(e.shift()||``),e.length&&typeof h==`number`){let t=e.join(`:`);if(o.test(t)){let e=parseInt((t.match(s)||[``,`-1`])[1],10);h!==null&&(h=u(h,e,c.decimalPoint,t.indexOf(`,`)>-1?c.thousandsSep:``))}else h=l.dateFormat(t,h)}i.lastIndex=0,i.test(r.find)&&J(h)&&(h=`"${h}"`)}e=e.replace(r.find,Q(h,``))}),h?Rz(e,t,n):e}function zz(e,t,n,r){e=+e||0,t=+t;let i,a,[o,s]=e.toString().split(`e`).map(Number),c=this?.options?.lang||jz.lang,l=(e.toString().split(`.`)[1]||``).split(`e`)[0].length,u=t,d={};n??=c.decimalPoint,r??=c.thousandsSep,t===-1?t=Math.min(l,20):q(t)?t&&s<0&&(a=t+s,a>=0?(o=+o.toExponential(a).split(`e`)[0],t=a):(o=Math.floor(o),e=t<20?+(o*10**s).toFixed(t):0,s=0)):t=2,s&&(t??=2,e=o),q(t)&&t>=0&&(d.minimumFractionDigits=t,d.maximumFractionDigits=t),r===``&&(d.useGrouping=!1);let f=r||n,p=f?`en`:this?.locale||c.locale||Nz,m=JSON.stringify(d)+p;return i=(Fz[m]??(Fz[m]=new Intl.NumberFormat(p,d))).format(e),f&&(i=i.replace(/([,\.])/g,`_$1`).replace(/_\,/g,r??`,`).replace(`_.`,n??`.`)),(!t&&+i==0||s<0&&!u)&&(i=`0`),s&&+i!=0&&(i+=`e`+(s<0?``:`+`)+s),i}var Bz={dateFormat:Lz,format:Rz,helpers:Pz,numberFormat:zz},Vz;(function(e){e.rendererTypes={};let t;function n(n=t){return e.rendererTypes[n]||e.rendererTypes[t]}e.getRendererType=n;function r(n,r,i){e.rendererTypes[n]=r,(!t||i)&&(t=n,V.Renderer=r)}e.registerRendererType=r})(Vz||={});var Hz=Vz,Uz;(function(e){function t(e,n,r){let i=e,a=i.reducedLen||n,o=(e,t)=>(t.rank||0)-(e.rank||0),s=(e,t)=>e.target-t.target,c=[],l=e.length,u=[],d=c.push,f,p=!0,m,h,g=0,_;for(f=l;f--;)g+=e[f].size;if(g>a){if(zR(e,o),_=e[0].rank===e[e.length-1].rank,_){let t=[[0,l-1]];for(;t.length&&g>a;){let n=t.shift();if(!n)break;f=Math.floor((n[0]+n[1])/2),m=e[f],PR(u,f)&&(g-=m.size),n[0]a&&f>=0;)m=e[f],PR(u,f)&&(g-=m.size),f--;u.sort((e,t)=>t-e).forEach(t=>d.apply(c,e.splice(t,1)))}for(zR(e,s),e=e.map(e=>({size:e.size,targets:[e.target],align:Q(e.align,.5)}));p;){for(f=e.length;f--;)m=e[f],h=(Math.min.apply(0,m.targets)+Math.max.apply(0,m.targets))/2,m.pos=uR(h-m.size*m.align,0,n-m.size);for(f=e.length,p=!1;f--;)f>0&&e[f-1].pos+e[f-1].size>e[f].pos&&(e[f-1].size+=e[f].size,e[f-1].targets=e[f-1].targets.concat(e[f].targets),e[f-1].align=.5,e[f-1].pos+e[f-1].size>n&&(e[f-1].pos=n-e[f-1].size),e.splice(f,1),p=!0)}return d.apply(i,c),f=0,e.some(e=>{let a=0;return(e.targets||[]).some(()=>(i[f].pos=e.pos+a,r!==void 0&&Math.abs(i[f].pos-i[f].target)>r?(i.slice(0,f+1).forEach(e=>delete e.pos),i.reducedLen=(i.reducedLen||n)-n*.1,i.reducedLen>n*.1&&t(i,n,r),!0):(a+=i[f].size,f++,!1)))}),zR(i,s),i}e.distribute=t})(Uz||={});var Wz=Uz,{animate:Gz,animObject:Kz,stop:qz}=Cz,{deg2rad:Jz,doc:Yz,svg:Xz,SVG_NS:Zz,win:Qz,isFirefox:$z}=V,eB=class e{_defaultGetter(e){let t=Q(this[e+`Value`],this[e],this.element?this.element.getAttribute(e):null,0);return/^-?[\d\.]+$/.test(t)&&(t=parseFloat(t)),t}_defaultSetter(e,t,n){n.setAttribute(t,e)}add(e){let t=this.renderer,n=this.element,r;return e&&(this.parentGroup=e),this.textStr!==void 0&&this.element.nodeName===`text`&&t.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(r=this.zIndexSetter()),r||(e?e.element:t.box).appendChild(n),this.onAdd&&this.onAdd(),this}addClass(e,t){let n=t?``:this.attr(`class`)||``;return e=(e||``).split(/ /g).reduce(function(e,t){return n.indexOf(t)===-1&&e.push(t),e},n?[n]:[]).join(` `),e!==n&&this.attr(`class`,e),this}afterSetters(){this.doTransform&&=(this.updateTransform(),!1)}align(e,t,n,r=!0){let i=this.renderer,a=i.alignedObjects,o=!!e;e?(this.alignOptions=e,this.alignByTranslate=t,this.alignTo=n):(e=this.alignOptions||{},t=this.alignByTranslate,n=this.alignTo);let s=!n||J(n)?n||`renderer`:void 0;s&&(o&&PR(a,this),n=void 0);let c=Q(n,i[s],i),l=(c.x||0)+(e.x||0)+((c.width||0)-(e.width||0))*yR(e.align),u=(c.y||0)+(e.y||0)+((c.height||0)-(e.height||0))*yR(e.verticalAlign),d={};return e.align&&(d[`text-align`]=e.align),d[t?`translateX`:`x`]=Math.round(l),d[t?`translateY`:`y`]=Math.round(u),r&&(this[this.placed?`animate`:`attr`](d),this.placed=!0),this.alignAttr=d,this}alignSetter(e){let t={left:`start`,center:`middle`,right:`end`};t[e]&&(this.alignValue=e,this.element.setAttribute(`text-anchor`,t[e]))}animate(e,t,n){let r=Kz(Q(t,this.renderer.globalAnimation,!0)),i=r.defer;return Yz.hidden&&(r.duration=0),r.duration===0?(this.attr(e,void 0,n||r.complete),Z(e,function(e,t){r.step&&r.step.call(this,e,{prop:t,pos:1,elem:this})},this)):(n&&(r.complete=n),BR(()=>{this.element&&Gz(this,e,r)},i)),this}applyTextOutline(e){let t=this.element,n=e.indexOf(`contrast`)!==-1,r={};n&&(r.textOutline=e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));let i=e.indexOf(` `),a=e.substring(i+1),o=e.substring(0,i);if(o&&o!==`none`&&V.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,n){return 2*Number(t)+n}),this.removeTextOutline();let e=Yz.createElementNS(Zz,`tspan`);lR(e,{class:`highcharts-text-outline`,fill:a,stroke:a,"stroke-width":o,"stroke-linejoin":`round`});let n=t.querySelector(`textPath`)||t;[].forEach.call(n.childNodes,t=>{let n=t.cloneNode(!0);n.removeAttribute&&[`fill`,`stroke`,`stroke-width`,`stroke`].forEach(e=>n.removeAttribute(e)),e.appendChild(n)});let r=0;[].forEach.call(n.querySelectorAll(`text tspan`),e=>{r+=Number(e.getAttribute(`dy`))});let i=Yz.createElementNS(Zz,`tspan`);i.textContent=`​`,lR(i,{x:Number(t.getAttribute(`x`)),dy:-r}),e.appendChild(i),n.insertBefore(e,n.firstChild)}}attr(t,n,r,i){let{element:a}=this,o=e.symbolCustomAttribs,s,c,l=this,u,d;return typeof t==`string`&&n!==void 0&&(s=t,t={},t[s]=n),typeof t==`string`?l=(this[t+`Getter`]||this._defaultGetter).call(this,t,a):(Z(t,function(e,n){u=!1,i||qz(this,n),this.symbolName&&o.indexOf(n)!==-1&&(c||=(this.symbolAttr(t),!0),u=!0),this.rotation&&(n===`x`||n===`y`)&&(this.doTransform=!0),u||(d=this[n+`Setter`]||this._defaultSetter,d.call(this,e,n,a))},this),this.afterSetters()),r&&r.call(this),l}clip(e){if(e&&!e.clipPath){let t=YR()+`-`,n=this.renderer.createElement(`clipPath`).attr({id:t}).add(this.renderer.defs);G(e,{clipPath:n,id:t,count:0}),e.add(n)}return this.attr(`clip-path`,e?`url(${this.renderer.url}#${e.id})`:`none`)}crisp(e,t){t=Math.round(t||e.strokeWidth||0);let n=e.x||this.x||0,r=e.y||this.y||0,i=(e.width||this.width||0)+n,a=(e.height||this.height||0)+r,o=pR(n,t),s=pR(r,t),c=pR(i,t),l=pR(a,t);return G(e,{x:o,y:s,width:c-o,height:l-s}),W(e.strokeWidth)&&(e.strokeWidth=t),e}complexColor(e,t,n){let r=this.renderer,i,a,o,s,c,l,u,d,f,p,m=[],h;K(this.renderer,`complexColor`,{args:arguments},function(){if(e.radialGradient?a=`radialGradient`:e.linearGradient&&(a=`linearGradient`),a){if(o=e[a],c=r.gradients,l=e.stops,f=n.radialReference,OR(o)&&(e[a]=o={x1:o[0],y1:o[1],x2:o[2],y2:o[3],gradientUnits:`userSpaceOnUse`}),a===`radialGradient`&&f&&!W(o.gradientUnits)&&(s=o,o=X(o,r.getRadialAttr(f,s),{gradientUnits:`userSpaceOnUse`})),Z(o,function(e,t){t!==`id`&&m.push(t,e)}),Z(l,function(e){m.push(e)}),m=m.join(`,`),c[m])p=c[m].attr(`id`);else{o.id=p=YR();let e=c[m]=r.createElement(a).attr(o).add(r.defs);e.radAttr=s,e.stops=[],l.forEach(function(t){t[1].indexOf(`rgba`)===0?(i=pz.parse(t[1]),u=i.get(`rgb`),d=i.get(`a`)):(u=t[1],d=1);let n=r.createElement(`stop`).attr({offset:t[0],"stop-color":u,"stop-opacity":d}).add(e);e.stops.push(n)})}h=`url(`+r.url+`#`+p+`)`,n.setAttribute(t,h),n.gradient=m,e.toString=function(){return h}}})}css(e){let t=this.styles,n={},r=this.element,i,a=!t;if(t&&Z(e,function(e,r){t&&t[r]!==e&&(n[r]=e,a=!0)}),a){t&&(e=G(t,n)),e.width===null||e.width===`auto`?delete this.textWidth:r.nodeName.toLowerCase()===`text`&&e.width&&(i=this.textWidth=NR(e.width)),G(this.styles,e),i&&!Xz&&this.renderer.forExport&&delete e.width;let a=$z&&e.fontSize||null;a&&(q(a)||/^\d+$/.test(a))&&(e.fontSize+=`px`);let o=X(e);r.namespaceURI===this.SVG_NS&&([`textOutline`,`textOverflow`,`whiteSpace`,`width`].forEach(e=>o&&delete o[e]),o.color&&(o.fill=o.color,delete o.color)),U(r,o)}return this.added&&(this.element.nodeName===`text`&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let t,n=this[`stroke-width`];if(n===`inherit`&&(n=1),e){e=e.toLowerCase();let r=e.replace(`shortdashdotdot`,`3,1,1,1,1,1,`).replace(`shortdashdot`,`3,1,1,1`).replace(`shortdot`,`1,1,`).replace(`shortdash`,`3,1,`).replace(`longdash`,`8,3,`).replace(/dot/g,`1,3,`).replace(`dash`,`4,3,`).replace(/,$/,``).split(`,`);for(t=r.length;t--;)r[t]=``+NR(r[t])*Q(n,NaN);e=r.join(`,`).replace(/NaN/g,`none`),this.element.setAttribute(`stroke-dasharray`,e)}}destroy(){let e=this,{element:t={},renderer:n,stops:r}=e,i=t.ownerSVGElement,a=t.nodeName===`SPAN`&&e.parentGroup||void 0,o;if(t.onclick=t.onmouseout=t.onmouseover=t.onmousemove=t.point=null,qz(e),e.clipPath&&i){let t=e.clipPath;[].forEach.call(i.querySelectorAll(`[clip-path],[CLIP-PATH]`),function(e){e.getAttribute(`clip-path`).indexOf(t.element.id)>-1&&e.removeAttribute(`clip-path`)}),e.clipPath=t.destroy()}if(r){for(let e of r)e.destroy();r.length=0}for(e.safeRemoveChild(t);a?.div&&a.div.childNodes.length===0;)o=a.parentGroup,e.safeRemoveChild(a.div),delete a.div,a=o;e.alignOptions&&_R(n.alignedObjects,e),Z(e,(t,n)=>{(e[n]?.parentGroup===e||[`connector`,`foreignObject`].indexOf(n)!==-1)&&e[n]?.destroy?.(),delete e[n]})}dSetter(e,t,n){OR(e)&&(typeof e[0]==`string`&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce((e,t,n)=>t?.join?(n?e+` `:``)+t.join(` `):(t||``).toString(),``)),/(NaN| {2}|^$)/.test(e)&&(e=`M 0 0`),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)}fillSetter(e,t,n){typeof e==`string`?n.setAttribute(t,e):e&&this.complexColor(e,t,n)}hrefSetter(e,t,n){n.setAttributeNS(`http://www.w3.org/1999/xlink`,t,e)}getBBox(t,n){let r=this,{element:i,renderer:a,styles:o,textStr:s}=r,{cache:c,cacheKeys:l}=a,u=i.namespaceURI===r.SVG_NS,d=Q(n,r.rotation,0),f=a.styledMode?i&&e.prototype.getStyle.call(i,`font-size`):o.fontSize,p=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,o.fontWeight,o.lineClamp,o.textOverflow,f,d]),m,h,g;if(p&&!t&&(m=c[p]),!m||m.polygon){if(u||a.forExport){try{g=this.fakeTS&&function(e){let t=i.querySelector(`.highcharts-text-outline`);t&&U(t,{display:e})},kR(g)&&g(`none`),m=i.getBBox?G({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight,x:0,y:0},kR(g)&&g(``)}catch{}(!m||m.width<0)&&(m={x:0,y:0,width:0,height:0})}else m=r.htmlGetBBox();h=m.height,u&&(m.height=h={"11px,17":14,"13px,20":16}[`${f||``},${Math.round(h)}`]||h),d&&(m=this.getRotatedBox(m,d));let e={bBox:m};K(this,`afterGetBBox`,e),m=e.bBox}if(p&&(s===``||m.height>0)){for(;l.length>250;)delete c[l.shift()];c[p]||l.push(p),c[p]=m}return m}getBBoxCacheKey(e){if(W(this.textStr)){let t=``+this.textStr;return t.indexOf(`<`)===-1&&(t=t.replace(/\d/g,`0`)),[t,...e].join(`,`)}}getRotatedBox(e,t){let{x:n,y:r,width:i,height:a}=e,{alignValue:o,translateY:s,rotationOriginX:c=0,rotationOriginY:l=0}=this,u=yR(o),d=Number(this.element.getAttribute(`y`)||0)-(s?0:r),f=t*Jz,p=(t-90)*Jz,m=Math.cos(f),h=Math.sin(f),g=i*m,_=i*h,v=Math.cos(p),y=Math.sin(p),[[b,x],[S,C]]=[c,l].map(e=>[e-e*m,e*h]),w=n+u*(i-g)+b+C,T=r+d-u*_-x+S,E=w+d*v,D=E+g,O=D-a*v,k=O-g,A=T+d*y,j=A+_,M=j-a*y,N=M-_,ee=Math.min(E,D,O,k),te=Math.min(A,j,M,N);return{x:ee,y:te,width:Math.max(E,D,O,k)-ee,height:Math.max(A,j,M,N)-te,polygon:[[E,A],[D,j],[O,M],[k,N]]}}getStyle(e){return Qz.getComputedStyle(this.element||this,``).getPropertyValue(e)}hasClass(e){return(``+this.attr(`class`)).split(` `).indexOf(e)!==-1}hide(){return this.attr({visibility:`hidden`})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,t){this.onEvents={},this.opacity=1,this.SVG_NS=Zz,this.element=t===`span`||t===`body`?fR(t):Yz.createElementNS(this.SVG_NS,t),this.renderer=e,this.styles={},K(this,`afterInit`)}on(e,t){let{onEvents:n}=this;return n[e]&&n[e](),n[e]=H(this.element,e,t),this}opacitySetter(e,t,n){let r=Number(Number(e).toFixed(3));this.opacity=r,n.setAttribute(t,r)}reAlign(){this.alignOptions?.width&&this.alignOptions.align!==`left`&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr(`class`,(``+this.attr(`class`)).replace(J(e)?RegExp(`(^| )${e}( |$)`):e,` `).replace(/ +/g,` `).trim())}removeTextOutline(){let e=this.element.querySelector(`tspan.highcharts-text-outline`);e&&this.safeRemoveChild(e)}safeRemoveChild(e){let t=e.parentNode;t&&t.removeChild(e)}setRadialReference(e){let t=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=e,t?.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this}shadow(e){let{renderer:t}=this,n=X(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},Y(e)?e:{}),r=t.shadowDefinition(n);return this.attr({filter:e?`url(${t.url}#${r})`:`none`})}show(e=!0){return this.attr({visibility:e?`inherit`:`visible`})}"stroke-widthSetter"(e,t,n){this[t]=e,n.setAttribute(t,e)}strokeWidth(){if(!this.renderer.styledMode)return this[`stroke-width`]||0;let e=this.getStyle(`stroke-width`),t=0,n;return/px$/.test(e)?t=NR(e):e!==``&&(n=Yz.createElementNS(Zz,`rect`),lR(n,{width:e,"stroke-width":0}),this.element.parentNode.appendChild(n),t=n.getBBox().width,n.parentNode.removeChild(n)),t}symbolAttr(t){let n=this;e.symbolCustomAttribs.forEach(function(e){n[e]=Q(t[e],n[e])}),n.attr({d:n.renderer.symbols[n.symbolName](n.x,n.y,n.width,n.height,n)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){let t=this.element,n=t.getElementsByTagName(`title`)[0]||Yz.createElementNS(this.SVG_NS,`title`);t.insertBefore?t.insertBefore(n,t.firstChild):t.appendChild(n),n.textContent=IR(Q(e,``),[/<[^>]*>/g,``]).replace(/</g,`<`).replace(/>/g,`>`)}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,t){return this.attr({translateX:e,translateY:t})}updateTransform(e=`transform`){let{element:t,foreignObject:n,matrix:r,padding:i,rotation:a=0,rotationOriginX:o,rotationOriginY:s,scaleX:c,scaleY:l,text:u,translateX:d=0,translateY:f=0}=this,p=[`translate(${d},${f})`];W(r)&&p.push(`matrix(`+r.join(`,`)+`)`),a&&(p.push(`rotate(`+a+` `+(o??t.getAttribute(`x`)??this.x??0)+` `+(s??t.getAttribute(`y`)??this.y??0)+`)`),u?.element.tagName===`SPAN`&&!u?.foreignObject&&u.attr({rotation:a,rotationOriginX:(o||0)-i,rotationOriginY:(s||0)-i})),(W(c)||W(l))&&p.push(`scale(${c??1} ${l??1})`),p.length&&!(u||this).textPath&&(n?.element||t).setAttribute(e,p.join(` `))}visibilitySetter(e,t,n){e===`inherit`?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e}xGetter(e){return this.element.nodeName===`circle`&&(e===`x`?e=`cx`:e===`y`&&(e=`cy`)),this._defaultGetter(e)}zIndexSetter(e,t){let n=this.renderer,r=this.parentGroup,i=(r||n).element||n.box,a=this.element,o=i===n.box,s,c,l,u=!1,d,f=this.added,p;if(W(e)?(a.setAttribute(`data-z-index`,e),e=+e,this[t]===e&&(f=!1)):W(this[t])&&a.removeAttribute(`data-z-index`),this[t]=e,f){for(e=this.zIndex,e&&r&&(r.handleZ=!0),s=i.childNodes,p=s.length-1;p>=0&&!u;p--)c=s[p],l=c.getAttribute(`data-z-index`),d=!W(l),c!==a&&(e<0&&d&&!o&&!p?(i.insertBefore(a,s[p]),u=!0):(NR(l)<=e||d&&(!W(e)||e>=0))&&(i.insertBefore(a,s[p+1]),u=!0));u||=(i.insertBefore(a,s[o?3:0]),!0)}return u}};eB.symbolCustomAttribs=[`anchorX`,`anchorY`,`clockwise`,`end`,`height`,`innerR`,`r`,`start`,`width`,`x`,`y`],eB.prototype.strokeSetter=eB.prototype.fillSetter,eB.prototype.yGetter=eB.prototype.xGetter,eB.prototype.matrixSetter=eB.prototype.rotationOriginXSetter=eB.prototype.rotationOriginYSetter=eB.prototype.rotationSetter=eB.prototype.scaleXSetter=eB.prototype.scaleYSetter=eB.prototype.translateXSetter=eB.prototype.translateYSetter=eB.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0};var tB=eB,nB=class e extends tB{constructor(t,n,r,i,a,o,s,c,l,u){super(t,`g`),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=n,this.x=r,this.y=i,this.anchorX=o,this.anchorY=s,this.baseline=l,this.className=u,this.addClass(u===`button`?`highcharts-no-tooltip`:`highcharts-label`),u&&this.addClass(`highcharts-`+u),this.text=t.text(void 0,0,0,c).attr({zIndex:1});let d;typeof a==`string`&&(d=/^url\((.*?)\)$/.test(a),(d||this.renderer.symbols[a])&&(this.symbolKey=a)),this.bBox=e.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let t=yR(e);this.textAlign=e,t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&q(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())}anchorXSetter(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)}boxAttr(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t}css(t){if(t){let n={};t=X(t),e.textProps.forEach(e=>{t[e]!==void 0&&(n[e]=t[e],delete t[e])}),this.text.css(n),`fontSize`in n||`fontWeight`in n||`width`in n?this.updateTextPadding():`textOverflow`in n&&this.updateBoxSize()}return tB.prototype.css.call(this,t)}destroy(){LR(this.element,`mouseenter`),LR(this.element,`mouseleave`),this.text&&this.text.destroy(),this.box&&=this.box.destroy(),tB.prototype.destroy.call(this)}fillSetter(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)}getBBox(e,t){(this.textStr&&this.bBox.width===0&&this.bBox.height===0||this.rotation)&&this.updateBoxSize();let{padding:n,height:r=0,translateX:i=0,translateY:a=0,width:o=0}=this,s=Q(this.paddingLeft,n),c=t??(this.rotation||0),l={width:o,height:r,x:i+this.bBox.x-s,y:a+this.bBox.y-n+this.baselineOffset};return c&&(l=this.getRotatedBox(l,c)),l}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this[`stroke-width`]?parseInt(this[`stroke-width`],10):0)%2/2}heightSetter(e){this.heightSetting=e,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&=(this.updateBoxSize(),!1)}onAdd(){this.text.add(this),this.attr({text:Q(this.textStr,``),x:this.x||0,y:this.y||0}),this.box&&W(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,t){q(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0}rSetter(e,t){this.boxAttr(t,e)}strokeSetter(e,t){this.stroke=e,this.boxAttr(t,e)}"stroke-widthSetter"(e,t){e&&(this.needsBox=!0),this[`stroke-width`]=e,this.boxAttr(t,e)}"text-alignSetter"(e){this.textAlign=this[`text-align`]=e,this.updateTextPadding()}textSetter(e){e!==void 0&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let t=this.text,n={},r=this.padding,i=this.bBox=(!q(this.widthSetting)||!q(this.heightSetting)||this.textAlign)&&W(t.textStr)?t.getBBox(void 0,0):e.emptyBBox,a;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||i.height||0)+2*r;let o=this.renderer.fontMetrics(t);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||o).b,i.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-o.h)/2),this.needsBox&&!t.textPath){if(!this.box){let e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();e.addClass((this.className===`button`?``:`highcharts-label-box`)+(this.className?` highcharts-`+this.className+`-box`:``)),e.add(this)}a=this.getCrispAdjust(),n.x=a,n.y=(this.baseline?-this.baselineOffset:0)+a,n.width=Math.round(this.width),n.height=Math.round(this.height),this.box.attr(G(n,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text,t=e.styles.textAlign||this.textAlign;if(!e.textPath){this.updateBoxSize();let n=this.baseline?0:this.baselineOffset,r=(this.paddingLeft??this.padding)+yR(t)*(this.widthSetting??this.bBox.width);(r!==e.x||n!==e.y)&&(e.attr({align:t,x:r}),n!==void 0&&e.attr(`y`,n)),e.x=r,e.y=n}}widthSetter(e){this.widthSetting=q(e)?e:void 0,this.doUpdate=!0}getPaddedWidth(){let e=this.padding,t=Q(this.paddingLeft,e),n=Q(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+t+n}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this[`forceAnimate:x`]=!0),this.anchorX&&(this[`forceAnimate:anchorX`]=!0),this.xSetting=Math.round(e),this.attr(`translateX`,this.xSetting)}ySetter(e){this.anchorY&&(this[`forceAnimate:anchorY`]=!0),this.ySetting=this.y=Math.round(e),this.attr(`translateY`,this.ySetting)}};nB.emptyBBox={width:0,height:0,x:0,y:0},nB.textProps=[`color`,`direction`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`lineClamp`,`lineHeight`,`textAlign`,`textDecoration`,`textOutline`,`textOverflow`,`whiteSpace`,`width`];var rB=nB;function iB(e,t,n,r,i){let a=[];if(i){let o=i.start||0,s=i.end||0,c=Q(i.r,n),l=Q(i.r,r||n),u=1e-4,d=Math.abs(s-o-2*Math.PI)0&&c0)return l;if(e+s>n-o)if(c>t+o&&ct+o&&c0){let n=cr&&so&&l.splice(1,1,[`L`,s-6,t],[`L`,s,t-6],[`L`,s+6,t],[`L`,n-a,t]);return l}function oB(e,t,n,r){return iB(e+n/2,t+r/2,n/2,r/2,{start:Math.PI*.5,end:Math.PI*2.5,open:!1})}function sB(e,t,n,r){return[[`M`,e+n/2,t],[`L`,e+n,t+r/2],[`L`,e+n/2,t+r],[`L`,e,t+r/2],[`Z`]]}function cB(e,t,n,r,i){return i?.r?lB(e,t,n,r,i):[[`M`,e,t],[`L`,e+n,t],[`L`,e+n,t+r],[`L`,e,t+r],[`Z`]]}function lB(e,t,n,r,i){let a=i?.r||0;return[[`M`,e+a,t],[`L`,e+n-a,t],[`A`,a,a,0,0,1,e+n,t+a],[`L`,e+n,t+r-a],[`A`,a,a,0,0,1,e+n-a,t+r],[`L`,e+a,t+r],[`A`,a,a,0,0,1,e,t+r-a],[`L`,e,t+a],[`A`,a,a,0,0,1,e+a,t],[`Z`]]}function uB(e,t,n,r){return[[`M`,e+n/2,t],[`L`,e+n,t+r],[`L`,e,t+r],[`Z`]]}function dB(e,t,n,r){return[[`M`,e,t],[`L`,e+n,t],[`L`,e+n/2,t+r],[`Z`]]}var fB={arc:iB,callout:aB,circle:oB,diamond:sB,rect:cB,roundedRect:lB,square:cB,triangle:uB,"triangle-down":dB},{doc:pB,SVG_NS:mB,win:hB}=V,gB=(e,t)=>e.substring(0,t)+`…`,_B=class{constructor(e){let t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=t?.lineHeight,this.textOutline=t?.textOutline,this.ellipsis=t?.textOverflow===`ellipsis`,this.lineClamp=t?.lineClamp,this.noWrap=t?.whiteSpace===`nowrap`}buildSVG(){let e=this.svgElement,t=e.element,n=e.renderer,r=Q(e.textStr,``).toString(),i=r.indexOf(`<`)!==-1,a=t.childNodes,o=!e.added&&n.box,s=//g,c=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e.getStyle(`font-size`),e.styles.lineClamp,this.width].join(`,`);if(c!==e.textCache){e.textCache=c,delete e.actualWidth;for(let e=a.length;e--;)t.removeChild(a[e]);if(!i&&!this.ellipsis&&!this.width&&!e.textPath&&(r.indexOf(` `)===-1||this.noWrap&&!s.test(r)))t.appendChild(pB.createTextNode(this.unescapeEntities(r)));else if(r!==``){o&&o.appendChild(t);let n=new Az(r);this.modifyTree(n.nodes),n.addToDOM(t),this.modifyDOM(),this.ellipsis&&(t.textContent||``).indexOf(`…`)!==-1&&e.attr(`title`,this.unescapeEntities(e.textStr||``,[`<`,`>`])),o&&o.removeChild(t)}J(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}modifyDOM(){let e=this.svgElement,t=lR(e.element,`x`);e.firstLineMetrics=void 0;let n;for(;(n=e.element.firstChild)&&/^[\s\u200B]*$/.test(n.textContent||` `);)e.element.removeChild(n);[].forEach.call(e.element.querySelectorAll(`tspan.highcharts-br`),(n,r)=>{n.nextSibling&&n.previousSibling&&(r===0&&n.previousSibling.nodeType===1&&(e.firstLineMetrics=e.renderer.fontMetrics(n.previousSibling)),lR(n,{dy:this.getLineHeight(n.nextSibling),x:t}))});let r=this.width||0;if(!r)return;let i=(n,i)=>{let a=n.textContent||``,o=a.replace(/([^\^])-/g,`$1- `).split(` `),s=!this.noWrap&&(o.length>1||e.element.childNodes.length>1),c=this.getLineHeight(i),l=Math.max(0,r-.8*c),u=0,d=e.actualWidth;if(s){let a=[],s=[];for(;i.firstChild&&i.firstChild!==n;)s.push(i.firstChild),i.removeChild(i.firstChild);for(;o.length;)if(o.length&&!this.noWrap&&u>0&&(a.push(n.textContent||``),n.textContent=o.join(` `).replace(/- /g,`-`)),this.truncate(n,void 0,o,u===0&&d||0,r,l,(e,t)=>o.slice(0,t).join(` `).replace(/- /g,`-`)),d=e.actualWidth,u++,this.lineClamp&&u>=this.lineClamp){o.length&&(this.truncate(n,n.textContent||``,void 0,0,r,l,gB),n.textContent=n.textContent?.replace(`…`,``)+`…`);break}s.forEach(e=>{i.insertBefore(e,n)}),a.forEach(e=>{i.insertBefore(pB.createTextNode(e),n);let r=pB.createElementNS(mB,`tspan`);r.textContent=`​`,lR(r,{dy:c,x:t}),i.insertBefore(r,n)})}else this.ellipsis&&a&&this.truncate(n,a,void 0,0,r,l,gB)},a=(t=>{[].slice.call(t.childNodes).forEach(n=>{n.nodeType===hB.Node.TEXT_NODE?i(n,t):(n.className.baseVal.indexOf(`highcharts-br`)!==-1&&(e.actualWidth=0),a(n))})});a(e.element)}getLineHeight(e){let t=e.nodeType===hB.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(e){let t=(n,r)=>{let{attributes:i={},children:a,style:o={},tagName:s}=n,c=this.renderer.styledMode;if(s===`b`||s===`strong`?c?i.class=`highcharts-strong`:o.fontWeight=`bold`:(s===`i`||s===`em`)&&(c?i.class=`highcharts-emphasized`:o.fontStyle=`italic`),o?.color&&(o.fill=o.color),s===`br`){i.class=`highcharts-br`,n.textContent=`​`;let t=e[r+1];t?.textContent&&(t.textContent=t.textContent.replace(/^ +/gm,``))}else s===`a`&&a&&a.some(e=>e.tagName===`#text`)&&(n.children=[{children:a,tagName:`tspan`}]);s!==`#text`&&s!==`a`&&(n.tagName=`tspan`),G(n,{attributes:i,style:o}),a&&a.filter(e=>e.tagName!==`#text`).forEach(t)};e.forEach(t),K(this.svgElement,`afterModifyTree`,{nodes:e})}truncate(e,t,n,r,i,a,o){let s=this.svgElement,{rotation:c}=s,l=[],u=n&&!r?1:0,d=(t||n||``).length,f=d,p,m;n||(i=a);let h=function(t,i){let a=i||t,o=e.parentNode;if(o&&l[a]===void 0&&o.getSubStringLength)try{l[a]=r+o.getSubStringLength(0,n?a+1:a)}catch{}return l[a]};if(s.rotation=0,m=h(e.textContent.length),r+m>i){for(;u<=d;)f=Math.ceil((u+d)/2),n&&(p=o(n,f)),m=h(f,p&&p.length-1),u===d?u=d+1:m>i?d=f-1:u=f;d===0?e.textContent=``:t&&d===t.length-1||(e.textContent=p||o(t||n,f)),this.ellipsis&&m>i&&this.truncate(e,e.textContent||``,void 0,0,i,a,gB)}n&&n.splice(0,f),s.actualWidth=m,s.rotation=c}unescapeEntities(e,t){return Z(this.renderer.escapes,function(n,r){(!t||t.indexOf(n)===-1)&&(e=e.toString().replace(new RegExp(n,`g`),r))}),e}},{defaultOptions:vB}=cz,{charts:yB,deg2rad:bB,doc:xB,isFirefox:SB,isMS:CB,isWebKit:wB,noop:TB,SVG_NS:EB,symbolSizes:DB,win:OB}=V,kB,AB=class{constructor(e,t,n,r,i,a,o){this.x=0,this.y=0;let s=this,c=s.createElement(`svg`).attr({version:`1.1`,class:`highcharts-root`}),l=c.element;o||c.css(this.getStyle(r||{})),e.appendChild(l),lR(e,`dir`,`ltr`),e.innerHTML.indexOf(`xmlns`)===-1&&lR(l,`xmlns`,this.SVG_NS),this.box=l,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement(`desc`).add().element.appendChild(xB.createTextNode(`Created with Highcharts 12.6.0`)),this.defs=this.createElement(`defs`).add(),this.allowHTML=a,this.forExport=i,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=c.getStyle(`font-size`),s.setSize(t,n,!1);let u,d;SB&&e.getBoundingClientRect&&(u=function(){U(e,{left:0,top:0}),d=e.getBoundingClientRect(),U(e,{left:Math.ceil(d.left)-d.left+`px`,top:Math.ceil(d.top)-d.top+`px`})},u(),s.unSubPixelFix=H(OB,`resize`,u))}definition(e){return new Az([e]).addToDOM(this.defs.element)}getReferenceURL(){if((SB||wB)&&xB.getElementsByTagName(`base`).length){if(!W(kB)){let e=YR(),t=new Az([{tagName:`svg`,attributes:{width:8,height:8},children:[{tagName:`defs`,children:[{tagName:`clipPath`,attributes:{id:e},children:[{tagName:`rect`,attributes:{width:4,height:4}}]}]},{tagName:`rect`,attributes:{id:`hitme`,width:8,height:8,"clip-path":`url(#${e})`,fill:`rgba(0,0,0,0.001)`}}]}]).addToDOM(xB.body);U(t,{position:`fixed`,top:0,left:0,zIndex:9e5}),kB=xB.elementFromPoint(6,6)?.id===`hitme`,xB.body.removeChild(t)}if(kB)return IR(OB.location.href.split(`#`)[0],[/<[^>]*>/g,``],[/([\('\)])/g,`\\$1`],[/ /g,`%20`])}return``}getStyle(e){return this.style=G({fontFamily:`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif`,fontSize:`1rem`},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this,t=e.defs;return e.box=null,e.boxWrapper=e.boxWrapper.destroy(),mR(e.gradients||{}),e.gradients=null,e.defs=t.destroy(),e.unSubPixelFix&&e.unSubPixelFix(),e.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}}shadowDefinition(e){let t=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(t=>`${t}-${e[t]}`)].join(`-`).toLowerCase().replace(/[^a-z\d\-]/g,``),n=X({color:`#000000`,offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${t}`)||this.definition({tagName:`filter`,attributes:{id:t,filterUnits:n.filterUnits},children:this.getShadowFilterContent(n)}),t}getShadowFilterContent(e){return[{tagName:`feDropShadow`,attributes:{dx:e.offsetX,dy:e.offsetY,"flood-color":e.color,"flood-opacity":Math.min(e.opacity*5,1),stdDeviation:e.width/2}}]}buildText(e){new _B(e).buildSVG()}getContrast(e){if(e===`transparent`)return`#000000`;let t=pz.parse(e).rgba;if(q(t[0])||!pz.useColorMix){let e=t.map(e=>{let t=e/255;return t<=.04?t/12.92:((t+.055)/1.055)**2.4}),n=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(n+.05)>(n+.05)/.05?`#FFFFFF`:`#000000`}return`color(from `+e+` srgb clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1) clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1) clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1))`}button(e,t,n,r,i={},a,o,s,c,l){let u=this.label(e,t,n,c,void 0,void 0,l,void 0,`button`),d=this.styledMode,f=arguments,p=0;i=X(vB.global.buttonTheme,i),d&&(delete i.fill,delete i.stroke,delete i[`stroke-width`]);let m=i.states||{},h=i.style||{};delete i.states,delete i.style;let g=[Az.filterUserAttributes(i)],_=[h];return d||[`hover`,`select`,`disabled`].forEach((e,t)=>{g.push(X(g[0],Az.filterUserAttributes(f[t+5]||m[e]||{}))),_.push(g[t+1].style),delete g[t+1].style}),H(u.element,CB?`mouseover`:`mouseenter`,function(){p!==3&&u.setState(1)}),H(u.element,CB?`mouseout`:`mouseleave`,function(){p!==3&&u.setState(p)}),u.setState=(e=0)=>{if(e!==1&&(u.state=p=e),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass(`highcharts-button-`+[`normal`,`hover`,`pressed`,`disabled`][e]),!d){u.attr(g[e]);let t=_[e];Y(t)&&u.css(t)}},u.attr(g[0]),d||(u.css(G({cursor:`default`},h)),l&&u.text.css({pointerEvents:`none`})),u.on(`touchstart`,e=>e.stopPropagation()).on(`click`,function(e){p!==3&&r?.call(u,e)})}crispLine(e,t){let[n,r]=e;return W(n[1])&&n[1]===r[1]&&(n[1]=r[1]=pR(n[1],t)),W(n[2])&&n[2]===r[2]&&(n[2]=r[2]=pR(n[2],t)),e}path(e){let t=this.styledMode?{}:{fill:`none`};return OR(e)?t.d=e:Y(e)&&G(t,e),this.createElement(`path`).attr(t)}circle(e,t,n){let r=Y(e)?e:e===void 0?{}:{x:e,y:t,r:n},i=this.createElement(`circle`);return i.xSetter=i.ySetter=function(e,t,n){n.setAttribute(`c`+t,e)},i.attr(r)}arc(e,t,n,r,i,a){let o;Y(e)?(o=e,t=o.y,n=o.r,r=o.innerR,i=o.start,a=o.end,e=o.x):o={innerR:r,start:i,end:a};let s=this.symbol(`arc`,e,t,n,n,o);return s.r=n,s}rect(e,t,n,r,i,a){let o=Y(e)?e:e===void 0?{}:{x:e,y:t,r:i,width:Math.max(n||0,0),height:Math.max(r||0,0)},s=this.createElement(`rect`);return this.styledMode||(a!==void 0&&(o[`stroke-width`]=a,G(o,s.crisp(o))),o.fill=`none`),s.rSetter=function(e,t,n){s.r=e,lR(n,{rx:e,ry:e})},s.rGetter=function(){return s.r||0},s.attr(o)}roundedRect(e){return this.symbol(`roundedRect`).attr(e)}setSize(e,t,n){let r=this;r.width=e,r.height=t,r.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:`0 0 `+this.attr(`width`)+` `+this.attr(`height`)})},duration:Q(n,!0)?void 0:0}),r.alignElements()}g(e){let t=this.createElement(`g`);return e?t.attr({class:`highcharts-`+e}):t}image(e,t,n,r,i,a){let o={preserveAspectRatio:`none`};q(t)&&(o.x=t),q(n)&&(o.y=n),q(r)&&(o.width=r),q(i)&&(o.height=i);let s=this.createElement(`image`).attr(o),c=function(t){s.attr({href:e}),a.call(s,t)};if(a){s.attr({href:`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`});let t=new OB.Image;H(t,`load`,c),t.src=e,t.complete&&c({})}else s.attr({href:e});return s}symbol(e,t,n,r,i,a){let o=this,s=/^url\((.*?)\)$/,c=s.test(e),l=!c&&(this.symbols[e]?e:`circle`),u=l&&this.symbols[l],d,f,p,m;if(u)typeof t==`number`&&(f=u.call(this.symbols,t||0,n||0,r||0,i||0,a)),d=this.path(f),o.styledMode||d.attr(`fill`,`none`),G(d,{symbolName:l||void 0,x:t,y:n,width:r,height:i}),a&&G(d,a);else if(c){p=e.match(s)[1];let r=d=this.image(p);r.imgwidth=Q(a?.width,DB[p]?.width),r.imgheight=Q(a?.height,DB[p]?.height),m=e=>e.attr({width:e.width,height:e.height}),[`width`,`height`].forEach(e=>{r[`${e}Setter`]=function(e,t){this[t]=e;let{alignByTranslate:n,element:r,width:i,height:o,imgwidth:s,imgheight:c}=this,l=t===`width`?s:c,u=1;a&&a.backgroundSize===`within`&&i&&o&&s&&c?(u=Math.min(i/s,o/c),lR(r,{width:Math.round(s*u),height:Math.round(c*u)})):r&&l&&r.setAttribute(t,l),!n&&s&&c&&this.translate(((i||0)-s*u)/2,((o||0)-c*u)/2)}}),W(t)&&r.attr({x:t,y:n}),r.isImg=!0,W(r.imgwidth)&&W(r.imgheight)?m(r):(r.attr({width:0,height:0}),fR(`img`,{onload:function(){let e=yB[o.chartIndex];this.width===0&&(U(this,{position:`absolute`,top:`-999em`}),xB.body.appendChild(this)),DB[p]={width:this.width,height:this.height},r.imgwidth=this.width,r.imgheight=this.height,r.element&&m(r),this.parentNode&&this.parentNode.removeChild(this),o.asyncCounter--,!o.asyncCounter&&e&&!e.hasLoaded&&e.onload()},src:p}),this.asyncCounter++)}return d}clipRect(e,t,n,r){return this.rect(e,t,n,r,0)}text(e,t,n,r){let i=this,a={};if(r&&(i.allowHTML||!i.forExport))return i.html(e,t,n);a.x=Math.round(t||0),n&&(a.y=Math.round(n)),W(e)&&(a.text=e);let o=i.createElement(`text`).attr(a);return(!r||i.forExport&&!i.allowHTML)&&(o.xSetter=function(e,t,n){let r=n.getElementsByTagName(`tspan`),i=n.getAttribute(t);for(let n=0,a;ne.align())}};G(AB.prototype,{Element:tB,SVG_NS:EB,escapes:{"&":`&`,"<":`<`,">":`>`,"'":`'`,'"':`"`},symbols:fB,draw:TB}),Hz.registerRendererType(`svg`,AB,!0);var jB=AB,{composed:MB,isFirefox:NB}=V;function PB(e,t,n){let r=this.div?.style;tB.prototype[`${t}Setter`].call(this,e,t,n),r&&(n.style[t]=r[t]=e)}var FB=(e,t)=>{if(!e.div){let n=lR(e.element,`class`),r=e.css,i=fR(`div`,n?{className:n}:void 0,{position:`absolute`,left:`${e.translateX||0}px`,top:`${e.translateY||0}px`,...e.styles,display:e.display,opacity:e.opacity,visibility:e.visibility},e.parentGroup?.div||t);e.classSetter=(e,t,n)=>{n.setAttribute(`class`,e),i.className=e},e.translateXSetter=e.translateYSetter=(t,n)=>{e[n]=t,i.style[n===`translateX`?`left`:`top`]=`${t}px`,e.doTransform=!0},e.scaleXSetter=e.scaleYSetter=(t,n)=>{e[n]=t,e.doTransform=!0},e.opacitySetter=e.visibilitySetter=PB,e.css=t=>(r.call(e,t),t.cursor&&(i.style.cursor=t.cursor),t.pointerEvents&&(i.style.pointerEvents=t.pointerEvents),e),e.on=function(){return tB.prototype.on.apply({element:i,onEvents:e.onEvents},arguments),e},e.div=i}return e.div},IB=class e extends tB{static compose(t){PR(MB,this.compose)&&(t.prototype.html=function(t,n,r){return new e(this,`span`).attr({text:t,x:Math.round(n),y:Math.round(r)})})}constructor(t,n){super(t,n),e.useForeignObject?this.foreignObject=t.createElement(`foreignObject`).attr({zIndex:2}):this.css({position:`absolute`,...t.styledMode?{}:{fontFamily:t.style.fontFamily,fontSize:t.style.fontSize}}),this.element.style.whiteSpace=`nowrap`}getSpanCorrection(e,t,n){this.xCorr=-e*n,this.yCorr=-t}css(e){let{element:t}=this,n=t.tagName===`SPAN`&&e&&`width`in e,r=n&&e.width,i;return n&&(delete e.width,this.textWidth=NR(r)||void 0,i=!0),e?.textOverflow===`ellipsis`&&(e.overflow=`hidden`,e.whiteSpace=`nowrap`),e?.lineClamp&&(e.display=`-webkit-box`,e.WebkitLineClamp=e.lineClamp,e.WebkitBoxOrient=`vertical`,e.overflow=`hidden`),q(Number(e?.fontSize))&&(e.fontSize+=`px`),G(this.styles,e),U(t,e),i&&this.updateTransform(),this}htmlGetBBox(){let{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}let{element:e,foreignObject:t,oldTextWidth:n,renderer:r,rotation:i,rotationOriginX:a,rotationOriginY:o,scaleX:s,scaleY:c,styles:{display:l=`inline-block`,whiteSpace:u},textAlign:d=`left`,textWidth:f,translateX:p=0,translateY:m=0,x:h=0,y:g=0}=this,_=()=>this.textPxLength?this.textPxLength:(U(e,{width:``,whiteSpace:u||`nowrap`}),e.offsetWidth);if(t||U(e,{marginLeft:`${p}px`,marginTop:`${m}px`}),e.tagName===`SPAN`){let p=[i,d,e.innerHTML,f,this.textAlign].join(`,`),m=this.parentGroup?.padding*-1||0,v;if(f!==n){let t=_(),a=f||0,o=!r.styledMode&&e.style.textOverflow===``&&e.style.webkitLineClamp;(a>n||t>a||o)&&(/[\-\s\u00AD]/.test(e.textContent||e.innerText)||e.style.textOverflow===`ellipsis`)&&(U(e,{width:(i||s||t>a)&&q(f)?f+`px`:o?Math.min(t+1,a)+`px`:`auto`,display:l,whiteSpace:u||`normal`}),this.oldTextWidth=f)}t&&(U(e,{display:`inline-block`,verticalAlign:`top`}),t.attr({width:r.width,height:r.height})),p!==this.cTT&&(v=r.fontMetrics(e).b,W(i)&&!t&&(i!==(this.oldRotation||0)||d!==this.oldAlign)&&U(e,{transform:`rotate(${i}deg)`,transformOrigin:`${m}% ${m}px`}),this.getSpanCorrection(!W(i)&&!this.textWidth&&this.textPxLength||e.offsetWidth,v,yR(d)));let{xCorr:y=0,yCorr:b=0}=this,x=(a??h)-y-h-m,S=(o??g)-b-g-m,C={left:`${h+y}px`,top:`${g+b}px`,textAlign:d,transformOrigin:`${x}px ${S}px`};(s||c)&&(C.transform=`scale(${s??1},${c??1})`),t?(super.updateTransform(),q(h)&&q(g)?(t.attr({x:h+y,y:g+b,width:e.offsetWidth+3,height:e.offsetHeight,"transform-origin":e.getAttribute(`transform-origin`)||`0 0`}),U(e,{display:l,textAlign:d})):NB&&t.attr({width:0,height:0})):U(e,C),this.cTT=p,this.oldRotation=i,this.oldAlign=d}}add(e){let{foreignObject:t,renderer:n}=this,r=n.box.parentNode,i=[];if(t)t.add(e),super.add(n.createElement(`body`).attr({xmlns:`http://www.w3.org/1999/xhtml`}).css({background:`transparent`,margin:`0 3px 0 0`}).add(t));else{let t;if(this.parentGroup=e,e&&(t=e.div,!t)){let n=e;for(;n;)i.push(n),n=n.parentGroup;for(let e of i.reverse())t=FB(e,r)}(t||r).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,Az.setElementHTML(this.element,e??``),this.textStr=e,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,t){this[t]=e,this.doTransform=!0}},LB=IB.prototype;LB.visibilitySetter=LB.opacitySetter=PB,LB.ySetter=LB.rotationSetter=LB.rotationOriginXSetter=LB.rotationOriginYSetter=LB.xSetter;var RB=IB,zB;(function(e){e.xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:`%[HMSL]`,range:!1},second:{main:`%[HMS]`,range:!1},minute:{main:`%[HM]`,range:!1},hour:{main:`%[HM]`,range:!1},day:{main:`%[eb]`},week:{main:`%[eb]`},month:{main:`%[bY]`},year:{main:`%Y`}},endOnTick:!1,gridLineDashStyle:`Solid`,gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:`justify`,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:`#333333`,cursor:`default`,fontSize:`0.8em`,textOverflow:`ellipsis`}},maxPadding:.01,minorGridLineDashStyle:`Solid`,minorTickLength:2,minorTickPosition:`outside`,minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:`between`,tickPixelInterval:100,tickPosition:`outside`,title:{align:`middle`,useHTML:!1,x:0,y:0,style:{color:`#666666`,fontSize:`0.8em`}},visible:!0,minorGridLineColor:`#f2f2f2`,minorGridLineWidth:1,minorTickColor:`#999999`,lineColor:`#333333`,lineWidth:1,gridLineColor:`#e6e6e6`,gridLineWidth:void 0,tickColor:`#333333`},e.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:`justify`,formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:`#000000`,fontSize:`0.7em`,fontWeight:`bold`,textOutline:`1px contrast`}},gridLineWidth:1,lineWidth:0}})(zB||={});var BB=zB,VB;(function(e){function t(e,t){e.eventOptions=e.eventOptions||{},Z(t.events,function(t,n){e.eventOptions[n]!==t&&(e.eventOptions[n]&&(LR(e,n,e.eventOptions[n]),delete e.eventOptions[n]),kR(t)&&(e.eventOptions[n]=t,H(e,n,t,{order:0})))})}e.registerEventOptions=t})(VB||={});var HB=VB,{deg2rad:UB}=V,WB=class{constructor(e,t,n,r,i){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=t,this.type=n||``,this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,K(this,`init`),!n&&!r&&this.addLabel()}addLabel(){let e=this,t=e.axis,n=t.options,r=t.chart,i=t.categories,a=t.logarithmic,o=t.names,s=e.pos,c=Q(e.options?.labels,n.labels),l=t.tickPositions,u=s===l[0],d=s===l[l.length-1],f=(!c.step||c.step===1)&&t.tickInterval===1,p=l.info,m=e.label,h,g,_,v=this.parameters.category||(i?Q(i[s],o[s],s):s);a&&q(v)&&(v=dR(a.lin2log(v))),t.dateTime&&(p?(g=r.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid?.enabled&&p.higherRanks[s]||p.unitName]),h=g.main):q(v)&&(h=t.dateTime.getXDateFormat(v,n.dateTimeLabelFormats||{}))),e.isFirst=u,e.isLast=d;let y={axis:t,chart:r,dateTimeLabelFormat:h,isFirst:u,isLast:d,pos:s,tick:e,tickPositionInfo:p,value:v};K(this,`labelFormat`,y);let b=e=>c.formatter?c.formatter.call(e,e):c.format?(e.text=t.defaultLabelFormatter.call(e),Bz.format(c.format,e,r)):t.defaultLabelFormatter.call(e),x=b.call(y,y),S=g?.list;S?e.shortenLabel=function(){for(_=0;_c&&(g=c-e.x+g*d,_=-1),g=Math.min(p,g),gg||n.autoRotation&&l?.styles?.width)&&(b=g)):u<0&&i-d*f0&&i+d*f>c&&(b=Math.round((a-i)/Math.cos(u*UB))),b&&l&&(t.shortenLabel?t.shortenLabel():l.css(G(h,{width:Math.floor(b)+`px`,lineClamp:+!n.isRadial})))}moveLabel(e,t){let n=this,r=n.label,i=n.axis,a=!1,o;r&&r.textStr===e?(n.movedLabel=r,a=!0,delete n.label):Z(i.ticks,function(t){!a&&!t.isNew&&t!==n&&t.label&&t.label.textStr===e&&(n.movedLabel=t.label,a=!0,t.labelPos=n.movedLabel.xy,delete t.label)}),!a&&(n.labelPos||r)&&(o=n.labelPos||r.xy,n.movedLabel=n.createLabel(e,t,o),n.movedLabel&&n.movedLabel.attr({opacity:0}))}render(e,t,n){let r=this,i=r.axis,a=i.horiz,o=r.pos,s=Q(r.tickmarkOffset,i.tickmarkOffset),c=r.getPosition(a,o,s,t),l=c.x,u=c.y,d=i.pos,f=d+i.len,p=a?l:u,m=Q(n,r.label?.newOpacity,1);!i.chart.polar&&(dR(p)f)&&(n=0),n??=1,this.isActive=!0,this.renderGridLine(t,n),this.renderMark(c,n),this.renderLabel(c,t,m,e),r.isNew=!1,K(this,`afterRender`)}renderGridLine(e,t){let n=this,r=n.axis,i=r.options,a={},o=n.pos,s=n.type,c=Q(n.tickmarkOffset,r.tickmarkOffset),l=r.chart.renderer,u=n.gridLine,d,f=i.gridLineWidth,p=i.gridLineColor,m=i.gridLineDashStyle;n.type===`minor`&&(f=i.minorGridLineWidth,p=i.minorGridLineColor,m=i.minorGridLineDashStyle),u||(r.chart.styledMode||(a.stroke=p,a[`stroke-width`]=f||0,a.dashstyle=m),s||(a.zIndex=1),e&&(t=0),n.gridLine=u=l.path().attr(a).addClass(`highcharts-`+(s?s+`-`:``)+`grid-line`).add(r.gridGroup)),u&&(d=r.getPlotLinePath({value:o+c,lineWidth:u.strokeWidth(),force:`pass`,old:e,acrossPanes:!1}),d&&u[e||n.isNew?`attr`:`animate`]({d,opacity:t}))}renderMark(e,t){let n=this,r=n.axis,i=r.options,a=r.chart.renderer,o=n.type,s=r.tickSize(o?o+`Tick`:`tick`),c=e.x,l=e.y,u=Q(i[o===`minor`?`minorTickWidth`:`tickWidth`],!o&&r.isXAxis?1:0),d=i[o===`minor`?`minorTickColor`:`tickColor`],f=n.mark,p=!f;s&&(r.opposite&&(s[0]=-s[0]),f||(n.mark=f=a.path().addClass(`highcharts-`+(o?o+`-`:``)+`tick`).add(r.axisGroup),r.chart.styledMode||f.attr({stroke:d,"stroke-width":u})),f[p?`attr`:`animate`]({d:n.getMarkPath(c,l,s[0],f.strokeWidth(),r.horiz,a),opacity:t}))}renderLabel(e,t,n,r){let i=this,a=i.axis,o=a.horiz,s=a.options,c=i.label,l=s.labels,u=l.step,d=Q(i.tickmarkOffset,a.tickmarkOffset),f=e.x,p=e.y,m=!0;c&&q(f)&&(c.xy=e=i.getLabelPosition(f,p,c,o,l,d,r,u),i.isFirst&&!i.isLast&&!s.showFirstLabel||i.isLast&&!i.isFirst&&!s.showLastLabel?m=!1:o&&!t&&n!==0&&i.handleOverflow(e),u&&r%u&&(m=!1),m&&q(e.y)?(e.opacity=n,c[i.isNewLabel?`attr`:`animate`](e).show(!0),i.isNewLabel=!1):(c.hide(),i.isNewLabel=!0))}replaceMovedLabel(){let e=this,t=e.label,n=e.axis;t&&!e.isNew&&(t.animate({opacity:0},void 0,t.destroy),delete e.label),n.isDirty=!0,e.label=e.movedLabel,delete e.movedLabel}},{animObject:GB}=Cz,{xAxis:KB,yAxis:qB}=BB,{defaultOptions:JB}=cz,{registerEventOptions:YB}=HB,{deg2rad:XB}=V,ZB=(e,t)=>AR(t,void 0,void 0,Q(e.options.allowDecimals,t<.5||e.tickAmount!==void 0),!!e.tickAmount);G(JB,{xAxis:KB,yAxis:X(KB,qB)});var QB=class e{constructor(e,t,n){this.init(e,t,n)}init(e,t,n=this.coll){let r=n===`xAxis`,i=this,a=i.isZAxis||(e.inverted?!r:r);i.chart=e,i.horiz=a,i.isXAxis=r,i.coll=n,K(this,`init`,{userOptions:t}),i.opposite=Q(t.opposite,i.opposite),i.side=Q(t.side,i.side,a?i.opposite?0:2:i.opposite?1:3),i.setOptions(t);let o=i.options,s=o.labels;i.type??=o.type||`linear`,i.uniqueNames??=o.uniqueNames??!0,K(i,`afterSetType`),i.userOptions=t,i.minPixelPadding=0,i.reversed=Q(o.reversed,i.reversed),i.visible=o.visible,i.zoomEnabled=o.zoomEnabled,i.hasNames=this.type===`category`||o.categories===!0,i.categories=OR(o.categories)&&o.categories||(i.hasNames?[]:void 0),i.names||(i.names=[],i.names.keys={}),i.plotLinesAndBandsGroups={},i.positiveValuesOnly=!!i.logarithmic,i.isLinked=W(o.linkedTo),i.ticks={},i.labelEdge=[],i.minorTicks={},i.plotLinesAndBands=[],i.alternateBands={},i.len??=0,i.minRange=i.userMinRange=o.minRange||o.maxZoom,i.range=o.range,i.offset=o.offset||0,i.max=void 0,i.min=void 0;let c=Q(o.crosshair,RR(e.options.tooltip.crosshairs)[+!r]);i.crosshair=c===!0?{}:c,e.axes.indexOf(i)===-1&&(r?e.axes.splice(e.xAxis.length,0,i):e.axes.push(i),KR(this,e[this.coll])),e.orderItems(i.coll),i.series=i.series||[],e.inverted&&!i.isZAxis&&r&&!W(i.reversed)&&(i.reversed=!0),i.labelRotation=q(s.rotation)?s.rotation:void 0,YB(i,o),K(this,`afterInit`)}setOptions(e){let t=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=X(t,this.coll===`yAxis`?{title:{text:this.chart.options.lang.yAxisTitle}}:{},JB[this.coll],e),K(this,`afterSetOptions`,{userOptions:e})}defaultLabelFormatter(){let e=this.axis,t=this.chart,{numberFormatter:n}=t,r=q(this.value)?this.value:NaN,i=e.chart.time,a=e.categories,o=this.dateTimeLabelFormat,s=JB.lang,c=s.numericSymbols,l=s.numericSymbolMagnitude||1e3,u=e.logarithmic?Math.abs(r):e.tickInterval,d=c?.length,f,p;if(a)p=`${this.value}`;else if(o)p=i.dateFormat(o,r,!0);else if(d&&c&&u>=1e3)for(;d--&&p===void 0;)f=l**+(d+1),u>=f&&r*10%f==0&&c[d]!==null&&r!==0&&(p=n(r/f,-1,void 0,void 0,t)+c[d]);return p??=n(r,-1,void 0,Math.abs(r)<1e4?``:void 0,t),p}getSeriesExtremes(){let e=this,t;K(this,`getSeriesExtremes`,null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(n=>{if(n.reserveSpace()){let r=n.options,i,a=r.threshold,o,s;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&(a||0)<=0&&(a=void 0),e.isXAxis)i=n.getColumn(`x`),i.length&&(i=e.logarithmic?i.filter(e=>e>0):i,t=n.getXExtremes(i),o=t.min,s=t.max,!q(o)&&!(o instanceof Date)&&(i=i.filter(q),t=n.getXExtremes(i),o=t.min,s=t.max),i.length&&(e.dataMin=Math.min(Q(e.dataMin,o),o),e.dataMax=Math.max(Q(e.dataMax,s),s)));else{let t=n.applyExtremes();q(t.dataMin)&&(o=t.dataMin,e.dataMin=Math.min(Q(e.dataMin,o),o)),q(t.dataMax)&&(s=t.dataMax,e.dataMax=Math.max(Q(e.dataMax,s),s)),W(a)&&(e.threshold=a),(!r.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),K(this,`afterGetSeriesExtremes`)}translate(e,t,n,r,i,a){let o=this.linkedParent||this,s=r&&o.old?o.old.min:o.min;if(!q(s))return NaN;let c=o.minPixelPadding,l=(o.isOrdinal||o.brokenAxis?.hasBreaks||o.logarithmic&&i)&&!!o.lin2val,u=1,d=0,f=r&&o.old?o.old.transA:o.transA,p=0;return f||=o.transA,n&&(u*=-1,d=o.len),o.reversed&&(u*=-1,d-=u*(o.sector||o.len)),t?(e=e*u+d,e-=c,p=e/f+s,l&&(p=o.lin2val(p))):(l&&(e=o.val2lin(e)),p=u*(e-s)*f+d+u*c+(q(a)?f*a:0),o.isRadial||(p=dR(p))),p}toPixels(e,t){return this.translate(this.chart?.time.parse(e)??NaN,!1,!this.horiz,void 0,!0)+(t?0:this.pos)}toValue(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let t=this,n=t.chart,r=t.left,i=t.top,a=e.old,o=e.value,s=e.lineWidth,c=a&&n.oldChartHeight||n.chartHeight,l=a&&n.oldChartWidth||n.chartWidth,u=t.transB,d=e.translatedValue,f=e.force,p,m,h,g,_;function v(e,t,n){return f!==`pass`&&(en)&&(f?e=uR(e,t,n):_=!0),e}let y={value:o,lineWidth:s,old:a,force:f,acrossPanes:e.acrossPanes,translatedValue:d};return K(this,`getPlotLinePath`,y,function(e){d=Q(d,t.translate(o,void 0,void 0,a)),d=uR(d,-1e9,1e9),p=h=d+u,m=g=c-d-u,q(d)?t.horiz?(m=i,g=c-t.bottom+(t.options.isInternal?0:n.scrollablePixelsY||0),p=h=v(p,r,r+t.width)):(p=r,h=l-t.right+(n.scrollablePixelsX||0),m=g=v(m,i,i+t.height)):(_=!0,f=!1),e.path=_&&!f?void 0:n.renderer.crispLine([[`M`,p,m],[`L`,h,g]],s||1)}),y.path}getLinearTickPositions(e,t,n){let r=dR(Math.floor(t/e)*e),i=dR(Math.ceil(n/e)*e),a=[],o,s,c;if(dR(r+e)===r&&(c=20),this.single)return[t];for(o=r;o<=i&&(a.push(o),o=dR(o+e,c),o!==s);)s=o;return a}getMinorTickInterval(){let{minorTicks:e,minorTickInterval:t}=this.options;if(e===!0)return Q(t,`auto`);if(e!==!1)return t}getMinorTickPositions(){let e=this,t=e.options,n=e.tickPositions,r=e.minorTickInterval,i=e.pointRangePadding||0,a=(e.min||0)-i,o=(e.max||0)+i,s=e.brokenAxis?.hasBreaks?e.brokenAxis.unitLength:o-a,c=[],l;if(s&&s/r{let t=e.getColumn(`x`);return e.xIncrement?t.slice(0,2):t}))||0,o=Math.min(l*5,e.dataMax-e.dataMin))),q(i)&&q(a)&&q(o)&&i-a=o,s=(o-i+a)/2,u=[a-s,r.parse(t.min)??a-s],c&&(u[2]=n?n.log2lin(e.dataMin):e.dataMin),a=cR(u),d=[a+o,r.parse(t.max)??a+o],c&&(d[2]=n?n.log2lin(e.dataMax):e.dataMax),i=sR(d),i-ae-t),e=bR([n]))}return e&&t?Math.min(e,t):e||t}nameToX(e){let t=OR(this.options.categories),n=t?this.categories:this.names,r=e.options.x,i;return e.series.requireSorting=!1,W(r)||(r=this.uniqueNames&&n?t?n.indexOf(e.name):Q(n.keys[e.name],-1):e.series.autoIncrement()),r===-1?!t&&n&&(i=n.length):q(r)&&(i=r),i===void 0?e.x&&(i=e.x):(this.names[i]=e.name,this.names.keys[e.name]=i),i}updateNames(){let e=this,t=this.names;t.length>0&&(Object.keys(t.keys).forEach(function(e){delete t.keys[e]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(t=>{t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max||0,t.dataTable.rowCount-1),t.processData(),t.generatePoints());let n=t.getColumn(`x`).slice();t.data.forEach((t,r)=>{let i=n[r];t?.options&&t.name!==void 0&&(i=e.nameToX(t),i!==void 0&&i!==t.x&&(n[r]=t.x=i))}),t.dataTable.setColumn(`x`,n)}))}setAxisTranslation(){let e=this,t=e.max-e.min,n=e.linkedParent,r=!!e.categories,i=e.isXAxis,a=e.axisPointRange||0,o,s=0,c=0,l,u=e.transA;(i||r||a)&&(o=e.getClosest(),n?(s=n.minPointOffset,c=n.pointRangePadding):e.series.forEach(function(t){let n=r?1:i?Q(t.options.pointRange,o,0):e.axisPointRange||0,l=t.options.pointPlacement;if(a=Math.max(a,n),!e.single||r){let e=t.is(`xrange`)?!i:i;s=Math.max(s,e&&J(l)?0:n/2),c=Math.max(c,e&&l===`on`?0:n)}}),l=e.ordinal?.slope&&o?e.ordinal.slope/o:1,e.minPointOffset=s*=l,e.pointRangePadding=c*=l,e.pointRange=Math.min(a,e.single&&r?1:t),i&&(e.closestPointRange=o)),e.translationSlope=e.transA=u=e.staticScale||e.len/(t+c||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=u*s,K(this,`afterSetAxisTranslation`)}minFromRange(){let{max:e,min:t}=this;return q(e)&&q(t)&&e-t||void 0}setTickInterval(e){let t=this,{categories:n,chart:r,dataMax:i,dataMin:a,dateTime:o,isXAxis:s,logarithmic:c,options:l,softThreshold:u}=t,d=r.time,f=q(t.threshold)?t.threshold:void 0,p=t.minRange||0,{ceiling:m,floor:h,linkedTo:g,softMax:_,softMin:v}=l,y=q(g)&&r[t.coll]?.[g],b=l.tickPixelInterval,x=l.maxPadding,S=l.minPadding,C=0,w,T=q(l.tickInterval)&&l.tickInterval>=0?l.tickInterval:void 0,E,D,O,k;if(!o&&!n&&!y&&this.getTickAmount(),O=Q(t.userMin,d.parse(l.min)),k=Q(t.userMax,d.parse(l.max)),y?(t.linkedParent=y,w=y.getExtremes(),t.min=Q(w.min,w.dataMin),t.max=Q(w.max,w.dataMax),this.type!==y.type&&GR(11,!0,r)):(u&&W(f)&&q(i)&&q(a)&&(a>=f?(E=f,S=0):i<=f&&(D=f,x=0)),t.min=Q(O,E,a),t.max=Q(k,D,i)),q(t.max)&&q(t.min)&&(c&&(t.positiveValuesOnly&&!e&&Math.min(t.min,Q(a,t.min))<=0&&GR(10,!0,r),t.min=dR(c.log2lin(t.min),16),t.max=dR(c.log2lin(t.max),16)),t.range&&q(a)&&(t.userMin=t.min=O=Math.max(a,t.minFromRange()||0),t.userMax=k=t.max,t.range=void 0)),K(t,`foundExtremes`),t.adjustForMinRange(),q(t.min)&&q(t.max)){if(!q(t.userMin)&&q(v)&&vt.max&&(t.max=k=_),!n&&!t.axisPointRange&&!t.stacking?.usePercentage&&!y&&(C=t.max-t.min,C&&(!W(O)&&S&&(t.min-=C*S),!W(k)&&x&&(t.max+=C*x))),!q(t.userMin)&&q(h)&&(t.min=Math.max(t.min,h)),!q(t.userMax)&&q(m)&&(t.max=Math.min(t.max,m)),u&&q(a)&&q(i)){let e=f||0;!W(O)&&t.min=e?t.min=l.minRange?Math.min(e,t.max-p):e:!W(k)&&t.max>e&&i<=e&&(t.max=l.minRange?Math.max(e,t.min+p):e)}!r.polar&&t.min>t.max&&(W(l.min)?t.max=t.min:W(l.max)&&(t.min=t.max)),C=t.max-t.min}if(t.min===t.max||!q(t.min)||!q(t.max)?t.tickInterval=1:y&&!T&&b===y.options.tickPixelInterval?t.tickInterval=T=y.tickInterval:t.tickInterval=Q(T,this.tickAmount?C/Math.max(this.tickAmount-1,1):void 0,n?1:C*b/Math.max(t.len,b)),s&&!e){let e=t.min!==t.old?.min||t.max!==t.old?.max;t.series.forEach(function(t){t.forceCrop=t.forceCropping?.(),t.processData(e)}),K(this,`postProcessData`,{hasExtremesChanged:e})}t.setAxisTranslation(),K(this,`initialAxisTranslation`),t.pointRange&&!T&&(t.tickInterval=Math.max(t.pointRange,t.tickInterval));let A=Q(l.minTickInterval,o&&!t.series.some(e=>!e.sorted)?t.closestPointRange:0);!T&&A&&t.tickIntervalMath.max(2*this.len,200))c=[this.min,this.max],GR(19,!1,this.chart);else if(e.dateTime)c=e.getTimeTicks(e.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,e.ordinal?.positions,this.closestPointRange,!0);else if(e.logarithmic)c=e.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let e=this.tickInterval,t=e;for(;t<=e*2&&(c=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&c.length>this.tickAmount);)this.tickInterval=ZB(this,t*=1.1)}c.length>this.len&&(c=[c[0],c[c.length-1]],c[0]===c[1]&&(c.length=1)),r&&(this.tickPositions=c,l=r.apply(e,[this.min,this.max,e]),l&&(c=l))}!this.isDirty&&c.length!==this.tickPositions?.length&&(this.isDirty=!0),this.tickPositions=c,this.minorTickInterval=i===`auto`&&this.tickInterval?this.tickInterval/t.minorTicksPerMajor:i,this.paddedTicks=c.slice(0),this.trimTicks(c,o,s),!this.isLinked&&q(this.min)&&q(this.max)&&(this.single&&c.length<2&&!this.categories&&!this.series.some(e=>e.is(`heatmap`)&&e.options.pointPlacement===`between`)&&(this.min-=.5,this.max+=.5),!n&&!l&&this.adjustTickAmount()),K(this,`afterSetTickPositions`)}trimTicks(e,t,n){let r=e[0],i=e[e.length-1],a=!this.isOrdinal&&this.minPointOffset||0;if(K(this,`trimTicks`),!this.isLinked||!this.grid){if(t&&r!==-1/0)this.min=r;else for(;this.min-a>e[0];)e.shift();if(n)this.max=i;else for(;this.max+a{let{horiz:t,options:n}=e;return[t?n.left:n.top,n.width,n.height,n.pane].join(`,`)},i=r(this);t[this.coll].forEach(function(t){let{series:a}=t;a.length&&a.some(e=>e.visible)&&t!==e&&r(t)===i&&(s=!0,n.push(t))})}if(s&&a){n.forEach(t=>{let n=t.getThresholdAlignment(e);q(n)&&o.push(n)});let t=o.length>1?o.reduce((e,t)=>e+=t,0)/o.length:void 0;n.forEach(e=>{e.thresholdAlignment=t})}return s}getThresholdAlignment(e){if((!q(this.dataMin)||this!==e&&this.series.some(e=>e.isDirty||e.isDirtyData||e.xAxis?.isDirty))&&this.getSeriesExtremes(),q(this.threshold)){let e=uR((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let e=this,t=this.options,n=t.tickPixelInterval,r=t.tickAmount;!W(t.tickInterval)&&!r&&this.lena.push(dR(a[a.length-1]+f)),h=()=>a.unshift(dR(a[0]-f));if(q(s)&&(p=s===0?0:s===1?o-1:Math.round(uR(s*(o-1),1,o-2)),i.reversed&&(p=o-1-p)),e.hasData()&&q(r)&&q(n)){let s=()=>{e.transA*=(c-1)/(o-1),e.min=i.startOnTick?a[0]:Math.min(r,a[0]),e.max=i.endOnTick?a[a.length-1]:Math.max(n,a[a.length-1])};if(q(p)&&q(e.threshold)){for(;a[p]!==l||a.length!==o||a[0]>r||a[a.length-1]e.threshold?h():m();if(f>e.tickInterval*8)break;f*=2}s()}else if(c0&&d{r=r||e.isDirtyData||e.isDirty,i=i||e.xAxis?.isDirty||!1}),e.setAxisSize();let a=e.len!==e.old?.len;a||r||i||e.isLinked||e.forceRedraw||e.userMin!==e.old?.userMin||e.userMax!==e.old?.userMax||e.alignToOthers()?(n&&t===`yAxis`&&n.buildStacks(),e.forceRedraw=!1,e.userMinRange||(e.minRange=void 0),e.getSeriesExtremes(),e.setTickInterval(),n&&t===`xAxis`&&n.buildStacks(),e.isDirty||=a||e.min!==e.old?.min||e.max!==e.old?.max):n&&n.cleanStacks(),r&&delete e.allExtremes,K(this,`afterSetScale`)}setExtremes(e,t,n=!0,r,i){let a=this.chart;this.series.forEach(e=>{delete e.kdTree}),e=a.time.parse(e),t=a.time.parse(t),i=G(i,{min:e,max:t}),K(this,`setExtremes`,i,e=>{this.userMin=e.min,this.userMax=e.max,this.eventArgs=e,n&&a.redraw(r)})}setAxisSize(){let e=this.chart,t=this.options,n=t.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(FR(Q(t.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),a=this.height=Math.round(FR(Q(t.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),o=this.top=Math.round(FR(Q(t.top,e.plotTop+n[0]),e.plotHeight,e.plotTop)),s=this.left=Math.round(FR(Q(t.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-a-o,this.right=e.chartWidth-i-s,this.len=Math.max(r?i:a,0),this.pos=r?s:o}getExtremes(){let e=this,t=e.logarithmic;return{min:t?dR(t.lin2log(e.min)):e.min,max:t?dR(t.lin2log(e.max)):e.max,dataMin:e.dataMin,dataMax:e.dataMax,userMin:e.userMin,userMax:e.userMax}}getThreshold(e){let t=this,n=t.logarithmic,r=n?n.lin2log(t.min):t.min,i=n?n.lin2log(t.max):t.max;return e===null||e===-1/0?e=r:e===1/0?e=i:r>e?e=r:i15&&t<165?e.align=`right`:t>195&&t<345&&(e.align=`left`)}),n.align}tickSize(e){let t=this.options,n=Q(t[e===`tick`?`tickWidth`:`minorTickWidth`],e===`tick`&&this.isXAxis&&!this.categories?1:0),r=t[e===`tick`?`tickLength`:`minorTickLength`],i;n&&r&&(t[e+`Position`]===`inside`&&(r=-r),i=[r,n]);let a={tickSize:i};return K(this,`afterTickSize`,a),a.tickSize}labelMetrics(){let e=this.chart.renderer,t=this.ticks,n=t[Object.keys(t)[0]]||{};return this.chart.renderer.fontMetrics(n.label||n.movedLabel||e.box)}unsquish(){let e=this.options.labels,t=e.padding||0,n=this.horiz,r=this.tickInterval,i=this.len/((+!!this.categories+this.max-this.min)/r),a=e.rotation,o=dR(this.labelMetrics().h*.8),s=Math.max(this.max-this.min,0),c=function(e){let n=(e+2*t)/(i||1);return n=n>1?Math.ceil(n):1,n*r>s&&e!==1/0&&i!==1/0&&s&&(n=Math.ceil(s/r)),dR(n*r)},l=r,u,d=Number.MAX_VALUE,f;if(n){if(e.staggerLines||(q(a)?f=[a]:i=-90&&n<=90)&&(e=c(Math.abs(o/Math.sin(XB*n))),t=e+Math.abs(n/360),tm&&(m=n)}),this.maxLabelLength=m,this.autoRotation?m>c&&m>u.h?l.rotation=this.labelRotation:this.labelRotation=0:s&&(f=c),l.rotation&&(f=m>e.chartHeight*.5?e.chartHeight*.33:m,d||(p=1)),this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(l.align=this.labelAlign),n.forEach(function(e){let t=r[e],n=t?.label,i=a.width,o={};n&&(n.attr(l),t.shortenLabel?t.shortenLabel():f&&!i&&a.whiteSpace!==`nowrap`&&(f<(n.textPxLength||0)||n.element.tagName===`SPAN`)?n.css(G(o,{width:`${f}px`,lineClamp:p})):n.styles.width&&!o.width&&!i&&n.css({width:`auto`}),t.rotation=l.rotation)},this),this.tickRotCorr=t.rotCorr(u.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&W(this.min)&&W(this.max)}addTitle(e){let t=this,n=t.chart.renderer,r=t.horiz,i=t.opposite,a=t.options.title,o=t.chart.styledMode,s;t.axisTitle||(s=a.textAlign,s||=(r?{low:`left`,middle:`center`,high:`right`}:{low:i?`right`:`left`,middle:`center`,high:i?`left`:`right`})[a.align],t.axisTitle=n.text(a.text||``,0,0,a.useHTML).attr({zIndex:7,rotation:a.rotation||0,align:s}).addClass(`highcharts-axis-title`),o||t.axisTitle.css(X(a.style)),t.axisTitle.add(t.axisGroup),t.axisTitle.isNew=!0),!o&&!a.style.width&&!t.isRadial&&t.axisTitle.css({width:t.len+`px`}),t.axisTitle[e?`show`:`hide`](e)}generateTick(e){let t=this,n=t.ticks;n[e]?n[e].addLabel():n[e]=new WB(t,e)}createGroups(){let{axisParent:e,chart:t,coll:n,options:r}=this,i=t.renderer,a=(t,a,o)=>i.g(t).attr({zIndex:o}).addClass(`highcharts-${n.toLowerCase()}${a} `+(this.isRadial?`highcharts-radial-axis${a} `:``)+(r.className||``)).add(e);this.axisGroup||(this.gridGroup=a(`grid`,`-grid`,r.gridZIndex),this.axisGroup=a(`axis`,``,r.zIndex),this.labelGroup=a(`axis-labels`,`-labels`,r.labels.zIndex))}getOffset(){let e=this,{chart:t,horiz:n,options:r,side:i,ticks:a,tickPositions:o,coll:s}=e,c=t.inverted&&!e.isZAxis?[1,0,3,2][i]:i,l=e.hasData(),u=r.title,d=r.labels,f=q(r.crossing),p=t.axisOffset,m=t.clipOffset,h=[-1,1,1,-1][i],g,_=0,v,y=0,b=0,x,S;if(e.showAxis=g=l||r.showEmpty,e.staggerLines=e.horiz&&d.staggerLines||void 0,e.createGroups(),l||e.isLinked?(o.forEach(function(t){e.generateTick(t)}),e.renderUnsquish(),e.reserveSpaceDefault=i===0||i===2||{1:`left`,3:`right`}[i]===e.labelAlign,Q(d.reserveSpace,f?!1:null,e.labelAlign===`center`?!0:null,e.reserveSpaceDefault)&&o.forEach(function(e){b=Math.max(a[e].getLabelSize(),b)}),e.staggerLines&&(b*=e.staggerLines),e.labelOffset=b*(e.opposite?-1:1)):Z(a,function(e,t){e.destroy(),delete a[t]}),u?.text&&u.enabled!==!1&&(e.addTitle(g),g&&!f&&u.reserveSpace!==!1&&(e.titleOffset=_=e.axisTitle.getBBox()[n?`height`:`width`],v=u.offset,y=W(v)?0:Q(u.margin,n?5:10))),e.renderLine(),e.offset=h*Q(r.offset,p[i]?p[i]+(r.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},S=i===0?-e.labelMetrics().h:i===2?e.tickRotCorr.y:0,x=Math.abs(b)+y,b&&(x-=S,x+=h*(n?Q(d.y,e.tickRotCorr.y+h*d.distance):Q(d.x,h*d.distance))),e.axisTitleMargin=Q(v,x),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(a,o)),s!==`colorAxis`&&m){let t=this.tickSize(`tick`);p[i]=Math.max(p[i],(e.axisTitleMargin||0)+_+h*e.offset,x,o?.length&&t?t[0]+h*e.offset:0);let n=!e.axisLine||r.offset?0:e.axisLine.strokeWidth()/2;m[c]=Math.max(m[c],n)}K(this,`afterGetOffset`)}getLinePath(e){let t=this.chart,n=this.opposite,r=this.offset,i=this.horiz,a=this.left+(n?this.width:0)+r,o=t.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(e*=-1),t.renderer.crispLine([[`M`,i?this.left:a,i?o:this.top],[`L`,i?t.chartWidth-this.right:a,i?o:t.chartHeight-this.bottom]],e)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass(`highcharts-axis-line`).add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){let t=this.horiz,n=this.left,r=this.top,i=this.len,a=this.options.title,o=t?n:r,s=this.opposite,c=this.offset,l=a.x,u=a.y,d=this.chart.renderer.fontMetrics(e),f=e?Math.max(e.getBBox(!1,0).height-d.h-1,0):0,p={low:o+(t?0:i),middle:o+i/2,high:o+(t?i:0)}[a.align],m=(t?r+this.height:n)+(t?1:-1)*(s?-1:1)*(this.axisTitleMargin||0)+[-f,f,d.f,-f][this.side],h={x:t?p+l:m+(s?this.width:0)+c+l,y:t?m+u-(s?this.height:0)+c:p+u};return K(this,`afterGetTitlePosition`,{titlePosition:h}),h}renderMinorTick(e,t){let n=this,r=n.minorTicks;r[e]||(r[e]=new WB(n,e,`minor`)),t&&r[e].isNew&&r[e].render(null,!0),r[e].render(null,!1,1)}renderTick(e,t,n){let r=this,i=r.isLinked,a=r.ticks;(!i||e>=r.min&&e<=r.max||r.grid?.isColumn)&&(a[e]||(a[e]=new WB(r,e)),n&&a[e].isNew&&a[e].render(t,!0,-1),a[e].render(t))}render(){let e=this,t=e.chart,n=e.logarithmic,r=t.renderer,i=e.options,a=e.isLinked,o=e.tickPositions,s=e.axisTitle,c=e.ticks,l=e.minorTicks,u=e.alternateBands,d=i.stackLabels,f=i.alternateGridColor,p=i.crossing,m=e.tickmarkOffset,h=e.axisLine,g=e.showAxis,_=GB(r.globalAnimation),v,y;if(e.labelEdge.length=0,e.overlap=!1,[c,l,u].forEach(function(e){Z(e,function(e){e.isActive=!1})}),q(p)){let n=this.isXAxis?t.yAxis[0]:t.xAxis[0],r=[1,-1,-1,1][this.side];if(n){let t=n.toPixels(p,!0);e.horiz&&(t=n.len-t),e.offset=r*t}}if(e.hasData()||a){let r=e.chart.hasRendered&&e.old&&q(e.old.min);e.minorTickInterval&&!e.categories&&e.getMinorTickPositions().forEach(function(t){e.renderMinorTick(t,r)}),o.length&&(o.forEach(function(t,n){e.renderTick(t,n,r)}),m&&(e.min===0||e.single)&&(c[-1]||=new WB(e,-1,null,!0),c[-1].render(-1))),f&&o.forEach(function(r,i){y=o[i+1]===void 0?e.max-m:o[i+1]+m,i%2==0&&r{let t=this.cross;t||(this.cross=t=i.renderer.path().addClass(`highcharts-crosshair highcharts-crosshair-`+(c?`category `:`thin `)+(n.className||``)).attr({zIndex:Q(n.zIndex,2)}).add(),i.styledMode||(t.attr({stroke:n.color||(c?pz.parse(`#ccd3ff`).setOpacity(.25).get():`#cccccc`),"stroke-width":Q(n.width,1)}).css({"pointer-events":`none`}),n.dashStyle&&t.attr({dashstyle:n.dashStyle}))),t.show().animate({d:o},GB(n?.animation)),c&&!n.width&&t.attr({"stroke-width":this.transA}),this.cross&&(this.cross.e=e)},(!a||a.attr(`visibility`)===`hidden`)&&n.showDelay||0)}K(this,`afterDrawCrosshair`,{e,point:t})}hideCrosshair(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),K(this,`afterHideCrosshair`)}update(e,t){let n=this.chart;e=X(this.userOptions,e),this.destroy(!0),this.init(n,e),n.isDirtyBox=!0,Q(t,!0)&&n.redraw()}remove(e){let t=this.chart,n=this.coll,r=this.series,i=r.length;for(;i--;)r[i]&&r[i].remove(!1);_R(t.axes,this),_R(t[n]||[],this),t.orderItems(n),this.destroy(),t.isDirtyBox=!0,Q(e,!0)&&t.redraw()}setTitle(e,t){this.update({title:e},t)}setCategories(e,t){this.update({categories:e},t)}};QB.keepProps=[`coll`,`extKey`,`hcEvents`,`len`,`names`,`series`,`userMax`,`userMin`];var $B=QB,eV;(function(e){function t(e){if(!e.keepProps.includes(`dateTime`)){e.keepProps.push(`dateTime`);let t=e.prototype;t.getTimeTicks=n,H(e,`afterSetType`,r)}return e}e.compose=t;function n(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function r(){if(this.type!==`datetime`){this.dateTime=void 0;return}this.dateTime||=new i(this)}class i{constructor(e){this.axis=e}normalizeTimeTickInterval(e,t){let n=t||[[`millisecond`,[1,2,5,10,20,25,50,100,200,500]],[`second`,[1,2,5,10,15,30]],[`minute`,[1,2,5,10,15,30]],[`hour`,[1,2,3,4,6,8,12]],[`day`,[1,2]],[`week`,[1,2]],[`month`,[1,2,3,4,6]],[`year`,null]],r=n[n.length-1],i=qR[r[0]],a=r[1],o,s;for(o=0;o=.5)e=Math.round(e),c=a.getLinearTickPositions(e,t,n);else if(e>=.08){let a=Math.floor(t),o,s,l,u,d,f,p;for(o=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],s=a;st&&(!r||f<=n)&&f!==void 0&&c.push(f),f>n&&(p=!0),f=d}else{let l=i.lin2log(t),u=i.lin2log(n),d=r?a.getMinorTickInterval():s.tickInterval,f=d===`auto`?null:d,p=s.tickPixelInterval/(r?5:1),m=r?o/a.tickPositions.length:o;e=Q(f,i.minorAutoInterval,(u-l)*p/(m||1)),e=AR(e),c=a.getLinearTickPositions(e,l,u).map(i.log2lin),r||(i.minorAutoInterval=e/5)}return r||(a.tickInterval=e),c}lin2log(e){return 10**e}log2lin(e){return Math.log(e)/Math.LN10}}e.Additions=i})(nV||={});var rV=nV,iV;(function(e){let t;function n(e){return this.addPlotBandOrLine(e,`plotBands`)}function r(e,n){let r=this.userOptions,i=new t(this,e);if(this.visible&&(i=i.render()),i){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(e=>{this.addPlotBandOrLine(e)})),n){let t=r[n]||[];t.push(e),r[n]=t}this.plotLinesAndBands.push(i)}return i}function i(e){return this.addPlotBandOrLine(e,`plotLines`)}function a(e,a){let u=a.prototype;return u.addPlotBand||(t=e,G(u,{addPlotBand:n,addPlotLine:i,addPlotBandOrLine:r,getPlotBandPath:o,removePlotBand:s,removePlotLine:l,removePlotBandOrLine:c})),a}e.compose=a;function o(e,t,n){n||=this.options;let r=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),i=[],a=this.horiz,o=!q(this.min)||!q(this.max)||ethis.max&&t>this.max,s=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),c,l=1,u;if(s&&r)for(o&&(u=s.toString()===r.toString(),l=0),c=0;c{let e=[];for(let t of this.axes)for(let{label:n,options:r}of t.plotLinesAndBands)n&&!r?.label?.allowOverlap&&e.push(n);return e})}),aV.compose(e,n)}constructor(e,t){this.axis=e,this.options=t,this.id=t.id}render(){K(this,`render`);let{axis:e,options:t}=this,{horiz:n,logarithmic:r}=e,{color:i,events:a,zIndex:o=0}=t,{renderer:s,time:c}=e.chart,l={},u=c.parse(t.to),d=c.parse(t.from),f=c.parse(t.value),p=t.borderWidth,m=t.label,{label:h,svgElem:g}=this,_=[],v,y=W(d)&&W(u),b=W(f),x=!g,S={class:`highcharts-plot-`+(y?`band `:`line `)+(t.className||``)},C=y?`bands`:`lines`;if(e.chart.styledMode||(b?(S.stroke=i||`#999999`,S[`stroke-width`]=Q(t.width,1),t.dashStyle&&(S.dashstyle=t.dashStyle)):y&&(S.fill=i||`#e6e9ff`,p&&(S.stroke=t.borderColor,S[`stroke-width`]=p))),l.zIndex=o,C+=`-`+o,v=e.plotLinesAndBandsGroups[C],v||(e.plotLinesAndBandsGroups[C]=v=s.g(`plot-`+C).attr(l).add()),g||(this.svgElem=g=s.path().attr(S).add(v)),W(f))_=e.getPlotLinePath({value:r?.log2lin(f)??f,lineWidth:g.strokeWidth(),acrossPanes:t.acrossPanes});else if(W(d)&&W(u))_=e.getPlotBandPath(r?.log2lin(d)??d,r?.log2lin(u)??u,t);else return;return!this.eventsAdded&&a&&(Z(a,(e,t)=>{g?.on(t,e=>{a[t].apply(this,[e,this])})}),this.eventsAdded=!0),(x||!g.d)&&_?.length?g.attr({d:_}):g&&(_?(g.show(),g.animate({d:_})):g.d&&(g.hide(),h&&(this.label=h=h.destroy()))),m&&(W(m.text)||W(m.formatter))&&_?.length&&e.width>0&&e.height>0&&!_.isFlat?(m=X({align:n&&y?`center`:void 0,x:n?!y&&4:10,verticalAlign:!n&&y?`middle`:void 0,y:n?y?16:10:y?6:-4,rotation:n&&!y?90:0,...y?{inside:!0}:{}},m),this.renderLabel(m,_,y,o)):h&&h.hide(),this}renderLabel(e,t,n,r){let i=this,a=i.axis,o=a.chart.renderer,s=e.inside,c=i.label;c||(i.label=c=o.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:`highcharts-plot-`+(n?`band`:`line`)+`-label `+(e.className||``),zIndex:r}),a.chart.styledMode||c.css(X({color:a.chart.options.title?.style?.color,fontSize:`0.8em`,textOverflow:n&&!s?``:`ellipsis`},e.style)),c.add());let l=t.xBounds||[t[0][1],t[1][1],n?t[2][1]:t[0][1]],u=t.yBounds||[t[0][2],t[1][2],n?t[2][2]:t[0][2]],d=sR(l),f=sR(u),p=cR(l)-d;c.align(e,!1,{x:d,y:f,width:p,height:cR(u)-f}),c.alignAttr.y-=o.fontMetrics(c).b,(!c.alignValue||c.alignValue===`left`||W(s))&&c.css({width:(e.style?.width||(!n||!s?c.rotation===90?a.height-(c.alignAttr.y-a.top):(e.clip?a.width+a.left:a.chart.chartWidth)-c.alignAttr.x:p))+`px`}),c.show(!0)}getLabelText(e){return W(e.formatter)?e.formatter.call(this,this):e.text}destroy(){_R(this.axis.plotLinesAndBands,this),delete this.axis,mR(this)}},{animObject:sV}=Cz,{format:cV}=Bz,{composed:lV,dateFormats:uV,doc:dV,isSafari:fV}=V,{distribute:pV}=Wz,mV=e=>{clearTimeout(e.hideTimer),clearTimeout(e.showTimer)},hV=class{constructor(e,t,n){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,t),this.pointer=n}bodyFormatter(e){return e.map(e=>{let t=e.series.tooltipOptions,n=e.formatPrefix||`point`;return(t[n+`Formatter`]||e.tooltipFormatter).call(e,t[n+`Format`]||``,e)})}cleanSplit(e){this.chart.series.forEach(function(t){let n=t?.tt;n&&(!n.isActive||e?t.tt=n.destroy():n.isActive=!1)})}defaultFormatter(e){let t=this.points||RR(this),n;return n=[e.headerFooterFormatter(t[0])],n=n.concat(e.bodyFormatter(t)),n.push(e.headerFooterFormatter(t[0],!0)),n}destroy(){this.label&&=this.label.destroy(),this.split&&(this.cleanSplit(!0),this.tt&&=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),hR(this.container)),TR(this.hideTimer),mV(this)}getAnchor(e,t){let{chart:n,pointer:r}=this,i=n.inverted,a=n.plotTop,o=n.plotLeft,s;if(e=RR(e),e[0].series?.yAxis&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&t)t.chartX===void 0&&(t=r.normalize(t)),s=[t.chartX-o,t.chartY-a];else if(e[0].tooltipPos)s=e[0].tooltipPos;else{let n=0,r=0;e.forEach(function(e){let t=e.pos(!0);t&&(n+=t[0],r+=t[1])}),n/=e.length,r/=e.length,this.shared&&e.length>1&&t&&(i?n=t.chartX:r=t.chartY),s=[n-o,r-a]}let c={point:e[0],ret:s};return K(this,`getAnchor`,c),c.ret.map(Math.round)}getClassName(e,t,n){let r=this.options,i=e.series,a=i.options;return[r.className,`highcharts-label`,n&&`highcharts-tooltip-header`,t?`highcharts-tooltip-box`:`highcharts-tooltip`,!n&&`highcharts-color-`+Q(e.colorIndex,i.colorIndex),a?.className].filter(J).join(` `)}getLabel({anchorX:e,anchorY:t}={anchorX:0,anchorY:0}){let n=this,r=this.chart.styledMode,i=this.options,a=this.split&&this.allowShared,o=this.container,s=this.chart.renderer;if(this.label){let e=!this.label.hasClass(`highcharts-label`);(!a&&e||a&&!e)&&this.destroy()}if(!this.label){if(this.outside){let e=this.chart,t=e.options.chart.style,n=Hz.getRendererType();this.container=o=V.doc.createElement(`div`),o.className=`highcharts-tooltip-container `+(e.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||[].join(` `)),U(o,{position:`absolute`,top:`1px`,pointerEvents:`none`,zIndex:Math.max(this.options.style.zIndex||0,(t?.zIndex||0)+3)}),this.renderer=s=new n(o,0,0,t,void 0,void 0,s.styledMode)}if(a?this.label=s.g(`tooltip`):(this.label=s.label(``,e,t,i.shape||`callout`,void 0,void 0,i.useHTML,void 0,`tooltip`).attr({padding:i.padding,r:i.borderRadius}),r||this.label.attr({fill:i.backgroundColor,"stroke-width":i.borderWidth||0}).css(i.style).css({pointerEvents:i.style.pointerEvents||(this.shouldStickOnContact()?`auto`:`none`)})),n.outside){let e=this.label;[e.xSetter,e.ySetter].forEach((t,r)=>{e[r?`ySetter`:`xSetter`]=i=>{t.call(e,n.distance),e[r?`y`:`x`]=i,o&&(o.style[r?`top`:`left`]=`${i}px`)}})}this.label.attr({zIndex:8}).shadow(i.shadow??!i.fixed).add()}return o&&!o.parentElement&&V.doc.body.appendChild(o),this.label}getPlayingField(){let{body:e,documentElement:t}=dV,{chart:n,distance:r,outside:i}=this;return{width:i?Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)-2*r-2:n.chartWidth,height:i?Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight):n.chartHeight}}getPosition(e,t,n){let{distance:r,chart:i,outside:a,pointer:o}=this,{inverted:s,plotLeft:c,plotTop:l,polar:u}=i,{plotX:d=0,plotY:f=0}=n,p={},m=s&&n.h||0,{height:h,width:g}=this.getPlayingField(),_=o.getChartPosition(),v=e=>e*_.scaleX,y=e=>e*_.scaleY,b=n=>{let o=n===`x`;return[n,o?g:h,o?e:t].concat(a?[o?v(e):y(t),o?_.left-r+v(d+c):_.top-r+y(f+l),0,o?g:h]:[o?e:t,o?d+c:f+l,o?c:l,o?c+i.plotWidth:l+i.plotHeight])},x=b(`y`),S=b(`x`),C,w=!!n.negative;!u&&i.hoverSeries?.yAxis?.reversed&&(w=!w);let T=!this.followPointer&&Q(n.ttBelow,u?!1:!s===w),E=function(e,t,n,i,o,s,c){let l=a?e===`y`?y(r):v(r):r,u=(n-i)/2,d=it?g:g+m);else return p[e]=0,!1},D=function(e,t,n,i,a){if(at-r)return!1;at-i/2?p[e]=t-i-2:p[e]=a-n/2},O=function(e){[x,S]=[S,x],C=e},k=()=>{E.apply(0,x)===!1?C?p.x=p.y=0:(O(!0),k()):D.apply(0,S)===!1&&!C&&(O(!0),k())};return(s&&!u||this.len>1)&&O(),k(),a&&(p.x-=_.left,p.y-=_.top),p}getFixedPosition(e,t,n){let r=n.series,{chart:i,options:a,split:o}=this,s=a.position,c=s.relativeTo,l=a.shared||r?.yAxis?.isRadial&&(c===`pane`||!c)?`plotBox`:c,u=l===`chart`?i.renderer:i[l]||i.getClipBox(r,!0);return{x:u.x+(u.width-e)*yR(s.align)+s.x,y:u.y+(u.height-t)*yR(s.verticalAlign)+(!o&&s.y||0)}}hide(e){let t=this;mV(this),e=Q(e,this.options.hideDelay),this.isHidden||(this.hideTimer=BR(function(){let n=t.getLabel();t.getLabel().animate({opacity:0},{duration:e&&150,complete:()=>{n.hide(),t.container&&t.container.remove()}}),t.isHidden=!0},e))}init(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=Q(t.outside,!!(e.scrollablePixelsX||e.scrollablePixelsY))}shouldStickOnContact(e){return!!(!this.followPointer&&this.options.stickOnContact&&(!e||this.pointer.inClass(e.target,`highcharts-tooltip`)))}move(e,t,n,r){let{followPointer:i,options:a}=this,o=sV(!i&&!this.isHidden&&!a.fixed&&a.animation),s=i||(this.len||0)>1,c={x:e,y:t};s?c.anchorX=c.anchorY=NaN:(c.anchorX=n,c.anchorY=r),o.step=()=>this.drawTracker(),this.getLabel().animate(c,o)}refresh(e,t){let n=this,{chart:r,options:i,pointer:a,shared:o}=this,s=RR(e),c=s[0],l=i.format,u=i.formatter||n.defaultFormatter,d=r.styledMode,f=n.allowShared;if(!i.enabled||!c.series)return;mV(this),n.allowShared=!(!OR(e)&&e.series&&e.series.noSharedTooltip),f&&=!n.allowShared,n.followPointer=!n.split&&c.series.tooltipOptions.followPointer;let p=n.getAnchor(e,t),m=p[0],h=p[1];o&&n.allowShared&&(a.applyInactiveState(s),s.forEach(e=>e.setState(`hover`)),c.points=s),this.len=s.length;let g=J(l)?cV(l,c,r):u.call(c,n,c);c.points=void 0;let _=c.series;this.distance=Q(_.tooltipOptions.distance,16),g===!1?this.hide():this.showTimer=BR(()=>{if(n.split&&n.allowShared)n.renderSplit(g,s);else{let e=m,o=h;if(t&&a.isDirectTouch&&(e=t.chartX-r.plotLeft,o=t.chartY-r.plotTop),r.polar||_.options.clip===!1||s.some(t=>a.isDirectTouch||t.series.shouldShowTooltip(e,o))){let e=n.getLabel(f&&n.tt||{});(!i.style.width||d)&&e.css({width:(this.outside?this.getPlayingField():r.spacingBox).width-2*i.padding+`px`}),e.attr({class:n.getClassName(c),text:OR(g)?g.join(``):g}),this.outside&&e.attr({x:uR(e.x||0,0,this.getPlayingField().width-(e.width||0)-1)}),d||e.attr({stroke:i.borderColor||c.color||_.color||`#666666`}),n.updatePosition({plotX:m,plotY:h,negative:c.negative,ttBelow:c.ttBelow,series:_,h:p[2]||0})}else{n.hide();return}}n.isHidden&&n.label&&n.label.attr({opacity:1}).show(),n.isHidden=!1},n.isHidden&&i.showDelay||0),K(this,`refresh`)}renderSplit(e,t){let n=this,{chart:r,chart:{chartWidth:i,chartHeight:a,plotHeight:o,plotLeft:s,plotTop:c,scrollablePixelsY:l=0,scrollablePixelsX:u,styledMode:d},distance:f,options:p,options:{fixed:m,position:h,positioner:g},pointer:_}=n,{scrollLeft:v=0,scrollTop:y=0}=r.scrollablePlotArea?.scrollingContainer||{},b=n.outside&&typeof u!=`number`?dV.documentElement.getBoundingClientRect():{left:v,right:v+i,top:y,bottom:y+a},x=n.getLabel(),S=this.renderer||r.renderer,C=!!r.xAxis[0]?.opposite,{left:w,top:T}=_.getChartPosition(),E=g||m,D=c+y,O=0,k=o-l;function A(e){let{isHeader:t,plotX:n=0,plotY:r=0,series:i}=e,a,l;if(t)a=Math.max(s+n,s),l=c+o/2;else{let{xAxis:e,yAxis:t}=i;a=e.pos+uR(n,-f,e.len+f),i.shouldShowTooltip(0,t.pos-c+r,{ignoreX:!0})&&(l=t.pos+r)}return a=uR(a,b.left-f,b.right+f),{anchorX:a,anchorY:l}}let j=function(e,t,r,i,a=[0,0],o=!0){let s,c;if(r.isHeader)c=C?0:k,s=uR(a[0]-e/2,b.left,b.right-e-(n.outside?w:0));else if(m&&r){let i=n.getFixedPosition(e,t,r);s=i.x,c=i.y-D}else c=a[1]-D,s=o?a[0]-e-f:a[0]+f,s=uR(s,o?s:b.left,b.right);return{x:s,y:c}};function M(e,t,r){let i=e,{isHeader:a,series:o}=t,s=o.tooltipOptions||p;if(!i){let e={padding:s.padding,r:s.borderRadius};d||(e.fill=s.backgroundColor,e[`stroke-width`]=s.borderWidth??(m&&!a?0:1)),i=S.label(``,0,0,s[a?`headerShape`:`shape`]||(m&&!a?`rect`:`callout`),void 0,void 0,s.useHTML).addClass(n.getClassName(t,!0,a)).attr(e).add(x)}return i.isActive=!0,i.attr({text:r}),d||i.css(s.style).attr({stroke:s.borderColor||t.color||o.color||`#333333`}),i}J(e)&&(e=[!1,e]);let N=e.slice(0,t.length+1).reduce(function(e,r,i){if(r!==!1&&r!==``){let a=t[i-1]||{isHeader:!0,plotX:t[0].plotX,plotY:o,series:{}},s=a.isHeader,c=s?n:a.series,l=c.tt=M(c.tt,a,r.toString()),u=l.getBBox(),d=u.width+l.strokeWidth();s&&(O=u.height,k+=O,C&&(D-=O));let{anchorX:f,anchorY:p}=A(a);if(typeof p==`number`){let t=u.height+1,r=(g||j).call(n,d,t,a,n,[f,p]);e.push({align:E?0:void 0,anchorX:f,anchorY:p,boxWidth:d,point:a,rank:Q(r.rank,+!!s),size:t,target:r.y,tt:l,x:r.x})}else l.isActive=!1}return e},[]);!E&&N.some(e=>{let{outside:t}=n,r=(t?w:0)+e.anchorX;return rr})&&(N=N.map(e=>{let{x:t,y:n}=j.call(this,e.boxWidth,e.size,e.point,void 0,[e.anchorX,e.anchorY],!1);return G(e,{target:n,x:t})})),n.cleanSplit(),pV(N,k);let ee={left:w,right:w};N.forEach(function(e){let{x:t,boxWidth:r,isHeader:i}=e;i||(n.outside&&w+tee.right&&(ee.right=w+t))}),N.forEach(function(e){let{x:t,anchorX:r,anchorY:i,pos:a,point:{isHeader:o}}=e,s={visibility:a===void 0?`hidden`:`inherit`,x:t,y:(a||0)+D+(m&&h.y||0),anchorX:r,anchorY:i};if(n.outside&&t0&&(o||(s.x=t+e,s.anchorX=r+e),o&&(s.x=(ee.right-ee.left)/2,s.anchorX=r+e))}e.tt.attr(s)});let{container:te,outside:ne,renderer:re}=n;if(ne&&te&&re){let{width:e,height:t,x:n,y:r}=x.getBBox();re.setSize(e+n,t+r,!1),te.style.left=ee.left+`px`,te.style.top=T+`px`}fV&&x.attr({opacity:x.opacity===1?.999:1})}drawTracker(){let e=this;if(!this.shouldStickOnContact()){e.tracker&&=e.tracker.destroy();return}let t=e.chart,n=e.label,r=e.shared?t.hoverPoints:t.hoverPoint;if(!n||!r)return;let i={x:0,y:0,width:0,height:0},a=this.getAnchor(r),o=n.getBBox();a[0]+=t.plotLeft-(n.translateX||0),a[1]+=t.plotTop-(n.translateY||0),i.x=Math.min(0,a[0]),i.y=Math.min(0,a[1]),i.width=a[0]<0?Math.max(Math.abs(a[0]),o.width-a[0]):Math.max(Math.abs(a[0]),o.width),i.height=a[1]<0?Math.max(Math.abs(a[1]),o.height-Math.abs(a[1])):Math.max(Math.abs(a[1]),o.height),e.tracker?e.tracker.attr(i):(e.tracker=n.renderer.rect(i).addClass(`highcharts-tracker`).add(n),H(e.tracker.element,`mouseenter`,()=>mV(e)),t.styledMode||e.tracker.attr({fill:`rgba(0,0,0,0)`}))}styledModeFormat(e){return e.replace(`style="font-size: 0.8em"`,`class="highcharts-header"`).replace(/style="color:{(point|series)\.color}"/g,`class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"`)}headerFooterFormatter(e,t){let n=e.series,r=n.tooltipOptions,i=n.xAxis?.dateTime,a={isFooter:t,point:e},o=r.xDateFormat||``,s=r[t?`footerFormat`:`headerFormat`];return K(this,`headerFormatter`,a,function(t){if(i&&!o&&q(e.key)&&(o=i.getXDateFormat(e.key,r.dateTimeLabelFormats)),i&&o){if(Y(o)){let e=o;uV[0]=t=>n.chart.time.dateFormat(e,t),o=`%0`}(e.tooltipDateKeys||[`key`]).forEach(e=>{s=s.replace(RegExp(`point\\.`+e+`([ \\)}])`),`(point.${e}:${o})$1`)})}n.chart.styledMode&&(s=this.styledModeFormat(s)),t.text=cV(s,e,this.chart)}),a.text||``}update(e){this.destroy(),this.init(this.chart,X(!0,this.options,e))}updatePosition(e){let{chart:t,container:n,distance:r,options:i,pointer:a,renderer:o}=this,{height:s=0,width:c=0}=this.getLabel(),{fixed:l,positioner:u}=i,{left:d,top:f,scaleX:p,scaleY:m}=a.getChartPosition(),h=(u||l&&this.getFixedPosition||this.getPosition).call(this,c,s,e,this),g=V.doc,_=(e.plotX||0)+t.plotLeft,v=(e.plotY||0)+t.plotTop,y;if(o&&n){let{scrollLeft:e=0,scrollTop:a=0}=t.scrollablePlotArea?.scrollingContainer||{};h.x+=e+d,h.y+=a+f,y=(i.borderWidth||0)+2*r+2,o.setSize(uR(c+y,0,g.documentElement.clientWidth)-1,s+y,!1),(p!==1||m!==1)&&(U(n,{transform:`scale(${p}, ${m})`}),_*=p,v*=m),_+=d-h.x,v+=f-h.y}this.move(Math.round(h.x),Math.round(h.y||0),_,v)}};(function(e){function t(t){PR(lV,`Core.Tooltip`)&&H(t,`afterInit`,function(){let t=this.chart;t.options.tooltip&&(t.tooltip=new e(t,t.options.tooltip,this))})}e.compose=t})(hV||={});var gV=hV,{animObject:_V}=Cz,{defaultOptions:vV}=cz,{format:yV}=Bz,bV=class e{constructor(e,t,n){this.formatPrefix=`point`,this.visible=!0,this.point=this,this.series=e,this.applyOptions(t,n),this.id??=YR(),this.resolveColor(),this.dataLabelOnNull??=e.options.nullInteraction,e.chart.pointCount++,this.category=e.xAxis?.categories?.[this.x]??this.x,this.key=this.name??this.category,K(this,`afterInit`)}animateBeforeDestroy(){let e=this,t={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(n){let r=n===`dataLabel`;e[n]=e[n].animate(r?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:t)}),n.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(G({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})}applyOptions(t,n){let r=this,i=r.series,a=i.options.pointValKey||i.pointValKey;return t=e.prototype.optionsToObject.call(this,t),G(r,t),r.options?r.options=i.chart.options.chart.allowMutatingData?G(r.options,t):X(r.options,t):r.options=t,t.group&&delete r.group,t.dataLabels&&delete r.dataLabels,a&&(r.y=e.prototype.getNestedProperty.call(r,a)),r.selected&&(r.state=`select`),`name`in r&&n===void 0&&i.xAxis&&i.xAxis.hasNames&&(r.x=i.xAxis.nameToX(r)),r.x===void 0&&i?r.x=n??i.autoIncrement():q(t.x)&&i.options.relativeXValue?r.x=i.autoIncrement(t.x):typeof r.x==`string`&&(n??=i.chart.time.parse(r.x),q(n)&&(r.x=n)),r.isNull=this.isValid&&!this.isValid(),r.formatPrefix=r.isNull?`null`:`point`,r}destroy(){if(!this.destroyed){let e=this,t=e.series,n=t.chart,r=t.options.dataSorting,i=n.hoverPoints,a=e.series.chart.renderer.globalAnimation,o=_V(a),s=()=>{(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(LR(e),e.destroyElements());for(let t in e)delete e[t]};e.legendItem&&n.legend.destroyItem(e),i&&(e.setState(),_R(i,e),i.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),r?.enabled?(this.animateBeforeDestroy(),BR(s,o.duration)):s(),n.pointCount--}this.destroyed=!0}destroyElements(e){let t=this,n=t.getGraphicalProps(e);n.singular.forEach(function(e){t[e]=t[e].destroy()}),n.plural.forEach(function(e){t[e].forEach(function(e){e?.element&&e.destroy()}),delete t[e]})}firePointEvent(e,t,n){let r=this,i=this.series.options;r.manageEvent(e),e===`click`&&i.allowPointSelect&&(n=function(e){!r.destroyed&&r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),K(r,e,t,n)}getClassName(){let e=this;return`highcharts-point`+(e.selected?` highcharts-point-select`:``)+(e.negative&&e.series.options.negativeColor!==!1?` highcharts-negative`:``)+(e.isNull?` highcharts-null-point`:``)+(e.colorIndex===void 0?``:` highcharts-color-`+e.colorIndex)+(e.options.className?` `+e.options.className:``)+(e.zone?.className?` `+e.zone.className.replace(`highcharts-negative`,``):``)}getGraphicalProps(e){let t=this,n=[],r={singular:[],plural:[]},i,a;for(e||={graphic:1,dataLabel:1},e.graphic&&n.push(`graphic`,`connector`),e.dataLabel&&n.push(`dataLabel`,`dataLabelPath`,`dataLabelUpper`),a=n.length;a--;)i=n[a],t[i]&&r.singular.push(i);return[`graphic`,`dataLabel`].forEach(function(n){let i=n+`s`;e[n]&&t[i]&&r.plural.push(i)}),r}getNestedProperty(e){if(e)return e.indexOf(`custom.`)===0?SR(e,this.options):this[e]}getZone(){let e=this.series,t=e.zones,n=e.zoneAxis||`y`,r,i=0;for(r=t[i];this[n]>=r.value;)r=t[++i];return this.nonZonedColor||=this.color,r?.color&&!this.options.color?this.color=r.color:this.color=this.nonZonedColor,r}hasNewShapeType(){let e=this;return(e.graphic&&(e.graphic.symbolName||e.graphic.element.nodeName))!==this.shapeType}isValid(){return(q(this.x)||this.x instanceof Date)&&q(this.y)}optionsToObject(t){let n=this.series,r=n.options.keys,i=r||n.pointArrayMap||[`y`],a=i.length,o={},s,c=0,l=0;if(q(t)||t===null)o[i[0]]=t;else if(OR(t))for(!r&&t.length>a&&(s=typeof t[0],s===`string`?n.xAxis?.dateTime?o.x=n.chart.time.parse(t[0]):o.name=t[0]:s===`number`&&(o.x=t[0]),c++);l0?e.prototype.setNestedProperty(o,t[c],i[l]):o[i[l]]=t[c]),c++,l++;else typeof t==`object`&&(o=t,t.dataLabels&&(n.hasDataLabels=()=>!0),t.marker&&(n._hasPointMarkers=!0));return o}pos(e,t=this.plotY){if(!this.destroyed){let{plotX:n,series:r}=this,{chart:i,xAxis:a,yAxis:o}=r,s=0,c=0;if(q(n)&&q(t))return e&&(s=a?a.pos:i.plotLeft,c=o?o.pos:i.plotTop),i.inverted&&a&&o?[o.len-t+c,a.len-n+s]:[n+s,t+c]}}resolveColor(){let e=this.series,t=e.chart.options.chart,n=e.chart.styledMode,r,i,a=t.colorCount,o;delete this.nonZonedColor,e.options.colorByPoint?(n||(i=e.options.colors||e.chart.options.colors,r=i[e.colorCounter],a=i.length),o=e.colorCounter,e.colorCounter++,e.colorCounter===a&&(e.colorCounter=0)):(n||(r=e.color),o=e.colorIndex),this.colorIndex=Q(this.options.colorIndex,o),this.color=Q(this.options.color,r)}setNestedProperty(e,t,n){return n.split(`.`).reduce(function(e,n,r,i){return e[n]=i.length-1===r?t:Y(e[n],!0)?e[n]:{},e[n]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){let{chart:t,pointArrayMap:n=[`y`],tooltipOptions:r}=this.series,{valueDecimals:i=``,valuePrefix:a=``,valueSuffix:o=``}=r;return t.styledMode&&(e=t.tooltip?.styledModeFormat(e)||e),n.forEach(t=>{t=`{point.`+t,(a||o)&&(e=e.replace(RegExp(t+`}`,`g`),a+t+`}`+o)),e=e.replace(RegExp(t+`}`,`g`),t+`:,.`+i+`f}`)}),yV(e,this,t)}update(e,t,n,r){let i=this,a=i.series,o=i.graphic,s=a.chart,c=a.options,l=c.data,u;t=Q(t,!0);function d(){i.applyOptions(e);let r=o&&i.hasMockGraphic,d=i.y===null?!r:r;o&&d&&(i.graphic=o.destroy(),delete i.hasMockGraphic),Y(e,!0)&&(o?.element&&e&&e.marker&&e.marker.symbol!==void 0&&(i.graphic=o.destroy()),e?.dataLabels&&i.dataLabel&&(i.dataLabel=i.dataLabel.destroy())),u=i.index;let f={};for(let e of a.dataColumnKeys())f[e]=i[e];a.dataTable.setRow(f,u),l&&!a.processedData&&(l[u]=Y(l[u],!0)||Y(e,!0)?i.options:e??l[u]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(s.isDirtyBox=!0),c.legendType===`point`&&(s.isDirtyLegend=!0),t&&s.redraw(n)}r===!1?d():i.firePointEvent(`update`,{options:e},d)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){let n=this,r=n.series,i=r.chart;e=Q(e,!n.selected),this.selectedStaging=e,n.firePointEvent(e?`select`:`unselect`,{accumulate:t},function(){n.selected=n.options.selected=e,r.options.data[r.data.indexOf(n)]=n.options,n.setState(e&&`select`),t||i.getSelectedPoints().forEach(function(e){let t=e.series;e.selected&&e!==n&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(i.hoverPoints&&t.options.inactiveOtherPoints?`inactive`:``),e.firePointEvent(`unselect`))})}),delete this.selectedStaging}onMouseOver(e){let t=this,{inverted:n,pointer:r}=t.series.chart;r&&(e=e?r.normalize(e):r.getChartCoordinatesFromPoint(t,n),r.runPointActions(e,t))}onMouseOut(){let e=this,t=e.series.chart;e.firePointEvent(`mouseOut`),e.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(e){e.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(e){let t=this,n=X(t.series.options.point,t.options).events?.[e];kR(n)&&(!t.hcEvents?.[e]||t.hcEvents?.[e]?.map(e=>e.fn).indexOf(n)===-1)?(t.importedUserEvent?.(),t.importedUserEvent=H(t,e,n),t.hcEvents&&(t.hcEvents[e].userEvent=!0)):t.importedUserEvent&&!n&&t.hcEvents?.[e]&&t.hcEvents?.[e].userEvent&&(LR(t,e),delete t.hcEvents[e],Object.keys(t.hcEvents)||delete t.importedUserEvent)}setState(e,t){let n=this,r=n.series,i=n.state,a=r.options.states[e||`normal`]||{},o=vV.plotOptions[r.type].marker&&r.options.marker,s=o&&o.enabled===!1,c=o?.states?.[e||`normal`]||{},l=c.enabled===!1,u=n.marker||{},d=r.chart,f=o&&r.markerAttribs,p=r.halo,m,h,g,_=r.stateMarkerGraphic,v;if(e||=``,e===n.state&&!t||n.selected&&e!==`select`||a.enabled===!1||e&&(l||s&&c.enabled===!1)||e&&u.states&&u.states[e]&&u.states[e].enabled===!1)return;if(n.state=e,f&&(m=r.markerAttribs(n,e)),n.graphic&&!n.hasMockGraphic){if(i&&n.graphic.removeClass(`highcharts-point-`+i),e&&n.graphic.addClass(`highcharts-point-`+e),!d.styledMode){h=r.pointAttribs(n,e),g=Q(d.options.chart.animation,a.animation);let t=h.opacity;r.options.inactiveOtherPoints&&q(t)&&(n.dataLabels||[]).forEach(function(e){e&&!e.hasClass(`highcharts-data-label-hidden`)&&(e.animate({opacity:t},g),e.connector&&e.connector.animate({opacity:t},g))}),n.graphic.animate(h,g)}m&&n.graphic.animate(m,Q(d.options.chart.animation,c.animation,o.animation)),_&&_.hide()}else e&&c&&(v=u.symbol||r.symbol,_&&_.currentSymbol!==v&&(_=_.destroy()),m&&(_?_[t?`animate`:`attr`]({x:m.x,y:m.y}):v&&(r.stateMarkerGraphic=_=d.renderer.symbol(v,m.x,m.y,m.width,m.height,X(o,c)).add(r.markerGroup),_.currentSymbol=v)),!d.styledMode&&_&&n.state!==`inactive`&&_.attr(r.pointAttribs(n,e))),_&&(_[e&&n.isInside?`show`:`hide`](),_.element.point=n,_.addClass(n.getClassName(),!0));let y=a.halo,b=n.graphic||_,x=b?.visibility||`inherit`;y?.size&&b&&x!==`hidden`&&!n.isCluster?(p||(r.halo=p=d.renderer.path().add(b.parentGroup)),p.show()[t?`animate`:`attr`]({d:n.haloPath(y.size)}),p.attr({class:`highcharts-halo highcharts-color-`+Q(n.colorIndex,r.colorIndex)+(n.className?` `+n.className:``),visibility:x,zIndex:-1}),p.point=n,d.styledMode||p.attr(G({fill:n.color||r.color,"fill-opacity":y.opacity},Az.filterUserAttributes(y.attributes||{})))):p?.point?.haloPath&&!p.point.destroyed&&p.animate({d:p.point.haloPath(0)},null,p.hide),K(n,`afterSetState`,{state:e})}haloPath(e){let t=this.pos();return t?this.series.chart.renderer.symbols.circle(pR(t[0],1)-e,t[1]-e,e*2,e*2):[]}},{parse:xV}=pz,{charts:SV,composed:CV,isTouchDevice:wV}=V,TV=(e,t)=>!W(t)||e[`${t}Key`],EV=class e{applyInactiveState(e=[]){let t=[];e.forEach(e=>{let n=e.series;t.push(n),n.linkedParent&&t.push(n.linkedParent),n.linkedSeries&&t.push.apply(t,n.linkedSeries),n.navigatorSeries&&t.push(n.navigatorSeries),n.boosted&&n.markerGroup&&t.push.apply(t,this.chart.series.filter(e=>e.markerGroup===n.markerGroup))});for(let e of this.chart.series){let n=e.options;n.states?.inactive?.enabled!==!1&&(t.indexOf(e)===-1?e.setState(`inactive`,!0):n.inactiveOtherPoints&&e.setAllPointsToState(`inactive`))}}destroy(){let t=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],V.chartCount||(e.unbindDocumentMouseUp.forEach(e=>e.unbind()),e.unbindDocumentMouseUp.length=0,e.unbindDocumentTouchEnd&&=e.unbindDocumentTouchEnd()),Z(t,function(e,n){t[n]=void 0})}getSelectionMarkerAttrs(e,t){let n={args:{chartX:e,chartY:t},attrs:{},shapeType:`rect`};return K(this,`getSelectionMarkerAttrs`,n,n=>{let{chart:r,zoomHor:i,zoomVert:a}=this,{mouseDownX:o=0,mouseDownY:s=0}=r,c=n.attrs,l;c.x=r.plotLeft,c.y=r.plotTop,c.width=i?1:r.plotWidth,c.height=a?1:r.plotHeight,i&&(l=e-o,c.width=Math.max(1,Math.abs(l)),c.x=(l>0?0:l)+o),a&&(l=t-s,c.height=Math.max(1,Math.abs(l)),c.y=(l>0?0:l)+s)}),n}drag(e){let{chart:t}=this,{mouseDownX:n=0,mouseDownY:r=0}=t,{panning:i,panKey:a,selectionMarkerFill:o}=t.options.chart,s=t.plotLeft,c=t.plotTop,l=t.plotWidth,u=t.plotHeight,d=Y(i)?i.enabled:i,f=a&&e[`${a}Key`],p=e.chartX,m=e.chartY,h,g=this.selectionMarker;if(!(g&&g.touch)&&(ps+l&&(p=s+l),mc+u&&(m=c+u),this.hasDragged=Math.sqrt((n-p)**2+(r-m)**2),this.hasDragged>10)){h=t.isInsidePlot(n-s,r-c,{visiblePlotOnly:!0});let{shapeType:l,attrs:u}=this.getSelectionMarkerAttrs(p,m);this.hasZoom&&h&&!f&&(g||(this.selectionMarker=g=t.renderer[l](),g.attr({class:`highcharts-selection-marker`,zIndex:7}).add(),t.styledMode||g.attr({fill:o||xV(`#334eff`).setOpacity(.25).get()}))),g&&g.attr(u),h&&!g&&d&&TV(e,a)&&t.pan(e,i)}}dragStart(e){let t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=e.chartX,t.mouseDownY=e.chartY}getSelectionBox(e){let t={args:{marker:e},result:e.getBBox()};return K(this,`getSelectionBox`,t),t.result}drop(e){let{chart:t,selectionMarker:n}=this,r;for(let e of t.axes)e.isPanning&&(e.isPanning=!1,(e.options.startOnTick||e.options.endOnTick||e.series.some(e=>e.boosted))&&(e.forceRedraw=!0,e.setExtremes(e.userMin,e.userMax,!1),r=!0));if(r&&t.redraw(),n&&e){if(this.hasDragged){let r=this.getSelectionBox(n);t.transform({axes:t.axes.filter(e=>e.zoomEnabled&&(e.coll===`xAxis`&&this.zoomX||e.coll===`yAxis`&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...r},from:r})}q(t.index)&&(this.selectionMarker=n.destroy())}t&&q(t.index)&&(U(t.container,{cursor:t._cursor}),t.cancelClick=this.hasDragged>10,t.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(e,t,n){let r;function i(e,n){let r=e.distX-n.distX,i=e.dist-n.dist,a=n.series.group?.zIndex-e.series.group?.zIndex,o;return o=r!==0&&t?r:i===0?a===0?e.series.index>n.series.index?-1:1:a:i,o}return e.forEach(function(e){let a=!(e.noSharedTooltip&&t)&&e.options.findNearestPointBy.indexOf(`y`)<0,o=e.searchPoint(n,a);Y(o,!0)&&o.series&&(!Y(r,!0)||i(r,o)>0)&&(r=o)}),r}getChartCoordinatesFromPoint(e,t){let{xAxis:n,yAxis:r}=e.series,i=e.shapeArgs;if(n&&r){let a=e.clientX??e.plotX??0,o=e.plotY||0;return e.isNode&&i&&q(i.x)&&q(i.y)&&(a=i.x,o=i.y),t?{chartX:r.len+r.pos-o,chartY:n.len+n.pos-a}:{chartX:a+n.pos,chartY:o+r.pos}}if(i?.x&&i.y)return{chartX:i.x,chartY:i.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,t=jR(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};let{offsetHeight:n,offsetWidth:r}=e;return r>2&&n>2&&(this.chartPosition.scaleX=t.width/r,this.chartPosition.scaleY=t.height/n),this.chartPosition}getCoordinates(e){let t={xAxis:[],yAxis:[]};for(let n of this.chart.axes)t[n.isXAxis?`xAxis`:`yAxis`].push({axis:n,value:n.toValue(e[n.horiz?`chartX`:`chartY`])});return t}getHoverData(e,t,n,r,i,a){let o=[],s=!!(r&&e),c=function(e){return e.visible&&!(!i&&e.directTouch)&&Q(e.options.enableMouseTracking,!0)},l=t,u,d={chartX:a?a.chartX:void 0,chartY:a?a.chartY:void 0,shared:i};K(this,`beforeGetHoverData`,d),u=l&&!l.stickyTracking?[l]:n.filter(e=>e.stickyTracking&&(d.filter||c)(e));let f=s||!a?e:this.findNearestKDPoint(u,i,a);return l=f?.series,f&&(i&&!l.noSharedTooltip?(u=n.filter(function(e){return d.filter?d.filter(e):c(e)&&!e.noSharedTooltip}),u.forEach(function(e){let t=e.options?.nullInteraction,n=wR(e.points,function(e){return e.x===f.x&&(!e.isNull||!!t)});Y(n)&&(e.boosted&&e.boost&&(n=e.boost.getPoint(n)),o.push(n))})):o.push(f)),d={hoverPoint:f},K(this,`afterGetHoverData`,d),{hoverPoint:d.hoverPoint,hoverSeries:l,hoverPoints:o}}getPointFromEvent(e){let t=e.target,n;for(;t&&!n;)n=t.point,t=t.parentNode;return n}onTrackerMouseOut(e){let t=this.chart,n=e.relatedTarget,r=t.hoverSeries;this.isDirectTouch=!1,r&&n&&!r.stickyTracking&&!this.inClass(n,`highcharts-tooltip`)&&(!this.inClass(n,`highcharts-series-`+r.index)||!this.inClass(n,`highcharts-tracker`))&&r.onMouseOut()}inClass(e,t){let n=e,r;for(;n;){if(r=lR(n,`class`),r){if(r.indexOf(t)!==-1)return!0;if(r.indexOf(`highcharts-container`)!==-1)return!1}n=n.parentElement}}constructor(e,t){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=t,this.chart=e,this.runChartClick=!!t.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),K(this,`afterInit`)}normalize(e,t){let n=e.touches,r=n?n.length?n.item(0):Q(n.changedTouches,e.changedTouches)[0]:e;t||=this.getChartPosition();let i=r.pageX-t.left,a=r.pageY-t.top;return i/=t.scaleX,a/=t.scaleY,G(e,{chartX:Math.round(i),chartY:Math.round(a)})}onContainerClick(e){let t=this.chart,n=t.hoverPoint,r=this.normalize(e),i=t.plotLeft,a=t.plotTop;t.cancelClick||(n&&this.inClass(r.target,`highcharts-tracker`)?(K(n.series,`click`,G(r,{point:n})),t.hoverPoint&&n.firePointEvent(`click`,r)):(G(r,this.getCoordinates(r)),t.isInsidePlot(r.chartX-i,r.chartY-a,{visiblePlotOnly:!0})&&K(t,`click`,r)))}onContainerMouseDown(e){let t=((e.buttons||e.button)&1)==1;e=this.normalize(e),V.isFirefox&&e.button!==0&&this.onContainerMouseMove(e),(e.button===void 0||t)&&(this.zoomOption(e),t&&e.preventDefault?.(),this.dragStart(e))}onContainerMouseLeave(t){let{pointer:n}=SV[Q(e.hoverChartIndex,-1)]||{};t=this.normalize(t),this.onContainerMouseMove(t),n&&!this.inClass(t.relatedTarget,`highcharts-tooltip`)&&(n.reset(),n.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){let t=this.chart,n=t.tooltip,r=this.normalize(e);this.setHoverChartIndex(e),(t.mouseIsDown===`mousedown`||this.touchSelect(r))&&this.drag(r),!t.exporting?.openMenu&&(this.inClass(r.target,`highcharts-tracker`)||t.isInsidePlot(r.chartX-t.plotLeft,r.chartY-t.plotTop,{visiblePlotOnly:!0}))&&!n?.shouldStickOnContact(r)&&(this.inClass(r.target,`highcharts-no-tooltip`)?this.reset(!1,0):this.runPointActions(r))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let t=this.chart,n=t.tooltip,r=this.chartPosition,i=this.normalize(e,r);r&&!t.isInsidePlot(i.chartX-t.plotLeft,i.chartY-t.plotTop,{visiblePlotOnly:!0})&&!n?.shouldStickOnContact(i)&&(i.target===t.container.ownerDocument||!this.inClass(i.target,`highcharts-tracker`))&&this.reset()}onDocumentMouseUp(t){t?.touches&&this.hasPinchMoved&&t?.preventDefault?.(),SV[Q(e.hoverChartIndex,-1)]?.pointer?.drop(t)}pinch(e){let t=this,{chart:n,hasZoom:r,lastTouches:i}=t,a=[].map.call(e.touches||[],e=>t.normalize(e)),o=a.length,s=o===1&&(t.inClass(e.target,`highcharts-tracker`)&&n.runTrackerClick||t.runChartClick),c=n.tooltip,l=o===1&&Q(c?.options.followTouchMove,!0);o>1?t.initiated=!0:l&&(t.initiated=!1),r&&t.initiated&&!s&&e.cancelable!==!1&&e.preventDefault(),e.type===`touchstart`?(t.pinchDown=a,t.res=!0,n.mouseDownX=e.chartX):l?this.runPointActions(t.normalize(e)):i&&(K(n,`touchpan`,{originalEvent:e,touches:a},()=>{let t=e=>{let t=e[0],n=e[1]||t;return{x:t.chartX,y:t.chartY,width:n.chartX-t.chartX,height:n.chartY-t.chartY}};n.transform({axes:n.axes.filter(e=>e.zoomEnabled&&(this.zoomHor&&e.horiz||this.zoomVert&&!e.horiz)),to:t(a),from:t(i),trigger:e.type})}),t.res&&(t.res=!1,this.reset(!1,0))),t.lastTouches=a}reset(e,t){let n=this,r=n.chart,i=r.hoverSeries,a=r.hoverPoint,o=r.hoverPoints,s=r.tooltip,c=s?.shared?o:a;e&&c&&RR(c).forEach(function(t){t.series.isCartesian&&t.plotX===void 0&&(e=!1)}),e?s&&c&&RR(c).length&&(s.refresh(c),s.shared&&o?o.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):a&&(a.setState(a.state,!0),r.axes.forEach(function(e){e.crosshair&&a.series[e.coll]===e&&e.drawCrosshair(null,a)}))):(a&&a.onMouseOut(),o&&o.forEach(function(e){e.setState()}),i&&i.onMouseOut(),s&&s.hide(t),n.unDocMouseMove&&=n.unDocMouseMove(),r.axes.forEach(function(e){e.hideCrosshair()}),r.hoverPoints=r.hoverPoint=void 0)}runPointActions(t,n,r){let i=this,a=i.chart,o=a.series,s=a.tooltip?.options.enabled?a.tooltip:void 0,c=s?s.shared:!1,l=n||a.hoverPoint,u=l?.series||a.hoverSeries,d=(!t||t.type!==`touchmove`)&&(!!n||u?.directTouch&&i.isDirectTouch),f=this.getHoverData(l,u,o,d,c,t);l=f.hoverPoint,u=f.hoverSeries;let p=f.hoverPoints,m=u?.tooltipOptions.followPointer&&!u.tooltipOptions.split,h=c&&u&&!u.noSharedTooltip;if(l&&(r||l!==a.hoverPoint||s?.isHidden)){if((a.hoverPoints||[]).forEach(function(e){p.indexOf(e)===-1&&e.setState()}),a.hoverSeries!==u&&u.onMouseOver(),i.applyInactiveState(p),(p||[]).forEach(function(e){e.setState(`hover`)}),a.hoverPoint&&a.hoverPoint.firePointEvent(`mouseOut`),!l.series)return;a.hoverPoints=p,a.hoverPoint=l,l.firePointEvent(`mouseOver`,void 0,()=>{s&&l&&s.refresh(h?p:l,t)})}else if(m&&s&&!s.isHidden){let e=s.getAnchor([{}],t);a.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:e[0],plotY:e[1]})}i.unDocMouseMove||(i.unDocMouseMove=H(a.container.ownerDocument,`mousemove`,t=>SV[e.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(t)),i.eventsToUnbind.push(i.unDocMouseMove)),a.axes.forEach(function(e){let n=e.crosshair?.snap??!0,r;n&&(r=a.hoverPoint,(!r||r.series[e.coll]!==e)&&(r=wR(p,t=>t.series?.[e.coll]===e))),r||!n?e.drawCrosshair(t,r):e.hideCrosshair()})}setDOMEvents(){let t=this.chart.container,n=t.ownerDocument,r=e=>e.parentElement||e.getRootNode()?.host?.parentElement;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(H(t,`mouseenter`,this.onContainerMouseEnter.bind(this)),H(t,`mouseleave`,this.onContainerMouseLeave.bind(this))),e.unbindDocumentMouseUp.some(e=>e.doc===n)||e.unbindDocumentMouseUp.push({doc:n,unbind:H(n,`mouseup`,this.onDocumentMouseUp.bind(this))});let i=r(this.chart.renderTo);for(;i&&i.tagName!==`BODY`;)this.eventsToUnbind.push(H(i,`scroll`,()=>{delete this.chartPosition})),i=r(i);this.eventsToUnbind.push(H(t,`touchstart`,this.onContainerTouchStart.bind(this),{passive:!1}),H(t,`touchmove`,this.onContainerTouchMove.bind(this),{passive:!1})),e.unbindDocumentTouchEnd||=H(n,`touchend`,this.onDocumentTouchEnd.bind(this),{passive:!1}),this.setPointerCapture(),H(this.chart,`redraw`,this.setPointerCapture.bind(this))}setPointerCapture(){if(!wV)return;let e=this,t=e.pointerCaptureEventsToUnbind,n=e.chart,r=n.container,i=Q(n.options.tooltip?.followTouchMove,!0)&&n.series.some(e=>e.options.findNearestPointBy.indexOf(`y`)>-1);!e.hasPointerCapture&&i?(t.push(H(r,`pointerdown`,e=>{e.target?.hasPointerCapture(e.pointerId)&&e.target?.releasePointerCapture(e.pointerId)}),H(r,`pointermove`,e=>{n.pointer?.getPointFromEvent(e)?.onMouseOver(e)})),n.styledMode||U(r,{"touch-action":`none`}),r.className+=` highcharts-no-touch-action`,e.hasPointerCapture=!0):e.hasPointerCapture&&!i&&(t.forEach(e=>e()),t.length=0,n.styledMode||U(r,{"touch-action":Q(n.options.chart.style?.[`touch-action`],`manipulation`)}),r.className=r.className.replace(` highcharts-no-touch-action`,``),e.hasPointerCapture=!1)}setHoverChartIndex(t){let n=this.chart,r=V.charts[Q(e.hoverChartIndex,-1)];if(r&&r!==n){let e={relatedTarget:n.container};t&&!t?.relatedTarget&&Object.assign({},t,e),r.pointer?.onContainerMouseLeave(t||e)}r?.mouseIsDown||(e.hoverChartIndex=n.index)}touch(e,t){let{chart:n,pinchDown:r=[]}=this,i,a;this.setHoverChartIndex(),e=this.normalize(e),e.touches.length===1?(a=n.isInsidePlot(e.chartX-n.plotLeft,e.chartY-n.plotTop,{visiblePlotOnly:!0}),a&&!n.exporting?.openMenu?(t&&this.runPointActions(e),e.type===`touchmove`&&(this.hasPinchMoved=i=r[0]?(r[0].chartX-e.chartX)**2+(r[0].chartY-e.chartY)**2>=16:!1),Q(i,!0)&&this.pinch(e)):t&&this.reset()):e.touches.length===2&&this.pinch(e)}touchSelect(e){return!!(this.chart.zooming.singleTouch&&e.touches&&e.touches.length===1)}zoomOption(e){let t=this.chart,n=t.inverted,r=t.zooming.type||``,i,a;/touch/.test(e.type)&&(r=Q(t.zooming.pinchType,r)),this.zoomX=i=/x/.test(r),this.zoomY=a=/y/.test(r),this.zoomHor=i&&!n||a&&n,this.zoomVert=a&&!n||i&&n,this.hasZoom=(i||a)&&TV(e,t.zooming.key)}};EV.unbindDocumentMouseUp=[],(function(e){function t(t){PR(CV,`Core.Pointer`)&&H(t,`beforeRender`,function(){this.pointer=new e(this,this.options)})}e.compose=t})(EV||={});var DV=EV;function OV(e,t,n){return Array.isArray(e)?(e.length=t,e):e[n?`subarray`:`slice`](0,t)}function kV(e,t,n,r,i=[]){if(Array.isArray(e))return Array.isArray(i)||(i=Array.from(i)),{removed:e.splice(t,n,...i),array:e};let a=Object.getPrototypeOf(e).constructor,o=e[r?`subarray`:`slice`](t,t+n),s=new a(e.length-n+i.length);return s.set(e.subarray(0,t),0),s.set(i,t),s.set(e.subarray(t+n),t+i.length),{removed:o,array:s}}function AV(e,t){switch(typeof e){case`boolean`:return+!!e;case`number`:return isNaN(e)&&!t?null:e;default:return e=parseFloat(`${e??``}`),isNaN(e)&&!t?null:e}}var{setLength:jV,splice:MV}={convertToNumber:AV,setLength:OV,splice:kV},NV=class{constructor(e={}){this.autoId=!e.id,this.columns={},this.id=e.id||YR(),this.rowCount=0,this.versionTag=YR();let t=0;Z(e.columns||{},(e,n)=>{this.columns[n]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(e){this.rowCount=e,Z(this.columns,(t,n)=>{t.length!==e&&(this.columns[n]=jV(t,e))})}deleteRows(e,t=1){if(t>0&&e{this.columns[i]=MV(r,e,t).array,n=r.length}),this.rowCount=n}K(this,`afterDeleteRows`,{rowIndex:e,rowCount:t}),this.versionTag=YR()}getColumn(e,t){return this.columns[e]}getColumns(e,t){return(e||Object.keys(this.columns)).reduce((e,t)=>(e[t]=this.columns[t],e),{})}getRow(e,t){return(t||Object.keys(this.columns)).map(t=>this.columns[t]?.[e])}setColumn(e,t=[],n=0,r){this.setColumns({[e]:t},n,r)}setColumns(e,t,n){let r=this.rowCount;Z(e,(e,t)=>{this.columns[t]=e.slice(),r=e.length}),this.applyRowCount(r),n?.silent||(K(this,`afterSetColumns`),this.versionTag=YR())}setRow(e,t=this.rowCount,n,r){let{columns:i}=this,a=n?this.rowCount+1:t+1,o=Object.keys(e);if(r?.addColumns!==!1)for(let e=0,t=o.length;e{!o&&r?.addColumns!==!1&&(o=Array(a)),o&&(n?o=MV(o,t,0,!0,[e[s]??null]).array:o[t]=e[s]??null,i[s]=o)}),a>this.rowCount&&this.applyRowCount(a),r?.silent||(K(this,`afterSetRows`),this.versionTag=YR())}getModified(){return this.modified||this}},PV;(function(e){function t(e,t){n.call(this,e,t,!0)}e.areaMarker=t;function n(e,t,n){let r=this.legendItem=this.legendItem||{},{chart:i,options:a}=this,{baseline:o=0,symbolWidth:s,symbolHeight:c}=e,l=this.symbol||`circle`,u=c/2,d=i.renderer,f=r.group,p=o-Math.round((e.fontMetrics?.b||c)*(n?.4:.3)),m={},h,g=a.marker,_=0;if(i.styledMode||(m[`stroke-width`]=Math.min(a.lineWidth||0,24),a.dashStyle?m.dashstyle=a.dashStyle:a.linecap!==`square`&&(m[`stroke-linecap`]=`round`)),r.line=d.path().addClass(`highcharts-graph`).attr(m).add(f),n&&(r.area=d.path().addClass(`highcharts-area`).add(f)),m[`stroke-linecap`]&&(_=Math.min(r.line.strokeWidth(),s)/2),s){let e=[[`M`,_,p],[`L`,s-_,p]];r.line.attr({d:e}),r.area?.attr({d:[...e,[`L`,s-_,o],[`L`,_,o]]})}if(g&&g.enabled!==!1&&s){let e=Math.min(Q(g.radius,u),u);l.indexOf(`url`)===0&&(g=X(g,{width:c,height:c}),e=0),r.symbol=h=d.symbol(l,s/2-e,p-e,2*e,2*e,G({context:`legend`},g)).addClass(`highcharts-point`).add(f),h.isMarker=!0}}e.lineMarker=n})(PV||={});var FV=PV,IV={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:`#ffffff`,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:`#cccccc`,lineColor:`#000000`,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:`center`,borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:e}=this.series.chart;return typeof this.y==`number`?e(this.y,-1):``},padding:5,style:{fontSize:`0.7em`,fontWeight:`bold`,color:`contrast`,textOutline:`1px contrast`},verticalAlign:`bottom`,x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:`x`},{defaultOptions:LV}=cz,RV;(function(e){e.seriesTypes=V.seriesTypes;function t(t,n){let r=LV.plotOptions||{},i=n.defaultOptions,a=n.prototype;return a.type=t,a.pointClass||=bV,e.seriesTypes[t]?!1:(i&&(r[t]=i),e.seriesTypes[t]=n,!0)}e.registerSeriesType=t;function n(n,r,i,a,o){let s=LV.plotOptions||{};if(r||=``,s[n]=X(s[r],i),delete e.seriesTypes[n],t(n,vR(e.seriesTypes[r]||V.Series,a)),e.seriesTypes[n].prototype.type=n,o){class t extends bV{}G(t.prototype,o),e.seriesTypes[n].prototype.pointClass=t}return e.seriesTypes[n]}e.seriesType=n})(RV||={});var zV=RV,{animObject:BV,setAnimation:VV}=Cz,{defaultOptions:HV}=cz,{registerEventOptions:UV}=HB,{svg:WV,win:GV}=V,{seriesTypes:KV}=zV,{format:qV}=Bz,JV=class e{constructor(){this.zoneAxis=`y`}init(e,t){K(this,`init`,{options:t}),this.dataTable??=new NV;let n=this,r=e.series;this.eventsToUnbind=[],n.chart=e,n.options=n.setOptions(t);let i=n.options,a=i.visible!==!1;n.linkedSeries=[],n.bindAxes(),G(n,{name:i.name,state:``,visible:a,selected:i.selected===!0}),UV(this,i),(i.events?.click||i.point?.events?.click||i.allowPointSelect)&&(e.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.isCartesian&&(e.hasCartesianSeries=!0);let o;r.length&&(o=r[r.length-1]),n._i=Q(o?._i,-1)+1,n.opacity=n.options.opacity,e.orderItems(`series`,KR(this,r)),i.dataSorting?.enabled?n.setDataSortingOptions():!n.points&&!n.data&&n.setData(i.data,!1),K(this,`afterInit`)}is(e){return KV[e]&&this instanceof KV[e]}bindAxes(){let e=this,t=e.options,n=e.chart,r;K(this,`bindAxes`,null,function(){(e.axisTypes||[]).forEach(function(i){(n[i]||[]).forEach(function(n){r=n.options,(Q(t[i],0)===n.index||t[i]!==void 0&&t[i]===r.id)&&(KR(e,n.series),e[i]=n,n.isDirty=!0)}),!e[i]&&e.optionalAxis!==i&&GR(18,!0,n)})}),K(this,`afterBindAxes`)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(e,t){let n=e.marker,r=t.marker||{};return n&&(r.enabled&&!n.enabled||r.symbol!==n.symbol||r.height!==n.height||r.width!==n.width)}autoIncrement(e){let t=this.options,{pointIntervalUnit:n,relativeXValue:r}=this.options,i=this.chart.time,a=this.xIncrement??i.parse(t.pointStart)??0,o;if(this.pointInterval=o=Q(this.pointInterval,t.pointInterval,1),r&&q(e)&&(o*=e),n){let e=i.toParts(a);n===`day`?e[2]+=o:n===`month`?e[1]+=o:n===`year`&&(e[0]+=o),o=i.makeTime.apply(i,e)-a}return r&&q(e)?a+o:(this.xIncrement=a+o,a)}setDataSortingOptions(){let e=this.options;G(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),W(e.pointRange)||(e.pointRange=1)}setOptions(e){let t=this.chart,n=t.options.plotOptions,r=t.userOptions||{},i=X(e),a=t.styledMode,o={plotOptions:n,userOptions:i},s;K(this,`setOptions`,o);let c=o.plotOptions[this.type],l=r.plotOptions||{},u=l.series||{},d=HV.plotOptions[this.type]||{},f=l[this.type]||{};c.dataLabels=this.mergeArrays(d.dataLabels,c.dataLabels),this.userOptions=o.userOptions;let p=X(c,n.series,f,i);this.tooltipOptions=X(HV.tooltip,HV.plotOptions.series?.tooltip,d?.tooltip,t.userOptions.tooltip,l.series?.tooltip,f.tooltip,i.tooltip),this.stickyTracking=Q(i.stickyTracking,f.stickyTracking,u.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:p.stickyTracking),c.marker===null&&delete p.marker;let{negativeColor:m,negativeFillColor:h,zoneAxis:g=`y`,zones:_}=p,v=this.zones=(_||[]).map(e=>({...e}));return this.zoneAxis=g,(m||h)&&!_&&(s={value:p[g+`Threshold`]||p.threshold||0,className:`highcharts-negative`},a||(typeof m!=`boolean`&&(s.color=m),s.fillColor=h),v.push(s)),v.length&&W(v[v.length-1].value)&&v.push(a?{}:{color:this.color,fillColor:this.fillColor}),K(this,`afterSetOptions`,{options:p}),p}getName(){return this.options.name??qV(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(e,t,n){let r=this.chart,i=`${e}Index`,a=`${e}Counter`,o=n?.length||r.options.chart.colorCount,s,c;t||(c=Q(e===`color`?this.options.colorIndex:void 0,this[i]),W(c)?s=c:(r.series.length||(r[a]=0),s=r[a]%o,r[a]+=1),n&&(t=n[s])),s!==void 0&&(this[i]=s),this[e]=t}getColor(){this.chart.styledMode?this.getCyclic(`color`):this.options.colorByPoint?this.color=`#cccccc`:this.getCyclic(`color`,this.options.color||HV.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let e=this.options.marker;this.getCyclic(`symbol`,e.symbol,this.chart.options.symbols)}getColumn(e,t){return(t?this.dataTable.getModified():this.dataTable).getColumn(e,!0)||[]}findPointIndex(e,t){let{id:n,x:r}=e,i=this.points,a=this.options.dataSorting,o=this.cropStart||0,s,c,l;if(n){let e=this.chart.get(n);e instanceof bV&&(s=e)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let t=t=>!t.touched&&t.index===e.index;if(a?.matchByName?t=t=>!t.touched&&t.name===e.name:this.options.relativeXValue&&(t=t=>!t.touched&&t.options.x===e.x),s=wR(i,t),!s)return}return s&&(l=s?.index,l!==void 0&&(c=!0)),l===void 0&&q(r)&&(l=this.getColumn(`x`).indexOf(r,t)),l!==-1&&l!==void 0&&this.cropped&&(l=l>=o?l-o:l),!c&&q(l)&&i[l]?.touched&&(l=void 0),l}updateData(e,t){let{options:n,requireSorting:r}=this,i=n.dataSorting,a=this.points,o=[],s=e.length===a.length,c=this.xIncrement,l,u,d,f,p=!0;if(this.xIncrement=null,e.forEach((e,t)=>{let c=W(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},{id:u,x:d}=c,p;u||q(d)?(p=this.findPointIndex(c,f),p===-1||p===void 0?o.push(e):a[p]&&e!==n.data?.[p]?(a[p].update(e,!1,void 0,!1),a[p].touched=!0,r&&(f=p+1)):a[p]&&(a[p].touched=!0),(!s||t!==p||i?.enabled||this.hasDerivedData)&&(l=!0)):o.push(e)},this),l)for(u=a.length;u--;)d=a[u],d&&!d.touched&&d.remove?.(!1,t);else s&&!i?.enabled?(e.forEach((e,t)=>{e!==a[t].y&&!a[t].destroyed&&a[t].update(e,!1,void 0,!1)}),o.length=0):p=!1;if(a.forEach(e=>{e&&(e.touched=!1)}),!p)return!1;o.forEach(e=>{this.addPoint(e,!1,void 0,void 0,!1)},this);let m=this.getColumn(`x`);return c!==null&&this.xIncrement===null&&m.length&&(this.xIncrement=cR(m),this.autoIncrement()),!0}dataColumnKeys(){return[`x`,...this.pointArrayMap||[`y`]]}setData(e,t=!0,n,r){let i=this,a=i.points,o=a?.length||0,s=i.options,c=i.chart,l=s.dataSorting,u=i.xAxis,d=s.turboThreshold,f=this.dataTable,p=this.dataColumnKeys(),m=i.pointValKey||`y`,h=(i.pointArrayMap||[]).length,g=s.keys,_,v,y=0,b=1,x;c.options.chart.allowMutatingData||(s.data&&delete i.options.data,i.userOptions.data&&delete i.userOptions.data,x=X(!0,e)),e=x||e||[];let S=e.length;if(l?.enabled&&(e=this.sortData(e)),r!==!1&&S&&o&&!i.cropped&&!i.hasGroupedData&&i.visible&&!i.boosted&&(v=this.updateData(e,n)),!v){i.xIncrement=null,i.colorCounter=0;let t=d&&!s.relativeXValue&&S>d;if(t){let n=i.getFirstValidPoint(e),r=i.getFirstValidPoint(e,S-1,-1),a=e=>!!(OR(e)&&(g||q(e[0])));if(q(n)&&q(r)){let t=[],n=[];for(let r of e)t.push(this.autoIncrement()),n.push(r);f.setColumns({x:t,[m]:n})}else if(a(n)&&a(r))if(h){let t=+(n.length===h),r=Array(p.length).fill(0).map(()=>[]);for(let n of e){t&&r[0].push(this.autoIncrement());for(let e=t;e<=h;e++)r[e]?.push(n[e-t])}f.setColumns(p.reduce((e,t,n)=>(e[t]=r[n],e),{}))}else{g&&(y=g.indexOf(`x`),b=g.indexOf(`y`),y=y>=0?y:0,b=b>=0?b:1),n.length===1&&(b=0);let t=[],r=[];for(let n of e)y===b?t.push(this.autoIncrement()):t.push(n[y]??n.x??null),r.push(n[b]??n.y??null);f.setColumns({x:t,[m]:r})}else t=!1}if(!t){let t=p.reduce((e,t)=>(e[t]=[],e),{});for(_=0;_{let r=SR(n,e),i=SR(n,t);return ir)}).forEach(function(e,t){e.x=t},this),t.linkedSeries&&t.linkedSeries.forEach(function(t){let n=t.options,i=n.data;!n.dataSorting?.enabled&&i&&(i.forEach(function(n,a){i[a]=r(t,n),e[a]&&(i[a].x=e[a].x,i[a].index=a)}),t.setData(i,!1))}),e}getProcessedData(e){let t=this,{dataTable:n,isCartesian:r,options:i,xAxis:a}=t,o=i.cropThreshold,s=e||t.getExtremesFromAll,c=a?.logarithmic,l=n.rowCount,u,d,f=0,p,m,h,g=t.getColumn(`x`),_=n,v=!1;a&&(p=a.getExtremes(),m=p.min,h=p.max,v=!!(a.categories&&!a.names.length),r&&t.sorted&&!s&&(!o||l>o||t.forceCrop)&&(g[l-1]h?_=new NV:t.getColumn(t.pointValKey||`y`).length&&(g[0]h)&&(u=this.cropData(n,m,h),_=u.modified,f=u.start,d=!0))),g=_.getColumn(`x`)||[];let y=bR([c?g.map(c.log2lin):g],()=>t.requireSorting&&!v&&GR(15,!1,t.chart));return{modified:_,cropped:d,cropStart:f,closestPointRange:y}}processData(e){let t=this,n=t.xAxis,r=t.dataTable;if(t.isCartesian&&!t.isDirty&&!n.isDirty&&!t.yAxis.isDirty&&!e)return!1;let i=t.getProcessedData();r.modified=i.modified,t.cropped=i.cropped,t.cropStart=i.cropStart,t.closestPointRange=t.basePointRange=i.closestPointRange,K(t,`afterProcessData`)}cropData(e,t,n){let r=e.getColumn(`x`,!0)||[],i=r.length,a={},o,s,c=0,l=i;for(o=0;o=t){c=Math.max(0,o-1);break}for(s=o;sn){l=s+1;break}for(let t of this.dataColumnKeys()){let n=e.getColumn(t,!0);n&&(a[t]=n.slice(c,l))}return{modified:new NV({columns:a}),start:c,end:l}}generatePoints(){let e=this,t=e.options,n=e.processedData||t.data,r=e.dataTable.getModified(),i=e.getColumn(`x`,!0),a=e.pointClass,o=r.rowCount,s=e.cropStart||0,c=e.hasGroupedData,l=t.keys,u=[],d=t.dataGrouping?.groupAll?s:0,f=e.pointArrayMap||[`y`],p=this.dataColumnKeys(),m,h,g,_,v=e.data,y;if(!v&&!c){let t=[];t.length=n?.length||0,v=e.data=t}for(l&&c&&(e.options.keys=!1),_=0;_a.getColumn(e,!0)||[])||[],l=this.getColumn(`x`,!0),u=[],d=this.requireSorting&&!this.is(`column`)?1:0,f=r?r.positiveValuesOnly:!1,p=i||this.cropped||!n,m,h,g,_=0,v=0;for(n&&(m=n.getExtremes(),_=m.min,v=m.max),g=0;g=_&&(l[g-d]||h)<=v)for(let e of c){let t=e[g];q(t)&&(t>0||!f)&&u.push(t)}let y={activeYData:u,dataMin:sR(u),dataMax:cR(u)};return K(this,`afterGetExtremes`,{dataExtremes:y}),y}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e,t=0,n=1){let r=e.length,i=t;for(;i>=0&&i1)&&(a.step=function(e,t){n&&n.apply(t,arguments),t.prop===`width`&&c?.element&&c.attr(i?`height`:`width`,e+99)}),s.addClass(`highcharts-animating`).animate(e,a)}}afterAnimate(){this.setClip(),Z(this.chart.sharedClips,(e,t,n)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete n[t])}),this.finishedAnimating=!0,K(this,`afterAnimate`)}drawPoints(e=this.points){let t=this,n=t.chart,r=n.styledMode,{colorAxis:i,options:a}=t,o=a.marker,s=a.nullInteraction,c=t[t.specialGroup||`markerGroup`],l=t.xAxis,u=Q(o.enabled,!l||l.isRadial?!0:null,t.closestPointRangePx>=o.enabledThreshold*o.radius),d,f,p,m,h,g,_;if(o.enabled!==!1||t._hasPointMarkers)for(d=0;d0||f.hasImage)&&(f.graphic=p=n.renderer.symbol(e,_.x,_.y,_.width,_.height,g?h:o).add(c),t.enabledDataSorting&&n.hasRendered&&(p.attr({x:f.startXPos}),m=`animate`)),p&&m===`animate`&&p[a?`show`:`hide`](a).animate(_),p){let e=t.pointAttribs(f,r||!f.selected?void 0:`select`);r?i&&p.css({fill:e.fill}):p[m](e)}p&&p.addClass(f.getClassName(),!0)}else p&&(f.graphic=p.destroy())}}markerAttribs(e,t){let n=this.options,r=n.marker,i=e.marker||{},a=i.symbol||r.symbol,o={},s,c,l=Q(i.radius,r?.radius);t&&(s=r?.states?.[t],c=i.states?.[t],l=Q(c?.radius,s?.radius,l&&l+(s?.radiusPlus||0))),e.hasImage=a&&a.indexOf(`url`)===0,e.hasImage&&(l=0);let u=e.pos();return q(l)&&u&&(n.crisp&&(u[0]=pR(u[0],e.hasImage?0:a===`rect`?r?.lineWidth||0:1)),o.x=u[0]-l,o.y=u[1]-l),l&&(o.width=o.height=2*l),o}pointAttribs(e,t){let n=this.options,r=n.marker,i=e?.options,a=i?.marker||{},o=i?.color,s=e?.color,c=e?.zone?.color,l,u,d=this.color,f,p,m=Q(a.lineWidth,r.lineWidth),h=e?.isNull&&n.nullInteraction?0:1;return d=o||c||s||d,f=a.fillColor||r.fillColor||d,p=a.lineColor||r.lineColor||d,t||=`normal`,t&&(l=r.states[t]||{},u=a.states&&a.states[t]||{},m=Q(u.lineWidth,l.lineWidth,m+Q(u.lineWidthPlus,l.lineWidthPlus,0)),f=u.fillColor||l.fillColor||f,p=u.lineColor||l.lineColor||p,h=Q(u.opacity,l.opacity,h)),{stroke:p,"stroke-width":m,fill:f,opacity:h}}destroy(e){let t=this,n=t.chart,r=/AppleWebKit\/533/.test(GV.navigator.userAgent),i=t.data||[],a,o,s;for(K(t,`destroy`,{keepEventsForUpdate:e}),this.removeEvents(e),(t.axisTypes||[]).forEach(function(e){s=t[e],s?.series&&(_R(s.series,t),s.isDirty=s.forceRedraw=!0)}),t.legendItem&&t.chart.legend.destroyItem(t),o=i.length;o--;)i[o]?.destroy?.();for(let e of t.zones)mR(e,void 0,!0);TR(t.animationTimeout),Z(t,function(e,t){e instanceof tB&&!e.survive&&(a=r&&t===`group`?`hide`:`destroy`,e[a]())}),n.hoverSeries===t&&(n.hoverSeries=void 0),_R(n.series,t),n.orderItems(`series`),Z(t,function(n,r){(!e||r!==`hcEvents`)&&delete t[r]})}applyZones(){let e=this,{area:t,chart:n,graph:r,zones:i,points:a,xAxis:o,yAxis:s,zoneAxis:c}=e,{inverted:l,renderer:u}=n,d=this[`${c}Axis`],{isXAxis:f,len:p=0,minPointOffset:m=0}=d||{},h=(r?.strokeWidth()||0)/2+1,g=(e,t=0,n=0)=>{l&&(n=p-n);let{translated:r=0,lineClip:i}=e,a=n-r;i?.push([`L`,t,Math.abs(a){e.forEach((t,n)=>{(t[0]===`M`||t[0]===`L`)&&(e[n]=[t[0],f?p-t[1]:t[1],f?t[2]:p-t[2]])})};if(i.forEach(t=>{t.lineClip=[],t.translated=uR(d.toPixels(Q(t.value,e),!0)||0,0,p)}),r&&!this.showLine&&r.hide(),t&&t.hide(),c===`y`&&a.length{let i=e.lineClip||[],a=Math.round(e.translated||0);o.reversed&&i.reverse();let{clip:c,simpleClip:d}=e,p=0,m=0,g=o.len,v=s.len;f?(p=a,g=_):(m=a,v=_);let y=[[`M`,p,m],[`L`,g,m],[`L`,g,v],[`L`,p,v],[`Z`]],b=[y[0],...i,y[1],y[2],...h,y[3],y[4]];h=i.reverse(),_=a,l&&(n(b),t&&n(y)),c?(c.animate({d:b}),d?.animate({d:y})):(c=e.clip=u.path(b),t&&(d=e.simpleClip=u.path(y))),r&&e.graph?.clip(c),t&&e.area?.clip(d)})}else e.visible&&(r&&r.show(),t&&t.show())}plotGroup(e,t,n,r,i){let a=this[e],o=!a,s={visibility:n,zIndex:r||.1};return W(this.opacity)&&!this.chart.styledMode&&this.state!==`inactive`&&(s.opacity=this.opacity),a||(this[e]=a=this.chart.renderer.g().add(i)),a.addClass(`highcharts-`+t+` highcharts-series-`+this.index+` highcharts-`+this.type+`-series `+(W(this.colorIndex)?`highcharts-color-`+this.colorIndex+` `:``)+(this.options.className||``)+(a.hasClass(`highcharts-tracker`)?` highcharts-tracker`:``),!0),a.attr(s)[o?`attr`:`animate`](this.getPlotBox(t)),a}getPlotBox(e){let t=this.xAxis,n=this.yAxis,r=this.chart,i=r.inverted&&!r.polar&&t&&this.invertible&&e===`series`;r.inverted&&(t=n,n=this.xAxis);let a={scale:1,translateX:t?t.left:r.plotLeft,translateY:n?n.top:r.plotTop,name:e};K(this,`getPlotBox`,a);let{scale:o,translateX:s,translateY:c}=a;return{translateX:s,translateY:c,rotation:i?90:0,rotationOriginX:i?o*(t.len-n.len)/2:0,rotationOriginY:i?o*(t.len+n.len)/2:0,scaleX:i?-o:o,scaleY:o}}removeEvents(e){let{eventsToUnbind:t}=this;e||LR(this),t.length&&=(t.forEach(e=>{e()}),0)}render(){let e=this,{chart:t,options:n,hasRendered:r}=e,i=BV(n.animation),a=e.visible?`inherit`:`hidden`,o=n.zIndex,s=t.seriesGroup,c=e.finishedAnimating?0:i.duration;K(this,`render`),e.plotGroup(`group`,`series`,a,o,s),e.markerGroup=e.plotGroup(`markerGroup`,`markers`,a,o,s),n.clip!==!1&&e.setClip(),c&&e.animate?.(!0),e.drawGraph&&(e.drawGraph(),e.applyZones()),e.visible&&e.drawPoints(),e.drawDataLabels?.(),e.redrawPoints?.(),n.enableMouseTracking&&e.drawTracker?.(),c&&e.animate?.(),r||(c&&i.defer&&(c+=i.defer),e.animationTimeout=BR(()=>{e.afterAnimate()},c||0)),e.isDirty=!1,e.hasRendered=!0,K(e,`afterRender`)}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,t){let{xAxis:n,yAxis:r}=this,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:i?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)}buildKDTree(e){this.buildingKdTree=!0;let t=this,n=t.options,r=n.findNearestPointBy.indexOf(`y`)>-1?2:1;function i(e,n,r){let a=e?.length,o,s;if(a)return o=t.kdAxisArray[n%r],e.sort((e,t)=>(e[o]||0)-(t[o]||0)),s=Math.floor(a/2),{point:e[s],left:i(e.slice(0,s),n+1,r),right:i(e.slice(s+1),n+1,r)}}function a(){t.kdTree=i(t.getValidPoints(void 0,!t.directTouch,n?.nullInteraction),r,r),t.buildingKdTree=!1}delete t.kdTree,BR(a,n.kdNow||e?.type===`touchstart`?0:1)}searchKDTree(e,t,n,r,i){let a=this,[o,s]=this.kdAxisArray,c=t?`distX`:`dist`,l=(a.options.findNearestPointBy||``).indexOf(`y`)>-1?2:1,u=!!a.isBubble,d=r||((e,t,n)=>{let r=e[n]||0,i=t[n]||0;return[r===i&&e.index>t.index||re=0&&a<=(r?r.len:t.plotHeight)&&i>=0&&i<=(n?n.len:t.plotWidth)}drawTracker(){let e=this,t=e.options,n=t.trackByArea,r=[].concat((n?e.areaPath:e.graphPath)||[]),i=e.chart,a=i.pointer,o=i.renderer,s=i.options.tooltip?.snap||0,c=()=>{t.enableMouseTracking&&i.hoverSeries!==e&&e.onMouseOver()},l=`rgba(192,192,192,`+(WV?1e-4:.002)+`)`,u=e.tracker;u?u.attr({d:r}):e.graph&&(e.tracker=u=o.path(r).attr({visibility:e.visible?`inherit`:`hidden`,zIndex:2}).addClass(n?`highcharts-tracker-area`:`highcharts-tracker-line`).add(e.group),i.styledMode||u.attr({"stroke-linecap":`round`,"stroke-linejoin":`round`,stroke:l,fill:n?l:`none`,"stroke-width":e.graph.strokeWidth()+(n?0:2*s)}),[e.tracker,e.markerGroup,...e.dataLabelsGroups||[]].forEach(e=>{e&&(e.addClass(`highcharts-tracker`).on(`mouseover`,c).on(`mouseout`,e=>{a?.onTrackerMouseOut(e)}),t.cursor&&!i.styledMode&&e.css({cursor:t.cursor}),e.on(`touchstart`,c))})),K(this,`afterDrawTracker`)}addPoint(e,t,n,r,i){let a=this,o=a.options,{chart:s,data:c,dataTable:l,xAxis:u}=a,d=u?.hasNames&&u.names,f=o.data,p=a.getColumn(`x`),m,h;t=Q(t,!0);let g={series:a};a.pointClass.prototype.applyOptions.apply(g,[e]);let _=g.x;if(h=p.length,a.requireSorting&&__;)h--;l.setRow(g,h,!0,{addColumns:!1}),d&&g.name&&(d[_]=g.name),f?.splice(h,0,e),(m||a.processedData)&&(a.data.splice(h,0,null),a.processData()),o.legendType===`point`&&a.generatePoints(),n&&(c[0]&&c[0].remove?c[0].remove(!1):([c,f].filter(W).forEach(e=>{e.shift()}),l.deleteRows(0))),i!==!1&&K(a,`addPoint`,{point:g}),a.isDirty=!0,a.isDirtyData=!0,t&&s.redraw(r)}removePoint(e,t,n){let r=this,{chart:i,data:a,points:o,dataTable:s}=r,c=a[e],l=function(){[o?.length===a.length?o:void 0,a,r.options.data].filter(W).forEach(t=>{t.splice(e,1)}),s.deleteRows(e),c?.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&i.redraw()};VV(n,i),t=Q(t,!0),c?c.firePointEvent(`remove`,null,l):l()}remove(e,t,n,r){let i=this,a=i.chart;function o(){i.destroy(r),a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(r),Q(e,!0)&&a.redraw(t)}n===!1?o():K(i,`remove`,null,o)}update(t,n){t=gR(t,this.userOptions),K(this,`update`,{options:t});let r=this,i=r.chart,a=r.userOptions,o=r.initialType||r.type,s=i.options.plotOptions,c=KV[o].prototype,l=[`dataLabelsGroup`,`dataLabelsGroups`,`dataLabelsParentGroups`,`group`,`markerGroup`,`transformGroup`],u=[`dataGrouping`,`pointStart`,`pointInterval`,`pointIntervalUnit`,`keys`],d=r.finishedAnimating&&{animation:!1},f={},p,m,h=e.keepProps.slice(),g=t.type||a.type||i.options.chart.type,_=!(this.hasDerivedData||g&&g!==this.type||t.keys!==void 0||t.pointStart!==void 0||t.pointInterval!==void 0||t.relativeXValue!==void 0||t.joinBy||t.mapData||u.some(e=>r.hasOptionChanged(e)));g||=o,_?(h.push.apply(h,e.keepPropsForPoints),t.visible!==!1&&h.push(`area`,`graph`),r.parallelArrays.forEach(function(e){h.push(e+`Data`)}),t.data&&(t.dataSorting&&G(r.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t.dataLabels&&a.dataLabels&&(t.dataLabels=this.mergeArrays(a.dataLabels,t.dataLabels)),t=X(a,{index:a.index===void 0?r.index:a.index,pointStart:s?.series?.pointStart??a.pointStart??r.getColumn(`x`)[0]},!_&&{data:r.options.data},t,d),_&&t.data&&(t.data=r.options.data),h=l.concat(h),h.forEach(function(e){h[e]=r[e],delete r[e]});let v=!1;if(KV[g]){if(v=g!==r.type,r.remove(!1,!1,!1,!0),v)if(i.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(r,KV[g].prototype);else{let e=Object.hasOwnProperty.call(r,`hcEvents`)&&r.hcEvents;for(m in c)r[m]=void 0;G(r,KV[g].prototype),e?r.hcEvents=e:delete r.hcEvents}}else GR(17,!0,i,{missingModuleFor:g});if(h.forEach(function(e){r[e]=h[e]}),r.init(i,t),_&&this.points){p=r.options,p.visible===!1?(f.graphic=1,f.dataLabel=1):(this.hasMarkerChanged(p,a)&&(f.graphic=1),r.hasDataLabels?.()||(f.dataLabel=1));for(let e of this.points)e?.series&&(e.resolveColor(),Object.keys(f).length&&e.destroyElements(f),p.showInLegend===!1&&e.legendItem&&i.legend.destroyItem(e))}r.initialType=o,i.linkSeries(),i.setSortedData(),v&&r.linkedSeries.length&&(r.isDirtyData=!0),K(this,`afterUpdate`),Q(n,!0)&&i.redraw(_?void 0:!1)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){let t=this.chart,n=this.options[e],r=t.options.plotOptions,i=this.userOptions[e],a=Q(r?.[this.type]?.[e],r?.series?.[e]);return i&&!W(a)?n!==i:n!==Q(a,n)}onMouseOver(){let e=this,t=e.chart,n=t.hoverSeries;t.pointer?.setHoverChartIndex(),n&&n!==e&&n.onMouseOut(),e.options.events.mouseOver&&K(e,`mouseOver`),e.setState(`hover`),t.hoverSeries=e}onMouseOut(){let e=this,t=e.options,n=e.chart,r=n.tooltip,i=n.hoverPoint;n.hoverSeries=null,i&&i.onMouseOut(),e&&t.events.mouseOut&&K(e,`mouseOut`),r&&!e.stickyTracking&&(!r.shared||e.noSharedTooltip)&&r.hide(),n.series.forEach(function(e){e.setState(``,!0)})}setState(e,t){let n=this,{graph:r,options:i}=n,{inactiveOtherPoints:a,states:o}=i,s=Q(o?.[e||`normal`]?.animation,n.chart.options.chart.animation),{lineWidth:c,opacity:l}=i;if(e||=``,n.state!==e&&([n.group,n.markerGroup,...n.dataLabelsGroups||[]].forEach(function(t){t&&(n.state&&t.removeClass(`highcharts-series-`+n.state),e&&t.addClass(`highcharts-series-`+e))}),n.state=e,!n.chart.styledMode)){if(o[e]?.enabled===!1)return;if(e&&(c=o[e].lineWidth||c+(o[e].lineWidthPlus||0),l=Q(o[e].opacity,l)),r&&!r.dashstyle&&q(c))for(let e of[r,...this.zones.map(e=>e.graph)])e?.animate({"stroke-width":c},s);a||[n.group,n.markerGroup,...n.dataLabelsGroups||[],n.labelBySeries].forEach(function(e){e?.animate({opacity:l},s)})}t&&a&&n.points&&n.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(t){t.setState&&t.setState(e)})}setVisible(e,t){let n=this,r=n.chart,i=r.options.chart.ignoreHiddenSeries,a=n.visible;n.visible=e=n.options.visible=n.userOptions.visible=e===void 0?!a:e;let o=e?`show`:`hide`;[`group`,`markerGroup`,`tracker`,`tt`].forEach(e=>{n[e]?.[o]()}),n.dataLabelsGroups?.forEach(e=>{e?.[o]()}),(r.hoverSeries===n||r.hoverPoint?.series===n)&&n.onMouseOut(),n.legendItem&&r.legend.colorizeItem(n,e),n.isDirty=!0,n.options.stacking&&r.series.forEach(e=>{e.options.stacking&&e.visible&&(e.isDirty=!0)}),n.linkedSeries.forEach(t=>{t.setVisible(e,!1)}),i&&(r.isDirtyBox=!0),K(n,o),t!==!1&&r.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){let t=this;t.selected=e=this.options.selected=e===void 0?!t.selected:e,t.checkbox&&(t.checkbox.checked=e),K(t,e?`select`:`unselect`)}shouldShowTooltip(e,t,n={}){return n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,n)}drawLegendSymbol(e,t){let n=this.chart.renderer,r=this.options.legendSymbol||`rectangle`,i=t.legendItem||{},{options:a,symbolHeight:o,symbolWidth:s}=e,c=a.squareSymbol,l=c?o:s,u=c?(s-o)/2:0,d=(e.baseline||0)-o+1,f=l,p=o,m=a.symbolRadius??o,h=r===`rectangle`?n.rect(u,d,f,p,m):n.symbols[r]&&n.symbol(r,u,d,f,p,{r:m});h?i.symbol=h.addClass(`highcharts-point`).attr({zIndex:3}).add(i.group):FV[r]?.call(this,e,t)}};JV.defaultOptions=IV,JV.types=zV.seriesTypes,JV.registerType=zV.registerSeriesType,JV.keepProps=[`colorIndex`,`eventOptions`,`navigatorSeries`,`symbolIndex`,`baseSeries`],JV.keepPropsForPoints=[`data`,`isDirtyData`,`isDirtyCanvas`,`points`,`dataTable`,`processedData`,`xIncrement`,`cropped`,`_hasPointMarkers`,`hasDataLabels`,`nodes`,`layout`,`level`,`mapMap`,`mapData`,`minY`,`maxY`,`minX`,`maxX`,`transformGroups`],G(JV.prototype,{axisTypes:[`xAxis`,`yAxis`],coll:`series`,colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:[`clientX`,`plotY`],parallelArrays:[`x`,`y`],pointClass:bV,requireSorting:!0,sorted:!0}),zV.series=JV;var YV=JV,{animObject:XV,setAnimation:ZV}=Cz,{registerEventOptions:QV}=HB,{composed:$V,marginNames:eH}=V,{distribute:tH}=Wz,{format:nH}=Bz,rH=class{constructor(e,t){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(t),t.enabled&&(this.render(),QV(this,t),H(this.chart,`endResize`,function(){this.legend.positionCheckboxes()})),H(this.chart,`render`,()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){let t=Q(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=X(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=Q(e.symbolWidth,16),this.pages=[],this.proximate=e.layout===`proximate`&&!this.chart.inverted,this.baseline=void 0}update(e,t){let n=this.chart;this.setOptions(X(!0,this.options,e)),`events`in this.options&&QV(this,this.options),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,Q(t,!0)&&n.redraw(),K(this,`afterUpdate`,{redraw:t})}colorizeItem(e,t){let n=e.color,{area:r,group:i,label:a,line:o,symbol:s}=e.legendItem||{};if((e instanceof YV||e instanceof bV)&&(e.color=e.options?.legendSymbolColor||n),i?.[t?`removeClass`:`addClass`](`highcharts-legend-item-hidden`),!this.chart.styledMode){let{itemHiddenStyle:n={}}=this,i=n.color,{fillColor:c,fillOpacity:l,lineColor:u,marker:d}=e.options,f=e=>(t||(e.fill&&=i,e.stroke&&=i),e);a?.css(X(t?this.itemStyle:n)),o?.attr(f({stroke:u||e.color})),s&&s.attr(f(d&&s.isMarker?e.pointAttribs():{fill:e.color})),r?.attr(f({fill:c||e.color,"fill-opacity":c?1:l??.75}))}e.color=n,K(this,`afterColorizeItem`,{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let t=this,{group:n,x:r=0,y:i=0}=e.legendItem||{},a=t.options,o=a.symbolPadding,s=!a.rtl,c=e.checkbox;if(n?.element){let a={translateX:s?r:t.legendWidth-r-2*o-4,translateY:i};n[W(n.translateY)?`animate`:`attr`](a,void 0,()=>{K(this,`afterPositionItem`,{item:e})})}c&&(c.x=r,c.y=i)}destroyItem(e){let t=e.legendItem||{};for(let e of[`group`,`label`,`line`,`symbol`])t[e]&&(t[e]=t[e].destroy());e.checkbox=hR(e.checkbox),e.legendItem=void 0}destroy(){let e=this;for(let e of this.getAllItems())this.destroyItem(e);for(let t of[`clipRect`,`up`,`down`,`pager`,`nav`,`box`,`title`,`group`])e[t]&&(e[t]=e[t].destroy());this.display=null}positionCheckboxes(){let e=this.group?.alignAttr,t=this.clipHeight||this.legendHeight,n=this.titleHeight,r;e&&(r=e.translateY,this.allItems.forEach(function(i){let a=i.checkbox,o;a&&(o=r+n+a.y+(this.scrollOffset||0)+3,U(a,{left:e.translateX+i.checkboxOffset+a.x-20+`px`,top:o+`px`,display:this.proximate||o>r-6&&oS*1.5?x.height:S))}layoutItem(e){let t=this.options,n=this.padding,r=t.layout===`horizontal`,i=e.itemHeight,a=this.itemMarginBottom,o=this.itemMarginTop,s=r?Q(t.itemDistance,20):0,c=this.maxLegendWidth,l=t.alignColumns&&this.totalItemWidth>c?this.maxItemWidth:e.itemWidth,u=e.legendItem||{};r&&this.itemX-n+l>c&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=o+this.itemY+a,this.lastLineHeight=Math.max(i,this.lastLineHeight),u.x=this.itemX,u.y=this.itemY,r?this.itemX+=l:(this.itemY+=o+i+a,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(e.checkbox?0:s):l)+n,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){let n=t?.options;t&&Q(n.showInLegend,W(n.linkedTo)?!1:void 0,!0)&&(e=e.concat(t.legendItem?.labels||(n.legendType===`point`?t.data:t)))}),K(this,`afterGetAllItems`,{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+`tv`:e.floating?``:e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){let n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((a,o)=>{a.test(i)&&!W(e[o])&&(n[eH[o]]=Math.max(n[eH[o]],n.legend[(o+1)%2?`legendHeight`:`legendWidth`]+[1,-1,-1,1][o]*r[o%2?`x`:`y`]+(r.margin??12)+t[o]+(n.titleOffset[o]||0)))})}proximatePositions(){let e=this.chart,t=[],n=this.options.align===`left`;this.allItems.forEach(function(r){let i,a,o=n,s,c;r.yAxis&&(r.xAxis.options.reversed&&(o=!o),r.points&&(i=wR(o?r.points:r.points.slice(0).reverse(),function(e){return q(e.plotY)})),a=this.itemMarginTop+r.legendItem.label.getBBox().height+this.itemMarginBottom,c=r.yAxis.top-e.plotTop,r.visible?(s=i?i.plotY:r.yAxis.height,s+=c-.3*a):s=c+r.yAxis.height,t.push({target:s,size:a,item:r}))},this);let r;for(let n of tH(t,e.plotHeight))r=n.item.legendItem||{},q(n.pos)&&(r.y=e.plotTop-e.spacing[0]+n.pos)}render(){let e=this,t=e.chart,n=t.spacingBox.width,r=t.renderer,i=e.options,a=e.padding,o=e.getAllItems(),s,c,l,u=e.group,d,f=e.box;e.itemX=a,e.itemY=e.initialItemY,e.offsetWidth=0,e.lastItemY=0,e.widthOption=FR(i.width,n-a),d=n-2*a-i.x,[`rm`,`lm`].indexOf(e.getAlignment().substring(0,2))>-1&&(d/=2),e.maxLegendWidth=e.widthOption||d,u||(e.group=u=r.g(`legend`).addClass(i.className||``).attr({zIndex:7}).add(),e.contentGroup=r.g().attr({zIndex:1}).add(u),e.scrollGroup=r.g().add(e.contentGroup)),e.renderTitle(),zR(o,(e,t)=>(e.options?.legendIndex||0)-(t.options?.legendIndex||0)),i.reversed&&o.reverse(),e.allItems=o,e.display=s=!!o.length,e.lastLineHeight=0,e.maxItemWidth=0,e.totalItemWidth=0,e.itemHeight=0,o.forEach(e.renderItem,e),o.forEach(e.layoutItem,e),c=(i.maxWidth?Math.min(e.widthOption||e.offsetWidth,d,FR(i.maxWidth,t.chartWidth)||1/0):e.widthOption||e.offsetWidth)+a,l=e.lastItemY+e.lastLineHeight+e.titleHeight,l=e.handleOverflow(l),l+=a,f||(e.box=f=r.rect().addClass(`highcharts-legend-box`).attr({r:i.borderRadius}).add(u)),t.styledMode||f.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||`none`}).shadow(i.shadow),c>0&&l>0&&f[f.placed?`animate`:`attr`](f.crisp.call({},{x:0,y:0,width:c,height:l},f.strokeWidth())),u[s?`show`:`hide`](),t.styledMode&&u.getStyle(`display`)===`none`&&(c=l=0),e.legendWidth=c,e.legendHeight=l,s&&e.align(),this.proximate||this.positionItems(),K(this,`afterRender`)}align(e=this.chart.spacingBox){let t=this.chart,n=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&t.titleOffset[0]>0?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&t.titleOffset[2]>0&&(r-=t.titleOffset[2]),r!==e.y&&(e=X(e,{y:r})),t.hasRendered||(this.group.placed=!1),this.group.align(X(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?`top`:n.verticalAlign}),!0,e)}handleOverflow(e){let t=this,n=this.chart,r=n.renderer,i=this.options,a=i.y,o=i.verticalAlign===`top`,s=this.padding,c=i.maxHeight,l=i.navigation,u=Q(l.animation,!0),d=l.arrowSize||12,f=this.pages,p=this.allItems,m=function(e){typeof e==`number`?S.attr({height:e}):S&&(t.clipRect=S.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=e?`rect(`+s+`px,9999px,`+(s+e)+`px,0)`:`auto`)},h=function(e){return t[e]=r.circle(0,0,d*1.3).translate(d/2,d/2).add(x),n.styledMode||t[e].attr(`fill`,`rgba(0,0,0,0.0001)`),t[e]},g,_,v,y,b=n.spacingBox.height+(o?-a:a)-s,x=this.nav,S=this.clipRect;return i.layout===`horizontal`&&i.verticalAlign!==`middle`&&!i.floating&&(b/=2),c&&(b=Math.min(b,c)),f.length=0,e&&b>0&&e>b&&l.enabled!==!1?(this.clipHeight=g=Math.max(b-20-this.titleHeight-s,0),this.currentPage=Q(this.currentPage,1),this.fullHeight=e,p.forEach((e,t)=>{v=e.legendItem||{};let n=v.y||0,r=Math.round(v.label.getBBox().height),i=f.length;(!i||n-f[i-1]>g&&(_||n)!==f[i-1])&&(f.push(_||n),i++),v.pageIx=i-1,_&&y&&(y.pageIx=i-1),t===p.length-1&&n+r-f[i-1]>g&&n>f[i-1]&&(f.push(n),v.pageIx=i),n!==_&&(_=n),y=v}),S||(S=t.clipRect=r.clipRect(0,s-2,9999,0),t.contentGroup.clip(S)),m(g),x||(this.nav=x=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol(`triangle`,0,0,d,d).add(x),h(`upTracker`).on(`click`,function(){t.scroll(-1,u)}),this.pager=r.text(``,15,10).addClass(`highcharts-legend-navigation`),!n.styledMode&&l.style&&this.pager.css(l.style),this.pager.add(x),this.down=r.symbol(`triangle-down`,0,0,d,d).add(x),h(`downTracker`).on(`click`,function(){t.scroll(1,u)})),t.scroll(0),e=b):x&&(m(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){let n=this.chart,r=this.pages,i=r.length,a=this.clipHeight,o=this.options.navigation,s=this.pager,c=this.padding,l=this.currentPage+e;l>i&&(l=i),l>0&&(t!==void 0&&ZV(t,n),this.nav.attr({translateX:c,translateY:a+this.padding+7+this.titleHeight,visibility:`inherit`}),[this.up,this.upTracker].forEach(function(e){e.attr({class:l===1?`highcharts-legend-nav-inactive`:`highcharts-legend-nav-active`})}),s.attr({text:l+`/`+i}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:l===i?`highcharts-legend-nav-inactive`:`highcharts-legend-nav-active`})},this),n.styledMode||(this.up.attr({fill:l===1?o.inactiveColor:o.activeColor}),this.upTracker.css({cursor:l===1?`default`:`pointer`}),this.down.attr({fill:l===i?o.inactiveColor:o.activeColor}),this.downTracker.css({cursor:l===i?`default`:`pointer`})),this.scrollOffset=-r[l-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=l,this.positionCheckboxes(),BR(()=>{K(this,`afterScroll`,{currentPage:l})},XV(Q(t,n.renderer.globalAnimation,!0)).duration))}setItemEvents(e,t,n){let r=this,i=e.legendItem||{},a=r.chart.renderer.boxWrapper,o=e instanceof bV,s=e instanceof YV,c=`highcharts-legend-`+(o?`point`:`series`)+`-active`,l=r.chart.styledMode,u=n?[t,i.symbol]:[i.group],d=t=>{r.allItems.forEach(n=>{e!==n&&[n].concat(n.linkedSeries||[]).forEach(e=>{e.setState(t,!o)})})};for(let n of u)n&&n.on(`mouseover`,function(){e.visible&&d(`inactive`),e.setState(`hover`),e.visible&&a.addClass(c),l||t.css(r.options.itemHoverStyle)}).on(`mouseout`,function(){r.chart.styledMode||t.css(X(e.visible?r.itemStyle:r.itemHiddenStyle)),d(``),a.removeClass(c),e.setState()}).on(`click`,function(t){a.removeClass(c),K(r,`itemClick`,{browserEvent:t,legendItem:e,context:r},function(){e.setVisible&&e.setVisible(),d(e.visible?`inactive`:``)}),o?e.firePointEvent(`legendItemClick`,{browserEvent:t}):s&&K(e,`legendItemClick`,{browserEvent:t})})}createCheckboxForItem(e){let t=this;e.checkbox=fR(`input`,{type:`checkbox`,className:`highcharts-legend-checkbox`,checked:e.selected,defaultChecked:e.selected},t.options.itemCheckboxStyle,t.chart.container),H(e.checkbox,`click`,function(t){let n=t.target;K(e.series||e,`checkboxClick`,{checked:n.checked,item:e},function(){e.select()})})}};(function(e){function t(t){PR($V,`Core.Legend`)&&H(t,`beforeMargins`,function(){this.legend=new e(this,this.options.legend)})}e.compose=t})(rH||={});var iH=rH,{animate:aH,animObject:oH,setAnimation:sH}=Cz,{defaultOptions:cH}=cz,{numberFormat:lH}=Bz,{registerEventOptions:uH}=HB,{charts:dH,doc:fH,marginNames:pH,svg:mH,win:hH}=V,{seriesTypes:gH}=zV,_H=class e{static chart(t,n,r){return new e(t,n,r)}constructor(e,t,n){if(this.sharedClips={},!fH){GR(36,!1,this);return}let r=[...arguments];(J(e)||e.nodeName)&&(this.renderTo=r.shift()),this.init(r[0],r[1])}setZoomOptions(){let e=this,t=e.options.chart,n=t.zooming;e.zooming={...n,type:Q(t.zoomType,n.type),key:Q(t.zoomKey,n.key),pinchType:Q(t.pinchType,n.pinchType),singleTouch:Q(t.zoomBySingleTouch,n.singleTouch,!1),resetButton:X(n.resetButton,t.resetZoomButton)}}init(e,t){K(this,`init`,{args:arguments},function(){let n=X(cH,e),r=n.chart,i=this.renderTo||r.renderTo;this.userOptions=G({},e),(this.renderTo=J(i)?fH.getElementById(i):i)||GR(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.locale=n.lang.locale??this.renderTo.closest(`[lang]`)?.lang,this.time=new nz(G(n.time||{},{locale:this.locale}),n.lang),n.time=this.time.options,this.numberFormatter=(r.numberFormatter||lH).bind(this),this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes;let a=this;a.index=dH.length,dH.push(a),V.chartCount++,uH(this,r),a.xAxis=[],a.yAxis=[],a.pointCount=a.colorCounter=a.symbolCounter=0,this.setZoomOptions(),K(a,`afterInit`),a.firstRender()})}initSeries(e){let t=this,n=t.options.chart,r=e.type||n.type,i=gH[r];i||GR(17,!0,t,{missingModuleFor:r});let a=new i;return typeof a.init==`function`&&a.init(t,e),a}setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){!e.points&&!e.data&&e.enabledDataSorting&&e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,t=0){let n=this[e],r=this.options[e]=RR(this.options[e]).slice(),i=this.userOptions[e]=this.userOptions[e]?RR(this.userOptions[e]).slice():[];if(this.hasRendered&&(r.splice(t),i.splice(t)),n)for(let e=t,a=n.length;e=Math.max(c+a,e.pos)&&t<=Math.min(c+a+d.width,e.pos+e.len)||(m.isInsidePlot=!1)}if(!n.ignoreY&&m.isInsidePlot){let e=!r&&n.axis&&!n.axis.isXAxis&&n.axis||u&&(r?u.xAxis:u.yAxis)||{pos:o,len:1/0},t=n.paneCoordinates?e.pos+p:o+p;t>=Math.max(l+o,e.pos)&&t<=Math.min(l+o+d.height,e.pos+e.len)||(m.isInsidePlot=!1)}return K(this,`afterIsInsidePlot`,m),m.isInsidePlot}redraw(e){K(this,`beforeRedraw`);let t=this,n=t.hasCartesianSeries?t.axes:t.colorAxis||[],r=t.series,i=t.pointer,a=t.legend,o=t.userOptions.legend,s=t.renderer,c=s.isHidden(),l=[],u,d,f,p=t.isDirtyBox,m=t.isDirtyLegend,h;for(s.rootFontSize=s.boxWrapper.getStyle(`font-size`),t.setResponsive&&t.setResponsive(!1),sH(t.hasRendered?e:!1,t),c&&t.temporaryDisplay(),t.layOutTitles(!1),f=r.length;f--;)if(h=r[f],(h.options.stacking||h.options.centerInCategory)&&(d=!0,h.isDirty)){u=!0;break}if(u)for(f=r.length;f--;)h=r[f],h.options.stacking&&(h.isDirty=!0);r.forEach(function(e){e.isDirty&&(e.options.legendType===`point`?(typeof e.updateTotals==`function`&&e.updateTotals(),m=!0):o&&(o.labelFormatter||o.labelFormat)&&(m=!0)),e.isDirtyData&&K(e,`updatedData`)}),m&&a&&a.options.enabled&&(a.render(),t.isDirtyLegend=!1),d&&t.getStacks(),n.forEach(function(e){e.updateNames(),e.setScale()}),t.getMargins(),n.forEach(function(e){e.isDirty&&(p=!0)}),n.forEach(function(e){let t=e.min+`,`+e.max;e.extKey!==t&&(e.extKey=t,l.push(function(){K(e,`afterSetExtremes`,G(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(p||d)&&e.redraw()}),p&&t.drawChartBox(),K(t,`predraw`),r.forEach(function(e){(p||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),i&&i.reset(!0),s.draw(),K(t,`redraw`),K(t,`render`),c&&t.temporaryDisplay(!0),l.forEach(function(e){e.call()})}get(e){let t=this.series;function n(t){return t.id===e||t.options&&t.options.id===e}let r=wR(this.axes,n)||wR(this.series,n);for(let e=0;!r&&e(t.getPointsCollection().forEach(t=>{Q(t.selectedStaging,t.selected)&&e.push(t)}),e),[])}getSelectedSeries(){return this.series.filter(e=>e.selected)}setTitle(e,t,n){this.applyDescription(`title`,e),this.applyDescription(`subtitle`,t),this.applyDescription(`caption`,void 0),this.layOutTitles(n)}applyDescription(e,t){let n=this,r=this.options[e]=X(this.options[e],t),i=this[e];i&&t&&(this[e]=i=i.destroy()),r&&!i&&(i=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:`highcharts-`+e,zIndex:r.zIndex||4}).css({textOverflow:`ellipsis`,whiteSpace:`nowrap`}).add(),i.update=function(t,r){n.applyDescription(e,t),n.layOutTitles(r)},this.styledMode||i.css(G(e===`title`?{fontSize:this.options.isStock?`1em`:`1.2em`}:{},r.style)),i.textPxLength=i.getBBox().width,i.css({whiteSpace:r.style?.whiteSpace}),this[e]=i)}layOutTitles(e=!0){let t=[0,0,0],{options:n,renderer:r,spacingBox:i}=this;[`title`,`subtitle`,`caption`].forEach(e=>{let n=this[e],a=this.options[e],o=X(i),s=n?.textPxLength||0;if(n&&a){K(this,`layOutTitle`,{alignTo:o,key:e,textPxLength:s});let i=r.fontMetrics(n),c=i.b,l=i.h,u=a.verticalAlign||`top`,d=u===`top`,f=d&&a.minScale||1,p=e===`title`?d?-3:0:d?t[0]+2:0,m=Math.min(o.width/s,1),h=Math.max(f,m),g=X({y:u===`bottom`?c:p+c},a),_=(a.width||(m>f?this.chartWidth:o.width)/h)+`px`;g.align??=e===`title`?m{if(e!==this.container){let t=e.style.display;return e.style.display=`none`,[e,t]}}),t={width:CR(this.renderTo,`width`,!0)||0,height:CR(this.renderTo,`height`,!0)||0};return e.filter(Boolean).forEach(([e,t])=>{e.style.display=t}),t}getChartSize(){let e=this,t=e.options.chart,n=t.width,r=t.height,i=e.getContainerBox(),a=i.height<=1||!e.renderTo.parentElement?.style.height&&e.renderTo.style.height===`100%`;e.chartWidth=Math.max(0,n||i.width||600),e.chartHeight=Math.max(0,FR(r,e.chartWidth)||(a?400:i.height)),e.containerBox=i}temporaryDisplay(e){let t=this.renderTo,n;if(e)for(;t?.style;)t.hcOrigStyle&&(U(t,t.hcOrigStyle),delete t.hcOrigStyle),t.hcOrigDetached&&(fH.body.removeChild(t),t.hcOrigDetached=!1),t=t.parentNode;else for(;t?.style&&(!fH.body.contains(t)&&!t.parentNode&&(t.hcOrigDetached=!0,fH.body.appendChild(t)),(CR(t,`display`,!1)===`none`||t.hcOrigDetached)&&(t.hcOrigStyle={display:t.style.display,height:t.style.height,overflow:t.style.overflow},n={display:`block`,overflow:`hidden`},t!==this.renderTo&&(n.height=0),U(t,n),t.offsetWidth||t.style.setProperty(`display`,`block`,`important`)),t=t.parentNode,t!==fH.body););}setClassName(e){this.container.className=`highcharts-container `+(e||``)}getContainer(){let e=this,t=e.options,n=t.chart,r=`data-highcharts-chart`,i=YR(),a=e.renderTo,o,s=NR(lR(a,r));q(s)&&dH[s]&&dH[s].hasRendered&&dH[s].destroy(),lR(a,r,e.index),a.innerHTML=Az.emptyHTML,!n.skipClone&&!a.offsetWidth&&e.temporaryDisplay(),e.getChartSize();let c=e.chartHeight,l=e.chartWidth;U(a,{overflow:`hidden`}),e.styledMode||(o=G({position:`relative`,overflow:`hidden`,width:l+`px`,height:c+`px`,textAlign:`left`,lineHeight:`normal`,zIndex:0,"-webkit-tap-highlight-color":`rgba(0,0,0,0)`,userSelect:`none`,"touch-action":`manipulation`,outline:`none`,padding:`0px`},n.style||{}));let u=fR(`div`,{id:i},o,a);if(e.container=u,e.getChartSize(),l!==e.chartWidth&&(l=e.chartWidth,e.styledMode||U(u,{width:Q(n.style?.width,l+`px`)})),e.containerBox=e.getContainerBox(),e._cursor=u.style.cursor,e.renderer=new(n.renderer||!mH?Hz.getRendererType(n.renderer):jB)(u,l,c,void 0,n.forExport,t.exporting?.allowHTML,e.styledMode),sH(void 0,e),e.setClassName(n.className),!e.styledMode)e.renderer.setStyle(n.style);else for(let e in t.defs)this.renderer.definition(t.defs[e]);e.renderer.chartIndex=e.index,K(this,`afterGetContainer`)}getMargins(e){let{spacing:t,margin:n,titleOffset:r}=this;this.resetMargins(),r[0]&&!W(n[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+t[0])),r[2]&&!W(n[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+t[2])),this.legend?.display&&this.legend.adjustMargins(n,t),K(this,`getMargins`),e||this.getAxisMargins()}getAxisMargins(){let e=this,t=e.axisOffset=[0,0,0,0],n=e.colorAxis,r=e.margin,i=e=>{e.forEach(e=>{e.visible&&e.getOffset()})};e.hasCartesianSeries?i(e.axes):n?.length&&i(n),pH.forEach((n,i)=>{W(r[i])||(e[n]+=t[i])}),e.setChartSize()}getOptions(){return gR(this.userOptions,cH)}reflow(e){let t=this,n=t.containerBox,r=t.getContainerBox();delete t.pointer?.chartPosition,!t.exporting?.isPrinting&&!t.isResizing&&n&&r.width&&((r.width!==n.width||r.height!==n.height)&&(TR(t.reflowTimeout),t.reflowTimeout=BR(function(){if(t.container){t.setSize(void 0,void 0,!1);let e=t.containerBox;e&&(e.height=t.chartHeight)}},e?100:0)),t.containerBox=r)}setReflow(){let e=this,t=t=>{e.options?.chart.reflow&&e.hasLoaded&&e.reflow(t)};if(typeof ResizeObserver==`function`)new ResizeObserver(t).observe(e.renderTo);else{let e=H(hH,`resize`,t);H(this,`destroy`,e)}}setSize(e,t,n){let r=this,i=r.renderer;r.isResizing+=1,sH(n,r);let a=i.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,e!==void 0&&(r.options.chart.width=e),t!==void 0&&(r.options.chart.height=t),r.getChartSize();let{chartWidth:o,chartHeight:s,scrollablePixelsX:c=0,scrollablePixelsY:l=0}=r;(r.isDirtyBox||o!==r.oldChartWidth||s!==r.oldChartHeight)&&(r.styledMode||(a?aH:U)(r.container,{width:`${o+c}px`,height:`${s+l}px`},a),r.setChartSize(!0),i.setSize(o,s,a),r.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(a),r.oldChartHeight=void 0,K(r,`resize`),setTimeout(()=>{r&&K(r,`endResize`)},oH(a).duration)),--r.isResizing}setChartSize(e){let t=this,{chartHeight:n,chartWidth:r,inverted:i,spacing:a,renderer:o}=t,s=t.clipOffset,c=Math[i?`floor`:`round`],l,u,d,f;t.plotLeft=l=Math.round(t.plotLeft),t.plotTop=u=Math.round(t.plotTop),t.plotWidth=d=Math.max(0,Math.round(r-l-(t.marginRight??0))),t.plotHeight=f=Math.max(0,Math.round(n-u-(t.marginBottom??0))),t.plotSizeX=i?f:d,t.plotSizeY=i?d:f,t.spacingBox=o.spacingBox={x:a[3],y:a[0],width:r-a[3]-a[1],height:n-a[0]-a[2]},t.plotBox=o.plotBox={x:l,y:u,width:d,height:f},s&&(t.clipBox={x:c(s[3]),y:c(s[0]),width:c(t.plotSizeX-s[1]-s[3]),height:c(t.plotSizeY-s[0]-s[2])}),e||(t.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),o.alignElements()),K(t,`afterSetChartSize`,{skipAxes:e})}resetMargins(){K(this,`resetMargins`);let e=this,t=e.options.chart,n=t.plotBorderWidth||0,r=Math.round(n)/2;[`margin`,`spacing`].forEach(n=>{let r=t[n],i=Y(r)?r:[r,r,r,r];[`Top`,`Right`,`Bottom`,`Left`].forEach((r,a)=>{e[n][a]=t[`${n}${r}`]??i[a]})}),pH.forEach((t,n)=>{e[t]=e.margin[n]??e.spacing[n]}),e.axisOffset=[0,0,0,0],e.clipOffset=[r,r,r,r],e.plotBorderWidth=n}drawChartBox(){let e=this,t=e.options.chart,n=e.renderer,r=e.chartWidth,i=e.chartHeight,a=e.styledMode,o=e.plotBGImage,s=t.backgroundColor,c=t.plotBackgroundColor,l=t.plotBackgroundImage,u=e.plotLeft,d=e.plotTop,f=e.plotWidth,p=e.plotHeight,m=e.plotBox,h=e.clipRect,g=e.clipBox,_=e.chartBackground,v=e.plotBackground,y=e.plotBorder,b,x,S,C=`animate`;_||(e.chartBackground=_=n.rect().addClass(`highcharts-background`).add(),C=`attr`),a?b=x=_.strokeWidth():(b=t.borderWidth||0,x=b+(t.shadow?8:0),S={fill:s||`none`},(b||_[`stroke-width`])&&(S.stroke=t.borderColor,S[`stroke-width`]=b),_.attr(S).shadow(t.shadow)),_[C]({x:x/2,y:x/2,width:r-x-b%2,height:i-x-b%2,r:t.borderRadius}),C=`animate`,v||(C=`attr`,e.plotBackground=v=n.rect().addClass(`highcharts-plot-background`).add()),v[C](m),a||(v.attr({fill:c||`none`}).shadow(t.plotShadow),l&&(o?(l!==o.attr(`href`)&&o.attr(`href`,l),o.animate(m)):e.plotBGImage=n.image(l,u,d,f,p).add())),h?h.animate({width:g.width,height:g.height}):e.clipRect=n.clipRect(g),C=`animate`,y||(C=`attr`,e.plotBorder=y=n.rect().addClass(`highcharts-plot-border`).attr({zIndex:1}).add()),a||y.attr({stroke:t.plotBorderColor,"stroke-width":t.plotBorderWidth||0,fill:`none`}),y[C](y.crisp(m,-y.strokeWidth())),e.isDirtyBox=!1,K(this,`afterDrawChartBox`)}propFromSeries(){let e=this,t=e.options.chart,n=e.options.series,r,i,a;[`inverted`,`angular`,`polar`].forEach(function(o){for(i=gH[t.type],a=t[o]||i&&i.prototype[o],r=n?.length;!a&&r--;)i=gH[n[r].type],i&&i.prototype[o]&&(a=!0);e[o]=a})}linkSeries(e){let t=this,n=t.series;n.forEach(function(e){e.linkedSeries.length=0}),n.forEach(function(e){let{linkedTo:r}=e.options,i=J(r)&&(r===`:previous`?n[e.index-1]:t.get(r));i&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,i.enabledDataSorting&&e.setDataSortingOptions(),e.visible=e.options.visible??i.options.visible??e.visible)}),K(this,`afterLinkSeries`,{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){let e=this,t=e.axes,n=e.colorAxis,r=e.renderer,i=e.options.chart.axisLayoutRuns||2,a=e=>{e.forEach(e=>{e.visible&&e.render()})},o=0,s=!0,c,l=0;e.setTitle(),K(e,`beforeMargins`),e.getStacks?.(),e.getMargins(!0),e.setChartSize();for(let n of t){let{options:t}=n,{labels:r}=t;if(e.hasCartesianSeries&&n.horiz&&n.visible&&r.enabled&&n.series.length&&n.coll!==`colorAxis`&&!e.polar){o=t.tickLength,n.createGroups();let e=new WB(n,0,``,!0),i=e.createLabel(`x`,r);if(e.destroy(),i&&Q(r.reserveSpace,!q(t.crossing))&&(o=i.getBBox().height+r.distance+Math.max(t.offset||0,0)),o){i?.destroy();break}}}for(e.plotHeight=Math.max(e.plotHeight-o,0);(s||c||i>1)&&l(l?1:i[1]),c=r/e.plotHeight>(l?1:i[0]),l++}e.drawChartBox(),e.hasCartesianSeries?a(t):n?.length&&a(n),e.seriesGroup||=r.g(`series-group`).attr({zIndex:3}).shadow(e.options.chart.seriesGroupShadow).add(),e.renderSeries(),e.addCredits(),e.setResponsive&&e.setResponsive(),e.hasRendered=!0}addCredits(e){let t=this,n=X(!0,this.options.credits,e);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||``),0,0).addClass(`highcharts-credits`).on(`click`,function(e){K(t,`creditsClick`,e,()=>{n.href&&(hH.location.href=n.href)})}).attr({align:n.position.align,zIndex:8}),n.events?.click&&H(t,`creditsClick`,n.events.click),t.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(e){t.credits=t.credits.destroy(),t.addCredits(e)})}destroy(){let e=this,t=e.axes,n=e.series,r=e.container,i=r?.parentNode,a;for(K(e,`destroy`),e.renderer.forExport?_R(dH,e):dH[e.index]=void 0,V.chartCount--,e.renderTo.removeAttribute(`data-highcharts-chart`),LR(e),a=t.length;a--;)t[a]=t[a].destroy();for(this.scroller?.destroy?.(),a=n.length;a--;)n[a]=n[a].destroy();[`title`,`subtitle`,`chartBackground`,`plotBackground`,`plotBGImage`,`plotBorder`,`seriesGroup`,`clipRect`,`credits`,`pointer`,`rangeSelector`,`legend`,`resetZoomButton`,`tooltip`,`renderer`].forEach(t=>{e[t]=e[t]?.destroy?.()}),r&&(r.innerHTML=Az.emptyHTML,LR(r),i&&hR(r)),Z(e,function(t,n){delete e[n]})}firstRender(){let e=this,t=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();let n=OR(t.series)?t.series:[];t.series=[],n.forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSortedData(),K(e,`beforeRender`),e.render(),e.pointer?.getChartPosition(),!e.renderer.asyncCounter&&!e.hasLoaded&&e.onload(),e.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&this.index!==void 0&&e.apply(this,[this])},this),K(this,`load`),K(this,`render`),W(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:t}=this;e&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:`img`,"aria-label":(t?.element.textContent||``).replace(/{e[t]&&(RR(e[t]).forEach((e,r)=>{if(!e)return;let a=W(e.id),o;a&&(o=i.get(e.id)),!o&&i[t]&&(o=i[t][Q(e.index,r)],o&&(a&&W(o.options.id)||o.options.isInternal)&&(o=void 0)),o&&o.coll===t&&(o.update(e,!1),n&&(o.touched=!0)),!o&&n&&i.collectionsWithInit[t]&&(i.collectionsWithInit[t][0].apply(i,[e].concat(i.collectionsWithInit[t][1]||[],[!1])).touched=!0)}),n&&i[t].forEach(e=>{!e.touched&&!e.options.isInternal?s.push(e):delete e.touched}))}),s.forEach(e=>{e.chart&&e.remove&&e.remove(!1)}),c&&i.axes.forEach(function(e){e.update({},!1)}),l&&i.getSeriesOrderByLinks().forEach(function(e){e.chart&&e.update({},!1)},this);let f=d?.width,p=d&&(J(d.height)?FR(d.height,f||i.chartWidth):d.height);u||q(f)&&f!==i.chartWidth||q(p)&&p!==i.chartHeight?i.setSize(f,p,r):Q(t,!0)&&i.redraw(r),K(i,`afterUpdate`,{options:e,redraw:t,animation:r})}setSubtitle(e,t){this.applyDescription(`subtitle`,e),this.layOutTitles(t)}setCaption(e,t){this.applyDescription(`caption`,e),this.layOutTitles(t)}showResetZoom(){let e=this,t=cH.lang,n=e.zooming.resetButton,r=n.theme,i=n.relativeTo===`chart`||n.relativeTo===`spacingBox`?null:`plotBox`;function a(){e.zoomOut()}K(this,`beforeShowResetZoom`,null,function(){e.resetZoomButton=e.renderer.button(t.resetZoom,null,null,a,r).attr({align:n.position.align,title:t.resetZoomTitle}).addClass(`highcharts-reset-zoom`).add().align(n.position,!1,i)}),K(this,`afterShowResetZoom`)}zoomOut(){K(this,`selection`,{resetSelection:!0},()=>this.transform({reset:!0,trigger:`zoom`}))}pan(e,t){let n=this,r=typeof t==`object`?t:{enabled:t,type:`x`},i=r.type,a=i&&n[{x:`xAxis`,xy:`axes`,y:`yAxis`}[i]].filter(e=>e.options.panningEnabled&&!e.options.isInternal),o=n.options.chart;o?.panning&&(o.panning=r),K(this,`pan`,{originalEvent:e},()=>{n.transform({axes:a,event:e,to:{x:e.chartX-(n.mouseDownX||0),y:e.chartY-(n.mouseDownY||0)},trigger:`pan`}),U(n.container,{cursor:`move`})})}transform(e){let{axes:t=this.axes,event:n,from:r={},reset:i,selection:a,to:o={},trigger:s,allowResetButton:c=!0}=e,{inverted:l,time:u}=this;this.hoverPoints?.forEach(e=>e.setState()),K(this,`transform`,e);let d=e.hasZoomed||!1,f,p;for(let e of t){let{horiz:t,len:m,minPointOffset:h=0,options:g,reversed:_}=e,v=t?`width`:`height`,y=t?`x`:`y`,b=Q(o[v],e.len),x=Q(r[v],e.len),S=Math.abs(b)<10?1:b/x,C=(r[y]||0)+x/2-e.pos,w=C-((o[y]??e.pos)+b/2-e.pos)/S,T=_&&!l||!_&&l?-1:1,E=w;if(!i&&(C<0||C>e.len))continue;let D=e.chart.polar||e.isOrdinal?0:h*T||0,O=e.toValue(E,!0),k=e.toValue(E+m/S,!0),A=O+D,j=k-D,M=e.allExtremes;if(a&&a[e.coll].push({axis:e,min:Math.min(O,k),max:Math.max(O,k)}),A>j&&([A,j]=[j,A]),S===1&&!i&&e.coll===`yAxis`&&!M){for(let t of e.series){let e=t.getExtremes(t.getProcessedData(!0).modified.getColumn(t.pointValKey||`y`)||[],!0);M??={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE},q(e.dataMin)&&q(e.dataMax)&&(M.dataMin=Math.min(e.dataMin,M.dataMin),M.dataMax=Math.max(e.dataMax,M.dataMax))}e.allExtremes=M}let{dataMin:N,dataMax:ee,min:te,max:ne}=G(e.getExtremes(),M||{}),re=u.parse(g.min),ie=u.parse(g.max),ae=N??re,oe=ee??ie,se=j-A,ce=e.categories?0:Math.min(se,oe-ae),le=ae-ce*(W(re)?0:g.minPadding),ue=oe+ce*(W(ie)?0:g.maxPadding),de=e.allowZoomOutside||S===1||s!==`zoom`&&S>1,fe=Math.min(re??le,le,de?te:le),pe=Math.max(ie??ue,ue,de?ne:ue);(!e.isOrdinal||S!==1||i)&&(A=1&&(j=A+se)),j>pe&&(j=pe,S>=1&&(A=j-se)),(i||e.series.length&&(A!==te||j!==ne)&&A>=fe&&j<=pe)&&(a?a[e.coll].push({axis:e,min:A,max:j}):(e.isPanning=s!==`zoom`,e.isPanning&&s!==`mousewheel`&&(p=!0),e.setExtremes(i?void 0:A,i?void 0:j,!1,!1,{move:w,trigger:s,scale:S}),!i&&(A>fe||j{delete e.selection,e.trigger=`zoom`,this.transform(e)}):(f&&!p&&!this.resetZoomButton?this.showResetZoom():!f&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()),this.redraw(s===`zoom`&&(this.options.chart.animation??this.pointCount<100)))),d}};G(_H.prototype,{callbacks:[],collectionsWithInit:{xAxis:[_H.prototype.addAxis,[!0]],yAxis:[_H.prototype.addAxis,[!1]],series:[_H.prototype.addSeries]},collectionsWithUpdate:[`xAxis`,`yAxis`,`series`],propsRequireDirtyBox:[`backgroundColor`,`borderColor`,`borderWidth`,`borderRadius`,`plotBackgroundColor`,`plotBackgroundImage`,`plotBorderColor`,`plotBorderWidth`,`plotShadow`,`shadow`],propsRequireReflow:[`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`spacing`,`spacingTop`,`spacingRight`,`spacingBottom`,`spacingLeft`],propsRequireUpdateSeries:[`chart.inverted`,`chart.polar`,`chart.ignoreHiddenSeries`,`chart.type`,`colors`,`plotOptions`,`time`,`tooltip`]});var vH=_H,{stop:yH}=Cz,{composed:bH}=V;function xH(){let e=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!e&&(this.scrollablePlotArea=e=new CH(this)),e?.applyFixed()}function SH(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}var CH=class e{static compose(e,t,n){PR(bH,this.compose)&&(H(e,`afterInit`,SH),H(t,`afterSetChartSize`,e=>this.afterSetSize(e.target,e)),H(t,`render`,xH),H(n,`show`,SH))}static afterSetSize(e,t){let{minWidth:n,minHeight:r}=e.options.chart.scrollablePlotArea||{},{clipBox:i,plotBox:a,inverted:o,renderer:s}=e,c,l,u;if(!s.forExport)if(n?(e.scrollablePixelsX=c=Math.max(0,n-e.chartWidth),c&&(e.scrollablePlotBox=X(e.plotBox),a.width=e.plotWidth+=c,i[o?`height`:`width`]+=c,u=!0)):r&&(e.scrollablePixelsY=l=Math.max(0,r-e.chartHeight),W(l)&&(e.scrollablePlotBox=X(e.plotBox),a.height=e.plotHeight+=l,i[o?`width`:`height`]+=l,u=!1)),W(u)){if(!t.skipAxes)for(let t of e.axes)(t.horiz===u||e.hasParallelCoordinates&&t.coll===`yAxis`)&&(t.setAxisSize(),t.setAxisTranslation())}else delete e.scrollablePlotBox}constructor(e){let t=e.options.chart,n=Hz.getRendererType(),r=t.scrollablePlotArea||{},i=this.moveFixedElements.bind(this),a={WebkitOverflowScrolling:`touch`,overflowX:`hidden`,overflowY:`hidden`};e.scrollablePixelsX&&(a.overflowX=`auto`),e.scrollablePixelsY&&(a.overflowY=`auto`),this.chart=e;let o=this.parentDiv=fR(`div`,{className:`highcharts-scrolling-parent`},{position:`relative`},e.renderTo),s=this.scrollingContainer=fR(`div`,{className:`highcharts-scrolling`},a,o),c=this.innerContainer=fR(`div`,{className:`highcharts-inner-container`},void 0,s),l=this.fixedDiv=fR(`div`,{className:`highcharts-fixed`},{position:`absolute`,overflow:`hidden`,pointerEvents:`none`,zIndex:(t.style?.zIndex||0)+2,top:0},void 0,!0),u=this.fixedRenderer=new n(l,e.chartWidth,e.chartHeight,t.style);this.mask=u.path().attr({fill:t.backgroundColor||`#fff`,"fill-opacity":r.opacity??.85,zIndex:-1}).addClass(`highcharts-scrollable-mask`).add(),s.parentNode.insertBefore(l,s),U(e.renderTo,{overflow:`visible`}),H(e,`afterShowResetZoom`,i),H(e,`afterApplyDrilldown`,i),H(e,`afterLayOutTitles`,i);let d;H(s,`scroll`,()=>{let{pointer:t,hoverPoint:n}=e;t&&(delete t.chartPosition,n&&(d=n),t.runPointActions(void 0,d,!0))}),c.appendChild(e.container)}applyFixed(){let{chart:e,fixedRenderer:t,isDirty:n,scrollingContainer:r}=this,{axisOffset:i,chartWidth:a,chartHeight:o,container:s,plotHeight:c,plotLeft:l,plotTop:u,plotWidth:d,scrollablePixelsX:f=0,scrollablePixelsY:p=0}=e,{scrollPositionX:m=0,scrollPositionY:h=0}=e.options.chart.scrollablePlotArea||{},g=a+f,_=o+p;t.setSize(a,o),(n??!0)&&(this.isDirty=!1,this.moveFixedElements()),yH(e.container),U(s,{width:`${g}px`,height:`${_}px`}),e.renderer.boxWrapper.attr({width:g,height:_,viewBox:[0,0,g,_].join(` `)}),e.chartBackground?.attr({width:g,height:_}),U(r,{width:`${a}px`,height:`${o}px`}),W(n)||(r.scrollLeft=f*m,r.scrollTop=p*h);let v=u-i[0]-1,y=l-i[3]-1,b=u+c+i[2]+1,x=l+d+i[1]+1,S=l+d-f,C=u+c-p,w=[[`M`,0,0]];f?w=[[`M`,0,v],[`L`,l-1,v],[`L`,l-1,b],[`L`,0,b],[`Z`],[`M`,S,v],[`L`,a,v],[`L`,a,b],[`L`,S,b],[`Z`]]:p&&(w=[[`M`,y,0],[`L`,y,u-1],[`L`,x,u-1],[`L`,x,0],[`Z`],[`M`,y,C],[`L`,y,o],[`L`,x,o],[`L`,x,C],[`Z`]]),e.redrawTrigger!==`adjustHeight`&&this.mask.attr({d:w})}moveFixedElements(){let{container:t,inverted:n,scrollablePixelsX:r,scrollablePixelsY:i}=this.chart,a=this.fixedRenderer,o=e.fixedSelectors.slice(),s;if(r&&!n?s=`.highcharts-yaxis`:r&&n||i&&!n?s=`.highcharts-xaxis`:i&&n&&(s=`.highcharts-yaxis`),s&&!(this.chart.hasParallelCoordinates&&s===`.highcharts-yaxis`))for(let e of[`${s}:not(.highcharts-radial-axis)`,`${s}-labels:not(.highcharts-radial-axis-labels)`])PR(o,e);else for(let e of[`.highcharts-xaxis`,`.highcharts-yaxis`])for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])_R(o,t);for(let e of o)[].forEach.call(t.querySelectorAll(e),e=>{(e.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(e),e.style.pointerEvents=`auto`})}};CH.fixedSelectors=[`.highcharts-breadcrumbs-group`,`.highcharts-contextbutton`,`.highcharts-caption`,`.highcharts-credits`,`.highcharts-drillup-button`,`.highcharts-legend`,`.highcharts-legend-checkbox`,`.highcharts-navigator-series`,`.highcharts-navigator-xaxis`,`.highcharts-navigator-yaxis`,`.highcharts-navigator`,`.highcharts-range-selector-group`,`.highcharts-reset-zoom`,`.highcharts-scrollbar`,`.highcharts-subtitle`,`.highcharts-title`];var wH=CH,{format:TH}=Bz,{series:EH}=zV,DH=class{constructor(e,t,n,r,i){let a=e.chart.inverted,o=e.reversed;this.axis=e;let s=this.isNegative=!!n!=!!o;this.options=t||={},this.x=r,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(a?s?`left`:`right`:`center`),verticalAlign:t.verticalAlign||(a?`middle`:s?`bottom`:`top`),y:t.y,x:t.x},this.textAlign=t.textAlign||(a?s?`right`:`left`:`center`)}destroy(){mR(this,this.axis)}render(e){let t=this.axis.chart,n=this.options,r=n.format,i=(r?TH(r,this,t):n.formatter?.call(this,this))||``;if(this.label)this.label.attr({text:i,visibility:`hidden`});else{this.label=t.renderer.label(i,null,void 0,n.shape,void 0,void 0,n.useHTML,!1,`stack-labels`);let r={r:n.borderRadius||0,text:i,padding:Q(n.padding,5),visibility:`hidden`};t.styledMode||(r.fill=n.backgroundColor,r.stroke=n.borderColor,r[`stroke-width`]=n.borderWidth,this.label.css(n.style||{})),this.label.attr(r),this.label.added||this.label.add(e)}this.label.labelrank=t.plotSizeY,K(this,`afterRender`)}setOffset(e,t,n,r,i,a){let{alignOptions:o,axis:s,label:c,options:l,textAlign:u}=this,d=s.chart,f=this.getStackBox({xOffset:e,width:t,boxBottom:n,boxTop:r,defaultX:i,xAxis:a}),{verticalAlign:p}=o;if(c&&f){let e=c.getBBox(void 0,0),t=c.padding,n=Q(l.overflow,`justify`)===`justify`,r;o.x=l.x||0,o.y=l.y||0;let{x:i,y:a}=this.adjustStackPosition({labelBox:e,verticalAlign:p,textAlign:u});f.x-=i,f.y-=a,c.align(o,!1,f),r=d.isInsidePlot(c.alignAttr.x+o.x+i,c.alignAttr.y+o.y+a),r||(n=!1),n&&EH.prototype.justifyDataLabel.call(s,c,o,c.alignAttr,e,f),c.attr({x:c.alignAttr.x,y:c.alignAttr.y,rotation:l.rotation,rotationOriginX:e.width*yR(l.textAlign||`center`),rotationOriginY:e.height/2}),Q(!n&&l.crop,!0)&&(r=q(c.x)&&q(c.y)&&d.isInsidePlot(c.x-t+(c.width||0),c.y)&&d.isInsidePlot(c.x+t,c.y)),c[r?`show`:`hide`]()}K(this,`afterSetOffset`,{xOffset:e,width:t})}adjustStackPosition({labelBox:e,verticalAlign:t,textAlign:n}){return{x:e.width/2+e.width/2*(2*yR(n)-1),y:e.height/2*2*(1-yR(t))}}getStackBox(e){let t=this,n=this.axis,r=n.chart,{boxTop:i,defaultX:a,xOffset:o,width:s,boxBottom:c}=e,l=n.stacking.usePercentage?100:Q(i,this.total,0),u=n.toPixels(l),d=e.xAxis||r.xAxis[0],f=Q(a,d.translate(this.x))+o,p=n.toPixels(c||q(n.min)&&n.logarithmic&&n.logarithmic.lin2log(n.min)||0),m=Math.abs(u-p),h=r.inverted,g=t.isNegative;return h?{x:(g?u:u-m)-r.plotLeft,y:d.height-f-s+d.top-r.plotTop,width:m,height:s}:{x:f+d.transB-r.plotLeft,y:(g?u-m:u)-r.plotTop,width:s,height:m}}},{getDeferredAnimation:OH}=Cz,{series:{prototype:kH}}=zV;function AH(){let e=this,t=e.inverted;e.axes.forEach(e=>{e.stacking?.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),e.series.forEach(e=>{let n=e.xAxis?.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,Q(e.options.stack,``),t?n.top:n.left,t?n.height:n.width].join(`,`))})}function jH(){let e=this.stacking;if(e){let t=e.stacks;Z(t,(e,n)=>{mR(e),delete t[n]}),e.stackTotalGroup?.destroy()}}function MH(){this.stacking||=new RH(this)}function NH(e,t,n,r){return!W(e)||e.x!==t||r&&e.stackKey!==r?e={x:t,index:0,key:r,stackKey:r}:e.index++,e.key=[n,t,e.index].join(`,`),e}function PH(){let e=this,t=e.yAxis,n=e.stackKey||``,r=t.stacking.stacks,i=e.getColumn(`x`,!0),a=e[e.options.stacking+`Stacker`],o;a&&[n,`-`+n].forEach(t=>{let n=i.length,s,c,l;for(;n--;)s=i[n],o=e.getStackIndicator(o,s,e.index,t),c=r[t]?.[s],l=c?.points[o.key||``],l&&a.call(e,l,c,n)})}function FH(e,t,n){let r=t.total?100/t.total:0;e[0]=dR(e[0]*r),e[1]=dR(e[1]*r),this.stackedYData[n]=e[1]}function IH(e){(this.is(`column`)||this.is(`columnrange`))&&(this.options.centerInCategory&&this.chart.series.length>1?kH.setStackedPoints.call(this,e,`group`):e.stacking.resetStacks())}function LH(e,t){let n=t||this.options.stacking;if(!n||!this.reserveSpace()||({group:`xAxis`}[n]||`yAxis`)!==e.coll)return;let r=this,i=r.getColumn(`x`,!0),a=r.getColumn(r.pointValKey||`y`,!0),o=[],s=a.length,c=r.options,l=c.threshold||0,u=c.startFromThreshold?l:0,d=c.stack,f=t?`${r.type},${n}`:r.stackKey||``,p=`-`+f,m=r.negStacks,h=e.stacking,g=h.stacks,_=h.oldStacks,v,y,b,x,S,C,w;for(h.stacksTouched+=1,w=0;w0&&r.singleStacks===!1&&(b.points[C][0]=b.points[r.index+`,`+t+`,0`][0]));let T=b.total||0;n===`percent`?(x=y?f:p,m&&g[x]?.[t]?(x=g[x][t],T=x.total=Math.max(x.total||0,T)+Math.abs(c)):T=dR(T+Math.abs(c))):n===`group`?q(s)&&T++:T=dR(T+c),n===`group`?b.cumulative=(T||1)-1:b.cumulative=dR(Q(b.cumulative,u)+c),b.total=T,s!==null&&(b.points[C].push(b.cumulative),o[w]=b.cumulative,b.hasValidPoints=!0)}n===`percent`&&(h.usePercentage=!0),n!==`group`&&(this.stackedYData=o),h.oldStacks={}}var RH=class{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e=this,t=e.axis,n=t.series,r=t.coll===`xAxis`,i=t.options.reversedStacks,a=n.length,o,s;for(this.resetStacks(),e.usePercentage=!1,s=a;s--;)o=n[i?s:a-s-1],r&&o.setGroupedPoints(t),o.setStackedPoints(t);if(!r)for(s=0;s{Z(e,e=>{e.cumulative=e.total})}))}resetStacks(){Z(this.stacks,e=>{Z(e,(t,n)=>{q(t.touched)&&t.touched{Z(e,e=>{e.render(s)})}),s.animate({opacity:1},o)}},zH;(function(e){function t(e,t,n){let r=t.prototype,i=n.prototype;r.getStacks||(H(e,`init`,MH),H(e,`destroy`,jH),r.getStacks=AH,i.getStackIndicator=NH,i.modifyStacks=PH,i.percentStacker=FH,i.setGroupedPoints=IH,i.setStackedPoints=LH)}e.compose=t})(zH||={});var BH=zH,VH=class extends YV{drawGraph(){let e=this.options,t=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode;[this,...this.zones].forEach((r,i)=>{let a,o=r.graph,s=o?`animate`:`attr`,c=r.dashStyle||e.dashStyle;if(o?(o.endX=this.preventGraphAnimation?null:t.xMap,o.animate({d:t})):t.length&&(r.graph=o=this.chart.renderer.path(t).addClass(`highcharts-graph`+(i?` highcharts-zone-graph-${i-1} `:` `)+(i&&r.className||``)).attr({zIndex:1}).add(this.group)),o&&!n&&(a={stroke:!i&&e.lineColor||r.color||this.color||`#cccccc`,"stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||`none`},c?a.dashstyle=c:e.linecap!==`square`&&(a[`stroke-linecap`]=a[`stroke-linejoin`]=`round`),o[s](a),e.shadow)){let t=this.chart.inverted,n={filterUnits:`userSpaceOnUse`},r=Y(e.shadow)?X(t?{}:n,e.shadow):t?!0:n;o.shadow(r)}o&&(o.startX=t.xMap,o.isArea=t.isArea)})}getGraphPath(e,t,n){let r=this,i=r.options,a=[],o=[],s,c=i.step;e||=r.points;let l=e.reversed;return l&&e.reverse(),c={right:1,center:2}[c]||c&&3,c&&l&&(c=4-c),e=this.getValidPoints(e,!1,i.nullInteraction||!(i.connectNulls&&!t&&!n)),e.forEach(function(l,u){let d=l.plotX,f=l.plotY,p=e[u-1],m=l.isNull||typeof f!=`number`,h;(l.leftCliff||p?.rightCliff)&&!n&&(s=!0),m&&!W(t)&&u>0?s=!i.connectNulls:m&&!t?s=!0:(u===0||s?h=[[`M`,l.plotX,l.plotY]]:r.getPointSpline?h=[r.getPointSpline(e,l,u)]:c?(h=c===1?[[`L`,p.plotX,f]]:c===2?[[`L`,(p.plotX+d)/2,p.plotY],[`L`,(p.plotX+d)/2,f]]:[[`L`,d,p.plotY]],h.push([`L`,d,f])):h=[[`L`,d,f]],o.push(l.x),c&&(o.push(l.x),c===2&&o.push(l.x)),a.push.apply(a,h),s=!1)}),a.xMap=o,r.graphPath=a,a}};VH.defaultOptions=X(YV.defaultOptions,{legendSymbol:`lineMarker`}),zV.registerSeriesType(`line`,VH);var HH={threshold:0,legendSymbol:`areaMarker`},{seriesTypes:{line:UH}}=zV,WH=class extends UH{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:e,options:t}=this;[this,...this.zones].forEach((n,r)=>{let i={},a=n.fillColor||t.fillColor,o=n.area,s=o?`animate`:`attr`;o?(o.endX=this.preventGraphAnimation?null:e.xMap,o.animate({d:e})):(i.zIndex=0,o=n.area=this.chart.renderer.path(e).addClass(`highcharts-area`+(r?` highcharts-zone-area-${r-1} `:` `)+(r&&n.className||``)).add(this.group),o.isArea=!0),this.chart.styledMode||(i.fill=a||n.color||this.color,i[`fill-opacity`]=a?1:t.fillOpacity??.75,o.css({pointerEvents:this.stickyTracking?`none`:`auto`})),o[s](i),o.startX=e.xMap,o.shiftUnit=t.step?2:1})}getGraphPath(e){let t=UH.prototype.getGraphPath,n=this.options,r=n.stacking,i=this.yAxis,a=[],o=[],s=this.index,c=i.stacking.stacks[this.stackKey],l=n.threshold,u=Math.round(i.getThreshold(n.threshold)),d=Q(n.connectNulls,r===`percent`),f=function(t,n,d){let f=e[t],m=e[n],h=r&&c[f.x].points[s],g=f[d+`Null`]||0,_=f[d+`Cliff`]||0,v,y,b=!0;h&&(_||g)?(v=(g?h[0]:h[1])+_,y=h[0]+_,b=!!g):!r&&m&&(m.isNull||!W(m.plotY))&&(v=y=l),v!==void 0&&(o.push({plotX:p,plotY:v===null?u:i.getThreshold(v),isNull:b,isCliff:!0}),a.push({plotX:p,plotY:y===null?u:i.getThreshold(y),doCurve:!1}))},p,m,h;e||=this.points,r&&(e=this.getStackPoints(e));for(let t=0,n=e.length;t1&&r&&o.some(e=>e.isCliff)&&(y.hasStackedCliffs=b.hasStackedCliffs=!0),y.xMap=g.xMap,this.areaPath=y,b}getStackPoints(e){let t=this,n=[],r=[],i=this.xAxis,a=this.yAxis,o=a.stacking.stacks[this.stackKey],s={},c=a.series,l=c.length,u=a.options.reversedStacks?1:-1,d=c.indexOf(t),f=a.getThreshold(t.options.threshold||0);if(e||=this.points,this.options.stacking){for(let t=0;te.visible);r.forEach(function(e,m){let h=0,g,_;if(s[e]&&!s[e].isNull)n.push(s[e]),[-1,1].forEach(function(n){let i=n===1?`rightNull`:`leftNull`,a=n===1?`rightCliff`:`leftCliff`,f=o[r[m+n]],h=0;if(f){let n=d;for(;n>=0&&n=0&&tn&&u>o?(u=Math.max(n,o),f=2*o-u):um&&f>o?(f=Math.max(m,o),u=2*o-f):f1){let i=this.xAxis.series.filter(e=>e.visible).map(e=>e.index),a=0,o=0;Z(this.xAxis.stacking?.stacks,e=>{let t=typeof n.x==`number`?e[n.x.toString()]?.points:void 0,r=t?.[this.index],s={};if(t&&OR(r)){let e=this.index,n=Object.keys(t).filter(e=>!e.match(`,`)&&t[e]&&t[e].length>1).map(parseFloat).filter(e=>i.indexOf(e)!==-1).filter(t=>{let n=this.chart.series[t].options,r=n.stacking&&n.stack;if(W(r)){if(q(s[r]))return e===t&&(e=s[r]),!1;s[r]=t}return!0}).sort((e,t)=>t-e);a=n.indexOf(e),o=n.length}}),a=this.xAxis.reversed?o-1-a:a;let s=(o-1)*r.paddedWidth+t;e=(n.plotX||0)+s/2-t-a*r.paddedWidth}return e}translate(){let e=this,t=e.chart,n=e.options,r=e.dense=e.closestPointRange*e.xAxis.transA<2,i=e.borderWidth=n.borderWidth??+!r,a=e.xAxis,o=e.yAxis,s=n.threshold,c=n.minPointLength??5,l=e.getColumnMetrics(),u=l.width,d=e.pointXOffset=l.offset,f=e.dataMin,p=e.dataMax,m=e.translatedThreshold=o.getThreshold(s),h=e.barW=Math.max(u,1+2*i);n.pointPadding&&n.crisp&&(h=Math.ceil(h)),YV.prototype.translate.apply(e),e.points.forEach(function(r){let i=r.yBottom??m,g=999+Math.abs(i),_=r.plotX||0,v=uR(r.plotY,-g,o.len+g),y,b=Math.min(v,i),x=Math.max(v,i)-b,S=u,C=_+d,w=h;c&&Math.abs(x)c?i-(y?c:0):m-(y?c:0)),W(r.options.pointWidth)&&(S=w=Math.ceil(r.options.pointWidth),C-=Math.round((S-u)/2)),n.centerInCategory&&(C=e.adjustForMissingColumns(C,S,r,l)),r.barX=C,r.pointWidth=S,r.tooltipPos=t.inverted?[uR(o.len+o.pos-t.plotLeft-v,o.pos-t.plotLeft,o.len+o.pos-t.plotLeft),a.len+a.pos-t.plotTop-C-w/2,x]:[a.left-t.plotLeft+C+w/2,uR(v+o.pos-t.plotTop,o.pos-t.plotTop,o.len+o.pos-t.plotTop),x],r.shapeType=e.pointClass.prototype.shapeType||`roundedRect`,r.shapeArgs=e.crispCol(C,b,w,r.isNull?0:x)}),K(this,`afterColumnTranslate`)}drawGraph(){this.group[this.dense?`addClass`:`removeClass`](`highcharts-dense-data`)}pointAttribs(e,t){let n=this.options,r=this.pointAttrToOptions||{},i=r.stroke||`borderColor`,a=r[`stroke-width`]||`borderWidth`,o,s,c,l=e&&e.color||this.color,u=e&&e[i]||n[i]||l,d=e&&e.options.dashStyle||n.dashStyle,f=e&&e[a]||n[a]||this[a]||0,p=e?.isNull&&n.nullInteraction?0:e?.opacity??n.opacity??1;e&&this.zones.length&&(s=e.getZone(),l=e.options.color||s&&(s.color||e.nonZonedColor)||this.color,s&&(u=s.borderColor||u,d=s.dashStyle||d,f=s.borderWidth||f)),t&&e&&(o=X(n.states[t],e.options.states?.[t]||{}),c=o.brightness,l=o.color||c!==void 0&&$H(l).brighten(o.brightness).get()||l,u=o[i]||u,f=o[a]||f,d=o.dashStyle||d,p=Q(o.opacity,p));let m={fill:l,stroke:u,"stroke-width":f,opacity:p};return d&&(m.dashstyle=d),m}drawPoints(e=this.points){let t=this,n=this.chart,r=t.options,i=r.nullInteraction,a=n.renderer,o=r.animationLimit||250,s;e.forEach(function(e){let c=e.plotY,l=e.graphic,u=!!l,d=l&&n.pointCount(n===`dataLabelsGroup`?e.push(...t.dataLabelsGroups||[]):e.push(t[n]),e),[]).forEach(e=>{e&&(e.addClass(`highcharts-tracker`).on(`mouseover`,i).on(`mouseout`,function(e){r?.onTrackerMouseOut(e)}).on(`touchstart`,i),!n.styledMode&&t.options.cursor&&e.css({cursor:t.options.cursor}))}),!0),K(this,`afterDrawTracker`)}remove(){let e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),YV.prototype.remove.apply(e,arguments)}};tU.defaultOptions=X(YV.defaultOptions,ZH),G(tU.prototype,{directTouch:!0,getSymbol:eU,negStacks:!0,trackerGroups:[`group`,`dataLabelsGroup`]}),zV.registerSeriesType(`column`,tU);var nU=tU,{getDeferredAnimation:rU}=Cz,{format:iU}=Bz,aU;(function(e){function t(){return u(this).some(e=>e?.enabled)}function n(e,t,n,r,i){let a=this,{chart:o,enabledDataSorting:s}=this,c=this.isCartesian&&o.inverted,l=e.plotX,u=e.plotY,d=n.rotation||0,f=W(l)&&W(u)&&o.isInsidePlot(l,Math.round(u),{inverted:c,paneCoordinates:!0,series:a}),p=n=>{s&&a.xAxis&&!m&&a.setDataLabelStartPos(e,t,i,f,n)},m=d===0?Q(n.overflow,s?`none`:`justify`)===`justify`:!1,h=this.visible&&e.visible!==!1&&W(l)&&(e.series.forceDL||s&&!m||f||Q(n.inside,!!this.options.stacking)&&r&&o.isInsidePlot(l,c?r.x+1:r.y+r.height-1,{inverted:c,paneCoordinates:!0,series:a})),g=e.pos();if(h&&g){let e=t.getBBox(),s=t.getBBox(void 0,0);if(r=G({x:g[0],y:Math.round(g[1]),width:0,height:0},r||{}),n.alignTo===`plotEdges`&&a.isCartesian&&(r[c?`x`:`y`]=0,r[c?`width`:`height`]=this.yAxis?.len||0),G(n,{width:e.width,height:e.height}),p(r),t.align(X(n,{width:s.width,height:s.height}),!1,r,!1),t.alignAttr.x+=yR(n.align)*(s.width-e.width),t.alignAttr.y+=yR(n.verticalAlign)*(s.height-e.height),t[t.placed?`animate`:`attr`]({"text-align":t.alignAttr[`text-align`]||`center`,x:t.alignAttr.x+(e.width-s.width)/2,y:t.alignAttr.y+(e.height-s.height)/2,rotationOriginX:(t.width||0)/2,rotationOriginY:(t.height||0)/2}),m&&r.height>=0)this.justifyDataLabel(t,n,t.alignAttr,e,r,i);else if(Q(n.crop,!0)){let{x:n,y:r}=t.alignAttr;h=o.isInsidePlot(n,r,{paneCoordinates:!0,series:a})&&o.isInsidePlot(n+e.width-1,r+e.height-1,{paneCoordinates:!0,series:a})}n.shape&&!d&&t[i?`attr`:`animate`]({anchorX:g[0],anchorY:g[1]})}i&&s&&(t.placed=!1),!h&&(!s||m)?(t.hide(),t.placed=!1):(t.show(),t.placed=!0)}function r(e,t){let n=t.filter;if(n){let t=n.operator,r=e[n.property],i=n.value;return t===`>`&&r>i||t===`<`&&r=`&&r>=i||t===`<=`&&r<=i||t===`==`&&r==i||t===`===`&&r===i||t===`!=`&&r!=i||t===`!==`&&r!==i}return!0}function i(e){let r=e.prototype;r.initDataLabels||(r.initDataLabels=o,r.initDataLabelsGroup=a,r.alignDataLabel=n,r.drawDataLabels=s,r.justifyDataLabel=c,r.mergeArrays=l,r.setDataLabelStartPos=d,r.hasDataLabels=t)}e.compose=i;function a(e,t){K(this,`initDataLabelsGroup`,{index:e,zIndex:t?.zIndex??6}),this.dataLabelsGroup=this.dataLabelsGroups?.[e];let n=this.plotGroup(`dataLabelsGroup`,`data-labels`,this.hasRendered?`inherit`:`hidden`,t?.zIndex??6,this.dataLabelsParentGroups?.[e]);return this.dataLabelsGroups||=[],this.dataLabelsGroups[e]=n,this.dataLabelsGroup=this.dataLabelsGroups[0],n}function o(e,t,n){let r=this,i=!!r.hasRendered,a=this.initDataLabelsGroup(e,n).attr({opacity:+i});return!i&&a&&(r.visible&&a.show(),r.options.animation?a.animate({opacity:1},t):a.attr({opacity:1})),a}function s(e){e||=this.points;let t=this,n=t.chart,i=t.options,a=n.renderer,{backgroundColor:o,plotBackgroundColor:s}=n.options.chart,c=a.getContrast(J(s)&&s||J(o)&&o||`#000000`),d=u(t),f,p,{animation:m,defer:h}=d[0],g=h?rU(n,m,t):{defer:0,duration:0};K(this,`drawDataLabels`),t.hasDataLabels?.()&&e.forEach(e=>{let o=e.dataLabels||[],s=e.color||t.color;f=RR(l(d,e.dlOptions||e.options?.dataLabels)),f.forEach((l,u)=>{p=this.initDataLabels(u,g,l);let d=l.enabled&&(e.visible||e.dataLabelOnHidden)&&(!e.isNull||e.dataLabelOnNull)&&r(e,l),{backgroundColor:f,borderColor:m,distance:h,style:_={}}=l,v,y,b,x={},S=o[u],C=!S,w;d&&(v=Q(l[e.formatPrefix+`Format`],l.format),y=W(v)?iU(v,e,n):(l[e.formatPrefix+`Formatter`]||l.formatter).call(e,l,e),b=l.rotation,n.styledMode||(_.color=Q(l.color,_.color,J(t.color)?t.color:void 0,`#000000`),_.color===`contrast`?(f!==`none`&&(w=f),e.contrastColor=a.getContrast(w!==`auto`&&J(w)&&w||(J(s)?s:``)),_.color=w||!W(h)&&l.inside||NR(h||0)<0||i.stacking?e.contrastColor:c):delete e.contrastColor,i.cursor&&(_.cursor=i.cursor)),x={r:l.borderRadius||0,rotation:b,padding:l.padding,zIndex:1},n.styledMode||(x.fill=f===`auto`?e.color:f,x.stroke=m===`auto`?e.color:m,x[`stroke-width`]=l.borderWidth),Z(x,(e,t)=>{e===void 0&&delete x[t]})),S&&(!d||!W(y)||!!(S.div||S.text?.foreignObject)!=!!l.useHTML||(!S.rotation||!l.rotation)&&S.rotation!==l.rotation)&&(S=void 0,C=!0),d&&W(y)&&y!==``&&(S?x.text=y:(S=a.label(y,0,0,l.shape,void 0,void 0,l.useHTML,void 0,`data-label`),S.addClass(` highcharts-data-label-color-`+e.colorIndex+` `+(l.className||``)+(l.useHTML?` highcharts-tracker`:``))),S&&(S.options=l,S.attr(x),n.styledMode?_.width&&S.css({width:_.width,textOverflow:_.textOverflow,whiteSpace:_.whiteSpace}):S.css(_).shadow(l.shadow),K(S,`beforeAddingDataLabel`,{labelOptions:l,point:e}),S.added||S.add(p),t.alignDataLabel(e,S,l,void 0,C),S.isActive=!0,o[u]&&o[u]!==S&&o[u].destroy(),o[u]=S))});let u=o.length;for(;u--;)o[u]?.isActive?o[u].isActive=!1:(o[u]?.destroy(),o.splice(u,1));e.dataLabel=o[0],e.dataLabels=o}),K(this,`afterDrawDataLabels`)}function c(e,t,n,r,i,a){let o=this.chart,s=t.align,c=t.verticalAlign,l=e.box?0:e.padding||0,u=o.inverted?this.yAxis:this.xAxis,d=u?u.left-o.plotLeft:0,f=o.inverted?this.xAxis:this.yAxis,p=f?f.top-o.plotTop:0,{x:m=0,y:h=0}=t,g,_;return g=(n.x||0)+l+d,g<0&&(s===`right`&&m>=0?(t.align=`left`,t.inside=!0):m-=g,_=!0),g=(n.x||0)+r.width-l+d,g>o.plotWidth&&(s===`left`&&m<=0?(t.align=`right`,t.inside=!0):m+=o.plotWidth-g,_=!0),g=n.y+l+p,g<0&&(c===`bottom`&&h>=0?(t.verticalAlign=`top`,t.inside=!0):h-=g,_=!0),g=(n.y||0)+r.height-l+p,g>o.plotHeight&&(c===`top`&&h<=0?(t.verticalAlign=`bottom`,t.inside=!0):h+=o.plotHeight-g,_=!0),_&&(t.x=m,t.y=h,e.placed=!a,e.align(t,void 0,i)),_}function l(e,t){let n=[],r;if(OR(e)&&!OR(t))n=e.map(function(e){return X(e,t)});else if(OR(t)&&!OR(e))n=t.map(function(t){return X(e,t)});else if(!OR(e)&&!OR(t))n=X(e,t);else if(OR(e)&&OR(t))for(r=Math.max(e.length,t.length);r--;)n[r]=X(e[r],t[r]);return n}function u(e){let t=e.chart.options.plotOptions;return RR(l(l(t?.series?.dataLabels,t?.[e.type]?.dataLabels),e.options.dataLabels))}function d(e,t,n,r,i){let a=this.chart,o=a.inverted,s=this.xAxis,c=s.reversed,l=((o?t.height:t.width)||0)/2,u=e.pointWidth,d=u?u/2:0;t.startXPos=o?i.x:c?-l-d:s.width-l+d,t.startYPos=o?c?this.yAxis.height-l+d:-l-d:i.y,r?t.visibility===`hidden`&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0},void 0,t.hide),a.hasRendered&&(n&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}})(aU||={});var oU=aU,{composed:sU}=V,{series:cU}=zV,lU;(function(e){function t(e,t,n,r,i){let{chart:a,options:o}=this,s=a.inverted,c=this.xAxis?.len||a.plotSizeX||0,l=this.yAxis?.len||a.plotSizeY||0,u=e.dlBox||e.shapeArgs,d=e.below??(e.plotY||0)>(this.translatedThreshold??l),f=n.inside??!!o.stacking;if(u){if(r=X(u),n.overflow!==`allow`||n.crop!==!1||o.clip!==!1){r.y<0&&(r.height+=r.y,r.y=0);let e=r.y+r.height-l;e>0&&e● {series.name}
`,pointFormat:`x: {point.x}
y: {point.y}
`}},{column:pU,line:mU}=zV.seriesTypes,hU=class extends mU{applyJitter(){let e=this,t=this.options.jitter,n=this.points.length;function r(e){let t=Math.sin(e)*1e4;return t-Math.floor(t)}t&&this.points.forEach(function(i,a){[`x`,`y`].forEach(function(o,s){if(t[o]&&!i.isNull){let c=`plot${o.toUpperCase()}`,l=e[`${o}Axis`],u=t[o]*l.transA;if(l&&!l.logarithmic){let e=Math.max(0,(i[c]||0)-u);i[c]=e+(Math.min(l.len,(i[c]||0)+u)-e)*r(a+s*n),o===`x`&&(i.clientX=i.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&=this.graph.destroy()}};hU.defaultOptions=X(mU.defaultOptions,fU),G(hU.prototype,{allowOutsidePlotInteraction:!0,drawTracker:pU.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:[`group`,`markerGroup`,`dataLabelsGroup`]}),H(hU,`afterTranslate`,function(){this.applyJitter()}),zV.registerSeriesType(`scatter`,hU);var{deg2rad:gU}=V,_U;(function(e){function t(){let e=this.options,t=this.chart,n=2*(e.slicedOffset||0),r=t.plotWidth-2*n,i=t.plotHeight-2*n,a=e.center,o=Math.min(r,i),s=e.thickness,c,l=e.size,u=e.innerSize||0,d,f;typeof l==`string`&&(l=parseFloat(l)),typeof u==`string`&&(u=parseFloat(u));let p=[Q(a?.[0],`50%`),Q(a?.[1],`50%`),Q(l&&l<0?void 0:e.size,`100%`),Q(u&&u<0?void 0:e.innerSize||0,`0%`)];for(t.angular&&!(this instanceof YV)&&(p[3]=0),d=0;d<4;++d)f=p[d],c=d<2||d===2&&/%$/.test(f),p[d]=FR(f,[r,i,o,p[2]][d])+(c?n:0);return p[3]>p[2]&&(p[3]=p[2]),q(s)&&s*20&&(p[3]=p[2]-s*2),K(this,`afterGetCenter`,{positions:p}),p}e.getCenter=t;function n(e,t){let n=q(e)?e:0,r=q(t)&&t>n&&t-n<360?t:n+360;return{start:gU*(n+-90),end:gU*(r+-90)}}e.getStartAndEndRadians=n})(_U||={});var vU=_U,{setAnimation:yU}=Cz,bU=class extends bV{getConnectorPath(e){let t=e.dataLabelPosition,n=e.options||{},r=n.connectorShape,i=this.connectorShapes[r]||r;return t&&i.call(this,{...t.computed,alignment:t.alignment},t.connectorPosition,n)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end,borderRadius:t.borderRadius})}constructor(e,t,n){super(e,t,n),this.half=0,this.name??=e.chart.options.lang.pieSliceName;let r=e=>{this.slice(e.type===`select`)};H(this,`select`,r),H(this,`unselect`,r)}isValid(){return q(this.y)&&this.y>=0}setVisible(e,t=!0){e!==this.visible&&this.update({visible:e??!this.visible},t,void 0,!1)}slice(e,t,n){let r=this.series,i=r.chart;yU(n,i),t=Q(t,!0),this.sliced=this.options.sliced=e=W(e)?e:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}};G(bU.prototype,{connectorShapes:{fixedOffset:function(e,t,n){let r=t.breakAt,i=t.touchingSliceAt,a=n.softConnector?[`C`,e.x+(e.alignment===`left`?-5:5),e.y,2*r.x-i.x,2*r.y-i.y,r.x,r.y]:[`L`,r.x,r.y];return[[`M`,e.x,e.y],a,[`L`,i.x,i.y]]},straight:function(e,t){let n=t.touchingSliceAt;return[[`M`,e.x,e.y],[`L`,n.x,n.y]]},crookedLine:function(e,t,n){let{angle:r=this.angle||0,breakAt:i,touchingSliceAt:a}=t,{series:o}=this,[s,c,l]=o.center,u=l/2,{plotLeft:d,plotWidth:f}=o.chart,p=e.alignment===`left`,{x:m,y:h}=e,g=i.x;if(n.crookDistance){let e=FR(n.crookDistance,1);g=p?s+u+(f+d-s-u)*(1-e):d+(s-u)*e}else g=s+(c-h)*Math.tan(r-Math.PI/2);let _=[[`M`,m,h]];return(p?g<=m&&g>=i.x:g>=m&&g<=i.x)&&_.push([`L`,g,h]),_.push([`L`,i.x,i.y],[`L`,a.x,a.y]),_}}});var xU=bU,SU={borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:`crookedLine`,crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:`point`,marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:`#ffffff`,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{getStartAndEndRadians:CU}=vU,{noop:wU}=V,TU=class extends YV{animate(e){let t=this,n=t.points,r=t.startAngleRad;e||n.forEach(function(e){let n=e.graphic,i=e.shapeArgs;n&&i&&(n.attr({r:Q(e.startR,t.center&&t.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},t.options.animation))})}drawEmpty(){let e=this.startAngleRad,t=this.endAngleRad,n=this.options,r,i;this.total===0&&this.center?(r=this.center[0],i=this.center[1],this.graph||=this.chart.renderer.arc(r,i,this.center[1]/2,0,e,t).addClass(`highcharts-empty-series`).add(this.group),this.graph.attr({d:fB.arc(r,i,this.center[2]/2,0,{start:e,end:t,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||`none`,stroke:n.color||`#cccccc`})):this.graph&&=this.graph.destroy()}drawPoints(){let e=this.chart.renderer;this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,t,n,r){let i=this.center,a=this.radii?this.radii[n.index]||0:i[2]/2,o=r.dataLabelPosition?.distance||0,s=Math.asin(uR((e-i[1])/(a+o),-1,1));return i[0]+(t?-1:1)*(Math.cos(s)*(a+o))+(o>0?(t?-1:1)*(r.padding||0):0)}hasData(){return this.points.some(e=>e.visible)}redrawPoints(){let e=this,t=e.chart,n,r,i,a;this.drawEmpty(),e.group&&!t.styledMode&&e.group.shadow(e.options.shadow),e.points.forEach(function(o){let s={};r=o.graphic,!o.isNull&&r?(a=o.shapeArgs,n=o.getTranslate(),t.styledMode||(i=e.pointAttribs(o,o.selected&&`select`)),o.delayedRendering?(r.setRadialReference(e.center).attr(a).attr(n),t.styledMode||r.attr(i).attr({"stroke-linejoin":`round`}),o.delayedRendering=!1):(r.setRadialReference(e.center),t.styledMode||X(!0,s,i),X(!0,s,a,n),r.animate(s)),r.attr({visibility:o.visible?`inherit`:`hidden`}),r.addClass(o.getClassName(),!0)):r&&(o.graphic=r.destroy())})}sortByAngle(e,t){e.sort(function(e,n){return e.angle!==void 0&&(n.angle-e.angle)*t})}translate(e){K(this,`translate`),this.generatePoints();let t=this,n=t.options,r=n.slicedOffset,i=CU(n.startAngle,n.endAngle),a=t.startAngleRad=i.start,o=(t.endAngleRad=i.end)-a,s=t.points,c=n.ignoreHiddenPoint,l=s.length,u,d,f,p,m,h,g,_=0;for(e||(t.center=e=t.getCenter()),h=0;h1.5*Math.PI?f-=2*Math.PI:f<-Math.PI/2&&(f+=2*Math.PI),g.slicedTranslation={translateX:Math.round(Math.cos(f)*r),translateY:Math.round(Math.sin(f)*r)},p=Math.cos(f)*e[2]/2,m=Math.sin(f)*e[2]/2,g.tooltipPos=[e[0]+p*.7,e[1]+m*.7],g.half=+(f<-Math.PI/2||f>Math.PI/2),g.angle=f}K(t,`afterTranslate`)}updateTotals(){let e=this.points,t=e.length,n=this.options.ignoreHiddenPoint,r,i,a=0;for(r=0;r0&&(i.visible||!n)?i.y/a*100:0,i.total=a}};TU.defaultOptions=X(YV.defaultOptions,SU),G(TU.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:nU.prototype.drawTracker,getCenter:vU.getCenter,getSymbol:wU,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:nU.prototype.pointAttribs,pointClass:xU,requireSorting:!1,searchPoint:wU,trackerGroups:[`group`,`dataLabelsGroup`]}),zV.registerSeriesType(`pie`,TU);var{composed:EU,noop:DU}=V,{distribute:OU}=Wz,{series:kU}=zV,AU;(function(e){let t={radialDistributionY:function(e,t){return(t.dataLabelPosition?.top||0)+e.distributeBox.pos},radialDistributionX:function(e,t,n,r,i){let a=i.dataLabelPosition;return e.getX(n<(a?.top||0)+2||n>(a?.bottom||0)-2?r:n,t.half,t,i)},justify:function(e,t,n,r){return r[0]+(e.half?-1:1)*(n+(t.dataLabelPosition?.distance||0))},alignToPlotEdges:function(e,t,n,r){let i=e.getBBox().width;return t?i+r:n-i-r},alignToConnectors:function(e,t,n,r){let i=0,a;return e.forEach(function(e){a=e.dataLabel.getBBox().width,a>i&&(i=a)}),t?i+r:n-i-r}};function n(e){if(oU.compose(kU),PR(EU,`PieDataLabel`)){let n=e.prototype;n.dataLabelPositioners=t,n.alignDataLabel=DU,n.drawDataLabels=i,n.getDataLabelPosition=r,n.placeDataLabels=a,n.verifyDataLabelOverflow=o}}e.compose=n;function r(e,t){let n=Math.PI/2,{start:r=0,end:i=0}=e.shapeArgs||{},a=e.angle||0;t>0&&rn&&a>n/2&&a{(e.dataLabels||[]).forEach(e=>{e.shortened&&=(e.attr({width:`auto`}).css({width:`auto`,textOverflow:`clip`}),!1)})}),kU.prototype.drawDataLabels.apply(e),t.forEach(e=>{(e.dataLabels||[]).forEach((t,n)=>{let r=s[2]/2,i=t.options,a=FR(i?.distance||0,r);n===0&&u[e.half].push(e),W(i?.style?.width)||t.getBBox().width>o&&(t.css({width:Math.round(o*.7)+`px`}),t.shortened=!0),t.dataLabelPosition=this.getDataLabelPosition(e,a),g=Math.max(g,a)})}),u.forEach((t,o)=>{let u=t.length,p=[],_,v,y=0,b;u&&(e.sortByAngle(t,o-.5),g>0&&(_=Math.max(0,l-c-g),v=Math.min(l+c+g,n.plotHeight),t.forEach(e=>{(e.dataLabels||[]).forEach(t=>{let r=t.dataLabelPosition;r&&r.distance>0&&(r.top=Math.max(0,l-c-r.distance),r.bottom=Math.min(l+c+r.distance,n.plotHeight),y=t.getBBox().height||21,t.lineHeight=n.renderer.fontMetrics(t.text||t).h+2*t.padding,e.distributeBox={target:(t.dataLabelPosition?.natural.y||0)-r.top+t.lineHeight/2,size:y,rank:e.y},p.push(e.distributeBox))})}),b=v+y-_,OU(p,b,b/5)),t.forEach(n=>{(n.dataLabels||[]).forEach(l=>{let u=l.options||{},g=n.distributeBox,_=l.dataLabelPosition,v=_?.natural.y||0,y=u.connectorPadding||0,b=l.lineHeight||21,x=(b-l.getBBox().height)/2,S=0,C=v,w=`inherit`;if(_){if(p&&W(g)&&_.distance>0&&(g.pos===void 0?w=`hidden`:(h=g.size,C=f.radialDistributionY(n,l))),u.justify)S=f.justify(n,l,c,s);else switch(u.alignTo){case`connectors`:S=f.alignToConnectors(t,o,r,a);break;case`plotEdges`:S=f.alignToPlotEdges(l,o,r,a);break;default:S=f.radialDistributionX(e,n,C-x,v,l)}if(_.attribs={visibility:w,align:_.alignment},_.posAttribs={x:S+(u.x||0)+({left:y,right:-y}[_.alignment]||0),y:C+(u.y||0)-b/2},_.computed.x=S,_.computed.y=C-x,Q(u.crop,!0)){m=l.getBBox().width;let e;S-mr-y&&o===0&&(e=Math.round(S+m-r+y),d[1]=Math.max(e,d[1])),C-h/2<0?d[0]=Math.max(Math.round(-C+h/2),d[0]):C+h/2>i&&(d[2]=Math.max(Math.round(C+h/2-i),d[2])),_.sideOverflow=e}}})}))}),(cR(d)===0||this.verifyDataLabelOverflow(d))&&(this.placeDataLabels(),this.points.forEach(t=>{t.dataLabels?.forEach((r,i)=>{let{connectorColor:a,connectorWidth:o=1}=r.options||{},s=r.dataLabelPosition;if(q(o)){let c;p=r.connector,s&&s.distance>0?(c=!p,p||(r.connector=p=n.renderer.path().addClass(`highcharts-data-label-connector highcharts-color-`+t.colorIndex+(t.className?` `+t.className:``)).add(e.dataLabelsGroups?.[i])),n.styledMode||p.attr({"stroke-width":o,stroke:a||t.color||`#666666`}),p[c?`attr`:`animate`]({d:t.getConnectorPath(r)}),p.attr({visibility:s.attribs?.visibility})):p&&(r.connector=p.destroy())}})})))}function a(){this.points.forEach(e=>{(e.dataLabels||[]).forEach(e=>{let t=e.dataLabelPosition;t?(t.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-t.sideOverflow,0)+`px`,textOverflow:e.options?.style?.textOverflow||`ellipsis`}),e.shortened=!0),e.attr(t.attribs),e[e.moved?`animate`:`attr`](t.posAttribs),e.moved=!0):e&&e.attr({y:-9999})}),delete e.distributeBox},this)}function o(e){let t=this.center,n=this.options,r=n.center,i=n.minSize||80,a=i,o=n.size!==null;return o||(r[0]===null?(a=Math.max(t[2]-e[1]-e[3],i),t[0]+=(e[3]-e[1])/2):a=Math.max(t[2]-Math.max(e[1],e[3]),i),r[1]===null?(a=uR(a,i,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2):a=uR(a,i,t[2]-Math.max(e[0],e[2])),a(e.x+=t.x,e.y+=t.y,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}}e.getCenterOfPoints=t;function n(e,t){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}e.getDistanceBetweenPoints=n;function r(e,t){return Math.atan2(t.x-e.x,t.y-e.y)}e.getAngleBetweenPoints=r;function i({x:e,y:t},n){let r=n.length,i,a,o=!1;for(i=0,a=r-1;it!=l>t&&e<(c-r)*(t-s)/(l-s)+r&&(o=!o)}return o}e.pointInPolygon=i})(MU||={});var{pointInPolygon:NU}=MU;function PU(e){let t=this,n=e.length,r=(e,t)=>!(t.x>=e.x+e.width||t.x+t.width<=e.x||t.y>=e.y+e.height||t.y+t.height<=e.y),i=(e,t)=>{for(let n of e)if(NU({x:n[0],y:n[1]},t))return!0;return!1};function a(e){if(e&&(!e.alignAttr||e.placed)){let t=e.box?0:e.padding||0,n=e.alignAttr||{x:e.attr(`x`),y:e.attr(`y`)},{height:r,polygon:i,width:a}=e.getBBox(),o=yR(e.alignValue)*a;return e.width=a,e.height=r,{x:n.x+(e.parentGroup?.translateX||0)+t-o,y:n.y+(e.parentGroup?.translateY||0)+t,width:a-2*t,height:r-2*t,polygon:i}}}let o,s,c,l,u,d=!1;for(let t=0;t(t?.labelrank||0)-(e?.labelrank||0));for(let t=0;t{Z(e,e=>{e.label&&t.push(e.label)})});for(let n of e.series||[])if(n.visible&&n.hasDataLabels?.()){let r=n=>{for(let r of n)r.visible&&(r.dataLabels||[]).forEach(n=>{let i=n.options||{};n.labelrank=Q(i.labelrank,r.labelrank,r.shapeArgs?.height),i.allowOverlap??Number(i.distance)>0?(n.oldOpacity=n.opacity,n.newOpacity=1,IU(n,e)):t.push(n)})};r(n.nodes||[]),r(n.points)}this.hideOverlappingLabels(t)}var{defaultOptions:RU}=cz,{noop:zU}=V,BU={radius:0,scope:`stack`,where:void 0},VU=zU,HU=zU;function UU(e,t,n){let r=e[t],i=e[t+1];i[0]===`Z`&&(i=e[0]);let a,o,s;if((r[0]===`M`||r[0]===`L`)&&i[0]===`A`?(a=r,o=i,s=!0):r[0]===`A`&&(i[0]===`M`||i[0]===`L`)&&(a=i,o=r),a&&o&&o.params){let r=o[1],i=o[5],c=o.params,{start:l,end:u,cx:d,cy:f}=c,p=i?r-n:r+n,m=p?Math.asin(n/p):0,h=i?m:-m,g=Math.cos(m)*p;s?(c.start=l+h,a[1]=d+g*Math.cos(l),a[2]=f+g*Math.sin(l),e.splice(t+1,0,[`A`,n,n,0,0,1,d+r*Math.cos(c.start),f+r*Math.sin(c.start)])):(c.end=u-h,o[6]=d+r*Math.cos(c.end),o[7]=f+r*Math.sin(c.end),e.splice(t+1,0,[`A`,n,n,0,0,1,d+g*Math.cos(u),f+g*Math.sin(u)])),o[4]=Math.abs(c.end-c.start)1?h:m);return a}function GU(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:e,yAxis:t}=this,n=e.stacking===`percent`,r=RU.plotOptions?.[this.type]?.borderRadius,i=qU(e.borderRadius,Y(r)?r:{}),a=t.options.reversed;for(let r of this.points){let{shapeArgs:o}=r;if(r.shapeType===`roundedRect`&&o){let{width:s=0,height:c=0,y:l=0}=o,u=l,d=c;if(i.scope===`stack`&&r.stackTotal){let i=t.translate(n?100:r.stackTotal,!1,!0,!1,!0),a=t.translate(e.threshold||0,!1,!0,!1,!0),o=this.crispCol(0,Math.min(i,a),0,Math.abs(i-a));u=o.y,d=o.height}let f=(r.negative?-1:1)*(a?-1:1)==-1,p=i.where;!p&&this.is(`waterfall`)&&Math.abs((r.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(p=`all`),p||=`end`;let m=Math.min(FR(i.radius,s),s/2,p===`all`?d/2:1/0)||0;p===`end`&&(f&&(u-=m),d+=m),G(o,{brBoxHeight:d,brBoxY:u,r:m})}}}}function KU(e,t,n){let r=e.types.pie;if(!t.symbolCustomAttribs.includes(`borderRadius`)){let i=n.prototype.symbols;H(e,`afterColumnTranslate`,GU,{order:9}),H(r,`afterTranslate`,JU),t.symbolCustomAttribs.push(`borderRadius`,`brBoxHeight`,`brBoxY`,`brEnd`,`brStart`),VU=i.arc,HU=i.roundedRect,i.arc=WU,i.roundedRect=YU}}function qU(e,t){return Y(e)||(e={radius:e||0}),X(BU,t,e)}function JU(){let e=qU(this.options.borderRadius);for(let t of this.points){let n=t.shapeArgs;n&&(n.borderRadius=FR(e.radius,(n.r||0)-(n.innerR||0)))}}function YU(e,t,n,r,i={}){let a=HU(e,t,n,r,i),{r:o=0,brBoxHeight:s=r,brBoxY:c=t}=i,l=t-c,u=c+s-(t+r),d=l-o>-.1?0:o,f=u-o>-.1?0:o,p=Math.max(d&&l,0),m=Math.max(f&&u,0),h=[e+d,t],g=[e+n-d,t],_=[e+n,t+d],v=[e+n,t+r-f],y=[e+n-f,t+r],b=[e+f,t+r],x=[e,t+r-f],S=[e,t+d],C=(e,t)=>Math.sqrt(e**2-t**2);if(p){let e=C(d,d-p);h[0]-=e,g[0]+=e,_[1]=S[1]=t+d-p}if(r=Q(n.minWidth,0)&&this.chartHeight>=Q(n.minHeight,0)}).call(this,this)&&t.push(e._id)}function r(e,t){let n=this.options.responsive,r=this.currentResponsive,i=[],a;!t&&n&&n.rules&&n.rules.forEach(e=>{e._id===void 0&&(e._id=YR()),this.matchResponsiveRule(e,i)},this);let o=X(...i.map(e=>wR(n?.rules||[],t=>t._id===e)).map(e=>e?.chartOptions));o.isResponsiveOptions=!0,i=i.toString()||void 0;let s=r?.ruleIds;i!==s&&(r&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(r.undoOptions,e,!0),this.updatingResponsive=!1),i?(a=gR(o,this.options,!0,this.collectionsWithUpdate),a.isResponsiveOptions=!0,this.currentResponsive={ruleIds:i,mergedOptions:o,undoOptions:a},this.updatingResponsive||this.update(o,e,!0)):this.currentResponsive=void 0)}})(ZU||={});var QU=ZU,$=V;$.AST=Az,$.Axis=$B,$.Chart=vH,$.Color=pz,$.DataLabel=oU,$.DataTableCore=NV,$.Fx=_z,$.HTMLElement=RB,$.Legend=iH,$.LegendSymbol=FV,$.PlotLineOrBand=oV,$.Point=bV,$.Pointer=DV,$.RendererRegistry=Hz,$.Series=YV,$.SeriesRegistry=zV,$.StackItem=DH,$.SVGElement=tB,$.SVGRenderer=jB,$.Templating=Bz,$.Tick=WB,$.Time=nz,$.Tooltip=gV,$.addEvent=H,$.animObject=Cz.animObject,$.animate=Cz.animate,$.arrayMax=cR,$.arrayMin=sR,$.attr=lR,$.chart=vH.chart,$.clamp=uR,$.color=pz.parse,$.correctFloat=dR,$.createElement=fR,$.css=U,$.dateFormat=Bz.dateFormat,$.defaultOptions=cz.defaultOptions,$.defined=W,$.destroyObjectProperties=mR,$.diffObjects=gR,$.discardElement=hR,$.distribute=Wz.distribute,$.erase=_R,$.error=GR,$.extend=G,$.extendClass=vR,$.find=wR,$.fireEvent=K,$.format=Bz.format,$.getDeferredAnimation=Cz.getDeferredAnimation,$.getMagnitude=xR,$.getOptions=cz.getOptions,$.getStyle=CR,$.insertItem=KR,$.isArray=OR,$.isClass=DR,$.isDOMElement=ER,$.isFunction=kR,$.isNumber=q,$.isObject=Y,$.isString=J,$.merge=X,$.normalizeTickInterval=AR,$.numberFormat=Bz.numberFormat,$.objectEach=Z,$.offset=jR,$.pad=MR,$.pick=Q,$.pInt=NR,$.relativeLength=FR,$.removeEvent=LR,$.seriesType=zV.seriesType,$.setAnimation=Cz.setAnimation,$.setOptions=cz.setOptions,$.splat=RR,$.stableSort=zR,$.stop=Cz.stop,$.syncTimeout=BR,$.time=cz.defaultTime,$.timers=_z.timers,$.timeUnits=qR,$.uniqueKey=YR,$.useSerialIds=XR,$.wrap=HR,XU.compose($.Series,$.SVGElement,$.SVGRenderer),uU.compose($.Series.types.column),oU.compose($.Series),tV.compose($.Axis),RB.compose($.SVGRenderer),iH.compose($.Chart),rV.compose($.Axis),FU($.Chart),jU.compose($.Series.types.pie),oV.compose($.Chart,$.Axis),DV.compose($.Chart),QU.compose($.Chart),wH.compose($.Axis,$.Chart,$.Series),BH.compose($.Axis,$.Chart,$.Series),gV.compose($.Pointer);var $U=$,eW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iArray.isArray(e)?e.flat():[e];function oW(e,t=void 0){let n={};function r(e,t,n=null){let r=t.split(`.`),i=e;for(let e=0;etypeof e==`string`).join(``)}function a(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&`props`in e}function o(e,t){return Object.assign(Object.assign({},e),{childOption:t.childOption?`${t.childOption}.${e.childOption}`:e.childOption,HCOption:t.HCOption?`${t.HCOption}.${e.HCOption}`:e.HCOption})}function s(e,t,n){if(!e)return;if(Array.isArray(e)&&e.some(e=>e?.props?.[`data-hc-option`])){let a=[];for(let n of e){let e=n?.props?.[`data-hc-option`];e?r(t,e,i([n])):a.push(n)}a.length&&n.childOption&&r(t,n.childOption,i(a));return}let a=[];if(Array.isArray(e))for(let t of e){if(t?.type?._HCReact){let e=t.type._HCReact;t.type._HCReact=o(e,n),c(t);continue}a.push(t)}else{let t=e;if(t?.type?._HCReact){let e=t.type._HCReact;t.type._HCReact=o(e,n),c(t)}else a.push(t)}if(n.childOption){let o=a.length>0?a:[e];r(t,n.childOption,i(o))}}function c(e){var i;if(!e||typeof e!=`object`)return;let o=e.type?._HCReact;if(!o?.HCOption)return;let c=n[i=o.HCOption]??(n[i]=o.isArrayType?[]:{}),l=Array.isArray(c),u=l?{}:c,d=e.props??{},{children:f}=d,p=eW(d,[`children`]);o.defaultOptions&&Object.assign(u,o.defaultOptions),Object.assign(u,p),typeof f==`string`&&o.childOption?r(u,o.childOption,f):Array.isArray(f)?s(f,u,o):a(f)&&t&&(f.props?.children&&Object.keys(f.props).length===1?s(f.props.children,u,o):o.childOption&&r(u,o.childOption,t(f))),l&&n[o.HCOption].push(u)}return Array.isArray(e)?e.flat().forEach(e=>c(e)):c(e),n}var sW=(0,l.forwardRef)(function(e,t){e.highcharts&&rW(e.highcharts);let n=tW.merge(Object.assign({title:{text:e.title||void 0}},e.options||{}),Object.assign({series:e.children?aW(e.children).filter(e=>e?.type?.type===`Series`).map(e=>tW.merge({type:e.props.type??(e.type?._HCReact)?.HC_Option.replace(`series.`,``),data:e.props.data||[]},Object.assign(Object.assign({},e.props.options||{}),oW(e.props.children,eR.renderToStaticMarkup)))):[]},oW(e.children,eR.renderToStaticMarkup)),e.options||{}),r=(0,l.useRef)(),i=(0,l.useRef)();(0,l.useImperativeHandle)(t,()=>({get chart(){return i.current},get container(){return r.current}}),[]);let a=t=>{var n;(n=t.title).text??(n.text=e.title)},o=()=>{e.children&&aW(e.children).filter(e=>e?.type?.type===`Series`).forEach((e,t)=>{if(e.props){let r=e.props,{children:i,type:a,options:o}=r,s=eW(r,[`children`,`type`,`options`]);o&&(n.series[t]=tW.merge(n.series[t],o)),n.series[t]=tW.merge(n.series[t],Object.assign(Object.assign({type:a??(e?.type)?._HCReact.HC_Option.replace(`series.`,``)},oW(e.props.children)),s))}})};return(0,l.useEffect)(()=>{if(nW.log(JSON.stringify(n,void 0,` `)),i.current)nW.log(`Updating chart`,JSON.parse(JSON.stringify(n))),a(n),o(),i.current.update(Object.assign(Object.assign({},n),oW(e.children,eR.renderToStaticMarkup)),!0,!0);else{let t=e.chartConstructor||`chart`;nW.log(`Creating chart using`,t,`constructor`),i.current=iW()[t](r.current,n)}}),l.createElement(`div`,Object.assign({},e.containerProps,{ref:r}))});function cW(e){return null}cW.type=`Series`,sW.Series=cW;function lW(e){return null}lW._HCReact={type:`HC_Option`,HCOption:`title`,childOption:`text`,defaultOptions:void 0,isArrayType:!1};function uW(e){return null}uW._HCReact={type:`HC_Option`,HCOption:`subtitle`,childOption:`text`,defaultOptions:void 0,isArrayType:!1};function dW(e){return null}dW._HCReact={type:`HC_Option`,HCOption:`credits`,childOption:`text`,defaultOptions:void 0,isArrayType:!1};function fW(e){return null}fW._HCReact={type:`HC_Option`,HCOption:`tooltip`,childOption:`format`,defaultOptions:{useHTML:!0},isArrayType:!1};function pW(e){return null}pW._HCReact={type:`HC_Option`,HCOption:`legend`,childOption:`labelFormat`,defaultOptions:void 0,isArrayType:!1};function mW(e){return null}mW._HCReact={type:`HC_Option`,HCOption:`xAxis`,childOption:`title.text`,defaultOptions:void 0,isArrayType:!0};function hW(e){return null}hW._HCReact={type:`HC_Option`,HCOption:`yAxis`,childOption:`title.text`,defaultOptions:void 0,isArrayType:!0};function gW(e){return null}gW._HCReact={type:`HC_Option`,HCOption:`plotOptions`,childOption:``,defaultOptions:void 0,isArrayType:!1};export{c as _,GF as a,mP as c,YO as d,FO as f,Ac as g,Fu as h,oI as i,dN as l,fp as m,$L as n,wF as o,GE as p,ZL as r,_P as s,sW as t,Zj as u};