wurk 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/wurk/version.rb +1 -1
- data/vendor/assets/dashboard/assets/{AreaChart-CyZ2awLz.js → AreaChart-BrEBs9bV.js} +1 -1
- data/vendor/assets/dashboard/assets/{ArgsValue-DkNZasfN.js → ArgsValue-CiJzEwxS.js} +1 -1
- data/vendor/assets/dashboard/assets/{BatchDetail-GNWN2Qa5.js → BatchDetail-Cu1LFfNV.js} +1 -1
- data/vendor/assets/dashboard/assets/{Batches-CMHh4yl3.js → Batches-pf4zKSuU.js} +1 -1
- data/vendor/assets/dashboard/assets/{Busy-DzPOMFHP.js → Busy-Lv6K2ZkR.js} +1 -1
- data/vendor/assets/dashboard/assets/{Cron-CS11vEOM.js → Cron-BcnQ2Kev.js} +1 -1
- data/vendor/assets/dashboard/assets/{Dashboard-JZEYG_84.js → Dashboard-DMO-cH6d.js} +1 -1
- data/vendor/assets/dashboard/assets/{Dead-CPyPEPZe.js → Dead-o9K-1fo2.js} +1 -1
- data/vendor/assets/dashboard/assets/{Extension-C2iDCCej.js → Extension-MTUtXQuK.js} +1 -1
- data/vendor/assets/dashboard/assets/{JobDetailModal-DokU_RzZ.js → JobDetailModal-DKYvp6QS.js} +1 -1
- data/vendor/assets/dashboard/assets/{Limiters-B30yOq_H.js → Limiters-Bv9WgiHP.js} +1 -1
- data/vendor/assets/dashboard/assets/{Metrics-D1N6qjkS.js → Metrics-DnAsLwWl.js} +1 -1
- data/vendor/assets/dashboard/assets/{Modal-pu_rlxM0.js → Modal-CvD-1IKA.js} +1 -1
- data/vendor/assets/dashboard/assets/{PageHeader-Db9inHPu.js → PageHeader-B-0cTQeM.js} +1 -1
- data/vendor/assets/dashboard/assets/{Profiles-CoDtYfSq.js → Profiles-S_WCoS6S.js} +1 -1
- data/vendor/assets/dashboard/assets/{Queues-Bv2j9UcA.js → Queues-B6qQmaoY.js} +1 -1
- data/vendor/assets/dashboard/assets/{Retries-DulJz1La.js → Retries-BagJsqI0.js} +1 -1
- data/vendor/assets/dashboard/assets/{Scheduled-B7KZUYJf.js → Scheduled-DPzzoJkC.js} +1 -1
- data/vendor/assets/dashboard/assets/{Search-_zL0GqzG.js → Search-jWG793ku.js} +1 -1
- data/vendor/assets/dashboard/assets/{index-oCfJv9j0.js → index-DcfzJOIq.js} +7 -7
- data/vendor/assets/dashboard/assets/{useJobSetActions-DixonfPh.js → useJobSetActions-BCW6DHSe.js} +1 -1
- data/vendor/assets/dashboard/assets/{useMutation-DWBRM-DR.js → useMutation-NUbe15ar.js} +1 -1
- data/vendor/assets/dashboard/assets/{usePageParam-h6ZwD64I.js → usePageParam-BDV1DCDQ.js} +1 -1
- data/vendor/assets/dashboard/assets/{useSort-k9b5fes0.js → useSort-BPPxnBBo.js} +1 -1
- data/vendor/assets/dashboard/index.html +1 -1
- data/vendor/assets/dashboard/wurk-manifest.json +2 -2
- metadata +25 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ab301a0e5b620bb3045d471b6f7558e972490f3298e9c2a6526ccd68935cf21
|
|
4
|
+
data.tar.gz: 7c06d2874cbd5d83beaa79299c376fb0693584d98907ba3707f28e0ed38346b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 511b4a6d7897b8ca89fc5bf0320bcc3ee3f19562b07f711495440f20888e44766fe81bae76bfd9a2991beaf9d47c72cf63246179da79d038234c882943ca9ae1
|
|
7
|
+
data.tar.gz: 468c9e134dfafd8a44fcaef5472a88444fa06101df8f00745d5b48de206b3dcaeb305b5b0ca6c90ecf292805d5df80e2ae047368c196edb9a85d9f5e15f29c04
|
data/lib/wurk/version.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,S as t,b as n,x as r,y as i}from"./index-oCfJv9j0.js";var a=i(),o=e(n()),s=(0,o.createContext)(null),c=()=>(0,o.useContext)(s);function l(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=l(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function u(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=l(e))&&(r&&(r+=` `),r+=t);return r}var 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,o.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,o.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<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}function S(e,t){if(e==null)return{};var n,r,i=C(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function C(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var w=(0,o.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,s=e.className,c=e.style,l=e.title,d=e.desc,f=S(e,b),p=a||{width:r,height:i,x:0,y:0},m=u(`recharts-surface`,s);return o.createElement(`svg`,x({},v(f),{className:m,width:r,height:i,style:c,viewBox:`${p.x} ${p.y} ${p.width} ${p.height}`,ref:t}),o.createElement(`title`,null,l),o.createElement(`desc`,null,d),n)});function T(e){return function(){return e}}var E=Math.PI,D=2*E,O=1e-6,k=D-O;function A(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function j(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return A;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var M=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?A:j(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>O)if(!(Math.abs(u*s-c*l)>O)||!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((E-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>O&&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)>O||Math.abs(this._y1-l)>O)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%D+D),d>k?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>O&&this._append`A${n},${n},0,${+(d>=E)},${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 N(){return new M}N.prototype=M.prototype;function ee(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 M(t)}Array.prototype.slice;function te(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ne(e){this._context=e}ne.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 re(e){return new ne(e)}function ie(e){return e[0]}function ae(e){return e[1]}function oe(e,t){var n=T(!0),r=null,i=re,a=null,o=ee(s);e=typeof e==`function`?e:e===void 0?ie:T(e),t=typeof t==`function`?t:t===void 0?ae:T(t);function s(s){var c,l=(s=te(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:T(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:T(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:T(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function se(e,t,n){var r=null,i=T(!0),a=null,o=re,s=null,c=ee(l);e=typeof e==`function`?e:e===void 0?ie:T(+e),t=typeof t==`function`?t:T(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ae:T(+n);function l(l){var u,d,f,p=(l=te(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return oe().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:T(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:T(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:T(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:T(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:T(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:T(+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:T(!!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 ce=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 le(e){return new ce(e,!0)}function ue(e){return new ce(e,!1)}function de(){}function fe(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 pe(e){this._context=e}pe.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:fe(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:fe(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function me(e){return new pe(e)}function he(e){this._context=e}he.prototype={areaStart:de,areaEnd:de,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:fe(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ge(e){return new he(e)}function _e(e){this._context=e}_e.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:fe(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ve(e){return new _e(e)}function ye(e){this._context=e}ye.prototype={areaStart:de,areaEnd:de,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 be(e){return new ye(e)}function xe(e){return e<0?-1:1}function Se(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(xe(a)+xe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ce(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function we(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 Te(e){this._context=e}Te.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:we(this,this._t0,Ce(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,we(this,Ce(this,n=Se(this,e,t)),n);break;default:we(this,this._t0,n=Se(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ee(e){this._context=new De(e)}(Ee.prototype=Object.create(Te.prototype)).point=function(e,t){Te.prototype.point.call(this,t,e)};function De(e){this._context=e}De.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 Oe(e){return new Te(e)}function ke(e){return new Ee(e)}function Ae(e){this._context=e}Ae.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=je(e),i=je(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function je(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Me(e){return new Ae(e)}function Ne(e,t){this._context=e,this._t=t}Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Pe(e){return new Ne(e,.5)}function Fe(e){return new Ne(e,0)}function Ie(e){return new Ne(e,1)}function Le(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Re(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function ze(e,t){return e[t]}function Be(e){let t=[];return t.key=e,t}function Ve(){var e=T([]),t=Re,n=Le,r=ze;function i(i){var a=Array.from(e.apply(this,arguments),Be),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=te(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:T(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:T(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Re:typeof e==`function`?e:T(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Le,i):n},i}function He(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Le(e,t)}}function Ue(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Le(e,t)}}function We(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Le(e,t)}}function Ge(e){return e===`__proto__`}function Ke(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function qe(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Je(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Je).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function Ye(e){if(Array.isArray(e))return e.map(qe);if(typeof e==`symbol`)return[e];e=Je(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function Xe(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(Ge(t))return n;let r=e[t];return r===void 0?Ke(t)&&!Object.hasOwn(e,t)?Xe(e,Ye(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=qe(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Ze(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),Ge(t))return n;let r=e[t];return r===void 0?n:r}}}function Ze(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||Ge(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var Qe=4;function $e(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function et(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+$e(i)+n},``)}var tt=e=>e===0?0:e>0?1:-1,nt=e=>typeof e==`number`&&e!=+e,rt=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,P=e=>(typeof e==`number`||e instanceof Number)&&!nt(e),it=e=>P(e)||typeof e==`string`,at=0,ot=e=>{var t=++at;return`${e||``}${t}`},st=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(rt(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},ct=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function lt(e,t,n){return P(e)&&P(t)?$e(e+n*(t-e)):t}function ut(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):Xe(e,t))===n)}var F=e=>e==null,dt=e=>F(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function ft(e){return e!=null}function pt(){}var mt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,ht=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,o.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},gt=(e,t,n)=>r=>(e(t,n,r),null),_t=(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]=gt(a,t,n))}),r};function vt(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 yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vt(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bt(e,t,n){return(t=xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xt(e){var t=St(e,`string`);return typeof t==`symbol`?t:t+``}function St(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ct(e,t){var n=yt({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function wt(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function Tt(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function Et(e){return e}function Dt(e){return function(t){return Xe(t,e)}}function Ot(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function kt(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function At(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function jt(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Mt=`[object RegExp]`,Nt=`[object String]`,Pt=`[object Number]`,Ft=`[object Boolean]`,It=`[object Arguments]`,Lt=`[object Symbol]`,Rt=`[object Date]`,zt=`[object Map]`,Bt=`[object Set]`,Vt=`[object Array]`,Ht=`[object ArrayBuffer]`,Ut=`[object Object]`,Wt=`[object DataView]`,Gt=`[object Uint8Array]`,Kt=`[object Uint8ClampedArray]`,qt=`[object Uint16Array]`,Jt=`[object Uint32Array]`,Yt=`[object Int8Array]`,Xt=`[object Int16Array]`,Zt=`[object Int32Array]`,Qt=`[object Float32Array]`,$t=`[object Float64Array]`,en=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function tn(e){return en.Buffer!==void 0&&en.Buffer.isBuffer(e)}function nn(e,t){return rn(e,void 0,e,new Map,t)}function rn(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Ot(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=rn(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,rn(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(rn(a,void 0,n,r,i));return t}if(tn(e))return e.subarray();if(kt(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=rn(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),an(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),an(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),an(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,an(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),an(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),an(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),an(t,e,n,r,i),t}if(typeof e==`object`&&on(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),an(t,e,n,r,i),t}return e}function an(e,t,n=e,r,i){let a=[...Object.keys(t),...At(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=rn(t[s],s,n,r,i))}}function on(e){switch(jt(e)){case It:case Vt:case Ht:case Wt:case Ft:case Rt:case Qt:case $t:case Yt:case Xt:case Zt:case zt:case Pt:case Ut:case Mt:case Bt:case Nt:case Lt:case Gt:case Kt:case qt:case Jt:return!0;default:return!1}}function sn(e){return rn(e,void 0,e,new Map,void 0)}function cn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function ln(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function un(e,t,n){return typeof n==`function`?dn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?dn(t,r,e,s,!1):!!c},new Map,!0):un(e,t,()=>void 0)}function dn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return fn(e,t,n,r);case`function`:return Object.keys(t).length>0?dn(e,{...t},n,r,i):cn(e,t);default:return ln(e)&&i?typeof t==`string`?t===``:!0:cn(e,t)}}function fn(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return mn(e,t,n,r);if(t instanceof Map)return pn(e,t,n,r);if(t instanceof Set)return hn(e,t,n,r);let i=Object.keys(t);if(e==null||Ot(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!Ot(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function pn(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function mn(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function hn(e,t,n,r){return t.size===0?!0:e instanceof Set?mn([...e],[...t],n,r):!1}function gn(e,t){return un(e,t,()=>void 0)}function _n(e){return e=sn(e),t=>gn(t,e)}function vn(e,t){return nn(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(jt(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),an(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Pt:case Nt:case Ft:{let t=new e.constructor(e?.valueOf());return an(t,e),t}case It:{let t={};return an(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function yn(e){return vn(e)}var bn=/^(?:0|[1-9]\d*)$/;function xn(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return bn.test(e)}}function Sn(e){return typeof e==`object`&&!!e&&jt(e)===`[object Arguments]`}function Cn(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&Ke(t)&&e?.[t]==null?Ye(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||Sn(r))&&xn(t)&&t<r.length))return!1;r=r[t]}return!0}function wn(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=qe(e);break}return t=yn(t),function(n){let r=Xe(n,e);return r===void 0?Cn(n,e):t===void 0?r===void 0:gn(r,t)}}function Tn(e){if(e==null)return Et;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?wn(e[0],e[1]):_n(e);case`string`:case`symbol`:case`number`:return Dt(e)}}function En(e){return Number.isSafeInteger(e)&&e>=0}function Dn(e){return e!=null&&typeof e!=`function`&&En(e.length)}function On(e){return typeof e==`object`&&!!e}function kn(e){return On(e)&&Dn(e)}function An(e,t=Et){return kn(e)?wt(Array.from(e),Tt(Tn(t),1)):[]}function jn(e,t,n){return t===!0?An(e,n):typeof t==`function`?An(e,t):e}var Mn=r((e=>{var t=n();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,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(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})),Nn=r(((e,t)=>{t.exports=Mn()})),Pn=r((e=>{var t=n(),r=Nn();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(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,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Fn=r(((e,t)=>{t.exports=Pn()}))(),In=(0,o.createContext)(null),Ln=e=>e,I=()=>{var e=(0,o.useContext)(In);return e?e.store.dispatch:Ln},Rn=()=>{},zn=()=>Rn,Bn=(e,t)=>e===t;function L(e){var t=(0,o.useContext)(In),n=(0,o.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Rn,[t,e]);return(0,Fn.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:zn,t?t.store.getState:Rn,t?t.store.getState:Rn,n,Bn)}function Vn(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Hn(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 Un=e=>Array.isArray(e)?e:[e];function Wn(e){let t=Array.isArray(e[0])?e[0]:e;return Hn(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Gn(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Kn=class{constructor(e){this.value=e}deref(){return this.value}},qn=typeof WeakRef>`u`?Kn:WeakRef,Jn=0,Yn=1;function Xn(){return{s:Jn,v:void 0,o:null,p:null}}function Zn(e){return e instanceof qn?e.deref():e}function Qn(e,t={}){let n=Xn(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=Xn(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=Xn(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Yn)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Zn(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new qn(c):c}return s.s=Yn,s.v=c,c}return o.clearCache=()=>{n=Xn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function $n(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()),Vn(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Qn,argsMemoizeOptions:u=[]}={...n,...a},d=Un(c),f=Un(u),p=Wn(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Gn(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 R=$n(Qn);function er(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function tr(e,t,n){return ln(n)&&(typeof t==`number`&&Dn(n)&&xn(t)&&t<n.length||typeof t==`string`&&t in n)?cn(n[t],e):!1}function nr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var rr=(e,t,n)=>{if(e!==t){let r=nr(e),i=nr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function ir(e){return typeof e==`symbol`||e instanceof Symbol}var ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,or=/^\w*$/;function sr(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||ir(e)?!0:typeof e==`string`&&(or.test(e)||!ar.test(e))||t!=null&&Object.hasOwn(t,e)}function cr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||sr(e)?e:{key:e,path:Ye(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=rr(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function lr(e,...t){let n=t.length;return n>1&&tr(e,t[0],t[1])?t=[]:n>2&&tr(t[0],t[1],t[2])&&(t=[t[0]]),cr(e,er(t),[`asc`])}var ur=e=>e.legend.settings,dr=e=>e.legend.size,fr=R([e=>e.legend.payload,ur],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?lr(r,n):r});function pr(e,t){return vr(e)||_r(e,t)||hr(e,t)||mr()}function mr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
import{C as e,S as t,b as n,x as r,y as i}from"./index-DcfzJOIq.js";var a=i(),o=e(n()),s=(0,o.createContext)(null),c=()=>(0,o.useContext)(s);function l(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=l(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function u(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=l(e))&&(r&&(r+=` `),r+=t);return r}var 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,o.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,o.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<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}function S(e,t){if(e==null)return{};var n,r,i=C(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function C(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var w=(0,o.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,s=e.className,c=e.style,l=e.title,d=e.desc,f=S(e,b),p=a||{width:r,height:i,x:0,y:0},m=u(`recharts-surface`,s);return o.createElement(`svg`,x({},v(f),{className:m,width:r,height:i,style:c,viewBox:`${p.x} ${p.y} ${p.width} ${p.height}`,ref:t}),o.createElement(`title`,null,l),o.createElement(`desc`,null,d),n)});function T(e){return function(){return e}}var E=Math.PI,D=2*E,O=1e-6,k=D-O;function A(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function j(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return A;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var M=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?A:j(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>O)if(!(Math.abs(u*s-c*l)>O)||!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((E-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>O&&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)>O||Math.abs(this._y1-l)>O)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%D+D),d>k?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>O&&this._append`A${n},${n},0,${+(d>=E)},${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 N(){return new M}N.prototype=M.prototype;function ee(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 M(t)}Array.prototype.slice;function te(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ne(e){this._context=e}ne.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 re(e){return new ne(e)}function ie(e){return e[0]}function ae(e){return e[1]}function oe(e,t){var n=T(!0),r=null,i=re,a=null,o=ee(s);e=typeof e==`function`?e:e===void 0?ie:T(e),t=typeof t==`function`?t:t===void 0?ae:T(t);function s(s){var c,l=(s=te(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:T(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:T(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:T(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function se(e,t,n){var r=null,i=T(!0),a=null,o=re,s=null,c=ee(l);e=typeof e==`function`?e:e===void 0?ie:T(+e),t=typeof t==`function`?t:T(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ae:T(+n);function l(l){var u,d,f,p=(l=te(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return oe().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:T(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:T(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:T(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:T(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:T(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:T(+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:T(!!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 ce=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 le(e){return new ce(e,!0)}function ue(e){return new ce(e,!1)}function de(){}function fe(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 pe(e){this._context=e}pe.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:fe(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:fe(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function me(e){return new pe(e)}function he(e){this._context=e}he.prototype={areaStart:de,areaEnd:de,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:fe(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ge(e){return new he(e)}function _e(e){this._context=e}_e.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:fe(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ve(e){return new _e(e)}function ye(e){this._context=e}ye.prototype={areaStart:de,areaEnd:de,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 be(e){return new ye(e)}function xe(e){return e<0?-1:1}function Se(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(xe(a)+xe(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ce(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function we(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 Te(e){this._context=e}Te.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:we(this,this._t0,Ce(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,we(this,Ce(this,n=Se(this,e,t)),n);break;default:we(this,this._t0,n=Se(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ee(e){this._context=new De(e)}(Ee.prototype=Object.create(Te.prototype)).point=function(e,t){Te.prototype.point.call(this,t,e)};function De(e){this._context=e}De.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 Oe(e){return new Te(e)}function ke(e){return new Ee(e)}function Ae(e){this._context=e}Ae.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=je(e),i=je(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function je(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Me(e){return new Ae(e)}function Ne(e,t){this._context=e,this._t=t}Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Pe(e){return new Ne(e,.5)}function Fe(e){return new Ne(e,0)}function Ie(e){return new Ne(e,1)}function Le(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Re(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function ze(e,t){return e[t]}function Be(e){let t=[];return t.key=e,t}function Ve(){var e=T([]),t=Re,n=Le,r=ze;function i(i){var a=Array.from(e.apply(this,arguments),Be),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=te(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:T(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:T(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Re:typeof e==`function`?e:T(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Le,i):n},i}function He(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Le(e,t)}}function Ue(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Le(e,t)}}function We(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Le(e,t)}}function Ge(e){return e===`__proto__`}function Ke(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function qe(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Je(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Je).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function Ye(e){if(Array.isArray(e))return e.map(qe);if(typeof e==`symbol`)return[e];e=Je(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function Xe(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(Ge(t))return n;let r=e[t];return r===void 0?Ke(t)&&!Object.hasOwn(e,t)?Xe(e,Ye(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=qe(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Ze(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),Ge(t))return n;let r=e[t];return r===void 0?n:r}}}function Ze(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||Ge(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var Qe=4;function $e(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function et(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+$e(i)+n},``)}var tt=e=>e===0?0:e>0?1:-1,nt=e=>typeof e==`number`&&e!=+e,rt=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,P=e=>(typeof e==`number`||e instanceof Number)&&!nt(e),it=e=>P(e)||typeof e==`string`,at=0,ot=e=>{var t=++at;return`${e||``}${t}`},st=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(rt(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},ct=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function lt(e,t,n){return P(e)&&P(t)?$e(e+n*(t-e)):t}function ut(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):Xe(e,t))===n)}var F=e=>e==null,dt=e=>F(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function ft(e){return e!=null}function pt(){}var mt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,ht=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,o.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},gt=(e,t,n)=>r=>(e(t,n,r),null),_t=(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]=gt(a,t,n))}),r};function vt(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 yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vt(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bt(e,t,n){return(t=xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xt(e){var t=St(e,`string`);return typeof t==`symbol`?t:t+``}function St(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ct(e,t){var n=yt({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function wt(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function Tt(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function Et(e){return e}function Dt(e){return function(t){return Xe(t,e)}}function Ot(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function kt(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function At(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function jt(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Mt=`[object RegExp]`,Nt=`[object String]`,Pt=`[object Number]`,Ft=`[object Boolean]`,It=`[object Arguments]`,Lt=`[object Symbol]`,Rt=`[object Date]`,zt=`[object Map]`,Bt=`[object Set]`,Vt=`[object Array]`,Ht=`[object ArrayBuffer]`,Ut=`[object Object]`,Wt=`[object DataView]`,Gt=`[object Uint8Array]`,Kt=`[object Uint8ClampedArray]`,qt=`[object Uint16Array]`,Jt=`[object Uint32Array]`,Yt=`[object Int8Array]`,Xt=`[object Int16Array]`,Zt=`[object Int32Array]`,Qt=`[object Float32Array]`,$t=`[object Float64Array]`,en=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function tn(e){return en.Buffer!==void 0&&en.Buffer.isBuffer(e)}function nn(e,t){return rn(e,void 0,e,new Map,t)}function rn(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Ot(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=rn(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,rn(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(rn(a,void 0,n,r,i));return t}if(tn(e))return e.subarray();if(kt(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=rn(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),an(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),an(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),an(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,an(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),an(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),an(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),an(t,e,n,r,i),t}if(typeof e==`object`&&on(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),an(t,e,n,r,i),t}return e}function an(e,t,n=e,r,i){let a=[...Object.keys(t),...At(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=rn(t[s],s,n,r,i))}}function on(e){switch(jt(e)){case It:case Vt:case Ht:case Wt:case Ft:case Rt:case Qt:case $t:case Yt:case Xt:case Zt:case zt:case Pt:case Ut:case Mt:case Bt:case Nt:case Lt:case Gt:case Kt:case qt:case Jt:return!0;default:return!1}}function sn(e){return rn(e,void 0,e,new Map,void 0)}function cn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function ln(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function un(e,t,n){return typeof n==`function`?dn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?dn(t,r,e,s,!1):!!c},new Map,!0):un(e,t,()=>void 0)}function dn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return fn(e,t,n,r);case`function`:return Object.keys(t).length>0?dn(e,{...t},n,r,i):cn(e,t);default:return ln(e)&&i?typeof t==`string`?t===``:!0:cn(e,t)}}function fn(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return mn(e,t,n,r);if(t instanceof Map)return pn(e,t,n,r);if(t instanceof Set)return hn(e,t,n,r);let i=Object.keys(t);if(e==null||Ot(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!Ot(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function pn(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function mn(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function hn(e,t,n,r){return t.size===0?!0:e instanceof Set?mn([...e],[...t],n,r):!1}function gn(e,t){return un(e,t,()=>void 0)}function _n(e){return e=sn(e),t=>gn(t,e)}function vn(e,t){return nn(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(jt(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),an(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Pt:case Nt:case Ft:{let t=new e.constructor(e?.valueOf());return an(t,e),t}case It:{let t={};return an(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function yn(e){return vn(e)}var bn=/^(?:0|[1-9]\d*)$/;function xn(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return bn.test(e)}}function Sn(e){return typeof e==`object`&&!!e&&jt(e)===`[object Arguments]`}function Cn(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&Ke(t)&&e?.[t]==null?Ye(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||Sn(r))&&xn(t)&&t<r.length))return!1;r=r[t]}return!0}function wn(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=qe(e);break}return t=yn(t),function(n){let r=Xe(n,e);return r===void 0?Cn(n,e):t===void 0?r===void 0:gn(r,t)}}function Tn(e){if(e==null)return Et;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?wn(e[0],e[1]):_n(e);case`string`:case`symbol`:case`number`:return Dt(e)}}function En(e){return Number.isSafeInteger(e)&&e>=0}function Dn(e){return e!=null&&typeof e!=`function`&&En(e.length)}function On(e){return typeof e==`object`&&!!e}function kn(e){return On(e)&&Dn(e)}function An(e,t=Et){return kn(e)?wt(Array.from(e),Tt(Tn(t),1)):[]}function jn(e,t,n){return t===!0?An(e,n):typeof t==`function`?An(e,t):e}var Mn=r((e=>{var t=n();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,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(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})),Nn=r(((e,t)=>{t.exports=Mn()})),Pn=r((e=>{var t=n(),r=Nn();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(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,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Fn=r(((e,t)=>{t.exports=Pn()}))(),In=(0,o.createContext)(null),Ln=e=>e,I=()=>{var e=(0,o.useContext)(In);return e?e.store.dispatch:Ln},Rn=()=>{},zn=()=>Rn,Bn=(e,t)=>e===t;function L(e){var t=(0,o.useContext)(In),n=(0,o.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Rn,[t,e]);return(0,Fn.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:zn,t?t.store.getState:Rn,t?t.store.getState:Rn,n,Bn)}function Vn(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Hn(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 Un=e=>Array.isArray(e)?e:[e];function Wn(e){let t=Array.isArray(e[0])?e[0]:e;return Hn(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Gn(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Kn=class{constructor(e){this.value=e}deref(){return this.value}},qn=typeof WeakRef>`u`?Kn:WeakRef,Jn=0,Yn=1;function Xn(){return{s:Jn,v:void 0,o:null,p:null}}function Zn(e){return e instanceof qn?e.deref():e}function Qn(e,t={}){let n=Xn(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=Xn(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=Xn(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Yn)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Zn(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new qn(c):c}return s.s=Yn,s.v=c,c}return o.clearCache=()=>{n=Xn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function $n(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()),Vn(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Qn,argsMemoizeOptions:u=[]}={...n,...a},d=Un(c),f=Un(u),p=Wn(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Gn(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 R=$n(Qn);function er(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function tr(e,t,n){return ln(n)&&(typeof t==`number`&&Dn(n)&&xn(t)&&t<n.length||typeof t==`string`&&t in n)?cn(n[t],e):!1}function nr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var rr=(e,t,n)=>{if(e!==t){let r=nr(e),i=nr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function ir(e){return typeof e==`symbol`||e instanceof Symbol}var ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,or=/^\w*$/;function sr(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||ir(e)?!0:typeof e==`string`&&(or.test(e)||!ar.test(e))||t!=null&&Object.hasOwn(t,e)}function cr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||sr(e)?e:{key:e,path:Ye(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=rr(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function lr(e,...t){let n=t.length;return n>1&&tr(e,t[0],t[1])?t=[]:n>2&&tr(t[0],t[1],t[2])&&(t=[t[0]]),cr(e,er(t),[`asc`])}var ur=e=>e.legend.settings,dr=e=>e.legend.size,fr=R([e=>e.legend.payload,ur],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?lr(r,n):r});function pr(e,t){return vr(e)||_r(e,t)||hr(e,t)||mr()}function mr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hr(e,t){if(e){if(typeof e==`string`)return gr(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)?gr(e,t):void 0}}function gr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _r(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function vr(e){if(Array.isArray(e))return e}var yr=1;function br(e,t){return Math.abs(e.height-t.height)>yr||Math.abs(e.left-t.left)>yr||Math.abs(e.top-t.top)>yr||Math.abs(e.width-t.width)>yr}function xr(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function Sr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=pr((0,o.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,o.useRef)(null),a=(0,o.useRef)(n);a.current=n;var s=(0,o.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=xr(e);if(br(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=xr(e);br(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,o.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,s]}function Cr(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 wr=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Tr=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Er={INIT:`@@redux/INIT${Tr()}`,REPLACE:`@@redux/REPLACE${Tr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Tr()}`};function Dr(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 Or(e,t,n){if(typeof e!=`function`)throw Error(Cr(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Cr(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Cr(1));return n(Or)(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(Cr(3));return i}function d(e){if(typeof e!=`function`)throw Error(Cr(4));if(c)throw Error(Cr(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Cr(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!Dr(e))throw Error(Cr(7));if(e.type===void 0)throw Error(Cr(8));if(typeof e.type!=`string`)throw Error(Cr(17));if(c)throw Error(Cr(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(Cr(10));r=e,f({type:Er.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Cr(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[wr](){return this}}}return f({type:Er.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[wr]:m}}function kr(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Er.INIT})===void 0)throw Error(Cr(12));if(n(void 0,{type:Er.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Cr(13))})}function Ar(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{kr(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(Cr(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function jr(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Mr(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Cr(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=jr(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function Nr(e){return Dr(e)&&`type`in e&&typeof e.type==`string`}var Pr=Symbol.for(`immer-nothing`),Fr=Symbol.for(`immer-draftable`),Ir=Symbol.for(`immer-state`);function Lr(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Rr=Object,zr=Rr.getPrototypeOf,Br=`constructor`,Vr=`prototype`,Hr=`configurable`,Ur=`enumerable`,Wr=`writable`,Gr=`value`,Kr=e=>!!e&&!!e[Ir];function qr(e){return e?Xr(e)||ri(e)||!!e[Fr]||!!e[Br]?.[Fr]||ii(e)||ai(e):!1}var Jr=Rr[Vr][Br].toString(),Yr=new WeakMap;function Xr(e){if(!e||!oi(e))return!1;let t=zr(e);if(t===null||t===Rr[Vr])return!0;let n=Rr.hasOwnProperty.call(t,Br)&&t[Br];if(n===Object)return!0;if(!si(n))return!1;let r=Yr.get(n);return r===void 0&&(r=Function.toString.call(n),Yr.set(n,r)),r===Jr}function Zr(e,t,n=!0){Qr(e)===0?(n?Reflect.ownKeys(e):Rr.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Qr(e){let t=e[Ir];return t?t.type_:ri(e)?1:ii(e)?2:ai(e)?3:0}var $r=(e,t,n=Qr(e))=>n===2?e.has(t):Rr[Vr].hasOwnProperty.call(e,t),ei=(e,t,n=Qr(e))=>n===2?e.get(t):e[t],ti=(e,t,n,r=Qr(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function ni(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var ri=Array.isArray,ii=e=>e instanceof Map,ai=e=>e instanceof Set,oi=e=>typeof e==`object`,si=e=>typeof e==`function`,ci=e=>typeof e==`boolean`;function li(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ui=e=>e.copy_||e.base_,di=e=>e.modified_?e.copy_:e.base_;function fi(e,t){if(ii(e))return new Map(e);if(ai(e))return new Set(e);if(ri(e))return Array[Vr].slice.call(e);let n=Xr(e);if(t===!0||t===`class_only`&&!n){let t=Rr.getOwnPropertyDescriptors(e);delete t[Ir];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Wr]===!1&&(a[Wr]=!0,a[Hr]=!0),(a.get||a.set)&&(t[i]={[Hr]:!0,[Wr]:!0,[Ur]:a[Ur],[Gr]:e[i]})}return Rr.create(zr(e),t)}else{let t=zr(e);if(t!==null&&n)return{...e};let r=Rr.create(t);return Rr.assign(r,e)}}function pi(e,t=!1){return gi(e)||Kr(e)||!qr(e)?e:(Qr(e)>1&&Rr.defineProperties(e,{set:hi,add:hi,clear:hi,delete:hi}),Rr.freeze(e),t&&Zr(e,(e,t)=>{pi(t,!0)},!1),e)}function mi(){Lr(2)}var hi={[Gr]:mi};function gi(e){return e===null||!oi(e)?!0:Rr.isFrozen(e)}var _i=`MapSet`,vi=`Patches`,yi=`ArrayMethods`,bi={};function xi(e){let t=bi[e];return t||Lr(0,e),t}var Si=e=>!!bi[e],Ci,wi=()=>Ci,Ti=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Si(_i)?xi(_i):void 0,arrayMethodsPlugin_:Si(yi)?xi(yi):void 0});function Ei(e,t){t&&(e.patchPlugin_=xi(vi),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Di(e){Oi(e),e.drafts_.forEach(Ai),e.drafts_=null}function Oi(e){e===Ci&&(Ci=e.parent_)}var ki=e=>Ci=Ti(Ci,e);function Ai(e){let t=e[Ir];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ji(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Ir].modified_&&(Di(t),Lr(4)),qr(e)&&(e=Mi(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Ir].base_,e,t)}else e=Mi(t,n);return Ni(t,e,!0),Di(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Pr?void 0:e}function Mi(e,t){if(gi(t))return t;let n=t[Ir];if(!n)return Vi(t,e.handledSet_,e);if(!Fi(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);zi(n,e)}return n.copy_}function Ni(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pi(t,n)}function Pi(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Fi=(e,t)=>e.scope_===t,Ii=[];function Li(e,t,n,r){let i=ui(e),a=e.type_;if(r!==void 0&&ei(i,r,a)===t){ti(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Zr(i,(e,n)=>{if(Kr(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Ii;for(let e of o)ti(i,e,n,a)}function Ri(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Fi(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=di(i);Li(e,i.draft_??i,a,n),zi(i,r)})}function zi(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)}Pi(e)}}function Bi(e,t,n){let{scope_:r}=e;if(Kr(n)){let i=n[Ir];Fi(i,r)&&i.callbacks_.push(function(){Yi(e),Li(e,n,di(i),t)})}else qr(n)&&e.callbacks_.push(function(){let i=ui(e);e.type_===3?i.has(n)&&Vi(n,r.handledSet_,r):ei(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Vi(ei(e.copy_,t,e.type_),r.handledSet_,r)})}function Vi(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Kr(e)||t.has(e)||!qr(e)||gi(e)?e:(t.add(e),Zr(e,(r,i)=>{if(Kr(i)){let t=i[Ir];Fi(t,n)&&(ti(e,r,di(t),e.type_),Pi(t))}else qr(i)&&Vi(i,t,n)}),e)}function Hi(e,t){let n=ri(e),r={type_:+!!n,scope_:t?t.scope_:wi(),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=Ui;n&&(i=[r],a=Wi);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Ui={get(e,t){if(t===Ir)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=ui(e);if(!$r(i,t,e.type_))return Ki(e,i,t);let a=i[t];if(e.finalized_||!qr(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&li(t))return a;if(a===Gi(e.base_,t)){Yi(e);let n=e.type_===1?+t:t,r=Zi(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in ui(e)},ownKeys(e){return Reflect.ownKeys(ui(e))},set(e,t,n){let r=qi(ui(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Gi(ui(e),t),i=r?.[Ir];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(ni(n,r)&&(n!==void 0||$r(e.base_,t,e.type_)))return!0;Yi(e),Ji(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),Bi(e,t,n),!0)},deleteProperty(e,t){return Yi(e),Gi(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ji(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=ui(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Wr]:!0,[Hr]:e.type_!==1||t!==`length`,[Ur]:r[Ur],[Gr]:n[t]}},defineProperty(){Lr(11)},getPrototypeOf(e){return zr(e.base_)},setPrototypeOf(){Lr(12)}},Wi={};for(let e in Ui){let t=Ui[e];Wi[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Wi.deleteProperty=function(e,t){return Wi.set.call(this,e,t,void 0)},Wi.set=function(e,t,n){return Ui.set.call(this,e[0],t,n,e[0])};function Gi(e,t){let n=e[Ir];return(n?ui(n):e)[t]}function Ki(e,t,n){let r=qi(t,n);return r?Gr in r?r[Gr]:r.get?.call(e.draft_):void 0}function qi(e,t){if(!(t in e))return;let n=zr(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=zr(n)}}function Ji(e){e.modified_||(e.modified_=!0,e.parent_&&Ji(e.parent_))}function Yi(e){e.copy_||=(e.assigned_=new Map,fi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Xi=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(si(e)&&!si(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}si(t)||Lr(6),n!==void 0&&!si(n)&&Lr(7);let r;if(qr(e)){let i=ki(this),a=Zi(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Di(i):Oi(i)}return Ei(i,n),ji(r,i)}else if(!e||!oi(e)){if(r=t(e),r===void 0&&(r=e),r===Pr&&(r=void 0),this.autoFreeze_&&pi(r,!0),n){let t=[],i=[];xi(vi).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else Lr(1,e)},this.produceWithPatches=(e,t)=>{if(si(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]},ci(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ci(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ci(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){qr(e)||Lr(8),Kr(e)&&(e=Qi(e));let t=ki(this),n=Zi(t,e,void 0);return n[Ir].isManual_=!0,Oi(t),n}finishDraft(e,t){let n=e&&e[Ir];(!n||!n.isManual_)&&Lr(9);let{scope_:r}=n;return Ei(r,t),ji(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=xi(vi).applyPatches_;return Kr(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Zi(e,t,n,r){let[i,a]=ii(t)?xi(_i).proxyMap_(t,n):ai(t)?xi(_i).proxySet_(t,n):Hi(t,n);return(n?.scope_??wi()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Ri(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 Qi(e){return Kr(e)||Lr(10,e),$i(e)}function $i(e){if(!qr(e)||gi(e))return e;let t=e[Ir],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=fi(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=fi(e,!0);return Zr(n,(e,t)=>{ti(n,e,$i(t))},r),t&&(t.finalized_=!1),n}var ea=new Xi().produce,z=e=>e;function ta(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var na=ta(),ra=ta,ia=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?jr:jr.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function aa(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(mo(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=>Nr(t)&&t.type===e,n}var oa=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 sa(e){return qr(e)?ea(e,()=>{}):e}function ca(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 ua=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new oa;return t&&(la(t)?a.push(na):a.push(ra(t.extraArgument))),a},da=`RTK_autoBatch`,B=()=>e=>({payload:e,meta:{[da]:!0}}),fa=e=>t=>{setTimeout(t,e)},pa=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},ma=(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?pa(window.requestAnimationFrame,100):fa(10):e.type===`callback`?e.queueNotification:fa(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?.[da],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},ha=e=>function(t){let{autoBatch:n=!0}=t??{},r=new oa(e);return n&&r.push(ma(typeof n==`object`?n:void 0)),r};function ga(e){let t=ua(),{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(Dr(n))c=Ar(n);else throw Error(mo(1));let l;l=typeof r==`function`?r(t):t();let u=jr;i&&(u=ia({trace:!1,...typeof i==`object`&&i}));let d=ha(Mr(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return Or(c,o,p)}function _a(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(mo(28));if(r in t)throw Error(mo(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 va(e){return typeof e==`function`}function ya(e,t){let[n,r,i]=_a(t),a;if(va(e))a=()=>sa(e());else{let t=sa(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(Kr(e)){let r=n(e,t);return r===void 0?e:r}else if(qr(e))return ea(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 ba=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,xa=(e=21)=>{let t=``,n=e;for(;n--;)t+=ba[Math.random()*64|0];return t},Sa=Symbol.for(`rtk-slice-createasyncthunk`);function Ca(e,t){return`${e}/${t}`}function wa({creators:e}={}){let t=e?.asyncThunk?.[Sa];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(mo(11));let i=(typeof e.reducers==`function`?e.reducers(Da()):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(mo(12));if(n in o.sliceCaseReducersByType)throw Error(mo(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:Ca(n,r),createNotation:typeof e.reducers==`function`};ka(a)?ja(o,a,s,t):Oa(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?_a(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return ya(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=ca(d,r,m)),i}function i(t=l){return ca(ca(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=Ta(a,t,()=>ca(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 Ta(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 Ea=wa();function Da(){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 Oa({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!Aa(r))throw Error(mo(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?aa(e,o):aa(e))}function ka(e){return e._reducerDefinitionType===`asyncThunk`}function Aa(e){return e._reducerDefinitionType===`reducerWithPrepare`}function ja({type:e,reducerName:t},n,r,i){if(!i)throw Error(mo(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||Ma,pending:s||Ma,rejected:c||Ma,settled:l||Ma})}function Ma(){}var Na=`task`,Pa=`listener`,Fa=`completed`,Ia=`cancelled`,La=`task-${Ia}`,Ra=`task-${Fa}`,za=`${Pa}-${Ia}`,Ba=`${Pa}-${Fa}`,Va=class{constructor(e){this.code=e,this.message=`${Na} ${Ia} (reason: ${e})`}code;name=`TaskAbortError`;message},Ha=(e,t)=>{if(typeof e!=`function`)throw TypeError(mo(32))},Ua=()=>{},Wa=(e,t=Ua)=>(e.catch(t),e),Ga=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),Ka=e=>{if(e.aborted)throw new Va(e.reason)};function qa(e,t){let n=Ua;return new Promise((r,i)=>{let a=()=>i(new Va(e.reason));if(e.aborted){a();return}n=Ga(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Ua})}var Ja=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof Va?`cancelled`:`rejected`,error:e}}finally{t?.()}},Ya=e=>t=>Wa(qa(e,t).then(t=>(Ka(e),t))),Xa=e=>{let t=Ya(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Za}=Object,Qa={},$a=`listenerMiddleware`,eo=(e,t)=>{let n=t=>Ga(e,()=>t.abort(e.reason));return(r,i)=>{Ha(r,`taskExecutor`);let a=new AbortController;n(a);let o=Ja(async()=>{Ka(e),Ka(a.signal);let t=await r({pause:Ya(a.signal),delay:Xa(a.signal),signal:a.signal});return Ka(a.signal),t},()=>a.abort(Ra));return i?.autoJoin&&t.push(o.catch(Ua)),{result:Ya(e)(o),cancel(){a.abort(La)}}}},to=(e,t)=>{let n=async(n,r)=>{Ka(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 qa(t,Promise.race(a));return Ka(t),e}finally{i()}};return((e,t)=>Wa(n(e,t)))},no=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=aa(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(mo(21));return Ha(a,`options.listener`),{predicate:i,type:t,effect:a}},ro=Za(e=>{let{type:t,predicate:n,effect:r}=no(e);return{id:xa(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(mo(22))}}},{withTypes:()=>ro}),io=(e,t)=>{let{type:n,effect:r,predicate:i}=no(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},ao=e=>{e.pending.forEach(e=>{e.abort(za)})},oo=(e,t)=>()=>{for(let e of t.keys())ao(e);e.clear()},so=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},co=Za(aa(`${$a}/add`),{withTypes:()=>co}),lo=aa(`${$a}/removeAll`),uo=Za(aa(`${$a}/remove`),{withTypes:()=>uo}),fo=(...e)=>{console.error(`${$a}/error`,...e)},po=(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=fo}=e;Ha(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&ao(e)}),c=(e=>s(io(t,e)??ro(e)));Za(c,{withTypes:()=>c});let l=e=>{let n=io(t,e);return n&&(n.unsubscribe(),e.cancelActive&&ao(n)),!!n};Za(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=to(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,Za({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:Xa(u.signal),pause:Ya(u.signal),extra:a,signal:u.signal,fork:eo(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(za),n.delete(e))})},cancel:()=>{u.abort(za),e.pending.delete(u)},throwIfCancelled:()=>{Ka(u.signal)}})))}catch(e){e instanceof Va||so(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(Ba),i(e),e.pending.delete(u)}},d=oo(t,n);return{middleware:e=>n=>r=>{if(!Nr(r))return n(r);if(co.match(r))return c(r.payload);if(lo.match(r)){d();return}if(uo.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===Qa)throw Error(mo(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,so(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=Qa}return s},startListening:c,stopListening:l,clearListeners:d}};function mo(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 ho=Ea({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=ho.actions,_o=go.setMargin,vo=go.setLayout,yo=go.setChartSize,bo=go.setScale,xo=ho.reducer;function So(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function V(e){return Number.isFinite(e)}function Co(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function wo(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 To(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wo(Object(n),!0).forEach(function(t){Eo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Eo(e,t,n){return(t=Do(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Do(e){var t=Oo(e,`string`);return typeof t==`symbol`?t:t+``}function Oo(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function H(e,t,n){return F(e)||F(t)?n:it(t)?Xe(e,t,n):typeof t==`function`?t(e):n}var ko=(e,t,n)=>{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 To(To({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&P(e[o]))return To(To({},e),{},{[o]:e[o]+(i||0)})}return e},Ao=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,jo=(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},Mo=(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?tt(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 V(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(ft):c&&l?l.map((e,t)=>{var n=o.map(e);return V(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(ft):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return V(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(ft):o.domain().map((e,t)=>{var n=o.map(e);return V(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(ft)},No=(e,t)=>{if(!t||t.length!==2||!P(t[0])||!P(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!P(e[0])||e[0]<n)&&(i[0]=n),(!P(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Po={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=nt(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:He,none:Le,silhouette:Ue,wiggle:We,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=nt(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},Fo=(e,t,n)=>{var r=Po[n]??Le,i=Ve().keys(t).value((e,t)=>Number(H(e,t,0))).order(Re).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=H(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 Io(e){return e==null?void 0:String(e)}function Lo(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&&!F(i[t.dataKey])){var s=ut(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=H(i,F(o)?t.dataKey:o),l=t.scale.map(c);return P(l)?l:null}var Ro=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=H(a,t.dataKey,t.scale.domain()[o]);if(F(s))return null;var c=t.scale.map(s);return P(c)?c-i/2+r:null},zo=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]},Bo=e=>{var t=e.flat(2).filter(P);return[Math.min(...t),Math.max(...t)]},Vo=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Ho=(e,t,n)=>{if(!(e==null||Object.keys(e).length===0))return Vo(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=Bo(So(r,t,n));return!V(i[0])||!V(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]))},Uo=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Wo=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Go=(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=lr(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c?.coordinate||0)-(l?.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0};function Ko(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return To(To({},t),{},{dataKey:n,payload:r,value:i,name:a})}function qo(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var Jo=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},Yo=(e,t)=>t===`centric`?e.angle:e.radius,Xo=e=>e.layout.width,Zo=e=>e.layout.height,Qo=e=>e.layout.scale,$o=e=>e.layout.margin,es=R(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),ts=R(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),ns=`data-recharts-item-index`;function rs(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 is(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rs(Object(n),!0).forEach(function(t){as(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function as(e,t,n){return(t=os(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function os(e){var t=ss(e,`string`);return typeof t==`symbol`?t:t+``}function ss(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 cs=e=>e.brush.height;function ls(e){return ts(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function us(e){return ts(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function ds(e){return es(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function fs(e){return es(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var U=R([Xo,Zo,$o,cs,ls,us,ds,fs,ur,dr],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=is(is({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=ko(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return is(is({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),ps=R(U,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),ms=R(Xo,Zo,(e,t)=>({x:0,y:0,width:e,height:t})),hs=(0,o.createContext)(null),gs=()=>(0,o.useContext)(hs)!=null,_s=e=>e.brush,vs=R([_s,U,$o],(e,t,n)=>({height:e.height,x:P(e.x)?e.x:t.left,y:P(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:P(e.width)?e.width:t.width}));function ys(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function bs(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=ys(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function xs(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return bs(e,t,{leading:r,maxWait:t,trailing:i})}var Ss=function(e,t){var n=[...arguments].slice(2);if(typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}},Cs={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},ws=(e,t,n)=>{var r=n.width,i=r===void 0?Cs.width:r,a=n.height,o=a===void 0?Cs.height:a,s=n.aspect,c=n.maxHeight,l=rt(i)?e:Number(i),u=rt(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}},Ts={width:0,height:0,overflow:`visible`},Es={width:0,overflowX:`visible`},Ds={height:0,overflowY:`visible`},Os={},ks=e=>{var t=e.width,n=e.height,r=rt(t),i=rt(n);return r&&i?Ts:r?Es:i?Ds:Os};function As(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=Cs.width,a=Cs.height):i===void 0?i=r&&r>0?void 0:Cs.width:a===void 0&&(a=r&&r>0?void 0:Cs.height),{width:i,height:a}}var js=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ms.apply(null,arguments)}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;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ns(Object(n),!0).forEach(function(t){Fs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fs(e,t,n){return(t=Is(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Is(e){var t=Ls(e,`string`);return typeof t==`symbol`?t:t+``}function Ls(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Rs(e,t){return Us(e)||Hs(e,t)||Bs(e,t)||zs()}function zs(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bs(e,t){if(e){if(typeof e==`string`)return Vs(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)?Vs(e,t):void 0}}function Vs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hs(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Us(e){if(Array.isArray(e))return e}function Ws(e,t){if(e==null)return{};var n,r,i=Gs(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gs(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ks=(0,o.createContext)(Cs.initialDimension);function qs(e){return Co(e.width)&&Co(e.height)}function Js(e){var t=e.children,n=e.width,r=e.height,i=(0,o.useMemo)(()=>({width:n,height:r}),[n,r]);return qs(i)?o.createElement(Ks.Provider,{value:i},t):null}var Ys=()=>(0,o.useContext)(Ks),Xs=(0,o.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?Cs.initialDimension:r,a=e.width,s=e.height,c=e.minWidth,l=c===void 0?Cs.minWidth:c,d=e.minHeight,f=e.maxHeight,p=e.children,m=e.debounce,h=m===void 0?Cs.debounce:m,g=e.id,_=e.className,v=e.onResize,y=e.style,b=y===void 0?{}:y,x=Ws(e,js),S=(0,o.useRef)(null),C=(0,o.useRef)();C.current=v,(0,o.useImperativeHandle)(t,()=>S.current);var w=Rs((0,o.useState)({containerWidth:i.width,containerHeight:i.height}),2),T=w[0],E=w[1],D=(0,o.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,o.useEffect)(()=>{if(S.current==null||typeof ResizeObserver>`u`)return pt;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=xs(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;Ss(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var A=ws(O,k,{width:a,height:s,aspect:n,maxHeight:f}),j=A.calculatedWidth,M=A.calculatedHeight;return Ss(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,
|
|
4
4
|
please check the style of container, or the props width(%s) and height(%s),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./index-
|
|
1
|
+
import{c as e}from"./index-DcfzJOIq.js";import{o as t}from"./utils-DDJC7tJV.js";var n=e();function r({str:e,max:r}){return e===`[]`||e===``?(0,n.jsx)(`span`,{style:{color:`var(--text-muted)`},children:`—`}):(0,n.jsx)(`span`,{title:e,children:t(e,r)})}export{r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,b as n,c as r,g as i,i as a,n as o,o as s}from"./index-
|
|
1
|
+
import{C as e,_ as t,b as n,c as r,g as i,i as a,n as o,o as s}from"./index-DcfzJOIq.js";import{a as c}from"./utils-DDJC7tJV.js";var l=e(n(),1),u=r();function d({label:e,children:t}){return(0,u.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:2},children:[(0,u.jsx)(`span`,{style:{fontSize:11,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.04em`},children:e}),(0,u.jsx)(`span`,{style:{fontVariantNumeric:`tabular-nums`},children:t})]})}function f({label:e,jids:t}){return t.length===0?null:(0,u.jsxs)(`div`,{style:{marginTop:`1.5rem`},children:[(0,u.jsxs)(`h2`,{style:{fontSize:14,margin:`0 0 0.5rem`},children:[e,` `,(0,u.jsx)(`span`,{className:`badge badge-muted`,children:t.length})]}),(0,u.jsx)(`div`,{className:`table-wrapper`,children:(0,u.jsx)(`table`,{children:(0,u.jsx)(`tbody`,{children:t.map(e=>(0,u.jsx)(`tr`,{children:(0,u.jsx)(`td`,{style:{fontFamily:`monospace`,fontSize:12},children:e})},e))})})})]})}function p(){let{bid:e=``}=t();(0,l.useEffect)(()=>{document.title=`${a(`nav.batches`)} — Wurk`},[]);let{data:n,isLoading:r,isError:p}=s({queryKey:[`batch`,e],queryFn:()=>fetch(`/wurk/api/batches/${encodeURIComponent(e)}`).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()})});if(r)return(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`div`,{className:`section-header`,style:{gap:`0.75rem`},children:(0,u.jsxs)(i,{to:`/batches`,className:`btn btn-sm`,children:[`← `,a(`nav.batches`)]})}),(0,u.jsx)(`div`,{style:{marginTop:`1rem`},children:(0,u.jsx)(o,{count:8})})]});if(p||!n)return(0,u.jsx)(`div`,{className:`empty-state`,style:{color:`var(--danger)`},children:a(`common.error`)});let m=n.total-n.pending,h=n.total>0?Math.round(m/n.total*100):0;return(0,u.jsxs)(`div`,{children:[(0,u.jsxs)(`div`,{className:`section-header`,style:{gap:`0.75rem`},children:[(0,u.jsxs)(i,{to:`/batches`,className:`btn btn-sm`,children:[`← `,a(`nav.batches`)]}),(0,u.jsx)(`h1`,{className:`page-title`,style:{margin:0,fontFamily:`monospace`,fontSize:16},children:n.bid}),n.complete?(0,u.jsx)(`span`,{className:`badge badge-success`,children:`complete`}):(0,u.jsxs)(`span`,{className:`badge badge-accent`,children:[h,`%`]}),n.invalidated&&(0,u.jsx)(`span`,{className:`badge badge-danger`,children:`invalidated`})]}),n.description&&(0,u.jsx)(`p`,{style:{color:`var(--text-muted)`,marginTop:0},children:n.description}),(0,u.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(140px, 1fr))`,gap:`1rem`,marginTop:`1rem`},children:[(0,u.jsx)(d,{label:`Total`,children:n.total.toLocaleString()}),(0,u.jsx)(d,{label:`Pending`,children:n.pending.toLocaleString()}),(0,u.jsx)(d,{label:`Failures`,children:n.failures.toLocaleString()}),(0,u.jsx)(d,{label:`Children`,children:n.child_count.toLocaleString()}),(0,u.jsx)(d,{label:`Created`,children:n.created_at?c(n.created_at):`—`}),(0,u.jsx)(d,{label:`Completed`,children:n.complete_at?c(n.complete_at):`—`}),n.parent_bid&&(0,u.jsx)(d,{label:`Parent`,children:n.parent_bid}),n.tags.length>0&&(0,u.jsx)(d,{label:`Tags`,children:n.tags.join(`, `)})]}),(0,u.jsx)(f,{label:`Failed jobs`,jids:n.failed_jids}),(0,u.jsx)(f,{label:`Dead jobs`,jids:n.dead_jids})]})}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,b as t,c as n,g as r,i,o as a,r as o}from"./index-
|
|
1
|
+
import{C as e,b as t,c as n,g as r,i,o as a,r as o}from"./index-DcfzJOIq.js";import{a as s,o as c}from"./utils-DDJC7tJV.js";import{n as l,t as u}from"./usePageParam-BDV1DCDQ.js";import{n as d,t as f}from"./useSort-BPPxnBBo.js";import{t as p}from"./PageHeader-B-0cTQeM.js";var m=e(t(),1),h=n(),g=25,_={bid:e=>e.bid,description:e=>e.description??``,total:e=>e.total,pending:e=>e.pending,failures:e=>e.failures,progress:e=>e.total>0?(e.total-e.pending)/e.total:0,created:e=>e.created_at??null};function v(){let[e,t]=u();(0,m.useEffect)(()=>{document.title=`${i(`nav.batches`)} — Wurk`},[]);let{data:n,isLoading:v,isError:y}=a({queryKey:[`batches`,e],queryFn:()=>fetch(`/wurk/api/batches?page=${e-1}&count=${g}`).then(e=>e.json())}),{sorted:b,sort:x,toggle:S}=f(n?.batches??[],_);return v?(0,h.jsxs)(`div`,{children:[(0,h.jsx)(p,{icon:`fa-table-cells-large`,title:i(`nav.batches`),summary:i(`summaries.batches`)}),(0,h.jsx)(o,{rows:8,cols:7})]}):y||!n?(0,h.jsx)(`div`,{className:`empty-state`,style:{color:`var(--danger)`},children:i(`common.error`)}):(0,h.jsxs)(`div`,{children:[(0,h.jsx)(p,{icon:`fa-table-cells-large`,title:i(`nav.batches`),summary:i(`summaries.batches`),children:(0,h.jsx)(`span`,{className:`badge badge-accent`,children:n.total.toLocaleString()})}),b.length===0?(0,h.jsx)(`div`,{className:`empty-state`,children:i(`common.empty`)}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`div`,{className:`table-wrapper`,children:(0,h.jsxs)(`table`,{children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(d,{label:`BID`,sortKey:`bid`,sort:x,onSort:S}),(0,h.jsx)(d,{label:`Description`,sortKey:`description`,sort:x,onSort:S}),(0,h.jsx)(d,{label:i(`table.total`),sortKey:`total`,sort:x,onSort:S}),(0,h.jsx)(d,{label:i(`table.pending`),sortKey:`pending`,sort:x,onSort:S}),(0,h.jsx)(d,{label:`Failures`,sortKey:`failures`,sort:x,onSort:S}),(0,h.jsx)(d,{label:`Progress`,sortKey:`progress`,sort:x,onSort:S}),(0,h.jsx)(d,{label:`Created`,sortKey:`created`,sort:x,onSort:S})]})}),(0,h.jsx)(`tbody`,{children:b.map(e=>{let t=e.total-e.pending,n=e.total>0?t/e.total*100:0;return(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`td`,{style:{fontFamily:`monospace`,fontSize:12},children:(0,h.jsx)(r,{to:`/batches/${e.bid}`,title:e.bid,children:c(e.bid,14)})}),(0,h.jsx)(`td`,{title:e.description??``,children:c(e.description??`—`,40)}),(0,h.jsx)(`td`,{children:e.total.toLocaleString()}),(0,h.jsx)(`td`,{style:{color:e.pending>0?`var(--warning)`:`var(--success)`},children:e.pending.toLocaleString()}),(0,h.jsx)(`td`,{style:{color:e.failures>0?`var(--danger)`:void 0},children:e.failures.toLocaleString()}),(0,h.jsx)(`td`,{style:{width:100},children:(0,h.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,h.jsx)(`div`,{className:`progress-bar-track`,style:{flex:1},children:(0,h.jsx)(`div`,{className:`progress-bar-fill`,style:{width:`${n}%`,background:e.failures>0?`var(--danger)`:`var(--success)`}})}),(0,h.jsxs)(`span`,{style:{fontSize:11,color:`var(--text-muted)`,minWidth:32},children:[Math.round(n),`%`]})]})}),(0,h.jsx)(`td`,{children:e.created_at?s(e.created_at):`—`})]},e.bid)})})]})}),(0,h.jsx)(l,{page:e,total:n.total,count:g,onChange:t})]})]})}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./useMutation-
|
|
1
|
+
import{t as e}from"./useMutation-NUbe15ar.js";import{C as t,a as n,b as r,c as i,i as a,n as o,o as s,s as c}from"./index-DcfzJOIq.js";import{a as l,i as u,n as d,o as f,r as p,t as m}from"./utils-DDJC7tJV.js";import{t as h}from"./PageHeader-B-0cTQeM.js";import{t as g}from"./Modal-CvD-1IKA.js";import{t as _}from"./ArgsValue-CiJzEwxS.js";var v=t(r(),1),y=i();function b(e){let t=new Map;for(let n of e){let e=t.get(n.hostname);e||(e={hostname:n.hostname,processes:[],busy:0,concurrency:0,rssKb:0},t.set(n.hostname,e)),e.processes.push(n),e.busy+=n.busy,e.concurrency+=n.concurrency,e.rssKb+=n.rss??0,e.cpuModel??=n.cpu_model??void 0,e.cores??=n.cores,e.memoryTotalKb??=n.memory_total_kb}return[...t.values()].sort((e,t)=>e.hostname.localeCompare(t.hostname))}function x(e){return e>90?`var(--danger)`:e>70?`var(--warning)`:`var(--accent)`}var S={fontSize:11,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.04em`};function C({proc:e}){let{data:t}=s({queryKey:[`workers`],queryFn:()=>fetch(`/wurk/api/workers`).then(e=>e.json()),refetchInterval:5e3}),n=(t??[]).filter(t=>t.process_id===e.identity);return(0,y.jsxs)(`div`,{children:[(0,y.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(200px, 1fr))`,gap:`0.75rem`,marginBottom:`1rem`},children:[[a(`busy.identity`),(0,y.jsx)(`code`,{style:{fontSize:12},children:e.identity})],[`PID`,e.pid],[a(`busy.started`),e.started_at?(0,y.jsx)(`span`,{title:u(e.started_at),children:l(e.started_at)}):`—`],[a(`busy.heartbeat`),(0,y.jsx)(`span`,{title:u(e.beat),children:l(e.beat)})],[`${a(`table.busy`)} / ${a(`table.concurrency`)}`,`${e.busy} / ${e.concurrency}`],[a(`busy.rss`),p(e.rss??0)],[a(`busy.rtt`),e.rtt_us?`${(e.rtt_us/1e3).toFixed(1)} ${a(`common.ms`)}`:`—`],[a(`busy.version`),e.version??`—`],[a(`busy.tag`),e.tag||`—`],[a(`busy.labels`),e.labels?.length?e.labels.join(`, `):`—`]].map(([e,t])=>(0,y.jsxs)(`div`,{children:[(0,y.jsx)(`div`,{style:S,children:e}),(0,y.jsx)(`div`,{style:{fontSize:14},children:t})]},String(e)))}),(0,y.jsx)(`div`,{style:{...S,marginBottom:`0.25rem`},children:a(`table.queues`)}),(0,y.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`0.25rem`,marginBottom:`1rem`},children:e.queues.map(e=>(0,y.jsx)(`span`,{className:`badge badge-muted`,children:e},e))}),(0,y.jsxs)(`h3`,{className:`section-title`,style:{marginBottom:`0.5rem`},children:[a(`busy.running_jobs`),` `,(0,y.jsx)(`span`,{className:`badge badge-muted`,children:n.length})]}),n.length===0?(0,y.jsx)(`div`,{className:`empty-state`,style:{padding:`1rem`},children:a(`busy.no_running`)}):(0,y.jsx)(`div`,{className:`table-wrapper`,children:(0,y.jsxs)(`table`,{children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{children:a(`table.jid`)}),(0,y.jsx)(`th`,{children:a(`table.class`)}),(0,y.jsx)(`th`,{children:a(`table.queue`)}),(0,y.jsx)(`th`,{children:a(`table.args`)}),(0,y.jsx)(`th`,{children:a(`busy.running_since`)})]})}),(0,y.jsx)(`tbody`,{children:n.map(e=>(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`td`,{title:e.jid,style:{fontFamily:`monospace`,fontSize:12,color:`var(--text-muted)`},children:f(e.jid,12)}),(0,y.jsx)(`td`,{style:{fontWeight:500},children:e.klass}),(0,y.jsx)(`td`,{children:(0,y.jsx)(`span`,{className:`badge badge-muted`,children:e.queue})}),(0,y.jsx)(`td`,{children:(0,y.jsx)(_,{str:m(e.args),max:40})}),(0,y.jsx)(`td`,{title:u(e.run_at),children:l(e.run_at)})]},`${e.thread_id}-${e.jid}`))})]})})]})}function w({group:e}){let t=e.memoryTotalKb?Math.min(100,e.rssKb/e.memoryTotalKb*100):null;return(0,y.jsxs)(`div`,{style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:`0.75rem`,marginBottom:`0.75rem`},children:[(0,y.jsxs)(`span`,{style:{fontWeight:600,fontSize:15},children:[(0,y.jsx)(`i`,{className:`fa-solid fa-server`,style:{color:`var(--text-muted)`,marginRight:`0.5rem`}}),e.hostname]}),(0,y.jsxs)(`span`,{className:`badge badge-muted`,children:[e.processes.length,` `,a(`dashboard.processes`).toLowerCase()]}),e.cpuModel&&(0,y.jsxs)(`span`,{className:`badge badge-muted`,title:e.cpuModel,children:[(0,y.jsx)(`i`,{className:`fa-solid fa-microchip`,style:{marginRight:`0.35rem`}}),f(e.cpuModel,40)]}),e.cores!=null&&e.cores>0&&(0,y.jsx)(`span`,{className:`badge badge-muted`,children:a(`busy.cores`,{n:e.cores})}),e.rssKb>0&&(0,y.jsxs)(`span`,{className:`badge badge-muted`,title:t==null?void 0:`${t.toFixed(1)}% ${a(`busy.of_total_ram`)}`,children:[(0,y.jsx)(`i`,{className:`fa-solid fa-memory`,style:{marginRight:`0.35rem`}}),p(e.rssKb),e.memoryTotalKb?` / ${p(e.memoryTotalKb)}`:``]}),(0,y.jsxs)(`span`,{className:`badge badge-muted`,style:{fontVariantNumeric:`tabular-nums`},children:[a(`table.busy`),` `,e.busy,` / `,e.concurrency]})]})}function T(){let{data:t}=n(),r=t?.read_only??!1,i=c(),[u,f]=(0,v.useState)(null);(0,v.useEffect)(()=>{document.title=`${a(`nav.busy`)} — Wurk`},[]);let{data:m,isLoading:_,isError:T}=s({queryKey:[`processes`],queryFn:()=>fetch(`/wurk/api/processes`).then(e=>e.json()),refetchInterval:5e3}),E=e({mutationFn:async e=>{let{signal:t}=e,n=e.scope===`all`?`all`:e.identity,r=await fetch(`/wurk/api/busy/${t}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({identity:n})});if(!r.ok)throw Error(`${t} failed (${r.status})`);return r},onSuccess:()=>i.invalidateQueries({queryKey:[`processes`]})}),D=e=>window.confirm(a(`actions.confirm`,{action:a(`actions.stop`),scope:e}));if(_)return(0,y.jsxs)(`div`,{children:[(0,y.jsx)(h,{icon:`fa-gears`,title:a(`nav.busy`),summary:a(`summaries.busy`)}),(0,y.jsx)(o,{count:6})]});if(T||!m)return(0,y.jsx)(`div`,{className:`empty-state`,style:{color:`var(--danger)`},children:a(`common.error`)});let O=m.some(e=>!e.embedded),k=b(m),A=m.find(e=>e.identity===u)??null;return(0,y.jsxs)(`div`,{children:[(0,y.jsx)(h,{icon:`fa-gears`,title:a(`nav.busy`),summary:a(`summaries.busy`),children:(0,y.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.6rem`},children:[(0,y.jsxs)(`span`,{className:`badge badge-muted`,children:[m.length,` `,a(`dashboard.processes`).toLowerCase()]}),k.length>1&&(0,y.jsx)(`span`,{className:`badge badge-muted`,children:a(`busy.hosts`,{n:k.length})}),!r&&O&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`button`,{className:`btn btn-sm btn-ghost`,disabled:E.isPending,onClick:()=>E.mutate({signal:`quiet`,scope:`all`}),children:`${a(`actions.quiet`)} ${a(`actions.all_suffix`)}`}),(0,y.jsx)(`button`,{className:`btn btn-sm btn-ghost btn-danger`,disabled:E.isPending,onClick:()=>D(a(`actions.scope_all_processes`))&&E.mutate({signal:`stop`,scope:`all`}),children:`${a(`actions.stop`)} ${a(`actions.all_suffix`)}`})]})]})}),m.length===0?(0,y.jsx)(`div`,{className:`empty-state`,children:a(`common.empty`)}):k.map(e=>(0,y.jsxs)(`section`,{style:{marginBottom:`1.5rem`},children:[(0,y.jsx)(w,{group:e}),(0,y.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, 320px), 1fr))`,gap:`1rem`},children:e.processes.map(e=>{let t=e.concurrency>0?e.busy/e.concurrency*100:0,n=Date.now()/1e3-e.beat<30;return(0,y.jsxs)(`div`,{className:`card row-clickable`,onClick:()=>e.identity&&f(e.identity),children:[(0,y.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`,marginBottom:`0.75rem`},children:[(0,y.jsxs)(`div`,{children:[(0,y.jsxs)(`div`,{style:{fontWeight:600,fontSize:15},children:[`PID `,e.pid]}),(0,y.jsxs)(`div`,{style:{color:`var(--text-muted)`,fontSize:12},children:[e.tag||e.hostname,e.started_at?` · ${a(`busy.up_for`)} ${d(Date.now()/1e3-e.started_at)}`:``]})]}),(0,y.jsxs)(`div`,{style:{display:`flex`,gap:`0.375rem`},children:[n&&(0,y.jsx)(`span`,{className:`live-dot`,title:`Heartbeat OK`}),e.quiet&&(0,y.jsx)(`span`,{className:`badge badge-warning`,children:`Quiet`}),e.embedded&&(0,y.jsx)(`span`,{className:`badge badge-muted`,children:`embedded`})]})]}),(0,y.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr 1fr`,gap:`0.5rem`,marginBottom:`0.75rem`},children:[(0,y.jsxs)(`div`,{children:[(0,y.jsxs)(`div`,{style:S,children:[a(`table.busy`),` / `,a(`table.concurrency`)]}),(0,y.jsxs)(`div`,{style:{fontWeight:600,fontSize:18,fontVariantNumeric:`tabular-nums`},children:[e.busy,` / `,e.concurrency]})]}),(0,y.jsxs)(`div`,{children:[(0,y.jsx)(`div`,{style:S,children:a(`busy.heartbeat`)}),(0,y.jsx)(`div`,{style:{fontSize:13,color:n?`var(--success)`:`var(--danger)`},children:l(e.beat)})]}),(0,y.jsxs)(`div`,{children:[(0,y.jsx)(`div`,{style:S,children:a(`busy.rss`)}),(0,y.jsx)(`div`,{style:{fontSize:13},children:p(e.rss??0)})]})]}),(0,y.jsx)(`div`,{className:`progress-bar-track`,style:{marginBottom:`0.75rem`},children:(0,y.jsx)(`div`,{className:`progress-bar-fill`,style:{width:`${t}%`,background:x(t)}})}),(0,y.jsxs)(`div`,{children:[(0,y.jsx)(`div`,{style:{...S,marginBottom:`0.25rem`},children:a(`table.queues`)}),(0,y.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`0.25rem`},children:e.queues.map(e=>(0,y.jsx)(`span`,{className:`badge badge-muted`,children:e},e))})]}),!r&&!e.embedded&&(0,y.jsxs)(`div`,{style:{display:`flex`,gap:`0.4rem`,marginTop:`0.85rem`},onClick:e=>e.stopPropagation(),children:[(0,y.jsx)(`button`,{className:`btn btn-sm`,disabled:E.isPending,onClick:()=>E.mutate({signal:`quiet`,scope:`one`,identity:e.identity}),children:a(`actions.quiet`)}),(0,y.jsx)(`button`,{className:`btn btn-sm btn-danger`,disabled:E.isPending,onClick:()=>D(a(`actions.scope_this_process`))&&E.mutate({signal:`stop`,scope:`one`,identity:e.identity}),children:a(`actions.stop`)})]})]},e.identity??`${e.hostname}-${e.pid}`)})})]},e.hostname)),(0,y.jsx)(g,{open:A!==null,onClose:()=>f(null),title:A?`${A.hostname} · PID ${A.pid}`:``,width:780,children:A&&(0,y.jsx)(C,{proc:A})})]})}export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./useMutation-
|
|
1
|
+
import{t as e}from"./useMutation-NUbe15ar.js";import{C as t,a as n,b as r,c as i,i as a,o,r as s,s as c}from"./index-DcfzJOIq.js";import{a as l,i as u,o as d}from"./utils-DDJC7tJV.js";import{n as f,t as p}from"./useSort-BPPxnBBo.js";import{t as m}from"./PageHeader-B-0cTQeM.js";import{t as h}from"./Modal-CvD-1IKA.js";var g=t(r(),1),_=i(),v={schedule:e=>e.schedule,klass:e=>e.klass,queue:e=>e.queue,last_fire:e=>e.last_fire_at,next_fire:e=>e.next_fire_at,status:e=>e.paused?`paused`:`active`};function y(){let t=c(),{data:r}=n(),i=r?.read_only??!1,[y,b]=(0,g.useState)(null);(0,g.useEffect)(()=>{document.title=`${a(`nav.cron`)} — Wurk`},[]);let{data:x,isLoading:S,isError:C}=o({queryKey:[`cron`],queryFn:()=>fetch(`/wurk/api/cron`).then(e=>e.json()),refetchInterval:15e3}),w=(e,t)=>fetch(`/wurk/api/cron/${e}/${t}`,{method:`POST`}),T=e({mutationFn:({lid:e,paused:t})=>w(e,t?`unpause`:`pause`),onSuccess:()=>t.invalidateQueries({queryKey:[`cron`]})}),E=e({mutationFn:e=>w(e,`enqueue`),onSuccess:()=>t.invalidateQueries({queryKey:[`cron`]})}),{data:D,isLoading:O,isError:k}=o({queryKey:[`cron-history`,y?.lid],queryFn:()=>fetch(`/wurk/api/cron/${y.lid}/history`).then(e=>e.json()).then(e=>e.history),enabled:y!==null}),{sorted:A,sort:j,toggle:M}=p(x??[],v);return S?(0,_.jsxs)(`div`,{children:[(0,_.jsx)(m,{icon:`fa-stopwatch`,title:a(`nav.cron`),summary:a(`summaries.cron`)}),(0,_.jsx)(s,{rows:8,cols:i?6:7})]}):C||!x?(0,_.jsx)(`div`,{className:`empty-state`,style:{color:`var(--danger)`},children:a(`common.error`)}):(0,_.jsxs)(`div`,{children:[(0,_.jsx)(m,{icon:`fa-stopwatch`,title:a(`nav.cron`),summary:a(`summaries.cron`),children:(0,_.jsx)(`span`,{className:`badge badge-muted`,children:x.length})}),x.length===0?(0,_.jsx)(`div`,{className:`empty-state`,children:a(`common.empty`)}):(0,_.jsx)(`div`,{className:`table-wrapper`,children:(0,_.jsxs)(`table`,{children:[(0,_.jsx)(`thead`,{children:(0,_.jsxs)(`tr`,{children:[(0,_.jsx)(f,{label:`Schedule`,sortKey:`schedule`,sort:j,onSort:M}),(0,_.jsx)(f,{label:a(`table.class`),sortKey:`klass`,sort:j,onSort:M}),(0,_.jsx)(f,{label:a(`table.queue`),sortKey:`queue`,sort:j,onSort:M}),(0,_.jsx)(f,{label:`Last fire`,sortKey:`last_fire`,sort:j,onSort:M}),(0,_.jsx)(f,{label:`Next fire`,sortKey:`next_fire`,sort:j,onSort:M}),(0,_.jsx)(f,{label:a(`table.status`),sortKey:`status`,sort:j,onSort:M}),!i&&(0,_.jsx)(`th`,{})]})}),(0,_.jsx)(`tbody`,{children:A.map(e=>(0,_.jsxs)(`tr`,{className:`row-clickable`,onClick:()=>b(e),children:[(0,_.jsx)(`td`,{style:{fontFamily:`monospace`,fontSize:12},title:e.tz??void 0,children:e.schedule}),(0,_.jsx)(`td`,{title:e.klass,children:d(e.klass,32)}),(0,_.jsx)(`td`,{children:e.queue}),(0,_.jsx)(`td`,{style:{color:`var(--text-muted)`},children:e.last_fire_at?l(e.last_fire_at):`—`}),(0,_.jsx)(`td`,{style:{color:e.paused?`var(--text-muted)`:`var(--accent)`},children:e.paused?`—`:e.next_fire_at?l(e.next_fire_at):`—`}),(0,_.jsx)(`td`,{children:e.paused?(0,_.jsx)(`span`,{className:`badge badge-muted`,children:`paused`}):(0,_.jsx)(`span`,{className:`badge badge-success`,children:`active`})}),!i&&(0,_.jsx)(`td`,{onClick:e=>e.stopPropagation(),children:(0,_.jsxs)(`div`,{style:{display:`flex`,gap:`0.4rem`},children:[(0,_.jsx)(`button`,{className:`btn btn-sm`,disabled:T.isPending,onClick:()=>T.mutate({lid:e.lid,paused:e.paused}),children:e.paused?`Resume`:`Pause`}),(0,_.jsx)(`button`,{className:`btn btn-sm`,disabled:E.isPending,onClick:()=>E.mutate(e.lid),children:`Enqueue`})]})})]},e.lid))})]})}),(0,_.jsx)(h,{open:y!==null,onClose:()=>b(null),title:y?`${a(`cron.history_title`)} — ${d(y.klass,40)}`:a(`cron.history_title`),children:O?(0,_.jsx)(s,{rows:6,cols:2}):k?(0,_.jsx)(`div`,{className:`empty-state`,style:{color:`var(--danger)`},children:a(`common.error`)}):!D||D.length===0?(0,_.jsx)(`div`,{className:`empty-state`,children:a(`cron.no_history`)}):(0,_.jsx)(`div`,{className:`table-wrapper`,children:(0,_.jsxs)(`table`,{children:[(0,_.jsx)(`thead`,{children:(0,_.jsxs)(`tr`,{children:[(0,_.jsx)(`th`,{children:a(`cron.fired`)}),(0,_.jsx)(`th`,{children:a(`table.jid`)})]})}),(0,_.jsx)(`tbody`,{children:D.map(([e,t])=>(0,_.jsxs)(`tr`,{children:[(0,_.jsx)(`td`,{style:{color:`var(--text-muted)`},title:u(e),children:l(e)}),(0,_.jsx)(`td`,{style:{fontFamily:`monospace`,fontSize:12},children:t})]},t))})]})})})]})}export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,b as t,c as n,g as r,i,n as a,o,r as s,t as c}from"./index-
|
|
1
|
+
import{C as e,b as t,c as n,g as r,i,n as a,o,r as s,t as c}from"./index-DcfzJOIq.js";import{n as l}from"./utils-DDJC7tJV.js";import{I as u,a as d,j as f,r as p,t as m,xt as h}from"./AreaChart-BrEBs9bV.js";var g=e(t(),1),_=e=>1-(1-e)**3,v=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function y(e,t=700){let[n,r]=(0,g.useState)(0),i=(0,g.useRef)(0),a=(0,g.useRef)(null);return(0,g.useEffect)(()=>{if(v()||!Number.isFinite(e)){i.current=e,r(e);return}let n=i.current;if(n===e)return;let o=performance.now(),s=c=>{let l=Math.min((c-o)/t,1),u=n+(e-n)*_(l);i.current=u,r(u),l<1&&(a.current=requestAnimationFrame(s))};return a.current=requestAnimationFrame(s),()=>{a.current!==null&&cancelAnimationFrame(a.current)}},[e,t]),n}var b=n();function x({value:e}){let t=y(e);return(0,b.jsx)(b.Fragment,{children:Math.round(t).toLocaleString()})}function S(e,t){if(e.length<2)return null;let n=e[e.length-1].at,r=0,i=0;for(let a of e)a.at>n-3600?r+=a[t]:a.at>n-7200&&(i+=a[t]);return i===0?r===0?null:100:Math.round((r-i)/i*100)}var C=[{key:`1h`,bucket:`1m`,window:`24h`,slice:60,desc_key:`dashboard.range_1h_desc`},{key:`24h`,bucket:`1m`,window:`24h`,desc_key:`dashboard.range_24h_desc`},{key:`7d`,bucket:`5m`,window:`7d`,desc_key:`dashboard.range_7d_desc`},{key:`30d`,bucket:`1h`,window:`30d`,desc_key:`dashboard.range_30d_desc`}],w=(e,t)=>{let n=new Date(e*1e3),r=String(n.getHours()).padStart(2,`0`);return t===`1h`?`${n.getMonth()+1}/${n.getDate()} ${r}:00`:`${r}:${String(n.getMinutes()).padStart(2,`0`)}`};function T({pct:e,goodWhenUp:t}){if(e===null)return(0,b.jsx)(`span`,{className:`obs-metric__sub`,children:i(`dashboard.vs_last_hour`)});let n=e>=0;return(0,b.jsxs)(`span`,{className:`obs-metric__sub`,children:[(0,b.jsxs)(`span`,{className:n===t?`up`:`down`,children:[n?`▲`:`▼`,` `,n?`+`:``,e,`%`]}),` `,i(`dashboard.vs_last_hour`)]})}function E({sse:e}){let[t,n]=(0,g.useState)(0),_=C[t];(0,g.useEffect)(()=>{document.title=`${i(`nav.dashboard`)} — Wurk`},[]);let{data:v,isLoading:y,isError:E}=o({queryKey:[`stats`],queryFn:()=>fetch(`/wurk/api/stats`).then(e=>e.json()),enabled:!e.connected,refetchInterval:e.connected?!1:5e3}),{data:D,isPending:O}=o({queryKey:[`history`,_.bucket,_.window],queryFn:()=>fetch(`/wurk/api/history/${_.bucket}?window=${_.window}`).then(e=>e.json()),refetchInterval:3e4}),k=e.stats??v??null,A=(D?.series??[]).map(e=>({...e,label:w(e.at,_.bucket)})),j=`slice`in _?_.slice:void 0,M=j?A.slice(-j):A,N=M.some(e=>e.processed>0||e.failed>0);if(y&&!k)return(0,b.jsxs)(`div`,{className:`obs`,children:[(0,b.jsx)(a,{count:4}),(0,b.jsx)(s,{rows:6,cols:4})]});if(E&&!k)return(0,b.jsx)(`div`,{className:`empty-state`,style:{color:`var(--danger)`},children:i(`common.error`)});if(!k)return(0,b.jsx)(`div`,{className:`empty-state`,children:i(`common.empty`)});let P=[{key:`processed`,label:i(`dashboard.processed`),value:k.processed,icon:`fa-circle-check`,to:`/metrics`,sub:(0,b.jsx)(T,{pct:S(A,`processed`),goodWhenUp:!0})},{key:`failed`,label:i(`dashboard.failed`),value:k.failed,icon:`fa-triangle-exclamation`,to:`/retries`,sub:(0,b.jsx)(T,{pct:S(A,`failed`),goodWhenUp:!1})},{key:`expired`,label:i(`dashboard.expired`),value:k.expired,icon:`fa-ban`,to:`/dead`,sub:(0,b.jsx)(`span`,{className:`obs-metric__sub`,children:k.expired===0?i(`dashboard.stable_threshold`):i(`dashboard.above_threshold`)})},{key:`busy`,label:i(`dashboard.busy`),value:k.busy,icon:`fa-spinner`,to:`/busy`,sub:(0,b.jsx)(`span`,{className:`obs-metric__sub`,children:k.busy===0?i(`dashboard.system_idle`):i(`dashboard.processing`)})}],F=[{key:`enqueued`,label:i(`dashboard.enqueued`),value:k.enqueued,to:`/queues`},{key:`retries`,label:i(`dashboard.retries`),value:k.retries,to:`/retries`},{key:`scheduled`,label:i(`dashboard.scheduled`),value:k.scheduled,to:`/scheduled`},{key:`dead`,label:i(`dashboard.dead`),value:k.dead,to:`/dead`}];return(0,b.jsxs)(`div`,{className:`obs`,children:[(0,b.jsx)(`div`,{className:`obs-metrics`,children:P.map(e=>(0,b.jsxs)(r,{className:`obs-card obs-metric obs-card--link`,to:e.to,children:[(0,b.jsxs)(`div`,{className:`obs-metric__head`,children:[(0,b.jsx)(`span`,{className:`obs-mono`,children:e.label}),(0,b.jsx)(`i`,{className:`fa-solid ${e.icon} obs-metric__icon`,"aria-hidden":`true`})]}),(0,b.jsx)(`span`,{className:`obs-metric__value`,children:(0,b.jsx)(x,{value:e.value})}),e.sub,(0,b.jsx)(`i`,{className:`fa-solid fa-arrow-right obs-card__go`,"aria-hidden":`true`})]},e.key))}),(0,b.jsxs)(`div`,{className:`obs-card obs-panel`,children:[(0,b.jsxs)(`div`,{className:`obs-panel__head`,children:[(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`h2`,{className:`obs-panel__title`,children:i(`dashboard.performance_insight`)}),(0,b.jsx)(`p`,{className:`obs-panel__sub`,children:i(`dashboard.perf_subtitle`,{range:i(_.desc_key)})})]}),(0,b.jsxs)(`div`,{className:`obs-panel__controls`,children:[(0,b.jsx)(`div`,{className:`obs-seg`,role:`tablist`,"aria-label":`Time range`,children:C.map((e,r)=>(0,b.jsx)(`button`,{role:`tab`,"aria-selected":r===t,className:r===t?`is-active`:``,onClick:()=>n(r),children:e.key},e.key))}),(0,b.jsxs)(`div`,{className:`obs-legend`,children:[(0,b.jsxs)(`span`,{children:[(0,b.jsx)(`i`,{className:`dot dot--processed`}),` `,i(`dashboard.processed`)]}),(0,b.jsxs)(`span`,{children:[(0,b.jsx)(`i`,{className:`dot dot--failed`}),` `,i(`dashboard.failed`)]})]})]})]}),(0,b.jsx)(`div`,{className:`obs-chartbox`,children:O?(0,b.jsx)(c,{height:320}):N?(0,b.jsx)(h,{width:`100%`,height:320,children:(0,b.jsxs)(m,{data:M,margin:{top:8,right:8,left:0,bottom:0},children:[(0,b.jsx)(`defs`,{children:(0,b.jsxs)(`linearGradient`,{id:`obsProcessed`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,b.jsx)(`stop`,{offset:`0%`,stopColor:`#fafafa`,stopOpacity:.22}),(0,b.jsx)(`stop`,{offset:`95%`,stopColor:`#fafafa`,stopOpacity:0})]})}),(0,b.jsx)(f,{strokeDasharray:`3 3`,vertical:!1,stroke:`rgba(255,255,255,0.06)`}),(0,b.jsx)(p,{dataKey:`label`,tick:{fill:`#71717a`,fontSize:11,fontFamily:`JetBrains Mono, monospace`},axisLine:!1,tickLine:!1,minTickGap:64,interval:`preserveStartEnd`}),(0,b.jsx)(u,{contentStyle:{background:`#161618`,border:`1px solid #272729`,borderRadius:6,fontSize:12,fontFamily:`JetBrains Mono, monospace`},labelStyle:{color:`#a1a1aa`},cursor:{stroke:`rgba(255,255,255,0.25)`,strokeWidth:1}}),(0,b.jsx)(d,{type:`monotone`,dataKey:`processed`,name:i(`dashboard.processed`),stroke:`#fafafa`,strokeWidth:2,fill:`url(#obsProcessed)`,dot:!1,activeDot:{r:4,fill:`#fafafa`,stroke:`#09090b`,strokeWidth:2},animationDuration:1100,animationEasing:`ease-out`}),(0,b.jsx)(d,{type:`monotone`,dataKey:`failed`,name:i(`dashboard.failed`),stroke:`#a1a1aa`,strokeWidth:1.5,strokeDasharray:`5 4`,fill:`transparent`,dot:!1,activeDot:{r:3,fill:`#a1a1aa`,stroke:`#09090b`,strokeWidth:2},animationDuration:1100,animationBegin:250,animationEasing:`ease-out`})]})}):(0,b.jsx)(`div`,{className:`empty-state`,style:{height:320,display:`grid`,placeItems:`center`},children:i(`dashboard.no_history`)})})]}),(0,b.jsx)(`div`,{className:`obs-stats`,children:F.map(e=>(0,b.jsxs)(r,{className:`obs-card obs-stat obs-card--link`,to:e.to,children:[(0,b.jsx)(`span`,{className:`obs-mono`,children:e.label}),(0,b.jsx)(`span`,{className:`obs-stat__value`,children:(0,b.jsx)(x,{value:e.value})}),(0,b.jsx)(`i`,{className:`fa-solid fa-arrow-right obs-card__go`,"aria-hidden":`true`})]},e.key))}),(0,b.jsxs)(`div`,{className:`obs-card obs-table`,children:[(0,b.jsxs)(`div`,{className:`obs-table__head`,children:[(0,b.jsx)(`h2`,{className:`obs-table__title`,children:i(`table.queues`)}),(0,b.jsxs)(r,{className:`obs-table__link`,to:`/queues`,children:[`View All `,(0,b.jsx)(`i`,{className:`fa-solid fa-arrow-right`,"aria-hidden":`true`})]})]}),k.queues.length===0?(0,b.jsx)(`div`,{className:`empty-state`,children:i(`common.empty`)}):(0,b.jsx)(`div`,{className:`obs-tablescroll`,children:(0,b.jsxs)(`table`,{children:[(0,b.jsx)(`thead`,{children:(0,b.jsxs)(`tr`,{children:[(0,b.jsx)(`th`,{children:`Name`}),(0,b.jsx)(`th`,{children:i(`table.size`)}),(0,b.jsx)(`th`,{children:i(`table.latency`)}),(0,b.jsx)(`th`,{children:i(`table.status`)})]})}),(0,b.jsx)(`tbody`,{children:k.queues.map(e=>(0,b.jsxs)(`tr`,{children:[(0,b.jsx)(`td`,{style:{fontWeight:500,color:`var(--obs-text)`},children:e.name}),(0,b.jsx)(`td`,{children:(0,b.jsx)(x,{value:e.size})}),(0,b.jsx)(`td`,{title:`${e.latency.toFixed(3)}s`,children:l(e.latency)}),(0,b.jsx)(`td`,{children:e.paused?(0,b.jsx)(`span`,{className:`obs-chip obs-chip--paused`,children:i(`dashboard.paused`)}):(0,b.jsx)(`span`,{className:`obs-chip obs-chip--active`,children:i(`dashboard.active`)})})]},e.name))})]})})]}),(0,b.jsxs)(`div`,{className:`obs-card obs-cta`,children:[(0,b.jsx)(`span`,{className:`obs-cta__icon`,children:(0,b.jsx)(`i`,{className:`fa-solid fa-bolt`,"aria-hidden":`true`})}),(0,b.jsx)(`h2`,{className:`obs-cta__title`,children:i(`dashboard.strapline`)}),(0,b.jsx)(`p`,{className:`obs-cta__text`,children:i(`dashboard.tagline`)}),(0,b.jsxs)(`div`,{className:`obs-cta__actions`,children:[(0,b.jsxs)(`a`,{className:`obs-btn obs-btn--primary`,href:`https://developerz-ai.github.io/wurk/`,target:`_blank`,rel:`noreferrer`,children:[(0,b.jsx)(`i`,{className:`fa-solid fa-download`,"aria-hidden":`true`}),` `,i(`dashboard.install`)]}),(0,b.jsxs)(`a`,{className:`obs-btn obs-btn--ghost`,href:`https://github.com/developerz-ai/wurk/wiki`,target:`_blank`,rel:`noreferrer`,children:[(0,b.jsx)(`i`,{className:`fa-solid fa-book`,"aria-hidden":`true`}),` `,i(`dashboard.docs`)]})]})]})]})}export{E as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,a as t,b as n,c as r,i,o as a,r as o}from"./index-
|
|
1
|
+
import{C as e,a as t,b as n,c as r,i,o as a,r as o}from"./index-DcfzJOIq.js";import{a as s,i as c,o as l,t as u}from"./utils-DDJC7tJV.js";import{n as d,t as f}from"./usePageParam-BDV1DCDQ.js";import{n as p,t as m}from"./useSort-BPPxnBBo.js";import{t as h}from"./PageHeader-B-0cTQeM.js";import{t as g}from"./ArgsValue-CiJzEwxS.js";import{t as _}from"./JobDetailModal-DKYvp6QS.js";import{i as v,n as y,r as b,t as x}from"./useJobSetActions-BCW6DHSe.js";var S=e(n(),1),C=r(),w=25,T={jid:e=>e.jid,klass:e=>e.klass,args:e=>u(e.args),error_class:e=>e.error_class,error_message:e=>e.error_message,failed_at:e=>e.at},E=[{cmd:`retry`,label:i(`actions.retry`)},{cmd:`delete`,label:i(`actions.delete`),danger:!0}];function D(){let[e,n]=f(),[r,D]=(0,S.useState)(null),[O,k]=(0,S.useState)(null),{data:A}=t(),j=A?.read_only??!1,M=b(),{single:N,bulk:P,all:F}=y(`dead`),I=N.isPending||P.isPending||F.isPending;(0,S.useEffect)(()=>{document.title=`${i(`nav.dead`)} — Wurk`},[]);let{data:L,isLoading:R,isError:z}=a({queryKey:[`dead`,e],queryFn:()=>fetch(`/wurk/api/dead?page=${e-1}&count=${w}`).then(e=>e.json())}),{sorted:B,sort:V,toggle:H}=m(L?.entries??[],T),U=B.map(x);if(R)return(0,C.jsxs)(`div`,{children:[(0,C.jsx)(h,{icon:`fa-skull`,title:i(`nav.dead`),summary:i(`summaries.dead`)}),(0,C.jsx)(o,{rows:8,cols:7})]});if(z||!L)return(0,C.jsx)(`div`,{className:`empty-state`,style:{color:`var(--danger)`},children:i(`common.error`)});let W=U.length>0&&U.every(e=>M.selected.has(e));return(0,C.jsxs)(`div`,{children:[(0,C.jsx)(h,{icon:`fa-skull`,title:i(`nav.dead`),summary:i(`summaries.dead`),children:(0,C.jsx)(`span`,{className:`badge badge-danger`,children:L.total.toLocaleString()})}),B.length===0?(0,C.jsx)(`div`,{className:`empty-state`,children:i(`common.empty`)}):(0,C.jsxs)(C.Fragment,{children:[!j&&(0,C.jsx)(v,{bulk:E,all:E,selectedCount:M.count,total:L.total,pending:I,onBulk:e=>P.mutate({keys:[...M.selected],cmd:e},{onSuccess:M.clear}),onAll:e=>F.mutate(e,{onSuccess:M.clear})}),(0,C.jsx)(`div`,{className:`table-wrapper`,children:(0,C.jsxs)(`table`,{children:[(0,C.jsx)(`thead`,{children:(0,C.jsxs)(`tr`,{children:[!j&&(0,C.jsx)(`th`,{className:`row-action`,children:(0,C.jsx)(`input`,{type:`checkbox`,checked:W,onChange:()=>M.toggleAll(U),"aria-label":`Select all`})}),(0,C.jsx)(p,{label:i(`table.jid`),sortKey:`jid`,sort:V,onSort:H}),(0,C.jsx)(p,{label:i(`table.class`),sortKey:`klass`,sort:V,onSort:H}),(0,C.jsx)(p,{label:i(`table.args`),sortKey:`args`,sort:V,onSort:H}),(0,C.jsx)(p,{label:i(`table.error`),sortKey:`error_class`,sort:V,onSort:H}),(0,C.jsx)(p,{label:`Message`,sortKey:`error_message`,sort:V,onSort:H}),(0,C.jsx)(p,{label:i(`table.failed_at`),sortKey:`failed_at`,sort:V,onSort:H})]})}),(0,C.jsx)(`tbody`,{children:B.map(e=>{let t=u(e.args),n=x(e);return(0,C.jsxs)(`tr`,{className:`row-clickable`,onClick:()=>{D(e),k(n)},children:[!j&&(0,C.jsx)(`td`,{className:`row-action`,onClick:e=>e.stopPropagation(),children:(0,C.jsx)(`input`,{type:`checkbox`,checked:M.selected.has(n),onChange:()=>M.toggle(n),"aria-label":`Select job`})}),(0,C.jsx)(`td`,{title:e.jid,style:{fontFamily:`monospace`,fontSize:12,color:`var(--text-muted)`},children:l(e.jid,12)}),(0,C.jsx)(`td`,{style:{fontWeight:500},children:e.klass}),(0,C.jsx)(`td`,{children:(0,C.jsx)(g,{str:t,max:40})}),(0,C.jsx)(`td`,{title:e.error_class??``,style:{color:`var(--danger)`},children:l(e.error_class,25)}),(0,C.jsx)(`td`,{title:e.error_message??``,children:l(e.error_message,40)}),(0,C.jsx)(`td`,{title:c(e.at),children:s(e.at)})]},e.jid)})})]})}),(0,C.jsx)(d,{page:e,total:L.total,count:w,onChange:n})]}),(0,C.jsx)(_,{entry:r,atLabel:i(`table.failed_at`),actions:j?void 0:E,pending:N.isPending,onAction:e=>O&&N.mutate({key:O,cmd:e},{onSuccess:()=>{D(null),k(null)}}),onClose:()=>{D(null),k(null)}})]})}export{D as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,_ as t,a as n,b as r,c as i,i as a,r as o,t as s}from"./index-
|
|
1
|
+
import{C as e,_ as t,a as n,b as r,c as i,i as a,r as o,t as s}from"./index-DcfzJOIq.js";import{t as c}from"./PageHeader-B-0cTQeM.js";var l=e(r(),1),u=i();function d(){let{tab:e=``}=t(),{data:r}=n(),i=e=>e.replace(/\/+$/,``),a=r?.custom_tabs?.find(t=>i(t.path)===i(e)),o=a?.name??e;return a?.ext_name?(0,u.jsx)(f,{extName:a.ext_name,indexPath:e,title:o},a.ext_name):(0,u.jsx)(p,{tab:e,title:o})}function f({extName:e,indexPath:t,title:n}){let r=`/wurk/ext/${e}/`,[i,d]=(0,l.useState)(null),[f,p]=(0,l.useState)(!1),m=(0,l.useRef)(0),h=(0,l.useCallback)(async(e,t)=>{let n=++m.current;try{let i=await fetch(r+e,t),a=await i.text();if(n!==m.current)return;p(!i.ok&&i.status!==404),d(a)}catch{n===m.current&&p(!0)}},[r]);return(0,l.useEffect)(()=>{h(t.replace(/\/+$/,``))},[h,t]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(c,{icon:`fa-puzzle-piece`,title:n,summary:a(`extension.summary`)}),f&&(0,u.jsx)(`div`,{className:`empty-state`,style:{color:`var(--danger)`},children:a(`common.error`)}),i===null&&!f&&(0,u.jsxs)(`div`,{className:`skeleton-stack`,children:[(0,u.jsx)(s,{height:`1.5rem`,width:`40%`}),(0,u.jsx)(o,{rows:6,cols:4})]}),i!==null&&!f&&(0,u.jsx)(`div`,{className:`card ext-view`,onClick:e=>{let t=e.target.closest(`a`);if(!t?.getAttribute(`href`))return;let n=new URL(t.href,window.location.origin);n.origin!==window.location.origin||!n.pathname.startsWith(r)||(e.preventDefault(),h(n.pathname.slice(r.length)+n.search))},onSubmit:e=>{let t=e.target,n=new URL(t.getAttribute(`action`)||window.location.href,window.location.origin);if(n.origin!==window.location.origin||!n.pathname.startsWith(r))return;e.preventDefault();let i=new FormData(t);if((t.method||`get`).toUpperCase()===`GET`){let e=new URLSearchParams(Array.from(i.entries())).toString();h(`${n.pathname.slice(r.length)}${e?`?${e}`:``}`)}else h(n.pathname.slice(r.length)+n.search,{method:`POST`,body:i})},dangerouslySetInnerHTML:{__html:i}})]})}function p({tab:e,title:t}){let n=`/wurk/${e}?wurk_ext_embed=1`;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(c,{icon:`fa-puzzle-piece`,title:t,summary:a(`extension.summary`),children:(0,u.jsxs)(`a`,{className:`btn btn-sm`,href:`/wurk/${e}`,target:`_blank`,rel:`noopener noreferrer`,children:[(0,u.jsx)(`i`,{className:`fa-solid fa-arrow-up-right-from-square`,style:{marginInlineEnd:`0.4rem`}}),a(`extension.open`)]})}),(0,u.jsx)(`iframe`,{title:t,src:n,style:{width:`100%`,height:`calc(100vh - 11rem)`,border:`1px solid var(--border)`,borderRadius:`var(--radius)`,background:`var(--surface)`}})]})}export{d as default};
|
data/vendor/assets/dashboard/assets/{JobDetailModal-DokU_RzZ.js → JobDetailModal-DKYvp6QS.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as e,i as t}from"./index-
|
|
1
|
+
import{c as e,i as t}from"./index-DcfzJOIq.js";import{a as n,i as r,t as i}from"./utils-DDJC7tJV.js";import{t as a}from"./Modal-CvD-1IKA.js";var o=e();function s({label:e,children:t,mono:n}){return(0,o.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:3},children:[(0,o.jsx)(`span`,{style:{fontSize:11,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.04em`},children:e}),(0,o.jsx)(`span`,{style:{fontSize:13,fontFamily:n?`ui-monospace, monospace`:void 0,wordBreak:`break-word`},children:t})]})}function c({entry:e,atLabel:c,actions:l,onAction:u,pending:d=!1,onClose:f}){let p=l&&l.length>0&&u?(0,o.jsx)(`div`,{style:{display:`flex`,gap:`0.5rem`,justifyContent:`flex-end`,flexWrap:`wrap`},children:l.map(e=>(0,o.jsx)(`button`,{className:`btn btn-sm${e.danger?` btn-danger`:``}`,disabled:d,onClick:()=>{d||e.danger&&!window.confirm(t(`actions.confirm`,{action:e.label,scope:t(`job.detail`).toLowerCase()}))||u(e.cmd)},children:e.label},e.cmd))}):void 0;return(0,o.jsx)(a,{open:e!==null,onClose:f,title:e?.klass??t(`job.detail`),width:680,footer:p,children:e&&(0,o.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1rem`},children:[(0,o.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(160px, 1fr))`,gap:`0.9rem`},children:[(0,o.jsx)(s,{label:t(`job.class`),children:e.klass}),e.queue&&(0,o.jsx)(s,{label:t(`job.queue`),children:e.queue}),(0,o.jsx)(s,{label:t(`job.jid`),mono:!0,children:e.jid}),typeof e.retry_count==`number`&&(0,o.jsx)(s,{label:t(`job.retries`),children:e.retry_count}),e.enqueued_at!=null&&(0,o.jsxs)(s,{label:t(`job.enqueued`),mono:!0,children:[r(e.enqueued_at),` (`,n(e.enqueued_at),`)`]}),e.at!=null&&(0,o.jsxs)(s,{label:c??t(`job.at`),mono:!0,children:[r(e.at),` (`,n(e.at),`)`]})]}),(0,o.jsx)(s,{label:t(`job.args`),mono:!0,children:i(e.args)===`[]`||i(e.args)===``?(0,o.jsx)(`span`,{style:{color:`var(--text-muted)`},children:`—`}):(0,o.jsx)(`pre`,{style:{margin:0,whiteSpace:`pre-wrap`,wordBreak:`break-word`},children:i(e.args)})}),(e.error_class||e.error_message)&&(0,o.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:3},children:[(0,o.jsx)(`span`,{style:{fontSize:11,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.04em`},children:t(`job.error`)}),(0,o.jsxs)(`span`,{style:{fontSize:13,color:`var(--danger)`,wordBreak:`break-word`},children:[e.error_class,e.error_message?`: ${e.error_message}`:``]})]}),e.error_backtrace&&e.error_backtrace.length>0&&(0,o.jsx)(s,{label:t(`job.backtrace`),children:(0,o.jsx)(`pre`,{className:`job-backtrace`,children:e.error_backtrace.join(`
|
|
2
2
|
`)})}),e.custom_rows&&e.custom_rows.length>0&&(0,o.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(160px, 1fr))`,gap:`0.9rem`},children:e.custom_rows.map(([e,t],n)=>(0,o.jsx)(s,{label:e,children:t},`${e}-${n}`))})]})})}export{c as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./useMutation-
|
|
1
|
+
import{t as e}from"./useMutation-NUbe15ar.js";import{C as t,a as n,b as r,c as i,i as a,o,r as s,s as c}from"./index-DcfzJOIq.js";import{n as l,t as u}from"./usePageParam-BDV1DCDQ.js";import{n as d,t as f}from"./useSort-BPPxnBBo.js";import{t as p}from"./PageHeader-B-0cTQeM.js";var m=t(r(),1),h=i(),g=25,_={name:e=>e.name,type:e=>e.type,used:e=>e.status?.used??0,limit:e=>e.status?.limit??null,usage:e=>{let t=e.status?.used??0,n=e.status?.limit??null;return n&&n>0?t/n:0},status:e=>e.status?.[`available?`]??!0?`available`:`exhausted`};function v(){let t=c(),{data:r}=n(),i=r?.read_only??!1,[v,y]=u();(0,m.useEffect)(()=>{document.title=`${a(`nav.limiters`)} — Wurk`},[]);let{data:b,isLoading:x,isError:S}=o({queryKey:[`limiters`,v],queryFn:()=>fetch(`/wurk/api/limiters?page=${v-1}&count=${g}`).then(e=>e.json()),refetchInterval:5e3}),C=e({mutationFn:e=>fetch(`/wurk/api/limiters/${encodeURIComponent(e)}/reset`,{method:`POST`}),onSuccess:()=>t.invalidateQueries({queryKey:[`limiters`]})}),{sorted:w,sort:T,toggle:E}=f(b?.limiters??[],_);return x?(0,h.jsxs)(`div`,{children:[(0,h.jsx)(p,{icon:`fa-gauge`,title:a(`nav.limiters`),summary:a(`summaries.limiters`)}),(0,h.jsx)(s,{rows:8,cols:i?6:7})]}):S||!b?(0,h.jsx)(`div`,{className:`empty-state`,style:{color:`var(--danger)`},children:a(`common.error`)}):(0,h.jsxs)(`div`,{children:[(0,h.jsx)(p,{icon:`fa-gauge`,title:a(`nav.limiters`),summary:a(`summaries.limiters`),children:(0,h.jsx)(`span`,{className:`badge badge-muted`,children:b.total.toLocaleString()})}),w.length===0?(0,h.jsx)(`div`,{className:`empty-state`,children:a(`common.empty`)}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`div`,{className:`table-wrapper`,children:(0,h.jsxs)(`table`,{children:[(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(d,{label:`Name`,sortKey:`name`,sort:T,onSort:E}),(0,h.jsx)(d,{label:`Type`,sortKey:`type`,sort:T,onSort:E}),(0,h.jsx)(d,{label:`Used`,sortKey:`used`,sort:T,onSort:E}),(0,h.jsx)(d,{label:`Limit`,sortKey:`limit`,sort:T,onSort:E}),(0,h.jsx)(d,{label:`Usage`,sortKey:`usage`,sort:T,onSort:E}),(0,h.jsx)(d,{label:`Status`,sortKey:`status`,sort:T,onSort:E}),!i&&(0,h.jsx)(`th`,{})]})}),(0,h.jsx)(`tbody`,{children:w.map(e=>{let t=e.status,n=t?.used??0,r=t?.limit??null,a=r&&r>0?Math.min(n/r*100,100):0,o=a>90?`var(--danger)`:a>70?`var(--warning)`:`var(--success)`,s=t?.[`available?`]??!0,c=t?Object.entries(t).filter(([e])=>![`used`,`limit`,`reset_at`,`available?`].includes(e)).map(([e,t])=>`${e}=${t}`).join(` `):``;return(0,h.jsxs)(`tr`,{children:[(0,h.jsx)(`td`,{style:{fontWeight:500},title:e.name,children:e.name}),(0,h.jsx)(`td`,{children:(0,h.jsx)(`span`,{className:`badge badge-accent`,children:e.type})}),(0,h.jsx)(`td`,{style:{fontVariantNumeric:`tabular-nums`},title:c,children:n.toLocaleString()}),(0,h.jsx)(`td`,{style:{fontVariantNumeric:`tabular-nums`},children:r==null?`∞`:r.toLocaleString()}),(0,h.jsx)(`td`,{style:{width:160},children:r==null?(0,h.jsx)(`span`,{style:{color:`var(--text-muted)`},children:`—`}):(0,h.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`},children:[(0,h.jsx)(`div`,{className:`progress-bar-track`,style:{flex:1},children:(0,h.jsx)(`div`,{className:`progress-bar-fill`,style:{width:`${a}%`,background:o}})}),(0,h.jsxs)(`span`,{style:{fontSize:12,color:`var(--text-muted)`,minWidth:36},children:[Math.round(a),`%`]})]})}),(0,h.jsx)(`td`,{children:s?(0,h.jsx)(`span`,{className:`badge badge-success`,children:`available`}):(0,h.jsx)(`span`,{className:`badge badge-danger`,children:`exhausted`})}),!i&&(0,h.jsx)(`td`,{children:(0,h.jsx)(`button`,{className:`btn btn-sm`,disabled:C.isPending,onClick:()=>C.mutate(e.name),children:`Reset`})})]},e.name)})})]})}),(0,h.jsx)(l,{page:v,total:b.total,count:g,onChange:y})]})]})}export{v as default};
|