@oh-my-pi/omp-stats 17.1.8 → 17.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +44 -44
- package/package.json +4 -4
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var uO=Object.create;var{getPrototypeOf:xO,defineProperty:jR,getOwnPropertyNames:mO}=Object;var dO=Object.prototype.hasOwnProperty;function pO(Q){return this[Q]}var cO,lO,n=(Q,J,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=J?cO??=new WeakMap:lO??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?uO(xO(Q)):{};let H=J||!Q||!Q.__esModule?jR(X,"default",{value:Q,enumerable:!0}):X;for(let F of mO(Q))if(!dO.call(H,F))jR(H,F,{get:pO.bind(Q,F),enumerable:!0});if(q)N.set(Q,H);return H};var E8=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var i_=E8(($j)=>{(function(){function Q(){if(s=!1,i){var l=$j.unstable_now();H0=l;var q0=!0;try{$:{h=!1,p&&(p=!1,J0(Y0),Y0=-1),D=!0;var F0=O;try{Z:{K(l);for(V=X(P);V!==null&&!(V.expirationTime>l&&F());){var a0=V.callback;if(typeof a0==="function"){V.callback=null,O=V.priorityLevel;var d0=a0(V.expirationTime<=l);if(l=$j.unstable_now(),typeof d0==="function"){V.callback=d0,K(l),q0=!0;break Z}V===X(P)&&q(P),K(l)}else q(P);V=X(P)}if(V!==null)q0=!0;else{var v=X(I);v!==null&&M(H,v.startTime-l),q0=!1}}break $}finally{V=null,O=F0,D=!1}q0=void 0}}finally{q0?P0():i=!1}}}function J(l,q0){var F0=l.length;l.push(q0);$:for(;0<F0;){var a0=F0-1>>>1,d0=l[a0];if(0<N(d0,q0))l[a0]=q0,l[F0]=d0,F0=a0;else break $}}function X(l){return l.length===0?null:l[0]}function q(l){if(l.length===0)return null;var q0=l[0],F0=l.pop();if(F0!==q0){l[0]=F0;$:for(var a0=0,d0=l.length,v=d0>>>1;a0<v;){var o=2*(a0+1)-1,M0=l[o],W0=o+1,p0=l[W0];if(0>N(M0,F0))W0<d0&&0>N(p0,M0)?(l[a0]=p0,l[W0]=F0,a0=W0):(l[a0]=M0,l[o]=F0,a0=o);else if(W0<d0&&0>N(p0,F0))l[a0]=p0,l[W0]=F0,a0=W0;else break $}}return q0}function N(l,q0){var F0=l.sortIndex-q0.sortIndex;return F0!==0?F0:l.id-q0.id}function K(l){for(var q0=X(I);q0!==null;){if(q0.callback===null)q(I);else if(q0.startTime<=l)q(I),q0.sortIndex=q0.expirationTime,J(P,q0);else break;q0=X(I)}}function H(l){if(p=!1,K(l),!h)if(X(P)!==null)h=!0,i||(i=!0,P0());else{var q0=X(I);q0!==null&&M(H,q0.startTime-l)}}function F(){return s?!0:$j.unstable_now()-H0<d?!1:!0}function M(l,q0){Y0=a(function(){l($j.unstable_now())},q0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),$j.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;$j.unstable_now=function(){return w.now()}}else{var R=Date,_=R.now();$j.unstable_now=function(){return R.now()-_}}var P=[],I=[],A=1,V=null,O=3,D=!1,h=!1,p=!1,s=!1,a=typeof setTimeout==="function"?setTimeout:null,J0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,i=!1,Y0=-1,d=5,H0=-1;if(typeof t==="function")var P0=function(){t(Q)};else if(typeof MessageChannel<"u"){var I0=new MessageChannel,b0=I0.port2;I0.port1.onmessage=Q,P0=function(){b0.postMessage(null)}}else P0=function(){a(Q,0)};$j.unstable_IdlePriority=5,$j.unstable_ImmediatePriority=1,$j.unstable_LowPriority=4,$j.unstable_NormalPriority=3,$j.unstable_Profiling=null,$j.unstable_UserBlockingPriority=2,$j.unstable_cancelCallback=function(l){l.callback=null},$j.unstable_forceFrameRate=function(l){0>l||125<l?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<l?Math.floor(1000/l):5},$j.unstable_getCurrentPriorityLevel=function(){return O},$j.unstable_next=function(l){switch(O){case 1:case 2:case 3:var q0=3;break;default:q0=O}var F0=O;O=q0;try{return l()}finally{O=F0}},$j.unstable_requestPaint=function(){s=!0},$j.unstable_runWithPriority=function(l,q0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var F0=O;O=l;try{return q0()}finally{O=F0}},$j.unstable_scheduleCallback=function(l,q0,F0){var a0=$j.unstable_now();switch(typeof F0==="object"&&F0!==null?(F0=F0.delay,F0=typeof F0==="number"&&0<F0?a0+F0:a0):F0=a0,l){case 1:var d0=-1;break;case 2:d0=250;break;case 5:d0=1073741823;break;case 4:d0=1e4;break;default:d0=5000}return d0=F0+d0,l={id:A++,callback:q0,priorityLevel:l,startTime:F0,expirationTime:d0,sortIndex:-1},F0>a0?(l.sortIndex=F0,J(I,l),X(P)===null&&l===X(I)&&(p?(J0(Y0),Y0=-1):p=!0,M(H,F0-a0))):(l.sortIndex=d0,J(P,l),h||D||(h=!0,i||(i=!0,P0()))),l},$j.unstable_shouldYield=F,$j.unstable_wrapCallback=function(l){var q0=O;return function(){var F0=O;O=q0;try{return l.apply(this,arguments)}finally{O=F0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var T1=E8((Zj,XX)=>{(function(){function Q(C,y){Object.defineProperty(q.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function J(C){if(C===null||typeof C!=="object")return null;return C=KJ&&C[KJ]||C["@@iterator"],typeof C==="function"?C:null}function X(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;X0[r]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",y,C),X0[r]=!0)}function q(C,y,r){this.props=C,this.context=y,this.refs=h2,this.updater=r||X7}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=h2,this.updater=r||X7}function H(){}function F(C){return""+C}function M(C){try{F(C);var y=!1}catch(N0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return r.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z0),F(C)}}function w(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===b$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case d0:return"Fragment";case o:return"Profiler";case v:return"StrictMode";case p1:return"Suspense";case k0:return"SuspenseList";case $4:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case a0:return"Portal";case W0:return C.displayName||"Context";case M0:return(C._context.displayName||"Context")+".Consumer";case p0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case i1:return y=C.displayName||null,y!==null?y:w(C.type)||"Memo";case E5:y=C._payload,C=C._init;try{return w(C(y))}catch(r){}}return null}function R(C){if(C===d0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===E5)return"<...>";try{var y=w(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function _(){var C=y0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function I(C){if(q7.call(C,"key")){var y=Object.getOwnPropertyDescriptor(C,"key").get;if(y&&y.isReactWarning)return!1}return C.key!==void 0}function A(C,y){function r(){BJ||(BJ=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}r.isReactWarning=!0,Object.defineProperty(C,"key",{get:r,configurable:!0})}function V(){var C=w(this.type);return n8[C]||(n8[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function O(C,y,r,Z0,N0,D0){var v0=r.ref;return C={$$typeof:F0,type:C,key:y,props:r,_owner:Z0},(v0!==void 0?v0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:V}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function D(C,y){return y=O(C.type,y,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(y._store.validated=C._store.validated),y}function h(C){p(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===E5&&(C._payload.status==="fulfilled"?p(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function p(C){return typeof C==="object"&&C!==null&&C.$$typeof===F0}function s(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function a(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(M(C.key),s(""+C.key)):y.toString(36)}function J0(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(H,H):(C.status="pending",C.then(function(y){C.status==="pending"&&(C.status="fulfilled",C.value=y)},function(y){C.status==="pending"&&(C.status="rejected",C.reason=y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function t(C,y,r,Z0,N0){var D0=typeof C;if(D0==="undefined"||D0==="boolean")C=null;var v0=!1;if(C===null)v0=!0;else switch(D0){case"bigint":case"string":case"number":v0=!0;break;case"object":switch(C.$$typeof){case F0:case a0:v0=!0;break;case E5:return v0=C._init,t(v0(C._payload),y,r,Z0,N0)}}if(v0){v0=C,N0=N0(v0);var Q1=Z0===""?"."+a(v0,0):Z0;return w1(N0)?(r="",Q1!=null&&(r=Q1.replace(N7,"$&/")+"/"),t(N0,y,r,"",function(S5){return S5})):N0!=null&&(p(N0)&&(N0.key!=null&&(v0&&v0.key===N0.key||M(N0.key)),r=D(N0,r+(N0.key==null||v0&&v0.key===N0.key?"":(""+N0.key).replace(N7,"$&/")+"/")+Q1),Z0!==""&&v0!=null&&p(v0)&&v0.key==null&&v0._store&&!v0._store.validated&&(r._store.validated=2),N0=r),y.push(N0)),1}if(v0=0,Q1=Z0===""?".":Z0+":",w1(C))for(var _0=0;_0<C.length;_0++)Z0=C[_0],D0=Q1+a(Z0,_0),v0+=t(Z0,y,r,D0,N0);else if(_0=J(C),typeof _0==="function")for(_0===C.entries&&(Y7||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Y7=!0),C=_0.call(C),_0=0;!(Z0=C.next()).done;)Z0=Z0.value,D0=Q1+a(Z0,_0++),v0+=t(Z0,y,r,D0,N0);else if(D0==="object"){if(typeof C.then==="function")return t(J0(C),y,r,Z0,N0);throw y=String(C),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return v0}function i(C,y,r){if(C==null)return C;var Z0=[],N0=0;return t(C,Z0,"","",function(D0){return y.call(r,D0,N0++)}),Z0}function Y0(C){if(C._status===-1){var y=C._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=C._result;var r=y();if(r.then(function(N0){if(C._status===0||C._status===-1){C._status=1,C._result=N0;var D0=C._ioInfo;D0!=null&&(D0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=N0)}},function(N0){if(C._status===0||C._status===-1){C._status=2,C._result=N0;var D0=C._ioInfo;D0!=null&&(D0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=N0)}}),y=C._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}C._status===-1&&(C._status=0,C._result=r)}if(C._status===1)return y=C._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
var uO=Object.create;var{getPrototypeOf:xO,defineProperty:jR,getOwnPropertyNames:mO}=Object;var dO=Object.prototype.hasOwnProperty;function pO(Q){return this[Q]}var cO,lO,n=(Q,J,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=J?cO??=new WeakMap:lO??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?uO(xO(Q)):{};let H=J||!Q||!Q.__esModule?jR(X,"default",{value:Q,enumerable:!0}):X;for(let F of mO(Q))if(!dO.call(H,F))jR(H,F,{get:pO.bind(Q,F),enumerable:!0});if(q)N.set(Q,H);return H};var E8=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var i_=E8(($j)=>{(function(){function Q(){if(s=!1,i){var l=$j.unstable_now();H0=l;var q0=!0;try{$:{h=!1,p&&(p=!1,J0(Y0),Y0=-1),D=!0;var F0=O;try{Z:{K(l);for(V=X(P);V!==null&&!(V.expirationTime>l&&F());){var a0=V.callback;if(typeof a0==="function"){V.callback=null,O=V.priorityLevel;var d0=a0(V.expirationTime<=l);if(l=$j.unstable_now(),typeof d0==="function"){V.callback=d0,K(l),q0=!0;break Z}V===X(P)&&q(P),K(l)}else q(P);V=X(P)}if(V!==null)q0=!0;else{var v=X(I);v!==null&&M(H,v.startTime-l),q0=!1}}break $}finally{V=null,O=F0,D=!1}q0=void 0}}finally{q0?P0():i=!1}}}function J(l,q0){var F0=l.length;l.push(q0);$:for(;0<F0;){var a0=F0-1>>>1,d0=l[a0];if(0<N(d0,q0))l[a0]=q0,l[F0]=d0,F0=a0;else break $}}function X(l){return l.length===0?null:l[0]}function q(l){if(l.length===0)return null;var q0=l[0],F0=l.pop();if(F0!==q0){l[0]=F0;$:for(var a0=0,d0=l.length,v=d0>>>1;a0<v;){var o=2*(a0+1)-1,M0=l[o],W0=o+1,p0=l[W0];if(0>N(M0,F0))W0<d0&&0>N(p0,M0)?(l[a0]=p0,l[W0]=F0,a0=W0):(l[a0]=M0,l[o]=F0,a0=o);else if(W0<d0&&0>N(p0,F0))l[a0]=p0,l[W0]=F0,a0=W0;else break $}}return q0}function N(l,q0){var F0=l.sortIndex-q0.sortIndex;return F0!==0?F0:l.id-q0.id}function K(l){for(var q0=X(I);q0!==null;){if(q0.callback===null)q(I);else if(q0.startTime<=l)q(I),q0.sortIndex=q0.expirationTime,J(P,q0);else break;q0=X(I)}}function H(l){if(p=!1,K(l),!h)if(X(P)!==null)h=!0,i||(i=!0,P0());else{var q0=X(I);q0!==null&&M(H,q0.startTime-l)}}function F(){return s?!0:$j.unstable_now()-H0<d?!1:!0}function M(l,q0){Y0=a(function(){l($j.unstable_now())},q0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),$j.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;$j.unstable_now=function(){return w.now()}}else{var R=Date,_=R.now();$j.unstable_now=function(){return R.now()-_}}var P=[],I=[],A=1,V=null,O=3,D=!1,h=!1,p=!1,s=!1,a=typeof setTimeout==="function"?setTimeout:null,J0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,i=!1,Y0=-1,d=5,H0=-1;if(typeof t==="function")var P0=function(){t(Q)};else if(typeof MessageChannel<"u"){var I0=new MessageChannel,b0=I0.port2;I0.port1.onmessage=Q,P0=function(){b0.postMessage(null)}}else P0=function(){a(Q,0)};$j.unstable_IdlePriority=5,$j.unstable_ImmediatePriority=1,$j.unstable_LowPriority=4,$j.unstable_NormalPriority=3,$j.unstable_Profiling=null,$j.unstable_UserBlockingPriority=2,$j.unstable_cancelCallback=function(l){l.callback=null},$j.unstable_forceFrameRate=function(l){0>l||125<l?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<l?Math.floor(1000/l):5},$j.unstable_getCurrentPriorityLevel=function(){return O},$j.unstable_next=function(l){switch(O){case 1:case 2:case 3:var q0=3;break;default:q0=O}var F0=O;O=q0;try{return l()}finally{O=F0}},$j.unstable_requestPaint=function(){s=!0},$j.unstable_runWithPriority=function(l,q0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var F0=O;O=l;try{return q0()}finally{O=F0}},$j.unstable_scheduleCallback=function(l,q0,F0){var a0=$j.unstable_now();switch(typeof F0==="object"&&F0!==null?(F0=F0.delay,F0=typeof F0==="number"&&0<F0?a0+F0:a0):F0=a0,l){case 1:var d0=-1;break;case 2:d0=250;break;case 5:d0=1073741823;break;case 4:d0=1e4;break;default:d0=5000}return d0=F0+d0,l={id:A++,callback:q0,priorityLevel:l,startTime:F0,expirationTime:d0,sortIndex:-1},F0>a0?(l.sortIndex=F0,J(I,l),X(P)===null&&l===X(I)&&(p?(J0(Y0),Y0=-1):p=!0,M(H,F0-a0))):(l.sortIndex=d0,J(P,l),h||D||(h=!0,i||(i=!0,P0()))),l},$j.unstable_shouldYield=F,$j.unstable_wrapCallback=function(l){var q0=O;return function(){var F0=O;O=q0;try{return l.apply(this,arguments)}finally{O=F0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var T1=E8((Zj,XX)=>{(function(){function Q(C,y){Object.defineProperty(q.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function J(C){if(C===null||typeof C!=="object")return null;return C=KJ&&C[KJ]||C["@@iterator"],typeof C==="function"?C:null}function X(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;X0[r]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",y,C),X0[r]=!0)}function q(C,y,r){this.props=C,this.context=y,this.refs=h2,this.updater=r||X9}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=h2,this.updater=r||X9}function H(){}function F(C){return""+C}function M(C){try{F(C);var y=!1}catch(N0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return r.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z0),F(C)}}function w(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===b$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case d0:return"Fragment";case o:return"Profiler";case v:return"StrictMode";case p1:return"Suspense";case k0:return"SuspenseList";case $4:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case a0:return"Portal";case W0:return C.displayName||"Context";case M0:return(C._context.displayName||"Context")+".Consumer";case p0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case i1:return y=C.displayName||null,y!==null?y:w(C.type)||"Memo";case E5:y=C._payload,C=C._init;try{return w(C(y))}catch(r){}}return null}function R(C){if(C===d0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===E5)return"<...>";try{var y=w(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function _(){var C=y0.A;return C===null?null:C.getOwner()}function P(){return Error("react-stack-top-frame")}function I(C){if(q9.call(C,"key")){var y=Object.getOwnPropertyDescriptor(C,"key").get;if(y&&y.isReactWarning)return!1}return C.key!==void 0}function A(C,y){function r(){BJ||(BJ=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}r.isReactWarning=!0,Object.defineProperty(C,"key",{get:r,configurable:!0})}function V(){var C=w(this.type);return n8[C]||(n8[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function O(C,y,r,Z0,N0,D0){var v0=r.ref;return C={$$typeof:F0,type:C,key:y,props:r,_owner:Z0},(v0!==void 0?v0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:V}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:D0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function D(C,y){return y=O(C.type,y,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(y._store.validated=C._store.validated),y}function h(C){p(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===E5&&(C._payload.status==="fulfilled"?p(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function p(C){return typeof C==="object"&&C!==null&&C.$$typeof===F0}function s(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function a(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(M(C.key),s(""+C.key)):y.toString(36)}function J0(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(H,H):(C.status="pending",C.then(function(y){C.status==="pending"&&(C.status="fulfilled",C.value=y)},function(y){C.status==="pending"&&(C.status="rejected",C.reason=y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function t(C,y,r,Z0,N0){var D0=typeof C;if(D0==="undefined"||D0==="boolean")C=null;var v0=!1;if(C===null)v0=!0;else switch(D0){case"bigint":case"string":case"number":v0=!0;break;case"object":switch(C.$$typeof){case F0:case a0:v0=!0;break;case E5:return v0=C._init,t(v0(C._payload),y,r,Z0,N0)}}if(v0){v0=C,N0=N0(v0);var Q1=Z0===""?"."+a(v0,0):Z0;return w1(N0)?(r="",Q1!=null&&(r=Q1.replace(N9,"$&/")+"/"),t(N0,y,r,"",function(S5){return S5})):N0!=null&&(p(N0)&&(N0.key!=null&&(v0&&v0.key===N0.key||M(N0.key)),r=D(N0,r+(N0.key==null||v0&&v0.key===N0.key?"":(""+N0.key).replace(N9,"$&/")+"/")+Q1),Z0!==""&&v0!=null&&p(v0)&&v0.key==null&&v0._store&&!v0._store.validated&&(r._store.validated=2),N0=r),y.push(N0)),1}if(v0=0,Q1=Z0===""?".":Z0+":",w1(C))for(var _0=0;_0<C.length;_0++)Z0=C[_0],D0=Q1+a(Z0,_0),v0+=t(Z0,y,r,D0,N0);else if(_0=J(C),typeof _0==="function")for(_0===C.entries&&(Y9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Y9=!0),C=_0.call(C),_0=0;!(Z0=C.next()).done;)Z0=Z0.value,D0=Q1+a(Z0,_0++),v0+=t(Z0,y,r,D0,N0);else if(D0==="object"){if(typeof C.then==="function")return t(J0(C),y,r,Z0,N0);throw y=String(C),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return v0}function i(C,y,r){if(C==null)return C;var Z0=[],N0=0;return t(C,Z0,"","",function(D0){return y.call(r,D0,N0++)}),Z0}function Y0(C){if(C._status===-1){var y=C._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=C._result;var r=y();if(r.then(function(N0){if(C._status===0||C._status===-1){C._status=1,C._result=N0;var D0=C._ioInfo;D0!=null&&(D0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=N0)}},function(N0){if(C._status===0||C._status===-1){C._status=2,C._result=N0;var D0=C._ioInfo;D0!=null&&(D0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=N0)}}),y=C._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}C._status===-1&&(C._status=0,C._result=r)}if(C._status===1)return y=C._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -10,11 +10,11 @@ Your code should look like:
|
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function H0(){y0.asyncTransitions--}function P0(C){if(o8===null)try{var y=("require"+Math.random()).slice(0,7);o8=(XX&&XX[y]).call(XX,"timers").setImmediate}catch(r){o8=function(Z0){HJ===!1&&(HJ=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var N0=new MessageChannel;N0.port1.onmessage=Z0,N0.port2.postMessage(void 0)}}return o8(C)}function I0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function b0(C,y){y!==a8-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),a8=y}function l(C,y,r){var Z0=y0.actQueue;if(Z0!==null)if(Z0.length!==0)try{q0(Z0),P0(function(){return l(C,y,r)});return}catch(N0){y0.thrownErrors.push(N0)}else y0.actQueue=null;0<y0.thrownErrors.length?(Z0=I0(y0.thrownErrors),y0.thrownErrors.length=0,r(Z0)):y(C)}function q0(C){if(!t8){t8=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{y0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(y0.didUsePromise){C[y]=r,C.splice(0,y);return}r=Z0}else break}while(1)}C.length=0}catch(N0){C.splice(0,y+1),y0.thrownErrors.push(N0)}finally{t8=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F0=Symbol.for("react.transitional.element"),a0=Symbol.for("react.portal"),d0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),M0=Symbol.for("react.consumer"),W0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),p1=Symbol.for("react.suspense"),k0=Symbol.for("react.suspense_list"),i1=Symbol.for("react.memo"),E5=Symbol.for("react.lazy"),$4=Symbol.for("react.activity"),KJ=Symbol.iterator,X0={},X7={isMounted:function(){return!1},enqueueForceUpdate:function(C){X(C,"forceUpdate")},enqueueReplaceState:function(C){X(C,"replaceState")},enqueueSetState:function(C){X(C,"setState")}},r8=Object.assign,h2={};Object.freeze(h2),q.prototype.isReactComponent={},q.prototype.setState=function(C,y){if(typeof C!=="object"&&typeof C!=="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,y,"setState")},q.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var B5={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(x2 in B5)B5.hasOwnProperty(x2)&&Q(x2,B5[x2]);N.prototype=q.prototype,B5=K.prototype=new N,B5.constructor=K,r8(B5,q.prototype),B5.isPureReactComponent=!0;var w1=Array.isArray,b$=Symbol.for("react.client.reference"),y0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},q7=Object.prototype.hasOwnProperty,C1=console.createTask?console.createTask:function(){return null};B5={react_stack_bottom_frame:function(C){return C()}};var BJ,M4,n8={},s8=B5.react_stack_bottom_frame.bind(B5,P)(),bX=C1(R(P)),Y7=!1,N7=/\/+/g,u2=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},HJ=!1,o8=null,a8=0,i8=!1,t8=!1,k$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:P0;B5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var x2={map:i,forEach:function(C,y,r){i(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return i(C,function(){y++}),y},toArray:function(C){return i(C,function(y){return y})||[]},only:function(C){if(!p(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};Zj.Activity=$4,Zj.Children=x2,Zj.Component=q,Zj.Fragment=d0,Zj.Profiler=o,Zj.PureComponent=K,Zj.StrictMode=v,Zj.Suspense=p1,Zj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y0,Zj.__COMPILER_RUNTIME=B5,Zj.act=function(C){var y=y0.actQueue,r=a8;a8++;var Z0=y0.actQueue=y!==null?y:[],N0=!1;try{var D0=C()}catch(_0){y0.thrownErrors.push(_0)}if(0<y0.thrownErrors.length)throw b0(y,r),C=I0(y0.thrownErrors),y0.thrownErrors.length=0,C;if(D0!==null&&typeof D0==="object"&&typeof D0.then==="function"){var v0=D0;return k$(function(){N0||i8||(i8=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(_0,S5){N0=!0,v0.then(function(H6){if(b0(y,r),r===0){try{q0(Z0),P0(function(){return l(H6,_0,S5)})}catch(f$){y0.thrownErrors.push(f$)}if(0<y0.thrownErrors.length){var m2=I0(y0.thrownErrors);y0.thrownErrors.length=0,S5(m2)}}else _0(H6)},function(H6){b0(y,r),0<y0.thrownErrors.length?(H6=I0(y0.thrownErrors),y0.thrownErrors.length=0,S5(H6)):S5(H6)})}}}var Q1=D0;if(b0(y,r),r===0&&(q0(Z0),Z0.length!==0&&k$(function(){N0||i8||(i8=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),y0.actQueue=null),0<y0.thrownErrors.length)throw C=I0(y0.thrownErrors),y0.thrownErrors.length=0,C;return{then:function(_0,S5){N0=!0,r===0?(y0.actQueue=Z0,P0(function(){return l(Q1,_0,S5)})):_0(Q1)}}},Zj.cache=function(C){return function(){return C.apply(null,arguments)}},Zj.cacheSignal=function(){return null},Zj.captureOwnerStack=function(){var C=y0.getCurrentStack;return C===null?null:C()},Zj.cloneElement=function(C,y,r){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var Z0=r8({},C.props),N0=C.key,D0=C._owner;if(y!=null){var v0;$:{if(q7.call(y,"ref")&&(v0=Object.getOwnPropertyDescriptor(y,"ref").get)&&v0.isReactWarning){v0=!1;break $}v0=y.ref!==void 0}v0&&(D0=_()),I(y)&&(M(y.key),N0=""+y.key);for(Q1 in y)!q7.call(y,Q1)||Q1==="key"||Q1==="__self"||Q1==="__source"||Q1==="ref"&&y.ref===void 0||(Z0[Q1]=y[Q1])}var Q1=arguments.length-2;if(Q1===1)Z0.children=r;else if(1<Q1){v0=Array(Q1);for(var _0=0;_0<Q1;_0++)v0[_0]=arguments[_0+2];Z0.children=v0}Z0=O(C.type,N0,Z0,D0,C._debugStack,C._debugTask);for(N0=2;N0<arguments.length;N0++)h(arguments[N0]);return Z0},Zj.createContext=function(C){return C={$$typeof:W0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:M0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},Zj.createElement=function(C,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var N0=null;if(y!=null)for(_0 in M4||!("__self"in y)||"key"in y||(M4=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),I(y)&&(M(y.key),N0=""+y.key),y)q7.call(y,_0)&&_0!=="key"&&_0!=="__self"&&_0!=="__source"&&(Z0[_0]=y[_0]);var D0=arguments.length-2;if(D0===1)Z0.children=r;else if(1<D0){for(var v0=Array(D0),Q1=0;Q1<D0;Q1++)v0[Q1]=arguments[Q1+2];Object.freeze&&Object.freeze(v0),Z0.children=v0}if(C&&C.defaultProps)for(_0 in D0=C.defaultProps,D0)Z0[_0]===void 0&&(Z0[_0]=D0[_0]);N0&&A(Z0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var _0=1e4>y0.recentlyCreatedOwnerStacks++;return O(C,N0,Z0,_(),_0?Error("react-stack-top-frame"):s8,_0?C1(R(C)):bX)},Zj.createRef=function(){var C={current:null};return Object.seal(C),C},Zj.forwardRef=function(C){C!=null&&C.$$typeof===i1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:p0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},Zj.isValidElement=p,Zj.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:E5,_payload:C,_init:Y0},r={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=r,y._debugInfo=[{awaited:r}],y},Zj.memo=function(C,y){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),y={$$typeof:i1,type:C,compare:y===void 0?null:y};var r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},Zj.startTransition=function(C){var y=y0.T,r={};r._updatedFibers=new Set,y0.T=r;try{var Z0=C(),N0=y0.S;N0!==null&&N0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(y0.asyncTransitions++,Z0.then(H0,H0),Z0.then(H,u2))}catch(D0){u2(D0)}finally{y===null&&r._updatedFibers&&(C=r._updatedFibers.size,r._updatedFibers.clear(),10<C&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),y!==null&&r.types!==null&&(y.types!==null&&y.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),y.types=r.types),y0.T=y}},Zj.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},Zj.use=function(C){return d().use(C)},Zj.useActionState=function(C,y,r){return d().useActionState(C,y,r)},Zj.useCallback=function(C,y){return d().useCallback(C,y)},Zj.useContext=function(C){var y=d();return C.$$typeof===M0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},Zj.useDebugValue=function(C,y){return d().useDebugValue(C,y)},Zj.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},Zj.useEffect=function(C,y){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(C,y)},Zj.useEffectEvent=function(C){return d().useEffectEvent(C)},Zj.useId=function(){return d().useId()},Zj.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},Zj.useInsertionEffect=function(C,y){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(C,y)},Zj.useLayoutEffect=function(C,y){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(C,y)},Zj.useMemo=function(C,y){return d().useMemo(C,y)},Zj.useOptimistic=function(C,y){return d().useOptimistic(C,y)},Zj.useReducer=function(C,y,r){return d().useReducer(C,y,r)},Zj.useRef=function(C){return d().useRef(C)},Zj.useState=function(C){return d().useState(C)},Zj.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},Zj.useTransition=function(){return d().useTransition()},Zj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var t_=E8((Qj)=>{var PK=n(T1());(function(){function Q(){}function J(R){return""+R}function X(R,_,P){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(I);var A=!1}catch(V){A=!0}return A&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object"),J(I)),{$$typeof:M,key:I==null?null:""+I,children:R,containerInfo:_,implementation:P}}function q(R,_){if(R==="font")return"";if(typeof _==="string")return _==="use-credentials"?_:""}function N(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":'something with type "'+typeof R+'"'}function K(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":typeof R==="string"?JSON.stringify(R):typeof R==="number"?"`"+R+"`":'something with type "'+typeof R+'"'}function H(){var R=w.H;return R===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function H0(){y0.asyncTransitions--}function P0(C){if(o8===null)try{var y=("require"+Math.random()).slice(0,7);o8=(XX&&XX[y]).call(XX,"timers").setImmediate}catch(r){o8=function(Z0){HJ===!1&&(HJ=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var N0=new MessageChannel;N0.port1.onmessage=Z0,N0.port2.postMessage(void 0)}}return o8(C)}function I0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function b0(C,y){y!==a8-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),a8=y}function l(C,y,r){var Z0=y0.actQueue;if(Z0!==null)if(Z0.length!==0)try{q0(Z0),P0(function(){return l(C,y,r)});return}catch(N0){y0.thrownErrors.push(N0)}else y0.actQueue=null;0<y0.thrownErrors.length?(Z0=I0(y0.thrownErrors),y0.thrownErrors.length=0,r(Z0)):y(C)}function q0(C){if(!t8){t8=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{y0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(y0.didUsePromise){C[y]=r,C.splice(0,y);return}r=Z0}else break}while(1)}C.length=0}catch(N0){C.splice(0,y+1),y0.thrownErrors.push(N0)}finally{t8=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F0=Symbol.for("react.transitional.element"),a0=Symbol.for("react.portal"),d0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),M0=Symbol.for("react.consumer"),W0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),p1=Symbol.for("react.suspense"),k0=Symbol.for("react.suspense_list"),i1=Symbol.for("react.memo"),E5=Symbol.for("react.lazy"),$4=Symbol.for("react.activity"),KJ=Symbol.iterator,X0={},X9={isMounted:function(){return!1},enqueueForceUpdate:function(C){X(C,"forceUpdate")},enqueueReplaceState:function(C){X(C,"replaceState")},enqueueSetState:function(C){X(C,"setState")}},r8=Object.assign,h2={};Object.freeze(h2),q.prototype.isReactComponent={},q.prototype.setState=function(C,y){if(typeof C!=="object"&&typeof C!=="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,y,"setState")},q.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var B5={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(x2 in B5)B5.hasOwnProperty(x2)&&Q(x2,B5[x2]);N.prototype=q.prototype,B5=K.prototype=new N,B5.constructor=K,r8(B5,q.prototype),B5.isPureReactComponent=!0;var w1=Array.isArray,b$=Symbol.for("react.client.reference"),y0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},q9=Object.prototype.hasOwnProperty,C1=console.createTask?console.createTask:function(){return null};B5={react_stack_bottom_frame:function(C){return C()}};var BJ,M4,n8={},s8=B5.react_stack_bottom_frame.bind(B5,P)(),bX=C1(R(P)),Y9=!1,N9=/\/+/g,u2=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},HJ=!1,o8=null,a8=0,i8=!1,t8=!1,k$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:P0;B5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var x2={map:i,forEach:function(C,y,r){i(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return i(C,function(){y++}),y},toArray:function(C){return i(C,function(y){return y})||[]},only:function(C){if(!p(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};Zj.Activity=$4,Zj.Children=x2,Zj.Component=q,Zj.Fragment=d0,Zj.Profiler=o,Zj.PureComponent=K,Zj.StrictMode=v,Zj.Suspense=p1,Zj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y0,Zj.__COMPILER_RUNTIME=B5,Zj.act=function(C){var y=y0.actQueue,r=a8;a8++;var Z0=y0.actQueue=y!==null?y:[],N0=!1;try{var D0=C()}catch(_0){y0.thrownErrors.push(_0)}if(0<y0.thrownErrors.length)throw b0(y,r),C=I0(y0.thrownErrors),y0.thrownErrors.length=0,C;if(D0!==null&&typeof D0==="object"&&typeof D0.then==="function"){var v0=D0;return k$(function(){N0||i8||(i8=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(_0,S5){N0=!0,v0.then(function(H6){if(b0(y,r),r===0){try{q0(Z0),P0(function(){return l(H6,_0,S5)})}catch(f$){y0.thrownErrors.push(f$)}if(0<y0.thrownErrors.length){var m2=I0(y0.thrownErrors);y0.thrownErrors.length=0,S5(m2)}}else _0(H6)},function(H6){b0(y,r),0<y0.thrownErrors.length?(H6=I0(y0.thrownErrors),y0.thrownErrors.length=0,S5(H6)):S5(H6)})}}}var Q1=D0;if(b0(y,r),r===0&&(q0(Z0),Z0.length!==0&&k$(function(){N0||i8||(i8=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),y0.actQueue=null),0<y0.thrownErrors.length)throw C=I0(y0.thrownErrors),y0.thrownErrors.length=0,C;return{then:function(_0,S5){N0=!0,r===0?(y0.actQueue=Z0,P0(function(){return l(Q1,_0,S5)})):_0(Q1)}}},Zj.cache=function(C){return function(){return C.apply(null,arguments)}},Zj.cacheSignal=function(){return null},Zj.captureOwnerStack=function(){var C=y0.getCurrentStack;return C===null?null:C()},Zj.cloneElement=function(C,y,r){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var Z0=r8({},C.props),N0=C.key,D0=C._owner;if(y!=null){var v0;$:{if(q9.call(y,"ref")&&(v0=Object.getOwnPropertyDescriptor(y,"ref").get)&&v0.isReactWarning){v0=!1;break $}v0=y.ref!==void 0}v0&&(D0=_()),I(y)&&(M(y.key),N0=""+y.key);for(Q1 in y)!q9.call(y,Q1)||Q1==="key"||Q1==="__self"||Q1==="__source"||Q1==="ref"&&y.ref===void 0||(Z0[Q1]=y[Q1])}var Q1=arguments.length-2;if(Q1===1)Z0.children=r;else if(1<Q1){v0=Array(Q1);for(var _0=0;_0<Q1;_0++)v0[_0]=arguments[_0+2];Z0.children=v0}Z0=O(C.type,N0,Z0,D0,C._debugStack,C._debugTask);for(N0=2;N0<arguments.length;N0++)h(arguments[N0]);return Z0},Zj.createContext=function(C){return C={$$typeof:W0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:M0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},Zj.createElement=function(C,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var N0=null;if(y!=null)for(_0 in M4||!("__self"in y)||"key"in y||(M4=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),I(y)&&(M(y.key),N0=""+y.key),y)q9.call(y,_0)&&_0!=="key"&&_0!=="__self"&&_0!=="__source"&&(Z0[_0]=y[_0]);var D0=arguments.length-2;if(D0===1)Z0.children=r;else if(1<D0){for(var v0=Array(D0),Q1=0;Q1<D0;Q1++)v0[Q1]=arguments[Q1+2];Object.freeze&&Object.freeze(v0),Z0.children=v0}if(C&&C.defaultProps)for(_0 in D0=C.defaultProps,D0)Z0[_0]===void 0&&(Z0[_0]=D0[_0]);N0&&A(Z0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var _0=1e4>y0.recentlyCreatedOwnerStacks++;return O(C,N0,Z0,_(),_0?Error("react-stack-top-frame"):s8,_0?C1(R(C)):bX)},Zj.createRef=function(){var C={current:null};return Object.seal(C),C},Zj.forwardRef=function(C){C!=null&&C.$$typeof===i1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:p0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},Zj.isValidElement=p,Zj.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:E5,_payload:C,_init:Y0},r={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=r,y._debugInfo=[{awaited:r}],y},Zj.memo=function(C,y){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),y={$$typeof:i1,type:C,compare:y===void 0?null:y};var r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},Zj.startTransition=function(C){var y=y0.T,r={};r._updatedFibers=new Set,y0.T=r;try{var Z0=C(),N0=y0.S;N0!==null&&N0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(y0.asyncTransitions++,Z0.then(H0,H0),Z0.then(H,u2))}catch(D0){u2(D0)}finally{y===null&&r._updatedFibers&&(C=r._updatedFibers.size,r._updatedFibers.clear(),10<C&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),y!==null&&r.types!==null&&(y.types!==null&&y.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),y.types=r.types),y0.T=y}},Zj.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},Zj.use=function(C){return d().use(C)},Zj.useActionState=function(C,y,r){return d().useActionState(C,y,r)},Zj.useCallback=function(C,y){return d().useCallback(C,y)},Zj.useContext=function(C){var y=d();return C.$$typeof===M0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},Zj.useDebugValue=function(C,y){return d().useDebugValue(C,y)},Zj.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},Zj.useEffect=function(C,y){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(C,y)},Zj.useEffectEvent=function(C){return d().useEffectEvent(C)},Zj.useId=function(){return d().useId()},Zj.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},Zj.useInsertionEffect=function(C,y){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(C,y)},Zj.useLayoutEffect=function(C,y){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(C,y)},Zj.useMemo=function(C,y){return d().useMemo(C,y)},Zj.useOptimistic=function(C,y){return d().useOptimistic(C,y)},Zj.useReducer=function(C,y,r){return d().useReducer(C,y,r)},Zj.useRef=function(C){return d().useRef(C)},Zj.useState=function(C){return d().useState(C)},Zj.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},Zj.useTransition=function(){return d().useTransition()},Zj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var t_=E8((Qj)=>{var PK=n(T1());(function(){function Q(){}function J(R){return""+R}function X(R,_,P){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(I);var A=!1}catch(V){A=!0}return A&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object"),J(I)),{$$typeof:M,key:I==null?null:""+I,children:R,containerInfo:_,implementation:P}}function q(R,_){if(R==="font")return"";if(typeof _==="string")return _==="use-credentials"?_:""}function N(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":'something with type "'+typeof R+'"'}function K(R){return R===null?"`null`":R===void 0?"`undefined`":R===""?"an empty string":typeof R==="string"?JSON.stringify(R):typeof R==="number"?"`"+R+"`":'something with type "'+typeof R+'"'}function H(){var R=w.H;return R===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
14
14
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
15
|
2. You might be breaking the Rules of Hooks
|
|
16
16
|
3. You might have more than one copy of React in the same app
|
|
17
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},M=Symbol.for("react.portal"),w=PK.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Qj.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Qj.createPortal=function(R,_){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error("Target container is not a DOM element.");return X(R,_,null,P)},Qj.flushSync=function(R){var _=w.T,P=F.p;try{if(w.T=null,F.p=2,R)return R()}finally{w.T=_,F.p=P,F.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Qj.preconnect=function(R,_){typeof R==="string"&&R?_!=null&&typeof _!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",K(_)):_!=null&&typeof _.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",N(_.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&(_?(_=_.crossOrigin,_=typeof _==="string"?_==="use-credentials"?_:"":void 0):_=null,F.d.C(R,_))},Qj.prefetchDNS=function(R){if(typeof R!=="string"||!R)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R));else if(1<arguments.length){var _=arguments[1];typeof _==="object"&&_.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(_)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(_))}typeof R==="string"&&F.d.D(R)},Qj.preinit=function(R,_){if(typeof R==="string"&&R?_==null||typeof _!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",K(_)):_.as!=="style"&&_.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',K(_.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&_&&typeof _.as==="string"){var P=_.as,I=q(P,_.crossOrigin),A=typeof _.integrity==="string"?_.integrity:void 0,V=typeof _.fetchPriority==="string"?_.fetchPriority:void 0;P==="style"?F.d.S(R,typeof _.precedence==="string"?_.precedence:void 0,{crossOrigin:I,integrity:A,fetchPriority:V}):P==="script"&&F.d.X(R,{crossOrigin:I,integrity:A,fetchPriority:V,nonce:typeof _.nonce==="string"?_.nonce:void 0})}},Qj.preinitModule=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&_.as!=="script"&&(P+=" The `as` option encountered was "+K(_.as)+"."),P)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",P);else switch(P=_&&typeof _.as==="string"?_.as:"script",P){case"script":break;default:P=K(P),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',P,R)}if(typeof R==="string")if(typeof _==="object"&&_!==null){if(_.as==null||_.as==="script")P=q(_.as,_.crossOrigin),F.d.M(R,{crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0})}else _==null&&F.d.M(R)},Qj.preload=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_==null||typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":typeof _.as==="string"&&_.as||(P+=" The `as` option encountered was "+N(_.as)+"."),P&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',P),typeof R==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){P=_.as;var I=q(P,_.crossOrigin);F.d.L(R,P,{crossOrigin:I,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0,type:typeof _.type==="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority==="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy==="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet==="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes==="string"?_.imageSizes:void 0,media:typeof _.media==="string"?_.media:void 0})}},Qj.preloadModule=function(R,_){var P="";typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(P+=" The `as` option encountered was "+N(_.as)+"."),P&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',P),typeof R==="string"&&(_?(P=q(_.as,_.crossOrigin),F.d.m(R,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0})):F.d.m(R))},Qj.requestFormReset=function(R){F.d.r(R)},Qj.unstable_batchedUpdates=function(R,_){return R(_)},Qj.useFormState=function(R,_,P){return H().useFormState(R,_,P)},Qj.useFormStatus=function(){return H().useHostTransitionStatus()},Qj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $L=E8((cb,e_)=>{var Jj=n(t_());e_.exports=Jj});var ZL=E8((Gj)=>{var G1=n(i_()),P$=n(T1()),TK=n($L());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function J($,Z,G,Y){if(G>=Z.length)return Y;var U=Z[G],B=q5($)?$.slice():l0({},$);return B[U]=J($[U],Z,G+1,Y),B}function X($,Z,G){if(Z.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<G.length-1;Y++)if(Z[Y]!==G[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return q($,Z,G,0)}}function q($,Z,G,Y){var U=Z[Y],B=q5($)?$.slice():l0({},$);return Y+1===Z.length?(B[G[Y]]=B[U],q5(B)?B.splice(U,1):delete B[U]):B[U]=q($[U],Z,G,Y+1),B}function N($,Z,G){var Y=Z[G],U=q5($)?$.slice():l0({},$);if(G+1===Z.length)return q5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,G+1),U}function K(){return!1}function H(){return null}function F(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function M(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function w(){}function R(){}function _($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function P($,Z,G,Y){return new ET($,Z,G,Y)}function I($,Z){$.context===Y8&&(bY($.current,2,Z,$,null,null),P7())}function A($,Z){if(y6!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,YZ(),yB($.current,Z,G),P7()}}function V($){y6=$}function O($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function D($){var Z=$,G=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(G=Z.return),$=Z.return;while($)}return Z.tag===3?G:null}function h($){if($.tag===13){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function p($){if($.tag===31){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function s($){if(D($)!==$)throw Error("Unable to find node on an unmounted component.")}function a($){var Z=$.alternate;if(!Z){if(Z=D($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var G=$,Y=Z;;){var U=G.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){G=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===G)return s(U),$;if(B===Y)return s(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==Y.return)G=U,Y=B;else{for(var W=!1,z=U.child;z;){if(z===G){W=!0,G=U,Y=B;break}if(z===Y){W=!0,Y=U,G=B;break}z=z.sibling}if(!W){for(z=B.child;z;){if(z===G){W=!0,G=B,Y=U;break}if(z===Y){W=!0,Y=B,G=U;break}z=z.sibling}if(!W)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(G.alternate!==Y)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(G.tag!==3)throw Error("Unable to find node on an unmounted component.");return G.stateNode.current===G?$:Z}function J0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=J0($),Z!==null)return Z;$=$.sibling}return null}function t($){if($===null||typeof $!=="object")return null;return $=pM&&$[pM]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===oC?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case E7:return"Fragment";case uY:return"Profiler";case PG:return"StrictMode";case mY:return"Suspense";case dY:return"SuspenseList";case pY:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case A7:return"Portal";case v4:return $.displayName||"Context";case xY:return($._context.displayName||"Context")+".Consumer";case RZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case TG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case P6:Z=$._payload,$=$._init;try{return i($(Z))}catch(G){}}return null}function Y0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===PG?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof Z==="function")return Z.displayName||Z.name||null;if(typeof Z==="string")return Z;break;case 29:if(Z=$._debugInfo,Z!=null){for(var G=Z.length-1;0<=G;G--)if(typeof Z[G].name==="string")return Z[G].name}if($.return!==null)return d($.return)}return null}function H0($){return{current:$}}function P0($,Z){0>Y2?console.error("Unexpected pop."):(Z!==lY[Y2]&&console.error("Unexpected Fiber popped."),$.current=cY[Y2],cY[Y2]=null,lY[Y2]=null,Y2--)}function I0($,Z,G){Y2++,cY[Y2]=$.current,lY[Y2]=G,$.current=Z}function b0($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function l($,Z){I0(Z8,Z,$),I0(zZ,$,$),I0($8,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?FM(Z):P2:P2;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=FM(Z),Z=MM(Z,G);else switch(G){case"svg":Z=N$;break;case"math":Z=L3;break;default:Z=P2}}G=G.toLowerCase(),G=YB(null,G),G={context:Z,ancestorInfo:G},P0($8,$),I0($8,G,$)}function q0($){P0($8,$),P0(zZ,$),P0(Z8,$)}function F0(){return b0($8.current)}function a0($){$.memoizedState!==null&&I0(CG,$,$);var Z=b0($8.current),G=$.type,Y=MM(Z.context,G);G=YB(Z.ancestorInfo,G),Y={context:Y,ancestorInfo:G},Z!==Y&&(I0(zZ,$,$),I0($8,Y,$))}function d0($){zZ.current===$&&(P0($8,$),P0(zZ,$)),CG.current===$&&(P0(CG,$),UQ._currentValue=y9)}function v(){}function o(){if(_Z===0){cM=console.log,lM=console.info,rM=console.warn,nM=console.error,sM=console.group,oM=console.groupCollapsed,aM=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}_Z++}function M0(){if(_Z--,_Z===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:l0({},$,{value:cM}),info:l0({},$,{value:lM}),warn:l0({},$,{value:rM}),error:l0({},$,{value:nM}),group:l0({},$,{value:sM}),groupCollapsed:l0({},$,{value:oM}),groupEnd:l0({},$,{value:aM})})}0>_Z&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
|
|
17
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),R}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},M=Symbol.for("react.portal"),w=PK.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Qj.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Qj.createPortal=function(R,_){var P=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error("Target container is not a DOM element.");return X(R,_,null,P)},Qj.flushSync=function(R){var _=w.T,P=F.p;try{if(w.T=null,F.p=2,R)return R()}finally{w.T=_,F.p=P,F.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Qj.preconnect=function(R,_){typeof R==="string"&&R?_!=null&&typeof _!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",K(_)):_!=null&&typeof _.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",N(_.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&(_?(_=_.crossOrigin,_=typeof _==="string"?_==="use-credentials"?_:"":void 0):_=null,F.d.C(R,_))},Qj.prefetchDNS=function(R){if(typeof R!=="string"||!R)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R));else if(1<arguments.length){var _=arguments[1];typeof _==="object"&&_.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(_)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(_))}typeof R==="string"&&F.d.D(R)},Qj.preinit=function(R,_){if(typeof R==="string"&&R?_==null||typeof _!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",K(_)):_.as!=="style"&&_.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',K(_.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(R)),typeof R==="string"&&_&&typeof _.as==="string"){var P=_.as,I=q(P,_.crossOrigin),A=typeof _.integrity==="string"?_.integrity:void 0,V=typeof _.fetchPriority==="string"?_.fetchPriority:void 0;P==="style"?F.d.S(R,typeof _.precedence==="string"?_.precedence:void 0,{crossOrigin:I,integrity:A,fetchPriority:V}):P==="script"&&F.d.X(R,{crossOrigin:I,integrity:A,fetchPriority:V,nonce:typeof _.nonce==="string"?_.nonce:void 0})}},Qj.preinitModule=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&_.as!=="script"&&(P+=" The `as` option encountered was "+K(_.as)+"."),P)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",P);else switch(P=_&&typeof _.as==="string"?_.as:"script",P){case"script":break;default:P=K(P),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',P,R)}if(typeof R==="string")if(typeof _==="object"&&_!==null){if(_.as==null||_.as==="script")P=q(_.as,_.crossOrigin),F.d.M(R,{crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0})}else _==null&&F.d.M(R)},Qj.preload=function(R,_){var P="";if(typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_==null||typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":typeof _.as==="string"&&_.as||(P+=" The `as` option encountered was "+N(_.as)+"."),P&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',P),typeof R==="string"&&typeof _==="object"&&_!==null&&typeof _.as==="string"){P=_.as;var I=q(P,_.crossOrigin);F.d.L(R,P,{crossOrigin:I,integrity:typeof _.integrity==="string"?_.integrity:void 0,nonce:typeof _.nonce==="string"?_.nonce:void 0,type:typeof _.type==="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority==="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy==="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet==="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes==="string"?_.imageSizes:void 0,media:typeof _.media==="string"?_.media:void 0})}},Qj.preloadModule=function(R,_){var P="";typeof R==="string"&&R||(P+=" The `href` argument encountered was "+N(R)+"."),_!==void 0&&typeof _!=="object"?P+=" The `options` argument encountered was "+N(_)+".":_&&("as"in _)&&typeof _.as!=="string"&&(P+=" The `as` option encountered was "+N(_.as)+"."),P&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',P),typeof R==="string"&&(_?(P=q(_.as,_.crossOrigin),F.d.m(R,{as:typeof _.as==="string"&&_.as!=="script"?_.as:void 0,crossOrigin:P,integrity:typeof _.integrity==="string"?_.integrity:void 0})):F.d.m(R))},Qj.requestFormReset=function(R){F.d.r(R)},Qj.unstable_batchedUpdates=function(R,_){return R(_)},Qj.useFormState=function(R,_,P){return H().useFormState(R,_,P)},Qj.useFormStatus=function(){return H().useHostTransitionStatus()},Qj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var $L=E8((cb,e_)=>{var Jj=n(t_());e_.exports=Jj});var ZL=E8((Gj)=>{var G1=n(i_()),P$=n(T1()),TK=n($L());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function J($,Z,G,Y){if(G>=Z.length)return Y;var U=Z[G],B=q5($)?$.slice():l0({},$);return B[U]=J($[U],Z,G+1,Y),B}function X($,Z,G){if(Z.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<G.length-1;Y++)if(Z[Y]!==G[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return q($,Z,G,0)}}function q($,Z,G,Y){var U=Z[Y],B=q5($)?$.slice():l0({},$);return Y+1===Z.length?(B[G[Y]]=B[U],q5(B)?B.splice(U,1):delete B[U]):B[U]=q($[U],Z,G,Y+1),B}function N($,Z,G){var Y=Z[G],U=q5($)?$.slice():l0({},$);if(G+1===Z.length)return q5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,G+1),U}function K(){return!1}function H(){return null}function F(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function M(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function w(){}function R(){}function _($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function P($,Z,G,Y){return new ET($,Z,G,Y)}function I($,Z){$.context===Y8&&(bY($.current,2,Z,$,null,null),P9())}function A($,Z){if(y6!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,YZ(),yB($.current,Z,G),P9()}}function V($){y6=$}function O($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function D($){var Z=$,G=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(G=Z.return),$=Z.return;while($)}return Z.tag===3?G:null}function h($){if($.tag===13){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function p($){if($.tag===31){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function s($){if(D($)!==$)throw Error("Unable to find node on an unmounted component.")}function a($){var Z=$.alternate;if(!Z){if(Z=D($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var G=$,Y=Z;;){var U=G.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){G=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===G)return s(U),$;if(B===Y)return s(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==Y.return)G=U,Y=B;else{for(var W=!1,z=U.child;z;){if(z===G){W=!0,G=U,Y=B;break}if(z===Y){W=!0,Y=U,G=B;break}z=z.sibling}if(!W){for(z=B.child;z;){if(z===G){W=!0,G=B,Y=U;break}if(z===Y){W=!0,Y=B,G=U;break}z=z.sibling}if(!W)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(G.alternate!==Y)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(G.tag!==3)throw Error("Unable to find node on an unmounted component.");return G.stateNode.current===G?$:Z}function J0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=J0($),Z!==null)return Z;$=$.sibling}return null}function t($){if($===null||typeof $!=="object")return null;return $=pM&&$[pM]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===oC?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case E9:return"Fragment";case uY:return"Profiler";case PG:return"StrictMode";case mY:return"Suspense";case dY:return"SuspenseList";case pY:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case A9:return"Portal";case v4:return $.displayName||"Context";case xY:return($._context.displayName||"Context")+".Consumer";case RZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case TG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case P6:Z=$._payload,$=$._init;try{return i($(Z))}catch(G){}}return null}function Y0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===PG?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof Z==="function")return Z.displayName||Z.name||null;if(typeof Z==="string")return Z;break;case 29:if(Z=$._debugInfo,Z!=null){for(var G=Z.length-1;0<=G;G--)if(typeof Z[G].name==="string")return Z[G].name}if($.return!==null)return d($.return)}return null}function H0($){return{current:$}}function P0($,Z){0>Y2?console.error("Unexpected pop."):(Z!==lY[Y2]&&console.error("Unexpected Fiber popped."),$.current=cY[Y2],cY[Y2]=null,lY[Y2]=null,Y2--)}function I0($,Z,G){Y2++,cY[Y2]=$.current,lY[Y2]=G,$.current=Z}function b0($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function l($,Z){I0(Z8,Z,$),I0(zZ,$,$),I0($8,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?FM(Z):P2:P2;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=FM(Z),Z=MM(Z,G);else switch(G){case"svg":Z=N$;break;case"math":Z=L3;break;default:Z=P2}}G=G.toLowerCase(),G=YB(null,G),G={context:Z,ancestorInfo:G},P0($8,$),I0($8,G,$)}function q0($){P0($8,$),P0(zZ,$),P0(Z8,$)}function F0(){return b0($8.current)}function a0($){$.memoizedState!==null&&I0(CG,$,$);var Z=b0($8.current),G=$.type,Y=MM(Z.context,G);G=YB(Z.ancestorInfo,G),Y={context:Y,ancestorInfo:G},Z!==Y&&(I0(zZ,$,$),I0($8,Y,$))}function d0($){zZ.current===$&&(P0($8,$),P0(zZ,$)),CG.current===$&&(P0(CG,$),UQ._currentValue=y7)}function v(){}function o(){if(_Z===0){cM=console.log,lM=console.info,rM=console.warn,nM=console.error,sM=console.group,oM=console.groupCollapsed,aM=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}_Z++}function M0(){if(_Z--,_Z===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:l0({},$,{value:cM}),info:l0({},$,{value:lM}),warn:l0({},$,{value:rM}),error:l0({},$,{value:nM}),group:l0({},$,{value:sM}),groupCollapsed:l0({},$,{value:oM}),groupEnd:l0({},$,{value:aM})})}0>_Z&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
|
|
18
18
|
`)&&($=$.slice(29)),Z=$.indexOf(`
|
|
19
19
|
`),Z!==-1&&($=$.slice(Z+1)),Z=$.indexOf("react_stack_bottom_frame"),Z!==-1&&(Z=$.lastIndexOf(`
|
|
20
20
|
`,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function p0($){if(rY===void 0)try{throw Error()}catch(G){var Z=G.stack.trim().match(/\n( *(at )?)/);rY=Z&&Z[1]||"",iM=-1<G.stack.indexOf(`
|
|
@@ -30,36 +30,36 @@ Error generating stack: `+$0.message+`
|
|
|
30
30
|
`+U)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Z+=`
|
|
31
31
|
`+W0(B))}else break;var W=Z}catch(z){W=`
|
|
32
32
|
Error generating stack: `+z.message+`
|
|
33
|
-
`+z.stack}return W}function X0($,Z,G,Y,U,B,W){var z=T6;X7($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,Y,U,B,W)):Z(G,Y,U,B,W)}finally{X7(z)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function X7($){x.getCurrentStack=$===null?null:KJ,b4=!1,T6=$}function r8($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function h2($){try{return B5($),!1}catch(Z){return!0}}function B5($){return""+$}function w1($,Z){if(h2($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",Z,r8($)),B5($)}function b$($,Z){if(h2($))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",Z,r8($)),B5($)}function y0($){if(h2($))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",r8($)),B5($)}function q7($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Z.isDisabled)return!0;if(!Z.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{j7=Z.inject($),D5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function C1($){if(typeof QI==="function"&&JI($),D5&&typeof D5.setStrictMode==="function")try{D5.setStrictMode(j7,$)}catch(Z){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function BJ($){return $>>>=0,$===0?32:31-(GI($)/XI|0)|0}function M4($){var Z=$&42;if(Z!==0)return Z;switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),$}}function n8($,Z,G){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var z=Y&134217727;return z!==0?(Y=z&~B,Y!==0?U=M4(Y):(W&=z,W!==0?U=M4(W):G||(G=z&~$,G!==0&&(U=M4(G))))):(z=Y&~B,z!==0?U=M4(z):W!==0?U=M4(W):G||(G=Y&~$,G!==0&&(U=M4(G)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,G=Z&-Z,B>=G||B===32&&(G&4194048)!==0)?Z:U}function s8($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function bX($,Z){switch($){case 1:case 2:case 4:case 8:case 64:return Z+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return Z+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Y7(){var $=VG;return VG<<=1,(VG&62914560)===0&&(VG=4194304),$}function N7($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function u2($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function HJ($,Z,G,Y,U,B){var W=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:z,expirationTimes:L,hiddenUpdates:T}=$;for(G=W&~G;0<G;){var k=31-u5(G),f=1<<k;z[k]=0,L[k]=-1;var S=T[k];if(S!==null)for(T[k]=null,k=0;k<S.length;k++){var g=S[k];g!==null&&(g.lane&=-536870913)}G&=~f}Y!==0&&o8($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function o8($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-u5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|G&261930}function a8($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var Y=31-u5(G),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),G&=~U}}function i8($,Z){var G=Z&-Z;return G=(G&42)!==0?1:t8(G),(G&($.suspendedLanes|Z))!==0?0:G}function t8($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function k$($,Z,G){if(f4)for($=$.pendingUpdatersLaneMap;0<G;){var Y=31-u5(G),U=1<<Y;$[Y].add(Z),G&=~U}}function x2($,Z){if(f4)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:Y}=$;0<Z;){var U=31-u5(Z);$=1<<U,U=G[U],0<U.size&&(U.forEach(function(B){var W=B.alternate;W!==null&&Y.has(W)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,C6!==0&&C6<$?X4!==0&&X4<$?($&134217727)!==0?y4:AG:X4:C6}function y(){var $=K1.p;if($!==0)return $;return $=window.event,$===void 0?y4:yM($.type)}function r($,Z){var G=K1.p;try{return K1.p=$,Z()}finally{K1.p=G}}function Z0($){delete $[P5],delete $[x5],delete $[eY],delete $[qI],delete $[YI]}function N0($){var Z=$[P5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[J8]||G[P5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=TM($);$!==null;){if(G=$[P5])return G;$=TM($)}return Z}$=G,G=$.parentNode}return null}function D0($){if($=$[P5]||$[J8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function v0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Q1($){var Z=$[tM];return Z||(Z=$[tM]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function _0($){$[LZ]=!0}function S5($,Z){H6($,Z),H6($+"Capture",Z)}function H6($,Z){M9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),M9[$]=Z;var G=$.toLowerCase();$N[G]=$,$==="onDoubleClick"&&($N.ondblclick=$);for($=0;$<Z.length;$++)eM.add(Z[$])}function m2($,Z){NI[Z.type]||Z.onChange||Z.onInput||Z.readOnly||Z.disabled||Z.value==null||($==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),Z.onChange||Z.readOnly||Z.disabled||Z.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function f$($){if(G4.call(ZW,$))return!0;if(G4.call($W,$))return!1;if(UI.test($))return ZW[$]=!0;return $W[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function rK($,Z,G){if(f$(Z)){if(!$.hasAttribute(Z)){switch(typeof G){case"symbol":case"object":return G;case"function":return G;case"boolean":if(G===!1)return G}return G===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&G===!0)return!0;return w1(G,Z),$===""+G?G:$}}function FJ($,Z,G){if(f$(Z))if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var Y=Z.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){$.removeAttribute(Z);return}}w1(G,Z),$.setAttribute(Z,""+G)}}function MJ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}w1(G,Z),$.setAttribute(Z,""+G)}}function t4($,Z,G,Y){if(Y===null)$.removeAttribute(G);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}w1(Y,G),$.setAttributeNS(Z,G,""+Y)}}function D6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return y0($),$;default:return""}}function nK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function XT($,Z,G){var Y=Object.getOwnPropertyDescriptor($.constructor.prototype,Z);if(!$.hasOwnProperty(Z)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:U,set:B}=Y;return Object.defineProperty($,Z,{configurable:!0,get:function(){return U.call(this)},set:function(W){y0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return G},setValue:function(W){y0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function kX($){if(!$._valueTracker){var Z=nK($)?"checked":"value";$._valueTracker=XT($,Z,""+$[Z])}}function sK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),Y="";return $&&(Y=nK($)?$.checked?"true":"false":$.value),$=Y,$!==G?(Z.setValue($),!0):!1}function WJ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function v6($){return $.replace(KI,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function oK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||JW||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$4()||"A component",Z.type),JW=!0),Z.value===void 0||Z.defaultValue===void 0||QW||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$4()||"A component",Z.type),QW=!0)}function fX($,Z,G,Y,U,B,W,z){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(w1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+D6(Z)}else $.value!==""+D6(Z)&&($.value=""+D6(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?yX($,W,D6(Z)):G!=null?yX($,W,D6(G)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(w1(z,"name"),$.name=""+D6(z)):$.removeAttribute("name")}function aK($,Z,G,Y,U,B,W,z){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(w1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){kX($);return}G=G!=null?""+D6(G):"",Z=Z!=null?""+D6(Z):G,z||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=z?$.checked:!!Y,$.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(w1(W,"name"),$.name=W),kX($)}function yX($,Z,G){Z==="number"&&WJ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function iK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?P$.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||XW||(XW=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):Z.dangerouslySetInnerHTML==null||qW||(qW=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||GW||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),GW=!0)}function tK(){var $=$4();return $?`
|
|
33
|
+
`+z.stack}return W}function X0($,Z,G,Y,U,B,W){var z=T6;X9($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,Y,U,B,W)):Z(G,Y,U,B,W)}finally{X9(z)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function X9($){x.getCurrentStack=$===null?null:KJ,b4=!1,T6=$}function r8($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function h2($){try{return B5($),!1}catch(Z){return!0}}function B5($){return""+$}function w1($,Z){if(h2($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",Z,r8($)),B5($)}function b$($,Z){if(h2($))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",Z,r8($)),B5($)}function y0($){if(h2($))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",r8($)),B5($)}function q9($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Z.isDisabled)return!0;if(!Z.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{j9=Z.inject($),D5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function C1($){if(typeof QI==="function"&&JI($),D5&&typeof D5.setStrictMode==="function")try{D5.setStrictMode(j9,$)}catch(Z){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function BJ($){return $>>>=0,$===0?32:31-(GI($)/XI|0)|0}function M4($){var Z=$&42;if(Z!==0)return Z;switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),$}}function n8($,Z,G){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var z=Y&134217727;return z!==0?(Y=z&~B,Y!==0?U=M4(Y):(W&=z,W!==0?U=M4(W):G||(G=z&~$,G!==0&&(U=M4(G))))):(z=Y&~B,z!==0?U=M4(z):W!==0?U=M4(W):G||(G=Y&~$,G!==0&&(U=M4(G)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,G=Z&-Z,B>=G||B===32&&(G&4194048)!==0)?Z:U}function s8($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function bX($,Z){switch($){case 1:case 2:case 4:case 8:case 64:return Z+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return Z+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Y9(){var $=VG;return VG<<=1,(VG&62914560)===0&&(VG=4194304),$}function N9($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function u2($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function HJ($,Z,G,Y,U,B){var W=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:z,expirationTimes:L,hiddenUpdates:T}=$;for(G=W&~G;0<G;){var k=31-u5(G),f=1<<k;z[k]=0,L[k]=-1;var S=T[k];if(S!==null)for(T[k]=null,k=0;k<S.length;k++){var g=S[k];g!==null&&(g.lane&=-536870913)}G&=~f}Y!==0&&o8($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function o8($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-u5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|G&261930}function a8($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var Y=31-u5(G),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),G&=~U}}function i8($,Z){var G=Z&-Z;return G=(G&42)!==0?1:t8(G),(G&($.suspendedLanes|Z))!==0?0:G}function t8($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function k$($,Z,G){if(f4)for($=$.pendingUpdatersLaneMap;0<G;){var Y=31-u5(G),U=1<<Y;$[Y].add(Z),G&=~U}}function x2($,Z){if(f4)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:Y}=$;0<Z;){var U=31-u5(Z);$=1<<U,U=G[U],0<U.size&&(U.forEach(function(B){var W=B.alternate;W!==null&&Y.has(W)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,C6!==0&&C6<$?X4!==0&&X4<$?($&134217727)!==0?y4:AG:X4:C6}function y(){var $=K1.p;if($!==0)return $;return $=window.event,$===void 0?y4:yM($.type)}function r($,Z){var G=K1.p;try{return K1.p=$,Z()}finally{K1.p=G}}function Z0($){delete $[P5],delete $[x5],delete $[eY],delete $[qI],delete $[YI]}function N0($){var Z=$[P5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[J8]||G[P5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=TM($);$!==null;){if(G=$[P5])return G;$=TM($)}return Z}$=G,G=$.parentNode}return null}function D0($){if($=$[P5]||$[J8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function v0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Q1($){var Z=$[tM];return Z||(Z=$[tM]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function _0($){$[LZ]=!0}function S5($,Z){H6($,Z),H6($+"Capture",Z)}function H6($,Z){M7[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),M7[$]=Z;var G=$.toLowerCase();$N[G]=$,$==="onDoubleClick"&&($N.ondblclick=$);for($=0;$<Z.length;$++)eM.add(Z[$])}function m2($,Z){NI[Z.type]||Z.onChange||Z.onInput||Z.readOnly||Z.disabled||Z.value==null||($==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),Z.onChange||Z.readOnly||Z.disabled||Z.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function f$($){if(G4.call(ZW,$))return!0;if(G4.call($W,$))return!1;if(UI.test($))return ZW[$]=!0;return $W[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function rK($,Z,G){if(f$(Z)){if(!$.hasAttribute(Z)){switch(typeof G){case"symbol":case"object":return G;case"function":return G;case"boolean":if(G===!1)return G}return G===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&G===!0)return!0;return w1(G,Z),$===""+G?G:$}}function FJ($,Z,G){if(f$(Z))if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var Y=Z.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){$.removeAttribute(Z);return}}w1(G,Z),$.setAttribute(Z,""+G)}}function MJ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}w1(G,Z),$.setAttribute(Z,""+G)}}function t4($,Z,G,Y){if(Y===null)$.removeAttribute(G);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}w1(Y,G),$.setAttributeNS(Z,G,""+Y)}}function D6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return y0($),$;default:return""}}function nK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function XT($,Z,G){var Y=Object.getOwnPropertyDescriptor($.constructor.prototype,Z);if(!$.hasOwnProperty(Z)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:U,set:B}=Y;return Object.defineProperty($,Z,{configurable:!0,get:function(){return U.call(this)},set:function(W){y0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return G},setValue:function(W){y0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function kX($){if(!$._valueTracker){var Z=nK($)?"checked":"value";$._valueTracker=XT($,Z,""+$[Z])}}function sK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),Y="";return $&&(Y=nK($)?$.checked?"true":"false":$.value),$=Y,$!==G?(Z.setValue($),!0):!1}function WJ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function v6($){return $.replace(KI,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function oK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||JW||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$4()||"A component",Z.type),JW=!0),Z.value===void 0||Z.defaultValue===void 0||QW||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",$4()||"A component",Z.type),QW=!0)}function fX($,Z,G,Y,U,B,W,z){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(w1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+D6(Z)}else $.value!==""+D6(Z)&&($.value=""+D6(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?yX($,W,D6(Z)):G!=null?yX($,W,D6(G)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&typeof z!=="boolean"?(w1(z,"name"),$.name=""+D6(z)):$.removeAttribute("name")}function aK($,Z,G,Y,U,B,W,z){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(w1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){kX($);return}G=G!=null?""+D6(G):"",Z=Z!=null?""+D6(Z):G,z||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=z?$.checked:!!Y,$.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(w1(W,"name"),$.name=W),kX($)}function yX($,Z,G){Z==="number"&&WJ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function iK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?P$.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||XW||(XW=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):Z.dangerouslySetInnerHTML==null||qW||(qW=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||GW||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),GW=!0)}function tK(){var $=$4();return $?`
|
|
34
34
|
|
|
35
|
-
Check the render method of \``+$+"`.":""}function
|
|
36
|
-
`;if(typeof Z==="string"){for(var U=0;U<Z.length&&U<$.length&&Z.charCodeAt(U)===$.charCodeAt(U);U++);return U>Y-8&&10<U&&($="..."+$.slice(U-8),Z="..."+Z.slice(U-8)),
|
|
35
|
+
Check the render method of \``+$+"`.":""}function U9($,Z,G,Y){if($=$.options,Z){Z={};for(var U=0;U<G.length;U++)Z["$"+G[U]]=!0;for(G=0;G<$.length;G++)U=Z.hasOwnProperty("$"+$[G].value),$[G].selected!==U&&($[G].selected=U),U&&Y&&($[G].defaultSelected=!0)}else{G=""+D6(G),Z=null;for(U=0;U<$.length;U++){if($[U].value===G){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function eK($,Z){for($=0;$<NW.length;$++){var G=NW[$];if(Z[G]!=null){var Y=q5(Z[G]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",G,tK()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",G,tK())}}Z.value===void 0||Z.defaultValue===void 0||YW||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),YW=!0)}function $B($,Z){Z.value===void 0||Z.defaultValue===void 0||UW||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",$4()||"A component"),UW=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ZB($,Z,G){if(Z!=null&&(Z=""+D6(Z),Z!==$.value&&($.value=Z),G==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=G!=null?""+D6(G):""}function QB($,Z,G,Y){if(Z==null){if(Y!=null){if(G!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(q5(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}G=Y}G==null&&(G=""),Z=G}G=D6(Z),$.defaultValue=G,Y=$.textContent,Y===G&&Y!==""&&Y!==null&&($.value=Y),kX($)}function JB($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?JB($.children[0],Z):$}function F6($){return" "+" ".repeat($)}function K9($){return"+ "+" ".repeat($)}function e8($){return"- "+" ".repeat($)}function GB($){switch($.tag){case 26:case 27:case 5:return $.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return $=$.type,$.displayName||$.name||null;case 11:return $=$.type.render,$.displayName||$.name||null;case 1:return $=$.type,$.displayName||$.name||null;default:return null}}function y$($,Z){return KW.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function wJ($,Z,G){var Y=120-2*G;if(Z===null)return K9(G)+y$($,Y)+`
|
|
36
|
+
`;if(typeof Z==="string"){for(var U=0;U<Z.length&&U<$.length&&Z.charCodeAt(U)===$.charCodeAt(U);U++);return U>Y-8&&10<U&&($="..."+$.slice(U-8),Z="..."+Z.slice(U-8)),K9(G)+y$($,Y)+`
|
|
37
37
|
`+e8(G)+y$(Z,Y)+`
|
|
38
38
|
`}return F6(G)+y$($,Y)+`
|
|
39
|
-
`}function gX($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,G){return G})}function g$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(q5($))return"[...]";if($.$$typeof===D4)return(Z=i($.type))?"<"+Z+">":"<...>";var G=gX($);if(G==="Object"){G="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=g$($[Y],15>Z?Z:15),Z-=U.length,0>Z){G+=G===""?"...":", ...";break}G+=(G===""?"":",")+Y+":"+U}return"{"+G+"}"}return G;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function
|
|
39
|
+
`}function gX($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,G){return G})}function g$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(q5($))return"[...]";if($.$$typeof===D4)return(Z=i($.type))?"<"+Z+">":"<...>";var G=gX($);if(G==="Object"){G="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=g$($[Y],15>Z?Z:15),Z-=U.length,0>Z){G+=G===""?"...":", ...";break}G+=(G===""?"":",")+Y+":"+U}return"{"+G+"}"}return G;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function B9($,Z){return typeof $!=="string"||KW.test($)?"{"+g$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function hX($,Z,G){var Y=120-G.length-$.length,U=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var W=B9(Z[B],120-G.length-B.length-1);Y-=B.length+W.length+2,U.push(B+"="+W)}return U.length===0?G+"<"+$+`>
|
|
40
40
|
`:0<Y?G+"<"+$+" "+U.join(" ")+`>
|
|
41
41
|
`:G+"<"+$+`
|
|
42
42
|
`+G+" "+U.join(`
|
|
43
43
|
`+G+" ")+`
|
|
44
44
|
`+G+`>
|
|
45
|
-
`}function qT($,Z,G){var Y="",U=l0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var W=120-2*G-B.length-2,z=g$($[B],W);Z.hasOwnProperty(B)?(W=g$(Z[B],W),Y+=
|
|
45
|
+
`}function qT($,Z,G){var Y="",U=l0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var W=120-2*G-B.length-2,z=g$($[B],W);Z.hasOwnProperty(B)?(W=g$(Z[B],W),Y+=K9(G)+B+": "+z+`
|
|
46
46
|
`,Y+=e8(G)+B+": "+W+`
|
|
47
|
-
`):Y+=
|
|
47
|
+
`):Y+=K9(G)+B+": "+z+`
|
|
48
48
|
`}for(var L in U)U.hasOwnProperty(L)&&($=g$(U[L],120-2*G-L.length-2),Y+=e8(G)+L+": "+$+`
|
|
49
|
-
`);return Y}function YT($,Z,G,Y){var U="",B=new Map;for(T in G)G.hasOwnProperty(T)&&B.set(T.toLowerCase(),T);if(B.size===1&&B.has("children"))U+=hX($,Z,F6(Y));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var z=120-2*(Y+1)-W.length-1,L=B.get(W.toLowerCase());if(L!==void 0){B.delete(W.toLowerCase());var T=Z[W];L=G[L];var k=
|
|
49
|
+
`);return Y}function YT($,Z,G,Y){var U="",B=new Map;for(T in G)G.hasOwnProperty(T)&&B.set(T.toLowerCase(),T);if(B.size===1&&B.has("children"))U+=hX($,Z,F6(Y));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var z=120-2*(Y+1)-W.length-1,L=B.get(W.toLowerCase());if(L!==void 0){B.delete(W.toLowerCase());var T=Z[W];L=G[L];var k=B9(T,z);z=B9(L,z),typeof T==="object"&&T!==null&&typeof L==="object"&&L!==null&&gX(T)==="Object"&&gX(L)==="Object"&&(2<Object.keys(T).length||2<Object.keys(L).length||-1<k.indexOf("...")||-1<z.indexOf("..."))?U+=F6(Y+1)+W+`={{
|
|
50
50
|
`+qT(T,L,Y+2)+F6(Y+1)+`}}
|
|
51
|
-
`:(U+=
|
|
51
|
+
`:(U+=K9(Y+1)+W+"="+k+`
|
|
52
52
|
`,U+=e8(Y+1)+W+"="+z+`
|
|
53
|
-
`)}else U+=F6(Y+1)+W+"="+
|
|
54
|
-
`}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=e8(Y+1)+f+"="+
|
|
53
|
+
`)}else U+=F6(Y+1)+W+"="+B9(Z[W],z)+`
|
|
54
|
+
`}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=e8(Y+1)+f+"="+B9(G[f],S)+`
|
|
55
55
|
`}}),U=U===""?F6(Y)+"<"+$+`>
|
|
56
56
|
`:F6(Y)+"<"+$+`
|
|
57
57
|
`+U+F6(Y)+`>
|
|
58
58
|
`}if($=G.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;U+=wJ(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+wJ(""+Z,null,Y+1):U+wJ(""+Z,void 0,Y+1);return U}function XB($,Z){var G=GB($);if(G===null){G="";for($=$.child;$;)G+=XB($,Z),$=$.sibling;return G}return F6(Z)+"<"+G+`>
|
|
59
59
|
`}function uX($,Z){var G=JB($,Z);if(G!==$&&($.children.length!==1||$.children[0]!==G))return F6(Z)+`...
|
|
60
60
|
`+uX(G,Z+1);G="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var B=Y[U].name;typeof B==="string"&&(G+=F6(Z)+"<"+B+`>
|
|
61
|
-
`,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=wJ(U,$.serverProps,Z),Z++;else if(B=GB($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var W=120-2*Y-B.length-2,z="";for(T in U)if(U.hasOwnProperty(T)&&T!=="children"){var L=
|
|
62
|
-
`,Z++}else $.serverProps===null?(Y=hX(B,U,
|
|
61
|
+
`,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=wJ(U,$.serverProps,Z),Z++;else if(B=GB($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var W=120-2*Y-B.length-2,z="";for(T in U)if(U.hasOwnProperty(T)&&T!=="children"){var L=B9(U[T],15);if(W-=T.length+L.length+2,0>W){z+=" ...";break}z+=" "+T+"="+L}Y=F6(Y)+"<"+B+z+`>
|
|
62
|
+
`,Z++}else $.serverProps===null?(Y=hX(B,U,K9(Z)),Z++):typeof $.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(Y=YT(B,U,$.serverProps,Z),Z++);var T="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)W=$.children[B],W.fiber===U?(T+=uX(W,Z),B++):T+=XB(U,Z),U=U.sibling;U&&0<$.children.length&&(T+=F6(Z)+`...
|
|
63
63
|
`),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],T=typeof B==="string"?T+(e8(Z)+y$(B,120-2*Z)+`
|
|
64
64
|
`):T+hX(B.type,B.props,e8(Z));return G+Y+T}function xX($){try{return`
|
|
65
65
|
|
|
@@ -68,9 +68,9 @@ This will cause a hydration error.%s`,W,Y,G,B)):console.error(`In HTML, %s canno
|
|
|
68
68
|
This will cause a hydration error.%s`,W,Y,B),Z&&($=Z.return,U===null||$===null||U===$&&$._debugOwner===Z._debugOwner||X0(U,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
69
|
See this log for the ancestor stack trace.`,Y,W)})),!1}function RJ($,Z,G){if(G||NB("#text",Z,!1))return!0;if(G="#text|"+Z,EG[G])return!1;EG[G]=!0;var Y=(G=T6)?UB(G,Z):null;return G=G!==null&&Y!==null?qB(Y,G,G.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
70
|
This will cause a hydration error.%s`,Z,G):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
71
|
-
This will cause a hydration error.%s`,Z,G),!1}function h$($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function UT($){return $.replace(wI,function(Z,G){return G.toUpperCase()})}function KB($,Z,G){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?D7.hasOwnProperty(Z)&&D7[Z]||(D7[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,UT(Z.replace(WI,"ms-")))):MI.test(Z)?D7.hasOwnProperty(Z)&&D7[Z]||(D7[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!WW.test(G)||QN.hasOwnProperty(G)&&QN[G]||(QN[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(WW,""))),typeof G==="number"&&(isNaN(G)?wW||(wW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||RW||(RW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),G==null||typeof G==="boolean"||G===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,G):typeof G!=="number"||G===0||zW.has(Z)?Z==="float"?$.cssFloat=G:(b$(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function BB($,Z,G){if(Z!=null&&typeof Z!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(Z&&Object.freeze(Z),$=$.style,G!=null){if(Z){var Y={};if(G){for(var U in G)if(G.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=ZN[U]||[U],W=0;W<B.length;W++)Y[B[W]]=U}for(var z in Z)if(Z.hasOwnProperty(z)&&(!G||G[z]!==Z[z]))for(U=ZN[z]||[z],B=0;B<U.length;B++)Y[U[B]]=z;z={};for(var L in Z)for(U=ZN[L]||[L],B=0;B<U.length;B++)z[U[B]]=L;L={};for(var T in Y)if(U=Y[T],(B=z[T])&&U!==B&&(W=U+","+B,!L[W])){L[W]=!0,W=console;var k=Z[U];W.error.call(W,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",k==null||typeof k==="boolean"||k===""?"Removing":"Updating",U,B)}}for(var f in G)!G.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)T=Z[S],Z.hasOwnProperty(S)&&G[S]!==T&&KB($,S,T)}else for(Y in Z)Z.hasOwnProperty(Y)&&KB($,Y,Z[Y])}function u$($){if($.indexOf("-")===-1)return!1;switch($){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function HB($){return RI.get($)||$}function KT($,Z){if(G4.call(b7,Z)&&b7[Z])return!0;if(_I.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=_W.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),b7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),b7[Z]=!0}if(zI.test(Z)){if($=Z.toLowerCase(),$=_W.hasOwnProperty($)?$:null,$==null)return b7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),b7[Z]=!0)}return!0}function BT($,Z){var G=[],Y;for(Y in Z)KT($,Y)||G.push(Y);Z=G.map(function(U){return"`"+U+"`"}).join(", "),G.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<G.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function HT($,Z,G,Y){if(G4.call(m5,Z)&&m5[Z])return!0;var U=Z.toLowerCase();if(U==="onfocusin"||U==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),m5[Z]=!0;if(typeof G==="function"&&($==="form"&&Z==="action"||$==="input"&&Z==="formAction"||$==="button"&&Z==="formAction"))return!0;if(Y!=null){if($=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty(Z))return!0;if(Y=$.hasOwnProperty(U)?$[U]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,Y),m5[Z]=!0;if(PW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),m5[Z]=!0}else if(PW.test(Z))return LI.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),m5[Z]=!0;if(PI.test(Z)||TI.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),m5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),m5[Z]=!0;if(U==="is"&&G!==null&&G!==void 0&&typeof G!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof G),m5[Z]=!0;if(typeof G==="number"&&isNaN(G))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),m5[Z]=!0;if(jG.hasOwnProperty(U)){if(U=jG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),m5[Z]=!0}else if(Z!==U)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",Z,U),m5[Z]=!0;switch(Z){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof G){case"boolean":switch(Z){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(U=Z.toLowerCase().slice(0,5),U==="data-"||U==="aria-")return!0;return G?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',G,Z,Z,G,Z):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',G,Z,Z,G,Z,Z,Z),m5[Z]=!0}case"function":case"symbol":return m5[Z]=!0,!1;case"string":if(G==="false"||G==="true"){switch(Z){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",G,Z,G==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',Z,G),m5[Z]=!0}}return!0}function FT($,Z,G){var Y=[],U;for(U in Z)HT($,U,Z[U],G)||Y.push(U);Z=Y.map(function(B){return"`"+B+"`"}).join(", "),Y.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",Z,$):1<Y.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",Z,$)}function x$($){return CI.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function e4(){}function dX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function FB($){var Z=D0($);if(Z&&($=Z.stateNode)){var G=$[x5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(fX($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name),Z=G.name,G.type==="radio"&&Z!=null){for(G=$;G.parentNode;)G=G.parentNode;w1(Z,"name"),G=G.querySelectorAll('input[name="'+v6(""+Z)+'"][type="radio"]');for(Z=0;Z<G.length;Z++){var Y=G[Z];if(Y!==$&&Y.form===$.form){var U=Y[x5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");fX(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<G.length;Z++)Y=G[Z],Y.form===$.form&&sK(Y)}break $;case"textarea":ZB($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&U7($,!!G.multiple,Z,!1)}}}function MB($,Z,G){if(JN)return $(Z,G);JN=!0;try{var Y=$(Z);return Y}finally{if(JN=!1,k7!==null||f7!==null){if(P7(),k7&&(Z=k7,$=f7,f7=k7=null,FB(Z),$))for(Z=0;Z<$.length;Z++)FB($[Z])}}}function m$($,Z){var G=$.stateNode;if(G===null)return null;var Y=G[x5]||null;if(Y===null)return null;G=Y[Z];$:switch(Z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||($=$.type,Y=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!Y;break $;default:$=!1}if($)return null;if(G&&typeof G!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof G+"` type.");return G}function WB(){if(DG)return DG;var $,Z=XN,G=Z.length,Y,U="value"in G8?G8.value:G8.textContent,B=U.length;for($=0;$<G&&Z[$]===U[$];$++);var W=G-$;for(Y=1;Y<=W&&Z[G-Y]===U[B-Y];Y++);return DG=U.slice($,1<Y?1-Y:void 0)}function zJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function _J(){return!0}function wB(){return!1}function n5($){function Z(G,Y,U,B,W){this._reactName=G,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var z in $)$.hasOwnProperty(z)&&(G=$[z],this[z]=G?G(B):B[z]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?_J:wB,this.isPropagationStopped=wB,this}return l0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var G=this.nativeEvent;G&&(G.preventDefault?G.preventDefault():typeof G.returnValue!=="unknown"&&(G.returnValue=!1),this.isDefaultPrevented=_J)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=_J)},persist:function(){},isPersistent:_J}),Z}function MT($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=yI[$])?!!Z[$]:!1}function pX(){return MT}function RB($,Z){switch($){case"keyup":return sI.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==OW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function WT($,Z){switch($){case"compositionend":return zB(Z);case"keypress":if(Z.which!==AW)return null;return SW=!0,EW;case"textInput":return $=Z.data,$===EW&&SW?null:$;default:return null}}function wT($,Z){if(y7)return $==="compositionend"||!UN&&RB($,Z)?($=WB(),DG=XN=G8=null,y7=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(Z.ctrlKey||Z.altKey||Z.metaKey)||Z.ctrlKey&&Z.altKey){if(Z.char&&1<Z.char.length)return Z.char;if(Z.which)return String.fromCharCode(Z.which)}return null;case"compositionend":return VW&&Z.locale!=="ko"?null:Z.data;default:return null}}function _B($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!aI[$.type]:Z==="textarea"?!0:!1}function RT($){if(!g4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function LB($,Z,G,Y){k7?f7?f7.push(Y):f7=[Y]:k7=Y,Z=BG(Z,"onChange"),0<Z.length&&(G=new vG("onChange","change",null,G,Y),$.push({event:G,listeners:Z}))}function zT($){QM($,0)}function LJ($){var Z=v0($);if(sK(Z))return $}function PB($,Z){if($==="change")return Z}function TB(){VZ&&(VZ.detachEvent("onpropertychange",CB),AZ=VZ=null)}function CB($){if($.propertyName==="value"&&LJ(AZ)){var Z=[];LB(Z,AZ,$,dX($)),MB(zT,Z)}}function _T($,Z,G){$==="focusin"?(TB(),VZ=Z,AZ=G,VZ.attachEvent("onpropertychange",CB)):$==="focusout"&&TB()}function LT($){if($==="selectionchange"||$==="keyup"||$==="keydown")return LJ(AZ)}function PT($,Z){if($==="click")return LJ(Z)}function TT($,Z){if($==="input"||$==="change")return LJ(Z)}function CT($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function d$($,Z){if(d5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var G=Object.keys($),Y=Object.keys(Z);if(G.length!==Y.length)return!1;for(Y=0;Y<G.length;Y++){var U=G[Y];if(!G4.call(Z,U)||!d5($[U],Z[U]))return!1}return!0}function IB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function OB($,Z){var G=IB($);$=0;for(var Y;G;){if(G.nodeType===3){if(Y=$+G.textContent.length,$<=Z&&Y>=Z)return{node:G,offset:Z-$};$=Y}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=IB(G)}}function VB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?VB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function AB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=WJ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(Y){G=!1}if(G)$=Z.contentWindow;else break;Z=WJ($.document)}return Z}function cX($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function EB($,Z,G){var Y=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;BN||g7==null||g7!==WJ(Y)||(Y=g7,("selectionStart"in Y)&&cX(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),EZ&&d$(EZ,Y)||(EZ=Y,Y=BG(KN,"onSelect"),0<Y.length&&(Z=new vG("onSelect","select",null,Z,G),$.push({event:Z,listeners:Y}),Z.target=g7)))}function $9($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function Z9($){if(HN[$])return HN[$];if(!h7[$])return $;var Z=h7[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in DW)return HN[$]=Z[G];return $}function Z4($,Z){yW.set($,Z),S5(Z,[$])}function IT($){for(var Z=kG,G=0;G<$.length;G++){var Y=$[G];if(typeof Y==="object"&&Y!==null)if(q5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==kG&&Z!==RN)return WN;Z=RN}else return WN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==kG&&Z!==wN)return WN;Z=wN}}return Z}function lX($,Z,G,Y){for(var U in $)G4.call($,U)&&U[0]!=="_"&&W4(U,$[U],Z,G,Y)}function W4($,Z,G,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===D4){var B=i(Z.type)||"…",W=Z.key;Z=Z.props;var z=Object.keys(Z),L=z.length;if(W==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&z[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([U+" ".repeat(Y)+$,"<"+B]),W!==null&&W4("key",W,G,Y+1,U),$=!1;for(var T in Z)T==="children"?Z.children!=null&&(!q5(Z.children)||0<Z.children.length)&&($=!0):G4.call(Z,T)&&T[0]!=="_"&&W4(T,Z[T],G,Y+1,U);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(T=IT(Z),T===wN||T===kG){Z=JSON.stringify(Z);break}else if(T===RN){G.push([U+" ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],W4(B[0],B[1],G,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,W4($,Z.value,G,Y,U),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=G.length,W4($,Z.reason,G,Y,U),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push([" ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(T=Object.getPrototypeOf(Z))&&typeof T.constructor==="function"&&(B=T.constructor.name),G.push([U+" ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&lX(Z,G,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===JO?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}G.push([U+" ".repeat(Y)+$,Z])}function SB($,Z,G,Y){var U=!0;for(W in $)W in Z||(G.push([fG+" ".repeat(Y)+W,"…"]),U=!1);for(var B in Z)if(B in $){var W=$[B],z=Z[B];if(W!==z){if(Y===0&&B==="children")U=" ".repeat(Y)+B,G.push([fG+U,"…"],[yG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof z==="object"&&W!==null&&z!==null&&W.$$typeof===z.$$typeof)if(z.$$typeof===D4){if(W.type===z.type&&W.key===z.key){W=i(z.type)||"…",U=" ".repeat(Y)+B,W="<"+W+" … />",G.push([fG+U,W],[yG+U,W]),U=!1;continue}}else{var L=Object.prototype.toString.call(W),T=Object.prototype.toString.call(z);if(L===T&&(T==="[object Object]"||T==="[object Array]")){L=[uW+" ".repeat(Y)+B,T==="[object Array]"?"Array":""],G.push(L),T=G.length,SB(W,z,G,Y+1)?T===G.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof W==="function"&&typeof z==="function"&&W.name===z.name&&W.length===z.length&&(L=Function.prototype.toString.call(W),T=Function.prototype.toString.call(z),L===T)){W=z.name===""?"() => {}":z.name+"() {}",G.push([uW+" ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}W4(B,W,G,Y,fG),W4(B,z,G,Y,yG)}U=!1}}else G.push([yG+" ".repeat(Y)+B,"…"]),U=!1;return U}function M6($){o0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function w4($,Z,G,Y){A1&&(q8.start=Z,q8.end=G,N2.color="warning",N2.tooltipText=Y,N2.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,q8)):performance.measure(Y,q8))}function PJ($,Z,G){w4($,Z,G,"Reconnect")}function TJ($,Z,G,Y,U){var B=d($);if(B!==null&&A1){var{alternate:W,actualDuration:z}=$;if(W===null||W.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)z-=L.actualDuration;Y=0.5>z?Y?"tertiary-light":"primary-light":10>z?Y?"tertiary":"primary":100>z?Y?"tertiary-dark":"primary-dark":"error";var T=$.memoizedProps;z=$._debugTask,T!==null&&W!==null&&W.memoizedProps!==T?(L=[GO],T=SB(W.memoizedProps,T,L,0),1<L.length&&(T&&!X8&&(W.lanes&U)===0&&100<$.actualDuration?(X8=!0,L[0]=XO,N2.color="warning",N2.tooltipText=xW):(N2.color=Y,N2.tooltipText=B),N2.properties=L,q8.start=Z,q8.end=G,z!=null?z.run(performance.measure.bind(performance,""+B,q8)):performance.measure(""+B,q8))):z!=null?z.run(console.timeStamp.bind(console,B,Z,G,k6,void 0,Y)):console.timeStamp(B,Z,G,k6,void 0,Y)}}function rX($,Z,G,Y){if(A1){var U=d($);if(U!==null){for(var B=null,W=[],z=0;z<Y.length;z++){var L=Y[z];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,W.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&W4("key",$.key,W,0,""),$.memoizedProps!==null&&lX($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:k6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,""+U,$)):performance.measure(""+U,$)}}}function R4($,Z,G,Y,U){if(U!==null){if(A1){var B=d($);if(B!==null){Y=[];for(var W=0;W<U.length;W++){var z=U[W].value;Y.push(["Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$.key!==null&&W4("key",$.key,Y,0,""),$.memoizedProps!==null&&lX($.memoizedProps,Y,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:k6,tooltipText:"A lifecycle or effect errored",properties:Y}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+B,Z)):performance.measure(""+B,Z)}}}else B=d($),B!==null&&A1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,k6,void 0,U)):console.timeStamp(B,Z,G,k6,void 0,U))}function OT($,Z,G,Y){if(A1&&!(Z<=$)){var U=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,G,$,Z,o0,r0,U)):console.timeStamp(G,$,Z,o0,r0,U)}}function jB($,Z,G,Y){!A1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,o0,r0,G)):console.timeStamp("Prewarm",$,Z,o0,r0,G))}function DB($,Z,G,Y){!A1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,o0,r0,G)):console.timeStamp("Suspended",$,Z,o0,r0,G))}function VT($,Z,G,Y,U,B){if(A1&&!(Z<=$)){G=[];for(var W=0;W<Y.length;W++){var z=Y[W].value;G.push(["Recoverable Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:o0,trackGroup:r0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function nX($,Z,G,Y){!A1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,o0,r0,"error")):console.timeStamp("Errored",$,Z,o0,r0,"error"))}function AT($,Z,G,Y){!A1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G,$,Z,o0,r0,"secondary-light")):console.timeStamp(G,$,Z,o0,r0,"secondary-light"))}function vB($,Z,G,Y,U){if(A1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var z=G[W].value;B.push(["Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:o0,trackGroup:r0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function p$($,Z,G){!A1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,o0,r0,"secondary-dark")):console.timeStamp("Animating",$,Z,o0,r0,"secondary-dark"))}function CJ(){for(var $=u7,Z=zN=u7=0;Z<$;){var G=f6[Z];f6[Z++]=null;var Y=f6[Z];f6[Z++]=null;var U=f6[Z];f6[Z++]=null;var B=f6[Z];if(f6[Z++]=null,Y!==null&&U!==null){var W=Y.pending;W===null?U.next=U:(U.next=W.next,W.next=U),Y.pending=U}B!==0&&bB(G,U,B)}}function IJ($,Z,G,Y){f6[u7++]=$,f6[u7++]=Z,f6[u7++]=G,f6[u7++]=Y,zN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function sX($,Z,G,Y){return IJ($,Z,G,Y),OJ($)}function j5($,Z){return IJ($,null,null,Z),OJ($)}function bB($,Z,G){$.lanes|=G;var Y=$.alternate;Y!==null&&(Y.lanes|=G);for(var U=!1,B=$.return;B!==null;)B.childLanes|=G,Y=B.alternate,Y!==null&&(Y.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&SZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-u5(G),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=G|536870912),B):null}function OJ($){if(QQ>LO)throw j9=QQ=0,JQ=iN=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");j9>PO&&(j9=0,JQ=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),$.alternate===null&&($.flags&4098)!==0&&oF($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&oF($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function Q9($){if(y6===null)return $;var Z=y6($);return Z===void 0?$:Z.current}function oX($){if(y6===null)return $;var Z=y6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=Q9($.render),$.render!==Z)?(Z={$$typeof:RZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function kB($,Z){if(y6===null)return!1;var G=$.elementType;Z=Z.type;var Y=!1,U=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch($.tag){case 1:typeof Z==="function"&&(Y=!0);break;case 0:typeof Z==="function"?Y=!0:U===P6&&(Y=!0);break;case 11:U===RZ?Y=!0:U===P6&&(Y=!0);break;case 14:case 15:U===TG?Y=!0:U===P6&&(Y=!0);break;default:return!1}return Y&&($=y6(G),$!==void 0&&$===y6(Z))?!0:!1}function fB($){y6!==null&&typeof WeakSet==="function"&&(x7===null&&(x7=new WeakSet),x7.add($))}function yB($,Z,G){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,z=Y.tag;Y=Y.type;var L=null;switch(z){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(y6===null)throw Error("Expected resolveFamily to be set during hot reload.");var T=!1;if(Y=!1,L!==null&&(L=y6(L),L!==void 0&&(G.has(L)?Y=!0:Z.has(L)&&(z===1?Y=!0:T=!0))),x7!==null&&(x7.has($)||U!==null&&x7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||T)U=j5($,2),U!==null&&h1(U,$,2);if(B===null||Y||yB(B,Z,G),W===null)break;$=W}while(1)}function ET($,Z,G,Y){this.tag=$,this.key=G,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,mW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function aX($){return $=$.prototype,!(!$||!$.isReactComponent)}function $2($,Z){var G=$.alternate;switch(G===null?(G=P($.tag,Z,$.key,$.mode),G.elementType=$.elementType,G.type=$.type,G.stateNode=$.stateNode,G._debugOwner=$._debugOwner,G._debugStack=$._debugStack,G._debugTask=$._debugTask,G._debugHookTypes=$._debugHookTypes,G.alternate=$,$.alternate=G):(G.pendingProps=Z,G.type=$.type,G.flags=0,G.subtreeFlags=0,G.deletions=null,G.actualDuration=-0,G.actualStartTime=-1.1),G.flags=$.flags&65011712,G.childLanes=$.childLanes,G.lanes=$.lanes,G.child=$.child,G.memoizedProps=$.memoizedProps,G.memoizedState=$.memoizedState,G.updateQueue=$.updateQueue,Z=$.dependencies,G.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},G.sibling=$.sibling,G.index=$.index,G.ref=$.ref,G.refCleanup=$.refCleanup,G.selfBaseDuration=$.selfBaseDuration,G.treeBaseDuration=$.treeBaseDuration,G._debugInfo=$._debugInfo,G._debugNeedsRemount=$._debugNeedsRemount,G.tag){case 0:case 15:G.type=Q9($.type);break;case 1:G.type=Q9($.type);break;case 11:G.type=oX($.type)}return G}function gB($,Z){$.flags&=65011714;var G=$.alternate;return G===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=G.childLanes,$.lanes=G.lanes,$.child=G.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=G.memoizedProps,$.memoizedState=G.memoizedState,$.updateQueue=G.updateQueue,$.type=G.type,Z=G.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=G.selfBaseDuration,$.treeBaseDuration=G.treeBaseDuration),$}function iX($,Z,G,Y,U,B){var W=0,z=$;if(typeof $==="function")aX($)&&(W=1),z=Q9(z);else if(typeof $==="string")W=F0(),W=gC($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case pY:return Z=P(31,G,Z,U),Z.elementType=pY,Z.lanes=B,Z;case E7:return J9(G.children,U,B,Z);case PG:W=8,U|=v5,U|=q4;break;case uY:return $=G,Y=U,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=P(12,$,Z,Y|g0),Z.elementType=uY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case mY:return Z=P(13,G,Z,U),Z.elementType=mY,Z.lanes=B,Z;case dY:return Z=P(19,G,Z,U),Z.elementType=dY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case v4:W=10;break $;case xY:W=9;break $;case RZ:W=11,z=oX(z);break $;case TG:W=14;break $;case P6:W=16,z=null;break $}if(z="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?G="null":q5($)?G="array":$!==void 0&&$.$$typeof===D4?(G="<"+(i($.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=Y?Y0(Y):null)&&(z+=`
|
|
71
|
+
This will cause a hydration error.%s`,Z,G),!1}function h$($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function UT($){return $.replace(wI,function(Z,G){return G.toUpperCase()})}function KB($,Z,G){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?D9.hasOwnProperty(Z)&&D9[Z]||(D9[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,UT(Z.replace(WI,"ms-")))):MI.test(Z)?D9.hasOwnProperty(Z)&&D9[Z]||(D9[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!WW.test(G)||QN.hasOwnProperty(G)&&QN[G]||(QN[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(WW,""))),typeof G==="number"&&(isNaN(G)?wW||(wW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||RW||(RW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),G==null||typeof G==="boolean"||G===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,G):typeof G!=="number"||G===0||zW.has(Z)?Z==="float"?$.cssFloat=G:(b$(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function BB($,Z,G){if(Z!=null&&typeof Z!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(Z&&Object.freeze(Z),$=$.style,G!=null){if(Z){var Y={};if(G){for(var U in G)if(G.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=ZN[U]||[U],W=0;W<B.length;W++)Y[B[W]]=U}for(var z in Z)if(Z.hasOwnProperty(z)&&(!G||G[z]!==Z[z]))for(U=ZN[z]||[z],B=0;B<U.length;B++)Y[U[B]]=z;z={};for(var L in Z)for(U=ZN[L]||[L],B=0;B<U.length;B++)z[U[B]]=L;L={};for(var T in Y)if(U=Y[T],(B=z[T])&&U!==B&&(W=U+","+B,!L[W])){L[W]=!0,W=console;var k=Z[U];W.error.call(W,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",k==null||typeof k==="boolean"||k===""?"Removing":"Updating",U,B)}}for(var f in G)!G.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)T=Z[S],Z.hasOwnProperty(S)&&G[S]!==T&&KB($,S,T)}else for(Y in Z)Z.hasOwnProperty(Y)&&KB($,Y,Z[Y])}function u$($){if($.indexOf("-")===-1)return!1;switch($){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function HB($){return RI.get($)||$}function KT($,Z){if(G4.call(b9,Z)&&b9[Z])return!0;if(_I.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=_W.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),b9[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),b9[Z]=!0}if(zI.test(Z)){if($=Z.toLowerCase(),$=_W.hasOwnProperty($)?$:null,$==null)return b9[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),b9[Z]=!0)}return!0}function BT($,Z){var G=[],Y;for(Y in Z)KT($,Y)||G.push(Y);Z=G.map(function(U){return"`"+U+"`"}).join(", "),G.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<G.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function HT($,Z,G,Y){if(G4.call(m5,Z)&&m5[Z])return!0;var U=Z.toLowerCase();if(U==="onfocusin"||U==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),m5[Z]=!0;if(typeof G==="function"&&($==="form"&&Z==="action"||$==="input"&&Z==="formAction"||$==="button"&&Z==="formAction"))return!0;if(Y!=null){if($=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty(Z))return!0;if(Y=$.hasOwnProperty(U)?$[U]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,Y),m5[Z]=!0;if(PW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),m5[Z]=!0}else if(PW.test(Z))return LI.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),m5[Z]=!0;if(PI.test(Z)||TI.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),m5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),m5[Z]=!0;if(U==="is"&&G!==null&&G!==void 0&&typeof G!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof G),m5[Z]=!0;if(typeof G==="number"&&isNaN(G))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),m5[Z]=!0;if(jG.hasOwnProperty(U)){if(U=jG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),m5[Z]=!0}else if(Z!==U)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",Z,U),m5[Z]=!0;switch(Z){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof G){case"boolean":switch(Z){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(U=Z.toLowerCase().slice(0,5),U==="data-"||U==="aria-")return!0;return G?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',G,Z,Z,G,Z):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',G,Z,Z,G,Z,Z,Z),m5[Z]=!0}case"function":case"symbol":return m5[Z]=!0,!1;case"string":if(G==="false"||G==="true"){switch(Z){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",G,Z,G==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',Z,G),m5[Z]=!0}}return!0}function FT($,Z,G){var Y=[],U;for(U in Z)HT($,U,Z[U],G)||Y.push(U);Z=Y.map(function(B){return"`"+B+"`"}).join(", "),Y.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",Z,$):1<Y.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",Z,$)}function x$($){return CI.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function e4(){}function dX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function FB($){var Z=D0($);if(Z&&($=Z.stateNode)){var G=$[x5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(fX($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name),Z=G.name,G.type==="radio"&&Z!=null){for(G=$;G.parentNode;)G=G.parentNode;w1(Z,"name"),G=G.querySelectorAll('input[name="'+v6(""+Z)+'"][type="radio"]');for(Z=0;Z<G.length;Z++){var Y=G[Z];if(Y!==$&&Y.form===$.form){var U=Y[x5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");fX(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<G.length;Z++)Y=G[Z],Y.form===$.form&&sK(Y)}break $;case"textarea":ZB($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&U9($,!!G.multiple,Z,!1)}}}function MB($,Z,G){if(JN)return $(Z,G);JN=!0;try{var Y=$(Z);return Y}finally{if(JN=!1,k9!==null||f9!==null){if(P9(),k9&&(Z=k9,$=f9,f9=k9=null,FB(Z),$))for(Z=0;Z<$.length;Z++)FB($[Z])}}}function m$($,Z){var G=$.stateNode;if(G===null)return null;var Y=G[x5]||null;if(Y===null)return null;G=Y[Z];$:switch(Z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||($=$.type,Y=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!Y;break $;default:$=!1}if($)return null;if(G&&typeof G!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof G+"` type.");return G}function WB(){if(DG)return DG;var $,Z=XN,G=Z.length,Y,U="value"in G8?G8.value:G8.textContent,B=U.length;for($=0;$<G&&Z[$]===U[$];$++);var W=G-$;for(Y=1;Y<=W&&Z[G-Y]===U[B-Y];Y++);return DG=U.slice($,1<Y?1-Y:void 0)}function zJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function _J(){return!0}function wB(){return!1}function n5($){function Z(G,Y,U,B,W){this._reactName=G,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var z in $)$.hasOwnProperty(z)&&(G=$[z],this[z]=G?G(B):B[z]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?_J:wB,this.isPropagationStopped=wB,this}return l0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var G=this.nativeEvent;G&&(G.preventDefault?G.preventDefault():typeof G.returnValue!=="unknown"&&(G.returnValue=!1),this.isDefaultPrevented=_J)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=_J)},persist:function(){},isPersistent:_J}),Z}function MT($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=yI[$])?!!Z[$]:!1}function pX(){return MT}function RB($,Z){switch($){case"keyup":return sI.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==OW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function WT($,Z){switch($){case"compositionend":return zB(Z);case"keypress":if(Z.which!==AW)return null;return SW=!0,EW;case"textInput":return $=Z.data,$===EW&&SW?null:$;default:return null}}function wT($,Z){if(y9)return $==="compositionend"||!UN&&RB($,Z)?($=WB(),DG=XN=G8=null,y9=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(Z.ctrlKey||Z.altKey||Z.metaKey)||Z.ctrlKey&&Z.altKey){if(Z.char&&1<Z.char.length)return Z.char;if(Z.which)return String.fromCharCode(Z.which)}return null;case"compositionend":return VW&&Z.locale!=="ko"?null:Z.data;default:return null}}function _B($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!aI[$.type]:Z==="textarea"?!0:!1}function RT($){if(!g4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function LB($,Z,G,Y){k9?f9?f9.push(Y):f9=[Y]:k9=Y,Z=BG(Z,"onChange"),0<Z.length&&(G=new vG("onChange","change",null,G,Y),$.push({event:G,listeners:Z}))}function zT($){QM($,0)}function LJ($){var Z=v0($);if(sK(Z))return $}function PB($,Z){if($==="change")return Z}function TB(){VZ&&(VZ.detachEvent("onpropertychange",CB),AZ=VZ=null)}function CB($){if($.propertyName==="value"&&LJ(AZ)){var Z=[];LB(Z,AZ,$,dX($)),MB(zT,Z)}}function _T($,Z,G){$==="focusin"?(TB(),VZ=Z,AZ=G,VZ.attachEvent("onpropertychange",CB)):$==="focusout"&&TB()}function LT($){if($==="selectionchange"||$==="keyup"||$==="keydown")return LJ(AZ)}function PT($,Z){if($==="click")return LJ(Z)}function TT($,Z){if($==="input"||$==="change")return LJ(Z)}function CT($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function d$($,Z){if(d5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var G=Object.keys($),Y=Object.keys(Z);if(G.length!==Y.length)return!1;for(Y=0;Y<G.length;Y++){var U=G[Y];if(!G4.call(Z,U)||!d5($[U],Z[U]))return!1}return!0}function IB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function OB($,Z){var G=IB($);$=0;for(var Y;G;){if(G.nodeType===3){if(Y=$+G.textContent.length,$<=Z&&Y>=Z)return{node:G,offset:Z-$};$=Y}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=IB(G)}}function VB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?VB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function AB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=WJ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(Y){G=!1}if(G)$=Z.contentWindow;else break;Z=WJ($.document)}return Z}function cX($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function EB($,Z,G){var Y=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;BN||g9==null||g9!==WJ(Y)||(Y=g9,("selectionStart"in Y)&&cX(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),EZ&&d$(EZ,Y)||(EZ=Y,Y=BG(KN,"onSelect"),0<Y.length&&(Z=new vG("onSelect","select",null,Z,G),$.push({event:Z,listeners:Y}),Z.target=g9)))}function $7($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function Z7($){if(HN[$])return HN[$];if(!h9[$])return $;var Z=h9[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in DW)return HN[$]=Z[G];return $}function Z4($,Z){yW.set($,Z),S5(Z,[$])}function IT($){for(var Z=kG,G=0;G<$.length;G++){var Y=$[G];if(typeof Y==="object"&&Y!==null)if(q5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==kG&&Z!==RN)return WN;Z=RN}else return WN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==kG&&Z!==wN)return WN;Z=wN}}return Z}function lX($,Z,G,Y){for(var U in $)G4.call($,U)&&U[0]!=="_"&&W4(U,$[U],Z,G,Y)}function W4($,Z,G,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===D4){var B=i(Z.type)||"…",W=Z.key;Z=Z.props;var z=Object.keys(Z),L=z.length;if(W==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&z[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([U+" ".repeat(Y)+$,"<"+B]),W!==null&&W4("key",W,G,Y+1,U),$=!1;for(var T in Z)T==="children"?Z.children!=null&&(!q5(Z.children)||0<Z.children.length)&&($=!0):G4.call(Z,T)&&T[0]!=="_"&&W4(T,Z[T],G,Y+1,U);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(T=IT(Z),T===wN||T===kG){Z=JSON.stringify(Z);break}else if(T===RN){G.push([U+" ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],W4(B[0],B[1],G,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,W4($,Z.value,G,Y,U),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=G.length,W4($,Z.reason,G,Y,U),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push([" ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(T=Object.getPrototypeOf(Z))&&typeof T.constructor==="function"&&(B=T.constructor.name),G.push([U+" ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&lX(Z,G,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===JO?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}G.push([U+" ".repeat(Y)+$,Z])}function SB($,Z,G,Y){var U=!0;for(W in $)W in Z||(G.push([fG+" ".repeat(Y)+W,"…"]),U=!1);for(var B in Z)if(B in $){var W=$[B],z=Z[B];if(W!==z){if(Y===0&&B==="children")U=" ".repeat(Y)+B,G.push([fG+U,"…"],[yG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof z==="object"&&W!==null&&z!==null&&W.$$typeof===z.$$typeof)if(z.$$typeof===D4){if(W.type===z.type&&W.key===z.key){W=i(z.type)||"…",U=" ".repeat(Y)+B,W="<"+W+" … />",G.push([fG+U,W],[yG+U,W]),U=!1;continue}}else{var L=Object.prototype.toString.call(W),T=Object.prototype.toString.call(z);if(L===T&&(T==="[object Object]"||T==="[object Array]")){L=[uW+" ".repeat(Y)+B,T==="[object Array]"?"Array":""],G.push(L),T=G.length,SB(W,z,G,Y+1)?T===G.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof W==="function"&&typeof z==="function"&&W.name===z.name&&W.length===z.length&&(L=Function.prototype.toString.call(W),T=Function.prototype.toString.call(z),L===T)){W=z.name===""?"() => {}":z.name+"() {}",G.push([uW+" ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}W4(B,W,G,Y,fG),W4(B,z,G,Y,yG)}U=!1}}else G.push([yG+" ".repeat(Y)+B,"…"]),U=!1;return U}function M6($){o0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function w4($,Z,G,Y){A1&&(q8.start=Z,q8.end=G,N2.color="warning",N2.tooltipText=Y,N2.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,q8)):performance.measure(Y,q8))}function PJ($,Z,G){w4($,Z,G,"Reconnect")}function TJ($,Z,G,Y,U){var B=d($);if(B!==null&&A1){var{alternate:W,actualDuration:z}=$;if(W===null||W.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)z-=L.actualDuration;Y=0.5>z?Y?"tertiary-light":"primary-light":10>z?Y?"tertiary":"primary":100>z?Y?"tertiary-dark":"primary-dark":"error";var T=$.memoizedProps;z=$._debugTask,T!==null&&W!==null&&W.memoizedProps!==T?(L=[GO],T=SB(W.memoizedProps,T,L,0),1<L.length&&(T&&!X8&&(W.lanes&U)===0&&100<$.actualDuration?(X8=!0,L[0]=XO,N2.color="warning",N2.tooltipText=xW):(N2.color=Y,N2.tooltipText=B),N2.properties=L,q8.start=Z,q8.end=G,z!=null?z.run(performance.measure.bind(performance,""+B,q8)):performance.measure(""+B,q8))):z!=null?z.run(console.timeStamp.bind(console,B,Z,G,k6,void 0,Y)):console.timeStamp(B,Z,G,k6,void 0,Y)}}function rX($,Z,G,Y){if(A1){var U=d($);if(U!==null){for(var B=null,W=[],z=0;z<Y.length;z++){var L=Y[z];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,W.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&W4("key",$.key,W,0,""),$.memoizedProps!==null&&lX($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:k6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,""+U,$)):performance.measure(""+U,$)}}}function R4($,Z,G,Y,U){if(U!==null){if(A1){var B=d($);if(B!==null){Y=[];for(var W=0;W<U.length;W++){var z=U[W].value;Y.push(["Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$.key!==null&&W4("key",$.key,Y,0,""),$.memoizedProps!==null&&lX($.memoizedProps,Y,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:k6,tooltipText:"A lifecycle or effect errored",properties:Y}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+B,Z)):performance.measure(""+B,Z)}}}else B=d($),B!==null&&A1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,k6,void 0,U)):console.timeStamp(B,Z,G,k6,void 0,U))}function OT($,Z,G,Y){if(A1&&!(Z<=$)){var U=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,G,$,Z,o0,r0,U)):console.timeStamp(G,$,Z,o0,r0,U)}}function jB($,Z,G,Y){!A1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,o0,r0,G)):console.timeStamp("Prewarm",$,Z,o0,r0,G))}function DB($,Z,G,Y){!A1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,o0,r0,G)):console.timeStamp("Suspended",$,Z,o0,r0,G))}function VT($,Z,G,Y,U,B){if(A1&&!(Z<=$)){G=[];for(var W=0;W<Y.length;W++){var z=Y[W].value;G.push(["Recoverable Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:o0,trackGroup:r0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function nX($,Z,G,Y){!A1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,o0,r0,"error")):console.timeStamp("Errored",$,Z,o0,r0,"error"))}function AT($,Z,G,Y){!A1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G,$,Z,o0,r0,"secondary-light")):console.timeStamp(G,$,Z,o0,r0,"secondary-light"))}function vB($,Z,G,Y,U){if(A1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var z=G[W].value;B.push(["Error",typeof z==="object"&&z!==null&&typeof z.message==="string"?String(z.message):String(z)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:o0,trackGroup:r0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function p$($,Z,G){!A1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,o0,r0,"secondary-dark")):console.timeStamp("Animating",$,Z,o0,r0,"secondary-dark"))}function CJ(){for(var $=u9,Z=zN=u9=0;Z<$;){var G=f6[Z];f6[Z++]=null;var Y=f6[Z];f6[Z++]=null;var U=f6[Z];f6[Z++]=null;var B=f6[Z];if(f6[Z++]=null,Y!==null&&U!==null){var W=Y.pending;W===null?U.next=U:(U.next=W.next,W.next=U),Y.pending=U}B!==0&&bB(G,U,B)}}function IJ($,Z,G,Y){f6[u9++]=$,f6[u9++]=Z,f6[u9++]=G,f6[u9++]=Y,zN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function sX($,Z,G,Y){return IJ($,Z,G,Y),OJ($)}function j5($,Z){return IJ($,null,null,Z),OJ($)}function bB($,Z,G){$.lanes|=G;var Y=$.alternate;Y!==null&&(Y.lanes|=G);for(var U=!1,B=$.return;B!==null;)B.childLanes|=G,Y=B.alternate,Y!==null&&(Y.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&SZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-u5(G),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=G|536870912),B):null}function OJ($){if(QQ>LO)throw j7=QQ=0,JQ=iN=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");j7>PO&&(j7=0,JQ=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),$.alternate===null&&($.flags&4098)!==0&&oF($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&oF($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function Q7($){if(y6===null)return $;var Z=y6($);return Z===void 0?$:Z.current}function oX($){if(y6===null)return $;var Z=y6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=Q7($.render),$.render!==Z)?(Z={$$typeof:RZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function kB($,Z){if(y6===null)return!1;var G=$.elementType;Z=Z.type;var Y=!1,U=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch($.tag){case 1:typeof Z==="function"&&(Y=!0);break;case 0:typeof Z==="function"?Y=!0:U===P6&&(Y=!0);break;case 11:U===RZ?Y=!0:U===P6&&(Y=!0);break;case 14:case 15:U===TG?Y=!0:U===P6&&(Y=!0);break;default:return!1}return Y&&($=y6(G),$!==void 0&&$===y6(Z))?!0:!1}function fB($){y6!==null&&typeof WeakSet==="function"&&(x9===null&&(x9=new WeakSet),x9.add($))}function yB($,Z,G){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,z=Y.tag;Y=Y.type;var L=null;switch(z){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(y6===null)throw Error("Expected resolveFamily to be set during hot reload.");var T=!1;if(Y=!1,L!==null&&(L=y6(L),L!==void 0&&(G.has(L)?Y=!0:Z.has(L)&&(z===1?Y=!0:T=!0))),x9!==null&&(x9.has($)||U!==null&&x9.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||T)U=j5($,2),U!==null&&h1(U,$,2);if(B===null||Y||yB(B,Z,G),W===null)break;$=W}while(1)}function ET($,Z,G,Y){this.tag=$,this.key=G,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,mW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function aX($){return $=$.prototype,!(!$||!$.isReactComponent)}function $2($,Z){var G=$.alternate;switch(G===null?(G=P($.tag,Z,$.key,$.mode),G.elementType=$.elementType,G.type=$.type,G.stateNode=$.stateNode,G._debugOwner=$._debugOwner,G._debugStack=$._debugStack,G._debugTask=$._debugTask,G._debugHookTypes=$._debugHookTypes,G.alternate=$,$.alternate=G):(G.pendingProps=Z,G.type=$.type,G.flags=0,G.subtreeFlags=0,G.deletions=null,G.actualDuration=-0,G.actualStartTime=-1.1),G.flags=$.flags&65011712,G.childLanes=$.childLanes,G.lanes=$.lanes,G.child=$.child,G.memoizedProps=$.memoizedProps,G.memoizedState=$.memoizedState,G.updateQueue=$.updateQueue,Z=$.dependencies,G.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},G.sibling=$.sibling,G.index=$.index,G.ref=$.ref,G.refCleanup=$.refCleanup,G.selfBaseDuration=$.selfBaseDuration,G.treeBaseDuration=$.treeBaseDuration,G._debugInfo=$._debugInfo,G._debugNeedsRemount=$._debugNeedsRemount,G.tag){case 0:case 15:G.type=Q7($.type);break;case 1:G.type=Q7($.type);break;case 11:G.type=oX($.type)}return G}function gB($,Z){$.flags&=65011714;var G=$.alternate;return G===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=G.childLanes,$.lanes=G.lanes,$.child=G.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=G.memoizedProps,$.memoizedState=G.memoizedState,$.updateQueue=G.updateQueue,$.type=G.type,Z=G.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=G.selfBaseDuration,$.treeBaseDuration=G.treeBaseDuration),$}function iX($,Z,G,Y,U,B){var W=0,z=$;if(typeof $==="function")aX($)&&(W=1),z=Q7(z);else if(typeof $==="string")W=F0(),W=gC($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case pY:return Z=P(31,G,Z,U),Z.elementType=pY,Z.lanes=B,Z;case E9:return J7(G.children,U,B,Z);case PG:W=8,U|=v5,U|=q4;break;case uY:return $=G,Y=U,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=P(12,$,Z,Y|g0),Z.elementType=uY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case mY:return Z=P(13,G,Z,U),Z.elementType=mY,Z.lanes=B,Z;case dY:return Z=P(19,G,Z,U),Z.elementType=dY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case v4:W=10;break $;case xY:W=9;break $;case RZ:W=11,z=oX(z);break $;case TG:W=14;break $;case P6:W=16,z=null;break $}if(z="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?G="null":q5($)?G="array":$!==void 0&&$.$$typeof===D4?(G="<"+(i($.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=Y?Y0(Y):null)&&(z+=`
|
|
72
72
|
|
|
73
|
-
Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(G+"."+z)),z=null}return Z=P(W,G,Z,U),Z.elementType=$,Z.type=z,Z.lanes=B,Z._debugOwner=Y,Z}function VJ($,Z,G){return Z=iX($.type,$.key,$.props,$._owner,Z,G),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function
|
|
73
|
+
Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(G+"."+z)),z=null}return Z=P(W,G,Z,U),Z.elementType=$,Z.type=z,Z.lanes=B,Z._debugOwner=Y,Z}function VJ($,Z,G){return Z=iX($.type,$.key,$.props,$._owner,Z,G),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function J7($,Z,G,Y){return $=P(7,$,Y,Z),$.lanes=G,$}function tX($,Z,G){return $=P(6,$,null,Z),$.lanes=G,$}function hB($){var Z=P(18,null,null,V0);return Z.stateNode=$,Z}function eX($,Z,G){return Z=P(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=G,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function W6($,Z){if(typeof $==="object"&&$!==null){var G=_N.get($);if(G!==void 0)return G;return Z={value:$,source:Z,stack:i1(Z)},_N.set($,Z),Z}return{value:$,source:Z,stack:i1(Z)}}function Z2($,Z){d2(),m9[d9++]=jZ,m9[d9++]=gG,gG=$,jZ=Z}function uB($,Z,G){d2(),g6[h6++]=K2,g6[h6++]=B2,g6[h6++]=w7,w7=$;var Y=K2;$=B2;var U=32-u5(Y)-1;Y&=~(1<<U),G+=1;var B=32-u5(Z)+U;if(30<B){var W=U-U%5;B=(Y&(1<<W)-1).toString(32),Y>>=W,U-=W,K2=1<<32-u5(Z)+U|G<<U|Y,B2=B+$}else K2=1<<B|G<<U|Y,B2=$}function $q($){d2(),$.return!==null&&(Z2($,1),uB($,1,0))}function Zq($){for(;$===gG;)gG=m9[--d9],m9[d9]=null,jZ=m9[--d9],m9[d9]=null;for(;$===w7;)w7=g6[--h6],g6[h6]=null,B2=g6[--h6],g6[h6]=null,K2=g6[--h6],g6[h6]=null}function xB(){return d2(),w7!==null?{id:K2,overflow:B2}:null}function mB($,Z){d2(),g6[h6++]=K2,g6[h6++]=B2,g6[h6++]=w7,K2=Z.id,B2=Z.overflow,w7=$}function d2(){i0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function G7($,Z){if($.return===null){if(I6===null)I6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(I6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");I6.distanceFromLeaf>Z&&(I6.distanceFromLeaf=Z)}return I6}var G=G7($.return,Z+1).children;if(0<G.length&&G[G.length-1].fiber===$)return G=G[G.length-1],G.distanceFromLeaf>Z&&(G.distanceFromLeaf=Z),G;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},G.push(Z),Z}function dB(){i0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function AJ($,Z){h4||($=G7($,0),$.serverProps=null,Z!==null&&(Z=LM(Z),$.serverTail.push(Z)))}function p2($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,G="",Y=I6;throw Y!==null&&(I6=null,G=xX(Y)),c$(W6(Error("Hydration failed because the server rendered "+(Z?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
74
74
|
|
|
75
75
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
76
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -80,7 +80,7 @@ Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: ex
|
|
|
80
80
|
|
|
81
81
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
82
82
|
|
|
83
|
-
https://react.dev/link/hydration-mismatch`+G),$)),LN}function pB($){var{stateNode:Z,type:G,memoizedProps:Y}=$;switch(Z[P5]=$,Z[x5]=Y,PY(G,Y),G){case"dialog":t0("cancel",Z),t0("close",Z);break;case"iframe":case"object":case"embed":t0("load",Z);break;case"video":case"audio":for(G=0;G<GQ.length;G++)t0(GQ[G],Z);break;case"source":t0("error",Z);break;case"img":case"image":case"link":t0("error",Z),t0("load",Z);break;case"details":t0("toggle",Z);break;case"input":m2("input",Y),t0("invalid",Z),oK(Z,Y),aK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":iK(Z,Y);break;case"select":m2("select",Y),t0("invalid",Z),eK(Z,Y);break;case"textarea":m2("textarea",Y),t0("invalid",Z),$B(Z,Y),QB(Z,Y.value,Y.defaultValue,Y.children)}G=Y.children,typeof G!=="string"&&typeof G!=="number"&&typeof G!=="bigint"||Z.textContent===""+G||Y.suppressHydrationWarning===!0||qM(Z.textContent,G)?(Y.popover!=null&&(t0("beforetoggle",Z),t0("toggle",Z)),Y.onScroll!=null&&t0("scroll",Z),Y.onScrollEnd!=null&&t0("scrollend",Z),Y.onClick!=null&&(Z.onclick=e4),Z=!0):Z=!1,Z||p2($,!0)}function cB($){for(T5=$.return;T5;)switch(T5.tag){case 5:case 31:case 13:u6=!1;return;case 27:case 3:u6=!0;return;default:T5=T5.return}}function
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+G),$)),LN}function pB($){var{stateNode:Z,type:G,memoizedProps:Y}=$;switch(Z[P5]=$,Z[x5]=Y,PY(G,Y),G){case"dialog":t0("cancel",Z),t0("close",Z);break;case"iframe":case"object":case"embed":t0("load",Z);break;case"video":case"audio":for(G=0;G<GQ.length;G++)t0(GQ[G],Z);break;case"source":t0("error",Z);break;case"img":case"image":case"link":t0("error",Z),t0("load",Z);break;case"details":t0("toggle",Z);break;case"input":m2("input",Y),t0("invalid",Z),oK(Z,Y),aK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":iK(Z,Y);break;case"select":m2("select",Y),t0("invalid",Z),eK(Z,Y);break;case"textarea":m2("textarea",Y),t0("invalid",Z),$B(Z,Y),QB(Z,Y.value,Y.defaultValue,Y.children)}G=Y.children,typeof G!=="string"&&typeof G!=="number"&&typeof G!=="bigint"||Z.textContent===""+G||Y.suppressHydrationWarning===!0||qM(Z.textContent,G)?(Y.popover!=null&&(t0("beforetoggle",Z),t0("toggle",Z)),Y.onScroll!=null&&t0("scroll",Z),Y.onScrollEnd!=null&&t0("scrollend",Z),Y.onClick!=null&&(Z.onclick=e4),Z=!0):Z=!1,Z||p2($,!0)}function cB($){for(T5=$.return;T5;)switch(T5.tag){case 5:case 31:case 13:u6=!1;return;case 27:case 3:u6=!0;return;default:T5=T5.return}}function H9($){if($!==T5)return!1;if(!i0)return cB($),i0=!0,!1;var Z=$.tag,G;if(G=Z!==3&&Z!==27){if(G=Z===5)G=$.type,G=!(G!=="form"&&G!=="button")||VY($.type,$.memoizedProps);G=!G}if(G&&E1){for(G=E1;G;){var Y=G7($,0),U=LM(G);Y.serverTail.push(U),G=U.type==="Suspense"?jY(G):L6(G.nextSibling)}p2($)}if(cB($),Z===13){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");E1=jY($)}else if(Z===31){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");E1=jY($)}else Z===27?(Z=E1,e2($.type)?($=UU,UU=null,E1=$):E1=Z):E1=T5?L6($.stateNode.nextSibling):null;return!0}function X7(){E1=T5=null,h4=i0=!1}function Qq(){var $=N8;return $!==null&&(r5===null?r5=$:r5.push.apply(r5,$),N8=null),$}function c$($){N8===null?N8=[$]:N8.push($)}function Jq(){var $=I6;if($!==null){I6=null;for(var Z=xX($);0<$.children.length;)$=$.children[0];X0($.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
84
84
|
|
|
85
85
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
86
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -90,33 +90,33 @@ https://react.dev/link/hydration-mismatch`+G),$)),LN}function pB($){var{stateNod
|
|
|
90
90
|
|
|
91
91
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
92
|
|
|
93
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function EJ(){
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function EJ(){p9=hG=null,c9=!1}function c2($,Z,G){I0(PN,Z._currentValue,$),Z._currentValue=G,I0(TN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==pW&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=pW}function Q2($,Z){$._currentValue=PN.current;var G=TN.current;P0(TN,Z),$._currentRenderer=G,P0(PN,Z)}function Gq($,Z,G){for(;$!==null;){var Y=$.alternate;if(($.childLanes&Z)!==Z?($.childLanes|=Z,Y!==null&&(Y.childLanes|=Z)):Y!==null&&(Y.childLanes&Z)!==Z&&(Y.childLanes|=Z),$===G)break;$=$.return}$!==G&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Xq($,Z,G,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var W=U.child;B=B.firstContext;$:for(;B!==null;){var z=B;B=U;for(var L=0;L<Z.length;L++)if(z.context===Z[L]){B.lanes|=G,z=B.alternate,z!==null&&(z.lanes|=G),Gq(B.return,G,$),Y||(W=null);break $}B=z.next}}else if(U.tag===18){if(W=U.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=G,B=W.alternate,B!==null&&(B.lanes|=G),Gq(W,G,$),W=null}else W=U.child;if(W!==null)W.return=U;else for(W=U;W!==null;){if(W===$){W=null;break}if(U=W.sibling,U!==null){U.return=W.return,W=U;break}W=W.return}U=W}}function F9($,Z,G,Y){$=null;for(var U=Z,B=!1;U!==null;){if(!B){if((U.flags&524288)!==0)B=!0;else if((U.flags&262144)!==0)break}if(U.tag===10){var W=U.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var z=U.type;d5(U.pendingProps.value,W.value)||($!==null?$.push(z):$=[z])}}else if(U===CG.current){if(W=U.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(UQ):$=[UQ])}U=U.return}$!==null&&Xq(Z,$,G,Y),Z.flags|=262144}function SJ($){for($=$.firstContext;$!==null;){if(!d5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function q7($){hG=$,p9=null,$=$.dependencies,$!==null&&($.firstContext=null)}function v1($){return c9&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),lB(hG,$)}function jJ($,Z){return hG===null&&q7($),lB($,Z)}function lB($,Z){var G=Z._currentValue;if(Z={context:Z,memoizedValue:G,next:null},p9===null){if($===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");p9=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else p9=p9.next=Z;return G}function qq(){return{controller:new NO,data:new Map,refCount:0}}function Y7($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function l$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&UO(KO,function(){$.controller.abort()})}function z4($,Z,G){if(($&127)!==0)0>u4&&(u4=e1(),vZ=uG(Z),CN=Z,G!=null&&(IN=d(G)),(Z1&(N5|A6))!==w5&&(u1=!0,B8=DZ),$=HZ(),Z=BZ(),$!==l9||Z!==bZ?l9=-1.1:Z!==null&&(B8=DZ),z7=$,bZ=Z);else if(($&4194048)!==0&&0>x6&&(x6=e1(),kZ=uG(Z),cW=Z,G!=null&&(lW=d(G)),0>M2)){if($=HZ(),Z=BZ(),$!==F8||Z!==_7)F8=-1.1;H8=$,_7=Z}}function ST($){if(0>u4){u4=e1(),vZ=$._debugTask!=null?$._debugTask:null,(Z1&(N5|A6))!==w5&&(B8=DZ);var Z=HZ(),G=BZ();Z!==l9||G!==bZ?l9=-1.1:G!==null&&(B8=DZ),z7=Z,bZ=G}if(0>x6&&(x6=e1(),kZ=$._debugTask!=null?$._debugTask:null,0>M2)){if($=HZ(),Z=BZ(),$!==F8||Z!==_7)F8=-1.1;H8=$,_7=Z}}function J2(){var $=R7;return R7=0,$}function DJ($){var Z=R7;return R7=$,Z}function r$($){var Z=R7;return R7+=$,Z}function vJ(){T0=L0=-1.1}function w6(){var $=L0;return L0=-1.1,$}function R6($){0<=$&&(L0=$)}function _4(){var $=k1;return k1=-0,$}function L4($){0<=$&&(k1=$)}function P4(){var $=b1;return b1=null,$}function T4(){var $=u1;return u1=!1,$}function Yq($){p5=e1(),0>$.actualStartTime&&($.actualStartTime=p5)}function Nq($){if(0<=p5){var Z=e1()-p5;$.actualDuration+=Z,$.selfBaseDuration=Z,p5=-1}}function rB($){if(0<=p5){var Z=e1()-p5;$.actualDuration+=Z,p5=-1}}function C4(){if(0<=p5){var $=e1(),Z=$-p5;p5=-1,R7+=Z,k1+=Z,T0=$}}function nB($){b1===null&&(b1=[]),b1.push($),F2===null&&(F2=[]),F2.push($)}function I4(){p5=e1(),0>L0&&(L0=p5)}function n$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function jT($,Z){if(yZ===null){var G=yZ=[];VN=0,L7=RY(),r9={status:"pending",value:void 0,then:function(Y){G.push(Y)}}}return VN++,Z.then(sB,sB),Z}function sB(){if(--VN===0&&(-1<x6||(M2=-1.1),yZ!==null)){r9!==null&&(r9.status="fulfilled");var $=yZ;yZ=null,L7=0,r9=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function DT($,Z){var G=[],Y={status:"pending",value:null,reason:null,then:function(U){G.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<G.length;U++)(0,G[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<G.length;U++)(0,G[U])(void 0)}),Y}function Uq(){var $=P7.current;return $!==null?$:P1.pooledCache}function bJ($,Z){Z===null?I0(P7,P7.current,$):I0(P7,Z.pool,$)}function oB(){var $=Uq();return $===null?null:{parent:t1._currentValue,pool:$}}function aB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function iB($){return $=$.status,$==="fulfilled"||$==="rejected"}function tB($,Z,G){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(G=Y[G],G===void 0?Y.push(Z):G!==Z&&($.didWarnAboutUncachedPromise||($.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),Z.then(e4,e4),Z=G),Z._debugInfo===void 0){$=performance.now(),Y=Z.displayName;var U={name:typeof Y==="string"?Y:"Promise",start:$,end:$,value:Z};Z._debugInfo=[{awaited:U}],Z.status!=="fulfilled"&&Z.status!=="rejected"&&($=function(){U.end=performance.now()},Z.then($,$))}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,$H($),$;default:if(typeof Z.status==="string")Z.then(e4,e4);else{if($=P1,$!==null&&100<$.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");$=Z,$.status="pending",$.then(function(B){if(Z.status==="pending"){var W=Z;W.status="fulfilled",W.value=B}},function(B){if(Z.status==="pending"){var W=Z;W.status="rejected",W.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,$H($),$}throw C7=Z,pZ=!0,n9}}function l2($){try{return MO($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw C7=Z,pZ=!0,n9;throw Z}}function eB(){if(C7===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=C7;return C7=null,pZ=!1,$}function $H($){if($===n9||$===nG)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function z5($){var Z=h0;return $!=null&&(h0=Z===null?$:Z.concat($)),Z}function Kq(){var $=h0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var G=$[Z].debugTask;if(G!=null)return G}}return null}function kJ($,Z,G){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var B=Y[U];if(B!=="children"&&B!=="key"){Z===null&&(Z=VJ($,G.mode,0),Z._debugInfo=h0,Z.return=G),X0(Z,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},B);break}}}function fJ($){var Z=cZ;return cZ+=1,s9===null&&(s9=aB()),tB(s9,$,Z)}function s$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function ZH($,Z){if(Z.$$typeof===nC)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
94
|
- Multiple copies of the "react" package is used.
|
|
95
95
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
96
|
- A compiler tries to "inline" JSX instead of using the runtime.`);throw $=Object.prototype.toString.call(Z),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}function yJ($,Z){var G=Kq();G!==null?G.run(ZH.bind(null,$,Z)):ZH($,Z)}function QH($,Z){var G=d($)||"Component";Bw[G]||(Bw[G]=!0,Z=Z.displayName||Z.name||"Component",$.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
97
97
|
root.render(%s)`,Z,Z,Z):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
98
98
|
<%s>{%s}</%s>`,Z,Z,G,Z,G))}function gJ($,Z){var G=Kq();G!==null?G.run(QH.bind(null,$,Z)):QH($,Z)}function JH($,Z){var G=d($)||"Component";Hw[G]||(Hw[G]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
99
|
root.render(%s)`,Z):console.error(`Symbols are not valid as a React child.
|
|
100
|
-
<%s>%s</%s>`,G,Z,G))}function hJ($,Z){var G=Kq();G!==null?G.run(JH.bind(null,$,Z)):JH($,Z)}function GH($){function Z(E,j){if($){var b=E.deletions;b===null?(E.deletions=[j],E.flags|=16):b.push(j)}}function G(E,j){if(!$)return null;for(;j!==null;)Z(E,j),j=j.sibling;return null}function Y(E){for(var j=new Map;E!==null;)E.key!==null?j.set(E.key,E):j.set(E.index,E),E=E.sibling;return j}function U(E,j){return E=$2(E,j),E.index=0,E.sibling=null,E}function B(E,j,b){if(E.index=b,!$)return E.flags|=1048576,j;if(b=E.alternate,b!==null)return b=b.index,b<j?(E.flags|=67108866,j):b;return E.flags|=67108866,j}function W(E){return $&&E.alternate===null&&(E.flags|=67108866),E}function z(E,j,b,m){if(j===null||j.tag!==6)return j=tX(b,E.mode,m),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=h0,j;return j=U(j,b),j.return=E,j._debugInfo=h0,j}function L(E,j,b,m){var Q0=b.type;if(Q0===E7)return j=k(E,j,b.props.children,m,b.key),kJ(b,j,E),j;if(j!==null&&(j.elementType===Q0||kB(j,b)||typeof Q0==="object"&&Q0!==null&&Q0.$$typeof===P6&&l2(Q0)===j.type))return j=U(j,b.props),s$(j,b),j.return=E,j._debugOwner=b._owner,j._debugInfo=h0,j;return j=VJ(b,E.mode,m),s$(j,b),j.return=E,j._debugInfo=h0,j}function T(E,j,b,m){if(j===null||j.tag!==4||j.stateNode.containerInfo!==b.containerInfo||j.stateNode.implementation!==b.implementation)return j=eX(b,E.mode,m),j.return=E,j._debugInfo=h0,j;return j=U(j,b.children||[]),j.return=E,j._debugInfo=h0,j}function k(E,j,b,m,Q0){if(j===null||j.tag!==7)return j=J9(b,E.mode,m,Q0),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=h0,j;return j=U(j,b),j.return=E,j._debugInfo=h0,j}function f(E,j,b){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=tX(""+j,E.mode,b),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=h0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case D4:return b=VJ(j,E.mode,b),s$(b,j),b.return=E,E=z5(j._debugInfo),b._debugInfo=h0,h0=E,b;case A7:return j=eX(j,E.mode,b),j.return=E,j._debugInfo=h0,j;case P6:var m=z5(j._debugInfo);return j=l2(j),E=f(E,j,b),h0=m,E}if(q5(j)||t(j))return b=J9(j,E.mode,b,null),b.return=E,b._debugOwner=E,b._debugTask=E._debugTask,E=z5(j._debugInfo),b._debugInfo=h0,h0=E,b;if(typeof j.then==="function")return m=z5(j._debugInfo),E=f(E,fJ(j),b),h0=m,E;if(j.$$typeof===v4)return f(E,jJ(E,j),b);yJ(E,j)}return typeof j==="function"&&gJ(E,j),typeof j==="symbol"&&hJ(E,j),null}function S(E,j,b,m){var Q0=j!==null?j.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0!==null?null:z(E,j,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case D4:return b.key===Q0?(Q0=z5(b._debugInfo),E=L(E,j,b,m),h0=Q0,E):null;case A7:return b.key===Q0?T(E,j,b,m):null;case P6:return Q0=z5(b._debugInfo),b=l2(b),E=S(E,j,b,m),h0=Q0,E}if(q5(b)||t(b)){if(Q0!==null)return null;return Q0=z5(b._debugInfo),E=k(E,j,b,m,null),h0=Q0,E}if(typeof b.then==="function")return Q0=z5(b._debugInfo),E=S(E,j,fJ(b),m),h0=Q0,E;if(b.$$typeof===v4)return S(E,j,jJ(E,b),m);yJ(E,b)}return typeof b==="function"&&gJ(E,b),typeof b==="symbol"&&hJ(E,b),null}function g(E,j,b,m,Q0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return E=E.get(b)||null,z(j,E,""+m,Q0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case D4:return b=E.get(m.key===null?b:m.key)||null,E=z5(m._debugInfo),j=L(j,b,m,Q0),h0=E,j;case A7:return E=E.get(m.key===null?b:m.key)||null,T(j,E,m,Q0);case P6:var E0=z5(m._debugInfo);return m=l2(m),j=g(E,j,b,m,Q0),h0=E0,j}if(q5(m)||t(m))return b=E.get(b)||null,E=z5(m._debugInfo),j=k(j,b,m,Q0,null),h0=E,j;if(typeof m.then==="function")return E0=z5(m._debugInfo),j=g(E,j,b,fJ(m),Q0),h0=E0,j;if(m.$$typeof===v4)return g(E,j,b,jJ(j,m),Q0);yJ(j,m)}return typeof m==="function"&&gJ(j,m),typeof m==="symbol"&&hJ(j,m),null}function $0(E,j,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case D4:case A7:R(E,j,b);var Q0=b.key;if(typeof Q0!=="string")break;if(m===null){m=new Set,m.add(Q0);break}if(!m.has(Q0)){m.add(Q0);break}X0(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Q0)});break;case P6:b=l2(b),$0(E,j,b,m)}return m}function G0(E,j,b,m){for(var Q0=null,E0=null,z0=null,B0=j,f0=j=0,S1=null;B0!==null&&f0<b.length;f0++){B0.index>f0?(S1=B0,B0=null):S1=B0.sibling;var n1=S(E,B0,b[f0],m);if(n1===null){B0===null&&(B0=S1);break}Q0=$0(E,n1,b[f0],Q0),$&&B0&&n1.alternate===null&&Z(E,B0),j=B(n1,j,f0),z0===null?E0=n1:z0.sibling=n1,z0=n1,B0=S1}if(f0===b.length)return G(E,B0),i0&&Z2(E,f0),E0;if(B0===null){for(;f0<b.length;f0++)B0=f(E,b[f0],m),B0!==null&&(Q0=$0(E,B0,b[f0],Q0),j=B(B0,j,f0),z0===null?E0=B0:z0.sibling=B0,z0=B0);return i0&&Z2(E,f0),E0}for(B0=Y(B0);f0<b.length;f0++)S1=g(B0,E,f0,b[f0],m),S1!==null&&(Q0=$0(E,S1,b[f0],Q0),$&&S1.alternate!==null&&B0.delete(S1.key===null?f0:S1.key),j=B(S1,j,f0),z0===null?E0=S1:z0.sibling=S1,z0=S1);return $&&B0.forEach(function(C2){return Z(E,C2)}),i0&&Z2(E,f0),E0}function O1(E,j,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Q0=null,E0=null,z0=j,B0=j=0,f0=null,S1=null,n1=b.next();z0!==null&&!n1.done;B0++,n1=b.next()){z0.index>B0?(f0=z0,z0=null):f0=z0.sibling;var C2=S(E,z0,n1.value,m);if(C2===null){z0===null&&(z0=f0);break}S1=$0(E,C2,n1.value,S1),$&&z0&&C2.alternate===null&&Z(E,z0),j=B(C2,j,B0),E0===null?Q0=C2:E0.sibling=C2,E0=C2,z0=f0}if(n1.done)return G(E,z0),i0&&Z2(E,B0),Q0;if(z0===null){for(;!n1.done;B0++,n1=b.next())z0=f(E,n1.value,m),z0!==null&&(S1=$0(E,z0,n1.value,S1),j=B(z0,j,B0),E0===null?Q0=z0:E0.sibling=z0,E0=z0);return i0&&Z2(E,B0),Q0}for(z0=Y(z0);!n1.done;B0++,n1=b.next())f0=g(z0,E,B0,n1.value,m),f0!==null&&(S1=$0(E,f0,n1.value,S1),$&&f0.alternate!==null&&z0.delete(f0.key===null?B0:f0.key),j=B(f0,j,B0),E0===null?Q0=f0:E0.sibling=f0,E0=f0);return $&&z0.forEach(function(hO){return Z(E,hO)}),i0&&Z2(E,B0),Q0}function e0(E,j,b,m){if(typeof b==="object"&&b!==null&&b.type===E7&&b.key===null&&(kJ(b,null,E),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case D4:var Q0=z5(b._debugInfo);$:{for(var E0=b.key;j!==null;){if(j.key===E0){if(E0=b.type,E0===E7){if(j.tag===7){G(E,j.sibling),m=U(j,b.props.children),m.return=E,m._debugOwner=b._owner,m._debugInfo=h0,kJ(b,m,E),E=m;break $}}else if(j.elementType===E0||kB(j,b)||typeof E0==="object"&&E0!==null&&E0.$$typeof===P6&&l2(E0)===j.type){G(E,j.sibling),m=U(j,b.props),s$(m,b),m.return=E,m._debugOwner=b._owner,m._debugInfo=h0,E=m;break $}G(E,j);break}else Z(E,j);j=j.sibling}b.type===E7?(m=J9(b.props.children,E.mode,m,b.key),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=h0,kJ(b,m,E),E=m):(m=VJ(b,E.mode,m),s$(m,b),m.return=E,m._debugInfo=h0,E=m)}return E=W(E),h0=Q0,E;case A7:$:{Q0=b;for(b=Q0.key;j!==null;){if(j.key===b)if(j.tag===4&&j.stateNode.containerInfo===Q0.containerInfo&&j.stateNode.implementation===Q0.implementation){G(E,j.sibling),m=U(j,Q0.children||[]),m.return=E,E=m;break $}else{G(E,j);break}else Z(E,j);j=j.sibling}m=eX(Q0,E.mode,m),m.return=E,E=m}return W(E);case P6:return Q0=z5(b._debugInfo),b=l2(b),E=e0(E,j,b,m),h0=Q0,E}if(q5(b))return Q0=z5(b._debugInfo),E=G0(E,j,b,m),h0=Q0,E;if(t(b)){if(Q0=z5(b._debugInfo),E0=t(b),typeof E0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var z0=E0.call(b);if(z0===b){if(E.tag!==0||Object.prototype.toString.call(E.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(z0)!=="[object Generator]")Uw||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Uw=!0}else b.entries!==E0||jN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jN=!0);return E=O1(E,j,z0,m),h0=Q0,E}if(typeof b.then==="function")return Q0=z5(b._debugInfo),E=e0(E,j,fJ(b),m),h0=Q0,E;if(b.$$typeof===v4)return e0(E,j,jJ(E,b),m);yJ(E,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0=""+b,j!==null&&j.tag===6?(G(E,j.sibling),m=U(j,Q0),m.return=E,E=m):(G(E,j),m=tX(Q0,E.mode,m),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=h0,E=m),W(E);return typeof b==="function"&&gJ(E,b),typeof b==="symbol"&&hJ(E,b),G(E,j)}return function(E,j,b,m){var Q0=h0;h0=null;try{cZ=0;var E0=e0(E,j,b,m);return s7=null,E0}catch(S1){if(S1===n7||S1===nG)throw S1;var z0=P(29,S1,null,E.mode);z0.lanes=m,z0.return=E;var B0=z0._debugInfo=h0;if(z0._debugOwner=E._debugOwner,z0._debugTask=E._debugTask,B0!=null){for(var f0=B0.length-1;0<=f0;f0--)if(typeof B0[f0].stack==="string"){z0._debugOwner=B0[f0],z0._debugTask=B0[f0].debugTask;break}}return z0}finally{h0=Q0}}}function XH($,Z){var G=q5($);return $=!G&&typeof t($)==="function",G||$?(G=G?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",G,Z,G),!1):!0}function Bq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function r2($){return{lane:$,tag:Mw,payload:null,callback:null,next:null}}function n2($,Z,G){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,vN===Y&&!Rw){var U=d($);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
100
|
+
<%s>%s</%s>`,G,Z,G))}function hJ($,Z){var G=Kq();G!==null?G.run(JH.bind(null,$,Z)):JH($,Z)}function GH($){function Z(E,j){if($){var b=E.deletions;b===null?(E.deletions=[j],E.flags|=16):b.push(j)}}function G(E,j){if(!$)return null;for(;j!==null;)Z(E,j),j=j.sibling;return null}function Y(E){for(var j=new Map;E!==null;)E.key!==null?j.set(E.key,E):j.set(E.index,E),E=E.sibling;return j}function U(E,j){return E=$2(E,j),E.index=0,E.sibling=null,E}function B(E,j,b){if(E.index=b,!$)return E.flags|=1048576,j;if(b=E.alternate,b!==null)return b=b.index,b<j?(E.flags|=67108866,j):b;return E.flags|=67108866,j}function W(E){return $&&E.alternate===null&&(E.flags|=67108866),E}function z(E,j,b,m){if(j===null||j.tag!==6)return j=tX(b,E.mode,m),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=h0,j;return j=U(j,b),j.return=E,j._debugInfo=h0,j}function L(E,j,b,m){var Q0=b.type;if(Q0===E9)return j=k(E,j,b.props.children,m,b.key),kJ(b,j,E),j;if(j!==null&&(j.elementType===Q0||kB(j,b)||typeof Q0==="object"&&Q0!==null&&Q0.$$typeof===P6&&l2(Q0)===j.type))return j=U(j,b.props),s$(j,b),j.return=E,j._debugOwner=b._owner,j._debugInfo=h0,j;return j=VJ(b,E.mode,m),s$(j,b),j.return=E,j._debugInfo=h0,j}function T(E,j,b,m){if(j===null||j.tag!==4||j.stateNode.containerInfo!==b.containerInfo||j.stateNode.implementation!==b.implementation)return j=eX(b,E.mode,m),j.return=E,j._debugInfo=h0,j;return j=U(j,b.children||[]),j.return=E,j._debugInfo=h0,j}function k(E,j,b,m,Q0){if(j===null||j.tag!==7)return j=J7(b,E.mode,m,Q0),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=h0,j;return j=U(j,b),j.return=E,j._debugInfo=h0,j}function f(E,j,b){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=tX(""+j,E.mode,b),j.return=E,j._debugOwner=E,j._debugTask=E._debugTask,j._debugInfo=h0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case D4:return b=VJ(j,E.mode,b),s$(b,j),b.return=E,E=z5(j._debugInfo),b._debugInfo=h0,h0=E,b;case A9:return j=eX(j,E.mode,b),j.return=E,j._debugInfo=h0,j;case P6:var m=z5(j._debugInfo);return j=l2(j),E=f(E,j,b),h0=m,E}if(q5(j)||t(j))return b=J7(j,E.mode,b,null),b.return=E,b._debugOwner=E,b._debugTask=E._debugTask,E=z5(j._debugInfo),b._debugInfo=h0,h0=E,b;if(typeof j.then==="function")return m=z5(j._debugInfo),E=f(E,fJ(j),b),h0=m,E;if(j.$$typeof===v4)return f(E,jJ(E,j),b);yJ(E,j)}return typeof j==="function"&&gJ(E,j),typeof j==="symbol"&&hJ(E,j),null}function S(E,j,b,m){var Q0=j!==null?j.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0!==null?null:z(E,j,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case D4:return b.key===Q0?(Q0=z5(b._debugInfo),E=L(E,j,b,m),h0=Q0,E):null;case A9:return b.key===Q0?T(E,j,b,m):null;case P6:return Q0=z5(b._debugInfo),b=l2(b),E=S(E,j,b,m),h0=Q0,E}if(q5(b)||t(b)){if(Q0!==null)return null;return Q0=z5(b._debugInfo),E=k(E,j,b,m,null),h0=Q0,E}if(typeof b.then==="function")return Q0=z5(b._debugInfo),E=S(E,j,fJ(b),m),h0=Q0,E;if(b.$$typeof===v4)return S(E,j,jJ(E,b),m);yJ(E,b)}return typeof b==="function"&&gJ(E,b),typeof b==="symbol"&&hJ(E,b),null}function g(E,j,b,m,Q0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return E=E.get(b)||null,z(j,E,""+m,Q0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case D4:return b=E.get(m.key===null?b:m.key)||null,E=z5(m._debugInfo),j=L(j,b,m,Q0),h0=E,j;case A9:return E=E.get(m.key===null?b:m.key)||null,T(j,E,m,Q0);case P6:var E0=z5(m._debugInfo);return m=l2(m),j=g(E,j,b,m,Q0),h0=E0,j}if(q5(m)||t(m))return b=E.get(b)||null,E=z5(m._debugInfo),j=k(j,b,m,Q0,null),h0=E,j;if(typeof m.then==="function")return E0=z5(m._debugInfo),j=g(E,j,b,fJ(m),Q0),h0=E0,j;if(m.$$typeof===v4)return g(E,j,b,jJ(j,m),Q0);yJ(j,m)}return typeof m==="function"&&gJ(j,m),typeof m==="symbol"&&hJ(j,m),null}function $0(E,j,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case D4:case A9:R(E,j,b);var Q0=b.key;if(typeof Q0!=="string")break;if(m===null){m=new Set,m.add(Q0);break}if(!m.has(Q0)){m.add(Q0);break}X0(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Q0)});break;case P6:b=l2(b),$0(E,j,b,m)}return m}function G0(E,j,b,m){for(var Q0=null,E0=null,z0=null,B0=j,f0=j=0,S1=null;B0!==null&&f0<b.length;f0++){B0.index>f0?(S1=B0,B0=null):S1=B0.sibling;var n1=S(E,B0,b[f0],m);if(n1===null){B0===null&&(B0=S1);break}Q0=$0(E,n1,b[f0],Q0),$&&B0&&n1.alternate===null&&Z(E,B0),j=B(n1,j,f0),z0===null?E0=n1:z0.sibling=n1,z0=n1,B0=S1}if(f0===b.length)return G(E,B0),i0&&Z2(E,f0),E0;if(B0===null){for(;f0<b.length;f0++)B0=f(E,b[f0],m),B0!==null&&(Q0=$0(E,B0,b[f0],Q0),j=B(B0,j,f0),z0===null?E0=B0:z0.sibling=B0,z0=B0);return i0&&Z2(E,f0),E0}for(B0=Y(B0);f0<b.length;f0++)S1=g(B0,E,f0,b[f0],m),S1!==null&&(Q0=$0(E,S1,b[f0],Q0),$&&S1.alternate!==null&&B0.delete(S1.key===null?f0:S1.key),j=B(S1,j,f0),z0===null?E0=S1:z0.sibling=S1,z0=S1);return $&&B0.forEach(function(C2){return Z(E,C2)}),i0&&Z2(E,f0),E0}function O1(E,j,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Q0=null,E0=null,z0=j,B0=j=0,f0=null,S1=null,n1=b.next();z0!==null&&!n1.done;B0++,n1=b.next()){z0.index>B0?(f0=z0,z0=null):f0=z0.sibling;var C2=S(E,z0,n1.value,m);if(C2===null){z0===null&&(z0=f0);break}S1=$0(E,C2,n1.value,S1),$&&z0&&C2.alternate===null&&Z(E,z0),j=B(C2,j,B0),E0===null?Q0=C2:E0.sibling=C2,E0=C2,z0=f0}if(n1.done)return G(E,z0),i0&&Z2(E,B0),Q0;if(z0===null){for(;!n1.done;B0++,n1=b.next())z0=f(E,n1.value,m),z0!==null&&(S1=$0(E,z0,n1.value,S1),j=B(z0,j,B0),E0===null?Q0=z0:E0.sibling=z0,E0=z0);return i0&&Z2(E,B0),Q0}for(z0=Y(z0);!n1.done;B0++,n1=b.next())f0=g(z0,E,B0,n1.value,m),f0!==null&&(S1=$0(E,f0,n1.value,S1),$&&f0.alternate!==null&&z0.delete(f0.key===null?B0:f0.key),j=B(f0,j,B0),E0===null?Q0=f0:E0.sibling=f0,E0=f0);return $&&z0.forEach(function(hO){return Z(E,hO)}),i0&&Z2(E,B0),Q0}function e0(E,j,b,m){if(typeof b==="object"&&b!==null&&b.type===E9&&b.key===null&&(kJ(b,null,E),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case D4:var Q0=z5(b._debugInfo);$:{for(var E0=b.key;j!==null;){if(j.key===E0){if(E0=b.type,E0===E9){if(j.tag===7){G(E,j.sibling),m=U(j,b.props.children),m.return=E,m._debugOwner=b._owner,m._debugInfo=h0,kJ(b,m,E),E=m;break $}}else if(j.elementType===E0||kB(j,b)||typeof E0==="object"&&E0!==null&&E0.$$typeof===P6&&l2(E0)===j.type){G(E,j.sibling),m=U(j,b.props),s$(m,b),m.return=E,m._debugOwner=b._owner,m._debugInfo=h0,E=m;break $}G(E,j);break}else Z(E,j);j=j.sibling}b.type===E9?(m=J7(b.props.children,E.mode,m,b.key),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=h0,kJ(b,m,E),E=m):(m=VJ(b,E.mode,m),s$(m,b),m.return=E,m._debugInfo=h0,E=m)}return E=W(E),h0=Q0,E;case A9:$:{Q0=b;for(b=Q0.key;j!==null;){if(j.key===b)if(j.tag===4&&j.stateNode.containerInfo===Q0.containerInfo&&j.stateNode.implementation===Q0.implementation){G(E,j.sibling),m=U(j,Q0.children||[]),m.return=E,E=m;break $}else{G(E,j);break}else Z(E,j);j=j.sibling}m=eX(Q0,E.mode,m),m.return=E,E=m}return W(E);case P6:return Q0=z5(b._debugInfo),b=l2(b),E=e0(E,j,b,m),h0=Q0,E}if(q5(b))return Q0=z5(b._debugInfo),E=G0(E,j,b,m),h0=Q0,E;if(t(b)){if(Q0=z5(b._debugInfo),E0=t(b),typeof E0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var z0=E0.call(b);if(z0===b){if(E.tag!==0||Object.prototype.toString.call(E.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(z0)!=="[object Generator]")Uw||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Uw=!0}else b.entries!==E0||jN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jN=!0);return E=O1(E,j,z0,m),h0=Q0,E}if(typeof b.then==="function")return Q0=z5(b._debugInfo),E=e0(E,j,fJ(b),m),h0=Q0,E;if(b.$$typeof===v4)return e0(E,j,jJ(E,b),m);yJ(E,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0=""+b,j!==null&&j.tag===6?(G(E,j.sibling),m=U(j,Q0),m.return=E,E=m):(G(E,j),m=tX(Q0,E.mode,m),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=h0,E=m),W(E);return typeof b==="function"&&gJ(E,b),typeof b==="symbol"&&hJ(E,b),G(E,j)}return function(E,j,b,m){var Q0=h0;h0=null;try{cZ=0;var E0=e0(E,j,b,m);return s9=null,E0}catch(S1){if(S1===n9||S1===nG)throw S1;var z0=P(29,S1,null,E.mode);z0.lanes=m,z0.return=E;var B0=z0._debugInfo=h0;if(z0._debugOwner=E._debugOwner,z0._debugTask=E._debugTask,B0!=null){for(var f0=B0.length-1;0<=f0;f0--)if(typeof B0[f0].stack==="string"){z0._debugOwner=B0[f0],z0._debugTask=B0[f0].debugTask;break}}return z0}finally{h0=Q0}}}function XH($,Z){var G=q5($);return $=!G&&typeof t($)==="function",G||$?(G=G?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",G,Z,G),!1):!0}function Bq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function r2($){return{lane:$,tag:Mw,payload:null,callback:null,next:null}}function n2($,Z,G){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,vN===Y&&!Rw){var U=d($);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
101
101
|
|
|
102
|
-
Please update the following component: %s`,U),Rw=!0}if((Z1&N5)!==w5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=OJ($),bB($,null,G),Z;return IJ($,Y,Z,G),OJ($)}function o$($,Z,G){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(G&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,a8($,G)}}function uJ($,Z){var{updateQueue:G,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,G===Y)){var U=null,B=null;if(G=G.firstBaseUpdate,G!==null){do{var W={lane:G.lane,tag:G.tag,payload:G.payload,callback:null,next:null};B===null?U=B=W:B=B.next=W,G=G.next}while(G!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;G={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=G;return}$=G.lastBaseUpdate,$===null?G.firstBaseUpdate=Z:$.next=Z,G.lastBaseUpdate=Z}function a$(){if(bN){var $=
|
|
102
|
+
Please update the following component: %s`,U),Rw=!0}if((Z1&N5)!==w5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=OJ($),bB($,null,G),Z;return IJ($,Y,Z,G),OJ($)}function o$($,Z,G){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(G&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,a8($,G)}}function uJ($,Z){var{updateQueue:G,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,G===Y)){var U=null,B=null;if(G=G.firstBaseUpdate,G!==null){do{var W={lane:G.lane,tag:G.tag,payload:G.payload,callback:null,next:null};B===null?U=B=W:B=B.next=W,G=G.next}while(G!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;G={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=G;return}$=G.lastBaseUpdate,$===null?G.firstBaseUpdate=Z:$.next=Z,G.lastBaseUpdate=Z}function a$(){if(bN){var $=r9;if($!==null)throw $}}function i$($,Z,G,Y){bN=!1;var U=$.updateQueue;M8=!1,vN=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:W}=U,z=U.shared.pending;if(z!==null){U.shared.pending=null;var L=z,T=L.next;L.next=null,W===null?B=T:W.next=T,W=L;var k=$.alternate;k!==null&&(k=k.updateQueue,z=k.lastBaseUpdate,z!==W&&(z===null?k.firstBaseUpdate=T:z.next=T,k.lastBaseUpdate=L))}if(B!==null){var f=U.baseState;W=0,k=T=L=null,z=B;do{var S=z.lane&-536870913,g=S!==z.lane;if(g?(u0&S)===S:(Y&S)===S){S!==0&&S===L7&&(bN=!0),k!==null&&(k=k.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});$:{S=$;var $0=z,G0=Z,O1=G;switch($0.tag){case Ww:if($0=$0.payload,typeof $0==="function"){c9=!0;var e0=$0.call(O1,f,G0);if(S.mode&v5){C1(!0);try{$0.call(O1,f,G0)}finally{C1(!1)}}c9=!1,f=e0;break $}f=$0;break $;case DN:S.flags=S.flags&-65537|128;case Mw:if(e0=$0.payload,typeof e0==="function"){if(c9=!0,$0=e0.call(O1,f,G0),S.mode&v5){C1(!0);try{e0.call(O1,f,G0)}finally{C1(!1)}}c9=!1}else $0=e0;if($0===null||$0===void 0)break $;f=l0({},f,$0);break $;case ww:M8=!0}}S=z.callback,S!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[S]:g.push(S))}else g={lane:S,tag:z.tag,payload:z.payload,callback:z.callback,next:null},k===null?(T=k=g,L=f):k=k.next=g,W|=S;if(z=z.next,z===null)if(z=U.shared.pending,z===null)break;else g=z,z=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);k===null&&(L=f),U.baseState=L,U.firstBaseUpdate=T,U.lastBaseUpdate=k,B===null&&(U.shared.lanes=0),R8|=W,$.lanes=W,$.memoizedState=f}vN=null}function qH($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function vT($,Z){var G=$.shared.hiddenCallbacks;if(G!==null)for($.shared.hiddenCallbacks=null,$=0;$<G.length;$++)qH(G[$],Z)}function YH($,Z){var G=$.callbacks;if(G!==null)for($.callbacks=null,$=0;$<G.length;$++)qH(G[$],Z)}function NH($,Z){var G=d4;I0(oG,G,$),I0(o9,Z,$),d4=G|Z.baseLanes}function Fq($){I0(oG,d4,$),I0(o9,o9.current,$)}function Mq($){d4=oG.current,P0(o9,$),P0(oG,$)}function s2($){var Z=$.alternate;I0(r1,r1.current&a9,$),I0(O6,$,$),m6===null&&(Z===null||o9.current!==null?m6=$:Z.memoizedState!==null&&(m6=$))}function Wq($){I0(r1,r1.current,$),I0(O6,$,$),m6===null&&(m6=$)}function UH($){$.tag===22?(I0(r1,r1.current,$),I0(O6,$,$),m6===null&&(m6=$)):o2($)}function o2($){I0(r1,r1.current,$),I0(O6,O6.current,$)}function z6($){P0(O6,$),m6===$&&(m6=null),P0(r1,$)}function xJ($){for(var Z=$;Z!==null;){if(Z.tag===13){var G=Z.memoizedState;if(G!==null&&(G=G.dehydrated,G===null||EY(G)||SY(G)))return Z}else if(Z.tag===19&&(Z.memoizedProps.revealOrder==="forwards"||Z.memoizedProps.revealOrder==="backwards"||Z.memoizedProps.revealOrder==="unstable_legacy-backwards"||Z.memoizedProps.revealOrder==="together")){if((Z.flags&128)!==0)return Z}else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return null;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}return null}function c0(){var $=u;p6===null?p6=[$]:p6.push($)}function c(){var $=u;if(p6!==null&&(z2++,p6[z2]!==$)){var Z=d(A0);if(!zw.has(Z)&&(zw.add(Z),p6!==null)){for(var G="",Y=0;Y<=z2;Y++){var U=p6[Y],B=Y===z2?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=B+`
|
|
103
103
|
`,G+=U}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
104
104
|
|
|
105
105
|
Previous render Next render
|
|
106
106
|
------------------------------------------------------
|
|
107
107
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
-
`,Z,G)}}}function
|
|
108
|
+
`,Z,G)}}}function M9($){$===void 0||$===null||q5($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",u,typeof $)}function mJ(){var $=d(A0);Lw.has($)||(Lw.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function c1(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
109
109
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
110
|
2. You might be breaking the Rules of Hooks
|
|
111
111
|
3. You might have more than one copy of React in the same app
|
|
112
112
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function wq($,Z){if(nZ)return!1;if(Z===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",u),!1;$.length!==Z.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
113
113
|
|
|
114
114
|
Previous: %s
|
|
115
|
-
Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!d5($[G],Z[G]))return!1;return!0}function Rq($,Z,G,Y,U,B){if(w2=B,A0=Z,p6=$!==null?$._debugHookTypes:null,z2=-1,nZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(A0),kN.has(B)||(kN.add(B),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",B===null?"An unknown Component":"<"+B+">"));Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,x.H=$!==null&&$.memoizedState!==null?yN:p6!==null?Pw:fN,O9=B=(Z.mode&v5)!==V0;var W=AN(G,Y,U);if(O9=!1,t7&&(W=zq(Z,G,Y,U)),B){C1(!0);try{W=zq(Z,G,Y,U)}finally{C1(!1)}}return KH($,Z),W}function KH($,Z){Z._debugHookTypes=p6,Z.dependencies===null?R2!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:R2}):Z.dependencies._debugThenableState=R2,x.H=sZ;var G=L1!==null&&L1.next!==null;if(w2=0,p6=u=$5=L1=A0=null,z2=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),iG=!1,rZ=0,R2=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||Z5||($=$.dependencies,$!==null&&SJ($)&&(Z5=!0)),pZ?(pZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",_w.has(Z)||kN.has(Z)||(_w.add(Z),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function zq($,Z,G,Y){A0=$;var U=0;do{if(t7&&(R2=null),rZ=0,t7=!1,U>=wO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,nZ=!1,$5=L1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}z2=-1,x.H=Tw,B=AN(Z,G,Y)}while(t7);return B}function bT(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?t$(Z):Z,$=$.useState()[0],(L1!==null?L1.memoizedState:null)!==$&&(A0.flags|=1024),Z}function _q(){var $=tG!==0;return tG=0,$}function Lq($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&q4)!==V0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function Pq($){if(iG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}iG=!1}w2=0,p6=$5=L1=A0=null,z2=-1,u=null,t7=!1,rZ=tG=0,R2=null}function h5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $5===null?A0.memoizedState=$5=$:$5=$5.next=$,$5}function F1(){if(L1===null){var $=A0.alternate;$=$!==null?$.memoizedState:null}else $=L1.next;var Z=$5===null?A0.memoizedState:$5.next;if(Z!==null)$5=Z,L1=$;else{if($===null){if(A0.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}L1=$,$={memoizedState:L1.memoizedState,baseState:L1.baseState,baseQueue:L1.baseQueue,queue:L1.queue,next:null},$5===null?A0.memoizedState=$5=$:$5=$5.next=$}return $5}function dJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function t$($){var Z=rZ;return rZ+=1,R2===null&&(R2=aB()),$=tB(R2,$,Z),Z=A0,($5===null?Z.memoizedState:$5.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?yN:fN),$}function a2($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return t$($);if($.$$typeof===v4)return v1($)}throw Error("An unsupported type was passed to use(): "+String($))}function N9($){var Z=null,G=A0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var Y=A0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&(Z={data:Y.data.map(function(U){return U.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),G===null&&(G=dJ(),A0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||nZ)for(G=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)G[Y]=sC;else G.length!==$&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",G.length,$);return Z.index++,G}function Q4($,Z){return typeof Z==="function"?Z($):Z}function Tq($,Z,G){var Y=h5();if(G!==void 0){var U=G(Z);if(O9){C1(!0);try{G(Z)}finally{C1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=hT.bind(null,A0,$),[Y.memoizedState,$]}function W7($){var Z=F1();return Cq(Z,L1,$)}function Cq($,Z,G){var Y=$.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=G;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var W=U.next;U.next=B.next,B.next=W}Z.baseQueue!==U&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=U=B,Y.pending=null}if(B=$.baseState,U===null)$.memoizedState=B;else{Z=U.next;var z=W=null,L=null,T=Z,k=!1;do{var f=T.lane&-536870913;if(f!==T.lane?(u0&f)===f:(w2&f)===f){var S=T.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),f===L9&&(k=!0);else if((w2&S)===S){T=T.next,S===L9&&(k=!0);continue}else f={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(z=L=f,W=B):L=L.next=f,A0.lanes|=S,R8|=S;f=T.action,O9&&G(B,f),B=T.hasEagerState?T.eagerState:G(B,f)}else S={lane:f,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(z=L=S,W=B):L=L.next=S,A0.lanes|=f,R8|=f;T=T.next}while(T!==null&&T!==Z);if(L===null?W=B:L.next=z,!d5(B,$.memoizedState)&&(Z5=!0,k&&(G=r7,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function e$($){var Z=F1(),G=Z.queue;if(G===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");G.lastRenderedReducer=$;var{dispatch:Y,pending:U}=G,B=Z.memoizedState;if(U!==null){G.pending=null;var W=U=U.next;do B=$(B,W.action),W=W.next;while(W!==U);d5(B,Z.memoizedState)||(Z5=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,Y]}function Iq($,Z,G){var Y=A0,U=h5();if(i0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();i7||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),i7=!0)}else{if(B=Z(),i7||(G=Z(),d5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),i7=!0)),P1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(u0&127)!==0||BH(Y,Z,B)}return U.memoizedState=B,G={value:B,getSnapshot:Z},U.queue=G,rJ(FH.bind(null,Y,G,$),[$]),Y.flags|=2048,R7(d6|l5,{destroy:void 0},HH.bind(null,Y,G,B,Z),null),B}function pJ($,Z,G){var Y=A0,U=F1(),B=i0;if(B){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");G=G()}else if(G=Z(),!i7){var W=Z();d5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),i7=!0)}if(W=!d5((L1||U).memoizedState,G))U.memoizedState=G,Z5=!0;U=U.queue;var z=FH.bind(null,Y,U,$);if(s5(2048,l5,z,[$]),U.getSnapshot!==Z||W||$5!==null&&$5.memoizedState.tag&d6){if(Y.flags|=2048,R7(d6|l5,{destroy:void 0},HH.bind(null,Y,U,G,Z),null),P1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(w2&127)!==0||BH(Y,Z,G)}return G}function BH($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=A0.updateQueue,Z===null?(Z=dJ(),A0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function HH($,Z,G,Y){Z.value=G,Z.getSnapshot=Y,MH(Z)&&WH($)}function FH($,Z,G){return G(function(){MH(Z)&&(z4(2,"updateSyncExternalStore()",$),WH($))})}function MH($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!d5($,G)}catch(Y){return!0}}function WH($){var Z=j5($,2);Z!==null&&h1(Z,$,2)}function Oq($){var Z=h5();if(typeof $==="function"){var G=$;if($=G(),O9){C1(!0);try{G()}finally{C1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q4,lastRenderedState:$},Z}function Vq($){$=Oq($);var Z=$.queue,G=kH.bind(null,A0,Z);return Z.dispatch=G,[$.memoizedState,G]}function Aq($){var Z=h5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=mq.bind(null,A0,!0,G),G.dispatch=Z,[$,Z]}function wH($,Z){var G=F1();return RH(G,L1,$,Z)}function RH($,Z,G,Y){return $.baseState=G,Cq($,L1,typeof Y==="function"?Y:Q4)}function zH($,Z){var G=F1();if(L1!==null)return RH(G,L1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function kT($,Z,G,Y,U){if(tJ($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var B={payload:U,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){B.listeners.push(W)}};x.T!==null?G(!0):B.isTransition=!1,Y(B),G=Z.pending,G===null?(B.next=Z.pending=B,_H(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function _H($,Z){var{action:G,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var z=G(U,Y),L=x.S;L!==null&&L(W,z),LH($,Z,z)}catch(T){Eq($,Z,T)}finally{B!==null&&W.types!==null&&(B.types!==null&&B.types!==W.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=W.types),x.T=B,B===null&&W._updatedFibers&&($=W._updatedFibers.size,W._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{W=G(U,Y),LH($,Z,W)}catch(T){Eq($,Z,T)}}function LH($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(iJ,iJ),G.then(function(Y){PH($,Z,Y)},function(Y){return Eq($,Z,Y)}),Z.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):PH($,Z,G)}function PH($,Z,G){Z.status="fulfilled",Z.value=G,TH(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,_H($,G)))}function Eq($,Z,G){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=G,TH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function TH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function CH($,Z){return Z}function w7($,Z){if(i0){var G=P1.formState;if(G!==null){$:{var Y=A0;if(i0){if(E1){Z:{var U=E1;for(var B=u6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=L6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===XU||B===YR?U:null}if(U){E1=L6(U.nextSibling),Y=U.data===XU;break $}}p2(Y)}Y=!1}Y&&(Z=G[0])}}return G=h5(),G.memoizedState=G.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:CH,lastRenderedState:Z},G.queue=Y,G=kH.bind(null,A0,Y),Y.dispatch=G,Y=Oq(!1),B=mq.bind(null,A0,!1,Y.queue),Y=h5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,G=kT.bind(null,A0,U,B,G),U.dispatch=G,Y.memoizedState=$,[Z,G,!1]}function cJ($){var Z=F1();return IH(Z,L1,$)}function IH($,Z,G){if(Z=Cq($,Z,CH)[0],$=W7(Q4)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=t$(Z)}catch(W){if(W===n7)throw nG;throw W}else Y=Z;Z=F1();var U=Z.queue,B=U.dispatch;return G!==Z.memoizedState&&(A0.flags|=2048,R7(d6|l5,{destroy:void 0},fT.bind(null,U,G),null)),[Y,B,$]}function fT($,Z){$.action=Z}function lJ($){var Z=F1(),G=L1;if(G!==null)return IH(Z,G,$);F1(),Z=Z.memoizedState,G=F1();var Y=G.queue.dispatch;return G.memoizedState=$,[Z,Y,!1]}function R7($,Z,G,Y){return $={tag:$,create:G,deps:Y,inst:Z,next:null},Z=A0.updateQueue,Z===null&&(Z=dJ(),A0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(Y=G.next,G.next=$,$.next=Y,Z.lastEffect=$),$}function Sq($){var Z=h5();return $={current:$},Z.memoizedState=$}function U9($,Z,G,Y){var U=h5();A0.flags|=$,U.memoizedState=R7(d6|Z,{destroy:void 0},G,Y===void 0?null:Y)}function s5($,Z,G,Y){var U=F1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;L1!==null&&Y!==null&&wq(Y,L1.memoizedState.deps)?U.memoizedState=R7(Z,B,G,Y):(A0.flags|=$,U.memoizedState=R7(d6|Z,B,G,Y))}function rJ($,Z){(A0.mode&q4)!==V0?U9(276826112,l5,$,Z):U9(8390656,l5,$,Z)}function yT($){A0.flags|=4;var Z=A0.updateQueue;if(Z===null)Z=dJ(),A0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function jq($){var Z=h5(),G={impl:$};return Z.memoizedState=G,function(){if((Z1&N5)!==w5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function nJ($){var Z=F1().memoizedState;return yT({ref:Z,nextImpl:$}),function(){if((Z1&N5)!==w5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function Dq($,Z){var G=4194308;return(A0.mode&q4)!==V0&&(G|=134217728),U9(G,V6,$,Z)}function OH($,Z){if(typeof Z==="function"){$=$();var G=Z($);return function(){typeof G==="function"?G():Z(null)}}if(Z!==null&&Z!==void 0)return Z.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(Z).join(", ")+"}"),$=$(),Z.current=$,function(){Z.current=null}}function vq($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null;var Y=4194308;(A0.mode&q4)!==V0&&(Y|=134217728),U9(Y,V6,OH.bind(null,Z,$),G)}function sJ($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null,s5(4,V6,OH.bind(null,Z,$),G)}function bq($,Z){return h5().memoizedState=[$,Z===void 0?null:Z],$}function oJ($,Z){var G=F1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&wq(Z,Y[1]))return Y[0];return G.memoizedState=[$,Z],$}function kq($,Z){var G=h5();Z=Z===void 0?null:Z;var Y=$();if(O9){C1(!0);try{$()}finally{C1(!1)}}return G.memoizedState=[Y,Z],Y}function aJ($,Z){var G=F1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&wq(Z,Y[1]))return Y[0];if(Y=$(),O9){C1(!0);try{$()}finally{C1(!1)}}return G.memoizedState=[Y,Z],Y}function fq($,Z){var G=h5();return yq(G,$,Z)}function VH($,Z){var G=F1();return EH(G,L1.memoizedState,$,Z)}function AH($,Z){var G=F1();return L1===null?yq(G,$,Z):EH(G,L1.memoizedState,$,Z)}function yq($,Z,G){if(G===void 0||(w2&1073741824)!==0&&(u0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=SF(),A0.lanes|=$,R8|=$,G}function EH($,Z,G,Y){if(d5(G,Z))return G;if(o7.current!==null)return $=yq($,G,Y),d5($,Z)||(Z5=!0),$;if((w2&42)===0||(w2&1073741824)!==0&&(u0&261930)===0)return Z5=!0,$.memoizedState=G;return $=SF(),A0.lanes|=$,R8|=$,Z}function iJ(){x.asyncTransitions--}function SH($,Z,G,Y,U){var B=K1.p;K1.p=B!==0&&B<X4?B:X4;var W=x.T,z={};z._updatedFibers=new Set,x.T=z,mq($,!1,Z,G);try{var L=U(),T=x.S;if(T!==null&&T(z,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(iJ,iJ);var k=DT(L,Y);$Z($,Z,k,_6($))}else $Z($,Z,Y,_6($))}catch(f){$Z($,Z,{then:function(){},status:"rejected",reason:f},_6($))}finally{K1.p=B,W!==null&&z.types!==null&&(W.types!==null&&W.types!==z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),W.types=z.types),x.T=W,W===null&&z._updatedFibers&&($=z._updatedFibers.size,z._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function gq($,Z,G,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=jH($).queue;ST($),SH($,U,Z,y9,G===null?w:function(){return DH($),G(Y)})}function jH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:y9,baseState:y9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q4,lastRenderedState:y9},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q4,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function DH($){x.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var Z=jH($);Z.next===null&&(Z=$.alternate.memoizedState),$Z($,Z.next.queue,{},_6($))}function hq(){var $=Oq(!1);return $=SH.bind(null,A0,$.queue,!0,!1),h5().memoizedState=$,[!1,$]}function vH(){var $=W7(Q4)[0],Z=F1().memoizedState;return[typeof $==="boolean"?$:t$($),Z]}function bH(){var $=e$(Q4)[0],Z=F1().memoizedState;return[typeof $==="boolean"?$:t$($),Z]}function K9(){return v1(UQ)}function uq(){var $=h5(),Z=P1.identifierPrefix;if(i0){var G=B2,Y=K2;G=(Y&~(1<<32-u5(Y)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=tG++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=WO++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function xq(){return h5().memoizedState=gT.bind(null,A0)}function gT($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var Y=_6(G),U=r2(Y),B=n2(G,U,Y);B!==null&&(z4(Y,"refresh()",$),h1(B,G,Y),o$(B,G,Y)),$=qq(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}G=G.return}}function hT($,Z,G){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=_6($);var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};tJ($)?fH(Z,U):(U=sX($,Z,U,Y),U!==null&&(z4(Y,"dispatch()",$),h1(U,$,Y),yH(U,Z,Y)))}function kH($,Z,G){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=_6($),$Z($,Z,G,Y)&&z4(Y,"setState()",$)}function $Z($,Z,G,Y){var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(tJ($))fH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var W=x.H;x.H=N4;try{var z=Z.lastRenderedState,L=B(z,G);if(U.hasEagerState=!0,U.eagerState=L,d5(L,z))return IJ($,Z,U,0),P1===null&&CJ(),!1}catch(T){}finally{x.H=W}}if(G=sX($,Z,U,Y),G!==null)return h1(G,$,Y),yH(G,Z,Y),!0}return!1}function mq($,Z,G,Y){if(x.T===null&&L9===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),Y={lane:2,revertLane:RY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},tJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=sX($,G,Y,2),Z!==null&&(z4(2,"setOptimistic()",$),h1(Z,$,2))}function tJ($){var Z=$.alternate;return $===A0||Z!==null&&Z===A0}function fH($,Z){t7=iG=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function yH($,Z,G){if((G&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,a8($,G)}}function dq($){if($!==null&&typeof $!=="function"){var Z=String($);bw.has(Z)||(bw.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function pq($,Z,G,Y){var U=$.memoizedState,B=G(Y,U);if($.mode&v5){C1(!0);try{B=G(Y,U)}finally{C1(!1)}}B===void 0&&(Z=i(Z)||"Component",Sw.has(Z)||(Sw.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),U=B===null||B===void 0?U:l0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function gH($,Z,G,Y,U,B,W){var z=$.stateNode;if(typeof z.shouldComponentUpdate==="function"){if(G=z.shouldComponentUpdate(Y,B,W),$.mode&v5){C1(!0);try{G=z.shouldComponentUpdate(Y,B,W)}finally{C1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!d$(G,Y)||!d$(U,B):!0}function hH($,Z,G,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(G,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(G,Y),Z.state!==U&&($=d($)||"Component",Iw.has($)||(Iw.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),gN.enqueueReplaceState(Z,Z.state,null))}function B9($,Z){var G=Z;if("ref"in Z){G={};for(var Y in Z)Y!=="ref"&&(G[Y]=Z[Y])}if($=$.defaultProps){G===Z&&(G=l0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function uH($){MN($),console.warn(`%s
|
|
115
|
+
Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!d5($[G],Z[G]))return!1;return!0}function Rq($,Z,G,Y,U,B){if(w2=B,A0=Z,p6=$!==null?$._debugHookTypes:null,z2=-1,nZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(A0),kN.has(B)||(kN.add(B),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",B===null?"An unknown Component":"<"+B+">"));Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,x.H=$!==null&&$.memoizedState!==null?yN:p6!==null?Pw:fN,O7=B=(Z.mode&v5)!==V0;var W=AN(G,Y,U);if(O7=!1,t9&&(W=zq(Z,G,Y,U)),B){C1(!0);try{W=zq(Z,G,Y,U)}finally{C1(!1)}}return KH($,Z),W}function KH($,Z){Z._debugHookTypes=p6,Z.dependencies===null?R2!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:R2}):Z.dependencies._debugThenableState=R2,x.H=sZ;var G=L1!==null&&L1.next!==null;if(w2=0,p6=u=$5=L1=A0=null,z2=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),iG=!1,rZ=0,R2=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||Z5||($=$.dependencies,$!==null&&SJ($)&&(Z5=!0)),pZ?(pZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",_w.has(Z)||kN.has(Z)||(_w.add(Z),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function zq($,Z,G,Y){A0=$;var U=0;do{if(t9&&(R2=null),rZ=0,t9=!1,U>=wO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,nZ=!1,$5=L1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}z2=-1,x.H=Tw,B=AN(Z,G,Y)}while(t9);return B}function bT(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?t$(Z):Z,$=$.useState()[0],(L1!==null?L1.memoizedState:null)!==$&&(A0.flags|=1024),Z}function _q(){var $=tG!==0;return tG=0,$}function Lq($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&q4)!==V0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function Pq($){if(iG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}iG=!1}w2=0,p6=$5=L1=A0=null,z2=-1,u=null,t9=!1,rZ=tG=0,R2=null}function h5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $5===null?A0.memoizedState=$5=$:$5=$5.next=$,$5}function F1(){if(L1===null){var $=A0.alternate;$=$!==null?$.memoizedState:null}else $=L1.next;var Z=$5===null?A0.memoizedState:$5.next;if(Z!==null)$5=Z,L1=$;else{if($===null){if(A0.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}L1=$,$={memoizedState:L1.memoizedState,baseState:L1.baseState,baseQueue:L1.baseQueue,queue:L1.queue,next:null},$5===null?A0.memoizedState=$5=$:$5=$5.next=$}return $5}function dJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function t$($){var Z=rZ;return rZ+=1,R2===null&&(R2=aB()),$=tB(R2,$,Z),Z=A0,($5===null?Z.memoizedState:$5.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?yN:fN),$}function a2($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return t$($);if($.$$typeof===v4)return v1($)}throw Error("An unsupported type was passed to use(): "+String($))}function N7($){var Z=null,G=A0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var Y=A0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&(Z={data:Y.data.map(function(U){return U.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),G===null&&(G=dJ(),A0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||nZ)for(G=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)G[Y]=sC;else G.length!==$&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",G.length,$);return Z.index++,G}function Q4($,Z){return typeof Z==="function"?Z($):Z}function Tq($,Z,G){var Y=h5();if(G!==void 0){var U=G(Z);if(O7){C1(!0);try{G(Z)}finally{C1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=hT.bind(null,A0,$),[Y.memoizedState,$]}function W9($){var Z=F1();return Cq(Z,L1,$)}function Cq($,Z,G){var Y=$.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=G;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var W=U.next;U.next=B.next,B.next=W}Z.baseQueue!==U&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=U=B,Y.pending=null}if(B=$.baseState,U===null)$.memoizedState=B;else{Z=U.next;var z=W=null,L=null,T=Z,k=!1;do{var f=T.lane&-536870913;if(f!==T.lane?(u0&f)===f:(w2&f)===f){var S=T.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),f===L7&&(k=!0);else if((w2&S)===S){T=T.next,S===L7&&(k=!0);continue}else f={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(z=L=f,W=B):L=L.next=f,A0.lanes|=S,R8|=S;f=T.action,O7&&G(B,f),B=T.hasEagerState?T.eagerState:G(B,f)}else S={lane:f,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},L===null?(z=L=S,W=B):L=L.next=S,A0.lanes|=f,R8|=f;T=T.next}while(T!==null&&T!==Z);if(L===null?W=B:L.next=z,!d5(B,$.memoizedState)&&(Z5=!0,k&&(G=r9,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function e$($){var Z=F1(),G=Z.queue;if(G===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");G.lastRenderedReducer=$;var{dispatch:Y,pending:U}=G,B=Z.memoizedState;if(U!==null){G.pending=null;var W=U=U.next;do B=$(B,W.action),W=W.next;while(W!==U);d5(B,Z.memoizedState)||(Z5=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,Y]}function Iq($,Z,G){var Y=A0,U=h5();if(i0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();i9||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),i9=!0)}else{if(B=Z(),i9||(G=Z(),d5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),i9=!0)),P1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(u0&127)!==0||BH(Y,Z,B)}return U.memoizedState=B,G={value:B,getSnapshot:Z},U.queue=G,rJ(FH.bind(null,Y,G,$),[$]),Y.flags|=2048,R9(d6|l5,{destroy:void 0},HH.bind(null,Y,G,B,Z),null),B}function pJ($,Z,G){var Y=A0,U=F1(),B=i0;if(B){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");G=G()}else if(G=Z(),!i9){var W=Z();d5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),i9=!0)}if(W=!d5((L1||U).memoizedState,G))U.memoizedState=G,Z5=!0;U=U.queue;var z=FH.bind(null,Y,U,$);if(s5(2048,l5,z,[$]),U.getSnapshot!==Z||W||$5!==null&&$5.memoizedState.tag&d6){if(Y.flags|=2048,R9(d6|l5,{destroy:void 0},HH.bind(null,Y,U,G,Z),null),P1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(w2&127)!==0||BH(Y,Z,G)}return G}function BH($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=A0.updateQueue,Z===null?(Z=dJ(),A0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function HH($,Z,G,Y){Z.value=G,Z.getSnapshot=Y,MH(Z)&&WH($)}function FH($,Z,G){return G(function(){MH(Z)&&(z4(2,"updateSyncExternalStore()",$),WH($))})}function MH($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!d5($,G)}catch(Y){return!0}}function WH($){var Z=j5($,2);Z!==null&&h1(Z,$,2)}function Oq($){var Z=h5();if(typeof $==="function"){var G=$;if($=G(),O7){C1(!0);try{G()}finally{C1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q4,lastRenderedState:$},Z}function Vq($){$=Oq($);var Z=$.queue,G=kH.bind(null,A0,Z);return Z.dispatch=G,[$.memoizedState,G]}function Aq($){var Z=h5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=mq.bind(null,A0,!0,G),G.dispatch=Z,[$,Z]}function wH($,Z){var G=F1();return RH(G,L1,$,Z)}function RH($,Z,G,Y){return $.baseState=G,Cq($,L1,typeof Y==="function"?Y:Q4)}function zH($,Z){var G=F1();if(L1!==null)return RH(G,L1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function kT($,Z,G,Y,U){if(tJ($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var B={payload:U,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){B.listeners.push(W)}};x.T!==null?G(!0):B.isTransition=!1,Y(B),G=Z.pending,G===null?(B.next=Z.pending=B,_H(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function _H($,Z){var{action:G,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var z=G(U,Y),L=x.S;L!==null&&L(W,z),LH($,Z,z)}catch(T){Eq($,Z,T)}finally{B!==null&&W.types!==null&&(B.types!==null&&B.types!==W.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=W.types),x.T=B,B===null&&W._updatedFibers&&($=W._updatedFibers.size,W._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{W=G(U,Y),LH($,Z,W)}catch(T){Eq($,Z,T)}}function LH($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(iJ,iJ),G.then(function(Y){PH($,Z,Y)},function(Y){return Eq($,Z,Y)}),Z.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):PH($,Z,G)}function PH($,Z,G){Z.status="fulfilled",Z.value=G,TH(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,_H($,G)))}function Eq($,Z,G){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=G,TH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function TH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function CH($,Z){return Z}function w9($,Z){if(i0){var G=P1.formState;if(G!==null){$:{var Y=A0;if(i0){if(E1){Z:{var U=E1;for(var B=u6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=L6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===XU||B===YR?U:null}if(U){E1=L6(U.nextSibling),Y=U.data===XU;break $}}p2(Y)}Y=!1}Y&&(Z=G[0])}}return G=h5(),G.memoizedState=G.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:CH,lastRenderedState:Z},G.queue=Y,G=kH.bind(null,A0,Y),Y.dispatch=G,Y=Oq(!1),B=mq.bind(null,A0,!1,Y.queue),Y=h5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,G=kT.bind(null,A0,U,B,G),U.dispatch=G,Y.memoizedState=$,[Z,G,!1]}function cJ($){var Z=F1();return IH(Z,L1,$)}function IH($,Z,G){if(Z=Cq($,Z,CH)[0],$=W9(Q4)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=t$(Z)}catch(W){if(W===n9)throw nG;throw W}else Y=Z;Z=F1();var U=Z.queue,B=U.dispatch;return G!==Z.memoizedState&&(A0.flags|=2048,R9(d6|l5,{destroy:void 0},fT.bind(null,U,G),null)),[Y,B,$]}function fT($,Z){$.action=Z}function lJ($){var Z=F1(),G=L1;if(G!==null)return IH(Z,G,$);F1(),Z=Z.memoizedState,G=F1();var Y=G.queue.dispatch;return G.memoizedState=$,[Z,Y,!1]}function R9($,Z,G,Y){return $={tag:$,create:G,deps:Y,inst:Z,next:null},Z=A0.updateQueue,Z===null&&(Z=dJ(),A0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(Y=G.next,G.next=$,$.next=Y,Z.lastEffect=$),$}function Sq($){var Z=h5();return $={current:$},Z.memoizedState=$}function U7($,Z,G,Y){var U=h5();A0.flags|=$,U.memoizedState=R9(d6|Z,{destroy:void 0},G,Y===void 0?null:Y)}function s5($,Z,G,Y){var U=F1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;L1!==null&&Y!==null&&wq(Y,L1.memoizedState.deps)?U.memoizedState=R9(Z,B,G,Y):(A0.flags|=$,U.memoizedState=R9(d6|Z,B,G,Y))}function rJ($,Z){(A0.mode&q4)!==V0?U7(276826112,l5,$,Z):U7(8390656,l5,$,Z)}function yT($){A0.flags|=4;var Z=A0.updateQueue;if(Z===null)Z=dJ(),A0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function jq($){var Z=h5(),G={impl:$};return Z.memoizedState=G,function(){if((Z1&N5)!==w5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function nJ($){var Z=F1().memoizedState;return yT({ref:Z,nextImpl:$}),function(){if((Z1&N5)!==w5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function Dq($,Z){var G=4194308;return(A0.mode&q4)!==V0&&(G|=134217728),U7(G,V6,$,Z)}function OH($,Z){if(typeof Z==="function"){$=$();var G=Z($);return function(){typeof G==="function"?G():Z(null)}}if(Z!==null&&Z!==void 0)return Z.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(Z).join(", ")+"}"),$=$(),Z.current=$,function(){Z.current=null}}function vq($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null;var Y=4194308;(A0.mode&q4)!==V0&&(Y|=134217728),U7(Y,V6,OH.bind(null,Z,$),G)}function sJ($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null,s5(4,V6,OH.bind(null,Z,$),G)}function bq($,Z){return h5().memoizedState=[$,Z===void 0?null:Z],$}function oJ($,Z){var G=F1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&wq(Z,Y[1]))return Y[0];return G.memoizedState=[$,Z],$}function kq($,Z){var G=h5();Z=Z===void 0?null:Z;var Y=$();if(O7){C1(!0);try{$()}finally{C1(!1)}}return G.memoizedState=[Y,Z],Y}function aJ($,Z){var G=F1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&wq(Z,Y[1]))return Y[0];if(Y=$(),O7){C1(!0);try{$()}finally{C1(!1)}}return G.memoizedState=[Y,Z],Y}function fq($,Z){var G=h5();return yq(G,$,Z)}function VH($,Z){var G=F1();return EH(G,L1.memoizedState,$,Z)}function AH($,Z){var G=F1();return L1===null?yq(G,$,Z):EH(G,L1.memoizedState,$,Z)}function yq($,Z,G){if(G===void 0||(w2&1073741824)!==0&&(u0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=SF(),A0.lanes|=$,R8|=$,G}function EH($,Z,G,Y){if(d5(G,Z))return G;if(o9.current!==null)return $=yq($,G,Y),d5($,Z)||(Z5=!0),$;if((w2&42)===0||(w2&1073741824)!==0&&(u0&261930)===0)return Z5=!0,$.memoizedState=G;return $=SF(),A0.lanes|=$,R8|=$,Z}function iJ(){x.asyncTransitions--}function SH($,Z,G,Y,U){var B=K1.p;K1.p=B!==0&&B<X4?B:X4;var W=x.T,z={};z._updatedFibers=new Set,x.T=z,mq($,!1,Z,G);try{var L=U(),T=x.S;if(T!==null&&T(z,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(iJ,iJ);var k=DT(L,Y);$Z($,Z,k,_6($))}else $Z($,Z,Y,_6($))}catch(f){$Z($,Z,{then:function(){},status:"rejected",reason:f},_6($))}finally{K1.p=B,W!==null&&z.types!==null&&(W.types!==null&&W.types!==z.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),W.types=z.types),x.T=W,W===null&&z._updatedFibers&&($=z._updatedFibers.size,z._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function gq($,Z,G,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=jH($).queue;ST($),SH($,U,Z,y7,G===null?w:function(){return DH($),G(Y)})}function jH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:y7,baseState:y7,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q4,lastRenderedState:y7},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Q4,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function DH($){x.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var Z=jH($);Z.next===null&&(Z=$.alternate.memoizedState),$Z($,Z.next.queue,{},_6($))}function hq(){var $=Oq(!1);return $=SH.bind(null,A0,$.queue,!0,!1),h5().memoizedState=$,[!1,$]}function vH(){var $=W9(Q4)[0],Z=F1().memoizedState;return[typeof $==="boolean"?$:t$($),Z]}function bH(){var $=e$(Q4)[0],Z=F1().memoizedState;return[typeof $==="boolean"?$:t$($),Z]}function K7(){return v1(UQ)}function uq(){var $=h5(),Z=P1.identifierPrefix;if(i0){var G=B2,Y=K2;G=(Y&~(1<<32-u5(Y)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=tG++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=WO++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function xq(){return h5().memoizedState=gT.bind(null,A0)}function gT($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var Y=_6(G),U=r2(Y),B=n2(G,U,Y);B!==null&&(z4(Y,"refresh()",$),h1(B,G,Y),o$(B,G,Y)),$=qq(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}G=G.return}}function hT($,Z,G){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=_6($);var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};tJ($)?fH(Z,U):(U=sX($,Z,U,Y),U!==null&&(z4(Y,"dispatch()",$),h1(U,$,Y),yH(U,Z,Y)))}function kH($,Z,G){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=_6($),$Z($,Z,G,Y)&&z4(Y,"setState()",$)}function $Z($,Z,G,Y){var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(tJ($))fH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var W=x.H;x.H=N4;try{var z=Z.lastRenderedState,L=B(z,G);if(U.hasEagerState=!0,U.eagerState=L,d5(L,z))return IJ($,Z,U,0),P1===null&&CJ(),!1}catch(T){}finally{x.H=W}}if(G=sX($,Z,U,Y),G!==null)return h1(G,$,Y),yH(G,Z,Y),!0}return!1}function mq($,Z,G,Y){if(x.T===null&&L7===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),Y={lane:2,revertLane:RY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},tJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=sX($,G,Y,2),Z!==null&&(z4(2,"setOptimistic()",$),h1(Z,$,2))}function tJ($){var Z=$.alternate;return $===A0||Z!==null&&Z===A0}function fH($,Z){t9=iG=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function yH($,Z,G){if((G&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,a8($,G)}}function dq($){if($!==null&&typeof $!=="function"){var Z=String($);bw.has(Z)||(bw.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function pq($,Z,G,Y){var U=$.memoizedState,B=G(Y,U);if($.mode&v5){C1(!0);try{B=G(Y,U)}finally{C1(!1)}}B===void 0&&(Z=i(Z)||"Component",Sw.has(Z)||(Sw.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),U=B===null||B===void 0?U:l0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function gH($,Z,G,Y,U,B,W){var z=$.stateNode;if(typeof z.shouldComponentUpdate==="function"){if(G=z.shouldComponentUpdate(Y,B,W),$.mode&v5){C1(!0);try{G=z.shouldComponentUpdate(Y,B,W)}finally{C1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!d$(G,Y)||!d$(U,B):!0}function hH($,Z,G,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(G,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(G,Y),Z.state!==U&&($=d($)||"Component",Iw.has($)||(Iw.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),gN.enqueueReplaceState(Z,Z.state,null))}function B7($,Z){var G=Z;if("ref"in Z){G={};for(var Y in Z)Y!=="ref"&&(G[Y]=Z[Y])}if($=$.defaultProps){G===Z&&(G=l0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function uH($){MN($),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
|
-
`,
|
|
119
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function xH($){var Z=
|
|
118
|
+
`,e9?"An error occurred in the <"+e9+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function xH($){var Z=e9?"The above error occurred in the <"+e9+"> component.":"The above error occurred in one of your React components.",G="React will try to recreate this component tree from scratch using the error boundary you provided, "+((hN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
|
|
120
120
|
|
|
121
121
|
%s
|
|
122
122
|
|
|
@@ -126,9 +126,9 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,$,Z,G)}function mH($){MN($)}function eJ($,Z){try{
|
|
129
|
+
`,$,Z,G)}function mH($){MN($)}function eJ($,Z){try{e9=Z.source?d(Z.source):null,hN=null;var G=Z.value;if(x.actQueue!==null)x.thrownErrors.push(G);else{var Y=$.onUncaughtError;Y(G,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function dH($,Z,G){try{e9=G.source?d(G.source):null,hN=d(Z);var Y=$.onCaughtError;Y(G.value,{componentStack:G.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function cq($,Z,G){return G=r2(G),G.tag=DN,G.payload={element:null},G.callback=function(){X0(Z.source,eJ,$,Z)},G}function lq($){return $=r2($),$.tag=DN,$}function rq($,Z,G,Y){var U=G.type.getDerivedStateFromError;if(typeof U==="function"){var B=Y.value;$.payload=function(){return U(B)},$.callback=function(){fB(G),X0(Y.source,dH,Z,G,Y)}}var W=G.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&($.callback=function(){fB(G),X0(Y.source,dH,Z,G,Y),typeof U!=="function"&&(_8===null?_8=new Set([this]):_8.add(this)),BO(this,Y),typeof U==="function"||(G.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",d(G)||"Unknown")})}function uT($,Z,G,Y,U){if(G.flags|=32768,f4&&NZ($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=G.alternate,Z!==null&&F9(Z,G,U,!0),i0&&(h4=!0),G=O6.current,G!==null){switch(G.tag){case 31:case 13:return m6===null?NG():G.alternate===null&&f1===L2&&(f1=Z3),G.flags&=-257,G.flags|=65536,G.lanes=U,Y===sG?G.flags|=16384:(Z=G.updateQueue,Z===null?G.updateQueue=new Set([Y]):Z.add(Y),FY($,Y,U)),!1;case 22:return G.flags|=65536,Y===sG?G.flags|=16384:(Z=G.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},G.updateQueue=Z):(G=Z.retryQueue,G===null?Z.retryQueue=new Set([Y]):G.add(Y)),FY($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+G.tag+"). This is a bug in React.")}return FY($,Y,U),NG(),!1}if(i0)return h4=!0,Z=O6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==LN&&c$(W6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),G))):(Y!==LN&&c$(W6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),G)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=W6(Y,G),U=cq($.stateNode,Y,U),uJ($,U),f1!==W8&&(f1=V7)),!1;var B=W6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),G);if($Q===null?$Q=[B]:$Q.push(B),f1!==W8&&(f1=V7),Z===null)return!0;Y=W6(Y,G),G=Z;do{switch(G.tag){case 3:return G.flags|=65536,$=U&-U,G.lanes|=$,$=cq(G.stateNode,Y,$),uJ(G,$),!1;case 1:if(Z=G.type,B=G.stateNode,(G.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(_8===null||!_8.has(B))))return G.flags|=65536,U&=-U,G.lanes|=U,U=lq(U),rq(U,$,G,Y),uJ(G,U),!1}G=G.return}while(G!==null);return!1}function _5($,Z,G,Y){Z.child=$===null?Fw(Z,null,G,Y):I7(Z,$.child,G,Y)}function pH($,Z,G,Y,U){G=G.render;var B=Z.ref;if("ref"in Y){var W={};for(var z in Y)z!=="ref"&&(W[z]=Y[z])}else W=Y;if(q7(Z),Y=Rq($,Z,G,W,B,U),z=_q(),$!==null&&!Z5)return Lq($,Z,U),G2($,Z,U);return i0&&z&&$q(Z),Z.flags|=1,_5($,Z,Y,U),Z.child}function cH($,Z,G,Y,U){if($===null){var B=G.type;if(typeof B==="function"&&!aX(B)&&B.defaultProps===void 0&&G.compare===null)return G=Q7(B),Z.tag=15,Z.type=G,sq(Z,B),lH($,Z,G,Y,U);return $=iX(G.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!$Y($,U)){var W=B.memoizedProps;if(G=G.compare,G=G!==null?G:d$,G(W,Y)&&$.ref===Z.ref)return G2($,Z,U)}return Z.flags|=1,$=$2(B,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function lH($,Z,G,Y,U){if($!==null){var B=$.memoizedProps;if(d$(B,Y)&&$.ref===Z.ref&&Z.type===$.type)if(Z5=!1,Z.pendingProps=Y=B,$Y($,U))($.flags&131072)!==0&&(Z5=!0);else return Z.lanes=$.lanes,G2($,Z,U)}return nq($,Z,G,Y,U)}function rH($,Z,G,Y){var U=Y.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:SZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|G:G,$!==null){Y=Z.child=$.child;for(U=0;Y!==null;)U=U|Y.lanes|Y.childLanes,Y=Y.sibling;Y=U&~B}else Y=0,Z.child=null;return nH($,Z,B,G,Y)}if((G&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&bJ(Z,B!==null?B.cachePool:null),B!==null?NH(Z,B):Fq(Z),UH(Z);else return Y=Z.lanes=536870912,nH($,Z,B!==null?B.baseLanes|G:G,G,Y)}else B!==null?(bJ(Z,B.cachePool),NH(Z,B),o2(Z),Z.memoizedState=null):($!==null&&bJ(Z,null),Fq(Z),o2(Z));return _5($,Z,U,G),Z.child}function ZZ($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:SZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function nH($,Z,G,Y,U){var B=Uq();return B=B===null?null:{parent:t1._currentValue,pool:B},Z.memoizedState={baseLanes:G,cachePool:B},$!==null&&bJ(Z,null),Fq(Z),UH(Z),$!==null&&F9($,Z,Y,!0),Z.childLanes=U,null}function $G($,Z){var G=Z.hidden;return G!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
130
|
- <Activity %s>
|
|
131
|
-
+ <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Z=QG({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function sH($,Z,G){return
|
|
131
|
+
+ <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Z=QG({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function sH($,Z,G){return I7(Z,$.child,null,G),$=$G(Z,Z.pendingProps),$.flags|=2,z6(Z),Z.memoizedState=null,$}function xT($,Z,G){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(i0){if(Y.mode==="hidden")return $=$G(Z,Y),Z.lanes=536870912,ZZ(null,$);if(Wq(Z),($=E1)?(G=_M($,u6),G=G!==null&&G.data===v7?G:null,G!==null&&(Y={dehydrated:G,treeContext:xB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=hB(G),Y.return=Z,Z.child=Y,T5=Z,E1=null)):G=null,G===null)throw AJ(Z,$),p2(Z);return Z.lanes=536870912,null}return $G(Z,Y)}var B=$.memoizedState;if(B!==null){var W=B.dehydrated;if(Wq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=sH($,Z,G);else if(Z.memoizedState!==null)Z.child=$.child,Z.flags|=128,Z=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(dB(),(G&536870912)!==0&&YG(Z),Z5||F9($,Z,G,!1),U=(G&$.childLanes)!==0,Z5||U){if(Y=P1,Y!==null&&(W=i8(Y,G),W!==0&&W!==B.retryLane))throw B.retryLane=W,j5($,W),h1(Y,$,W),uN;NG(),Z=sH($,Z,G)}else $=B.treeContext,E1=L6(W.nextSibling),T5=Z,i0=!0,N8=null,h4=!1,I6=null,u6=!1,$!==null&&mB(Z,$),Z=$G(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(G&536870912)!==0&&(G&$.lanes)!==0&&YG(Z),$=$2(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function ZG($,Z){var G=Z.ref;if(G===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof G!=="function"&&typeof G!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==G)Z.flags|=4194816}}function nq($,Z,G,Y,U){if(G.prototype&&typeof G.prototype.render==="function"){var B=i(G)||"Unknown";kw[B]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),kw[B]=!0)}if(Z.mode&v5&&Y4.recordLegacyContextWarning(Z,null),$===null&&(sq(Z,Z.type),G.contextTypes&&(B=i(G)||"Unknown",yw[B]||(yw[B]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",B)))),q7(Z),G=Rq($,Z,G,Y,void 0,U),Y=_q(),$!==null&&!Z5)return Lq($,Z,U),G2($,Z,U);return i0&&Y&&$q(Z),Z.flags|=1,_5($,Z,G,U),Z.child}function oH($,Z,G,Y,U,B){if(q7(Z),z2=-1,nZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,G=zq(Z,Y,G,U),KH($,Z),Y=_q(),$!==null&&!Z5)return Lq($,Z,B),G2($,Z,B);return i0&&Y&&$q(Z),Z.flags|=1,_5($,Z,G,B),Z.child}function aH($,Z,G,Y,U){switch(H(Z)){case!1:var B=Z.stateNode,W=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,W,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var z=U&-U;if(Z.lanes|=z,W=P1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");z=lq(z),rq(z,W,Z,W6(B,Z)),uJ(Z,z)}if(q7(Z),Z.stateNode===null){if(W=Y8,B=G.contextType,"contextType"in G&&B!==null&&(B===void 0||B.$$typeof!==v4)&&!vw.has(G)&&(vw.add(G),z=B===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof B!=="object"?" However, it is set to a "+typeof B+".":B.$$typeof===xY?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(B).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",i(G)||"Component",z)),typeof B==="object"&&B!==null&&(W=v1(B)),B=new G(Y,W),Z.mode&v5){C1(!0);try{B=new G(Y,W)}finally{C1(!1)}}if(W=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=gN,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=Cw,typeof G.getDerivedStateFromProps==="function"&&W===null&&(W=i(G)||"Component",Ow.has(W)||(Ow.add(W),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",W,B.state===null?"null":"undefined",W))),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=z=W=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(W="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?z="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(z="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),W!==null||z!==null||L!==null){B=i(G)||"Component";var T=typeof G.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Aw.has(B)||(Aw.add(B),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
132
|
|
|
133
133
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
134
|
|
|
@@ -136,8 +136,8 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
136
136
|
https://react.dev/link/unsafe-component-lifecycles`,B,T,W!==null?`
|
|
137
137
|
`+W:"",z!==null?`
|
|
138
138
|
`+z:"",L!==null?`
|
|
139
|
-
`+L:""))}}B=Z.stateNode,W=i(G)||"Component",B.render||(G.prototype&&typeof G.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!B.getInitialState||B.getInitialState.isReactClassApproved||B.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",W),B.getDefaultProps&&!B.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",W),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),G.childContextTypes&&!Dw.has(G)&&(Dw.add(G),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),G.contextTypes&&!jw.has(G)&&(jw.add(G),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",W)),typeof B.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",W),G.prototype&&G.prototype.isPureReactComponent&&typeof B.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",i(G)||"A pure component"),typeof B.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",W),typeof B.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",W),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),z=B.props!==Y,B.props!==void 0&&z&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",W),B.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",W,W),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||Vw.has(G)||(Vw.add(G),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",i(G))),typeof B.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof B.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof G.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(z=B.state)&&(typeof z!=="object"||q5(z))&&console.error("%s.state: must be set to an object or null",W),typeof B.getChildContext==="function"&&typeof G.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},Bq(Z),W=G.contextType,B.context=typeof W==="object"&&W!==null?v1(W):Y8,B.state===Y&&(W=i(G)||"Component",Ew.has(W)||(Ew.add(W),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",W))),Z.mode&v5&&Y4.recordLegacyContextWarning(Z,B),Y4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,W=G.getDerivedStateFromProps,typeof W==="function"&&(pq(Z,G,W,Y),B.state=Z.memoizedState),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(W=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),W!==B.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Z)||"Component"),gN.enqueueReplaceState(B,B.state,null)),i$(Z,Y,B,U),a$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&q4)!==V0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var k=Z.memoizedProps;z=
|
|
140
|
-
%s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=i(Z)||"Unknown",gw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),gw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",fw[Z]||(console.error("%s: Function components do not support contextType.",Z),fw[Z]=!0))}function oq($){return{baseLanes:$,cachePool:oB()}}function aq($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=e5),$}function tH($,Z,G){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,W=(Z.flags&128)!==0;if((Y=W)||(Y=$!==null&&$.memoizedState===null?!1:(r1.current&lZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(i0){if(B?s2(Z):o2(Z),($=E1)?(G=_M($,u6),G=G!==null&&G.data!==v9?G:null,G!==null&&(Y={dehydrated:G,treeContext:xB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=hB(G),Y.return=Z,Z.child=Y,T5=Z,E1=null)):G=null,G===null)throw AJ(Z,$),p2(Z);return SY(G)?Z.lanes=32:Z.lanes=536870912,null}var z=U.children;if(U=U.fallback,B){o2(Z);var L=Z.mode;return z=QG({mode:"hidden",children:z},L),U=J9(U,L,G,null),z.return=Z,U.return=Z,z.sibling=U,Z.child=z,U=Z.child,U.memoizedState=oq(G),U.childLanes=aq($,Y,G),Z.memoizedState=xN,ZZ(null,U)}return s2(Z),iq(Z,z)}var T=$.memoizedState;if(T!==null){var k=T.dehydrated;if(k!==null){if(W)Z.flags&256?(s2(Z),Z.flags&=-257,Z=tq($,Z,G)):Z.memoizedState!==null?(o2(Z),Z.child=$.child,Z.flags|=128,Z=null):(o2(Z),z=U.fallback,L=Z.mode,U=QG({mode:"visible",children:U.children},L),z=J9(z,L,G,null),z.flags|=2,U.return=Z,z.return=Z,U.sibling=z,Z.child=U,I9(Z,$.child,null,G),U=Z.child,U.memoizedState=oq(G),U.childLanes=aq($,Y,G),Z.memoizedState=xN,Z=ZZ(null,U));else if(s2(Z),dB(),(G&536870912)!==0&&YG(Z),SY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){z=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=z,U=L,k=S,z=B,L=k,z=z?Error(z):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),z.stack=U||"",z.digest=Y,Y=L===void 0?null:L,U={value:z,source:null,stack:Y},typeof Y==="string"&&_N.set(z,U),c$(U),Z=tq($,Z,G)}else if(Z5||F7($,Z,G,!1),Y=(G&$.childLanes)!==0,Z5||Y){if(Y=P1,Y!==null&&(U=i8(Y,G),U!==0&&U!==T.retryLane))throw T.retryLane=U,j5($,U),h1(Y,$,U),uN;EY(k)||NG(),Z=tq($,Z,G)}else EY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=T.treeContext,E1=L6(k.nextSibling),T5=Z,i0=!0,N8=null,h4=!1,I6=null,u6=!1,$!==null&&mB(Z,$),Z=iq(Z,U.children),Z.flags|=4096);return Z}}if(B)return o2(Z),z=U.fallback,L=Z.mode,S=$.child,k=S.sibling,U=$2(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,k!==null?z=$2(k,z):(z=J9(z,L,G,null),z.flags|=2),z.return=Z,U.return=Z,U.sibling=z,Z.child=U,ZZ(null,U),U=Z.child,z=$.child.memoizedState,z===null?z=oq(G):(L=z.cachePool,L!==null?(S=t1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=oB(),z={baseLanes:z.baseLanes|G,cachePool:L}),U.memoizedState=z,U.childLanes=aq($,Y,G),Z.memoizedState=xN,ZZ($.child,U);return T!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&YG(Z),s2(Z),G=$.child,$=G.sibling,G=$2(G,{mode:"visible",children:U.children}),G.return=Z,G.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=G,Z.memoizedState=null,G}function iq($,Z){return Z=QG({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function QG($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function tq($,Z,G){return I9(Z,$.child,null,G),$=iq(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function eH($,Z,G){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),Gq($.return,Z,G)}function eq($,Z,G,Y,U,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:G,tailMode:U,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=Y,W.tail=G,W.tailMode=U,W.treeForkCount=B)}function $F($,Z,G){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,W=Y.children,z=r1.current;if((Y=(z&lZ)!==0)?(z=z&a7|lZ,Z.flags|=128):z&=a7,I0(r1,z,Z),z=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!hw[z])if(hw[z]=!0,U==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(U==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof U==="string")switch(U.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',U,U.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',U,U.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U);if(z=B==null?"null":B,!$3[z])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")$3[z]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else B!=="visible"&&B!=="collapsed"&&B!=="hidden"?($3[z]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',B)):U!=="forwards"&&U!=="backwards"&&U!=="unstable_legacy-backwards"&&($3[z]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',B));$:if((U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(q5(W)){for(z=0;z<W.length;z++)if(!XH(W[z],z))break $}else if(z=t(W),typeof z==="function"){if(z=z.call(W))for(var L=z.next(),T=0;!L.done;L=z.next()){if(!XH(L.value,T))break $;T++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',U);if(_5($,Z,W,G),i0?(d2(),W=jZ):W=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&eH($,G,Z);else if($.tag===19)eH($,G,Z);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===Z)break $;for(;$.sibling===null;){if($.return===null||$.return===Z)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(U){case"forwards":G=Z.child;for(U=null;G!==null;)$=G.alternate,$!==null&&xJ($)===null&&(U=G),G=G.sibling;G=U,G===null?(U=Z.child,Z.child=null):(U=G.sibling,G.sibling=null),eq(Z,!1,U,G,B,W);break;case"backwards":case"unstable_legacy-backwards":G=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&xJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=G,G=U,U=$}eq(Z,!0,G,null,B,W);break;case"together":eq(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function G2($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),p5=-1,R8|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(F7($,Z,G,!1),(G&Z.childLanes)===0)return null}else return null;if($!==null&&Z.child!==$.child)throw Error("Resuming work not yet implemented.");if(Z.child!==null){$=Z.child,G=$2($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=$2($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function $Y($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&SJ($)?!0:!1}function mT($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),c2(Z,t1,$.memoizedState.cache),X9();break;case 27:case 5:a0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:c2(Z,Z.type,Z.memoizedProps.value);break;case 12:(G&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var Y=Z.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,Wq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return s2(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return tH($,Z,G);return s2(Z),$=G2($,Z,G),$!==null?$.sibling:null}s2(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(G&Z.childLanes)!==0,Y||(F7($,Z,G,!1),Y=(G&Z.childLanes)!==0),U){if(Y)return $F($,Z,G);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),I0(r1,r1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,rH($,Z,G,Z.pendingProps);case 24:c2(Z,t1,$.memoizedState.cache)}return G2($,Z,G)}function ZY($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=iX(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),G._debugStack=Z._debugStack,G._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,G.index=Z.index,G.sibling=Z.sibling,G.return=Z.return,G.ref=Z.ref,G._debugInfo=Z._debugInfo,Z===Y.child)Y.child=G;else{var U=Y.child;if(U===null)throw Error("Expected parent to have a child.");for(;U.sibling!==Z;)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=G}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)Z5=!0;else{if(!$Y($,G)&&(Z.flags&128)===0)return Z5=!1,mT($,Z,G);Z5=($.flags&131072)!==0?!0:!1}else{if(Z5=!1,Y=i0)d2(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,d2(),uB(Z,jZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=l2(Z.elementType),Z.type=$,typeof $==="function")aX($)?(Y=B9($,Y),Z.tag=1,Z.type=$=Q9($),Z=aH(null,Z,$,Y,G)):(Z.tag=0,sq(Z,$),Z.type=$=Q9($),Z=nq(null,Z,$,Y,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===RZ){Z.tag=11,Z.type=$=oX($),Z=pH(null,Z,$,Y,G);break $}else if(U===TG){Z.tag=14,Z=cH(null,Z,$,Y,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===P6&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+G+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return nq($,Z,Z.type,Z.pendingProps,G);case 1:return Y=Z.type,U=B9(Y,Z.pendingProps),aH($,Z,Y,U,G);case 3:$:{if(l(Z,Z.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");Y=Z.pendingProps;var B=Z.memoizedState;U=B.element,Hq($,Z),i$(Z,Y,null,G);var W=Z.memoizedState;if(Y=W.cache,c2(Z,t1,Y),Y!==B.cache&&Xq(Z,[t1],G,!0),a$(),Y=W.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=iH($,Z,Y,G);break $}else if(Y!==U){U=W6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),c$(U),Z=iH($,Z,Y,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}E1=L6($.firstChild),T5=Z,i0=!0,N8=null,h4=!1,I6=null,u6=!0,G=Fw(Z,null,Y,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(X9(),Y===U){Z=G2($,Z,G);break $}_5($,Z,Y,G)}Z=Z.child}return Z;case 26:return ZG($,Z),$===null?(G=OM(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:i0||(G=Z.type,$=Z.pendingProps,Y=b0(Z8.current),Y=HG(Y).createElement(G),Y[P5]=Z,Y[x5]=$,L5(Y,G,$),_0(Y),Z.stateNode=Y):Z.memoizedState=OM(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return a0(Z),$===null&&i0&&(Y=b0(Z8.current),U=F0(),Y=Z.stateNode=CM(Z.type,Z.pendingProps,Y,U,!1),h4||(U=BM(Y,Z.type,Z.pendingProps,U),U!==null&&(G9(Z,0).serverProps=U)),T5=Z,u6=!0,U=E1,e2(Z.type)?(UU=U,E1=L6(Y.firstChild)):E1=U),_5($,Z,Z.pendingProps.children,G),ZG($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&i0&&(B=F0(),Y=mX(Z.type,B.ancestorInfo),U=E1,(W=!U)||(W=SC(U,Z.type,Z.pendingProps,u6),W!==null?(Z.stateNode=W,h4||(B=BM(W,Z.type,Z.pendingProps,B),B!==null&&(G9(Z,0).serverProps=B)),T5=Z,E1=L6(W.firstChild),u6=!1,B=!0):B=!1,W=!B),W&&(Y&&AJ(Z,U),p2(Z))),a0(Z),U=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,Y=B.children,VY(U,B)?Y=null:W!==null&&VY(U,W)&&(Z.flags|=32),Z.memoizedState!==null&&(U=Rq($,Z,bT,null,null,G),UQ._currentValue=U),ZG($,Z),_5($,Z,Y,G),Z.child;case 6:return $===null&&i0&&(G=Z.pendingProps,$=F0(),Y=$.ancestorInfo.current,G=Y!=null?RJ(G,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=E1,(Y=!$)||(Y=jC($,Z.pendingProps,u6),Y!==null?(Z.stateNode=Y,T5=Z,E1=null,Y=!0):Y=!1,Y=!Y),Y&&(G&&AJ(Z,$),p2(Z))),null;case 13:return tH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=I9(Z,null,Y,G):_5($,Z,Y,G),Z.child;case 11:return pH($,Z,Z.type,Z.pendingProps,G);case 7:return _5($,Z,Z.pendingProps,G),Z.child;case 8:return _5($,Z,Z.pendingProps.children,G),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,_5($,Z,Z.pendingProps.children,G),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||uw||(uw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),c2(Z,Y,B),_5($,Z,U.children,G),Z.child;case 9:return U=Z.type._context,Y=Z.pendingProps.children,typeof Y!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),q9(Z),U=v1(U),Y=AN(Y,U,void 0),Z.flags|=1,_5($,Z,Y,G),Z.child;case 14:return cH($,Z,Z.type,Z.pendingProps,G);case 15:return lH($,Z,Z.type,Z.pendingProps,G);case 19:return $F($,Z,G);case 31:return xT($,Z,G);case 22:return rH($,Z,G,Z.pendingProps);case 24:return q9(Z),Y=v1(t1),$===null?(U=Uq(),U===null&&(U=P1,B=qq(),U.pooledCache=B,Y9(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Z.memoizedState={parent:Y,cache:U},Bq(Z),c2(Z,t1,U)):(($.lanes&G)!==0&&(Hq($,Z),i$(Z,null,null,G),a$()),U=$.memoizedState,B=Z.memoizedState,U.parent!==Y?(U={parent:Y,cache:Y},Z.memoizedState=U,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=U),c2(Z,t1,Y)):(Y=B.cache,c2(Z,t1,Y),Y!==U.cache&&Xq(Z,[t1],G,!0))),_5($,Z,Z.pendingProps.children,G),Z.child;case 29:throw Z.pendingProps}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function X2($){$.flags|=4}function QY($,Z,G,Y,U){if(Z=($.mode&YO)!==V0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(bF())$.flags|=8192;else throw C9=sG,SN}else $.flags&=-16777217}function ZF($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&c6)!==f9)$.flags&=-16777217;else if($.flags|=16777216,!jM(Z))if(bF())$.flags|=8192;else throw C9=sG,SN}function JG($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?Y7():536870912,$.lanes|=Z,S9|=Z)}function QZ($,Z){if(!i0)switch($.tailMode){case"hidden":Z=$.tail;for(var G=null;Z!==null;)Z.alternate!==null&&(G=Z),Z=Z.sibling;G===null?$.tail=null:G.sibling=null;break;case"collapsed":G=$.tail;for(var Y=null;G!==null;)G.alternate!==null&&(Y=G),G=G.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function I1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,Y=0;if(Z)if(($.mode&g0)!==V0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)G|=B.lanes|B.childLanes,Y|=B.subtreeFlags&65011712,Y|=B.flags&65011712,U+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=U}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&g0)!==V0){U=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)G|=W.lanes|W.childLanes,Y|=W.subtreeFlags,Y|=W.flags,U+=W.actualDuration,B+=W.treeBaseDuration,W=W.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=G,Z}function dT($,Z,G){var Y=Z.pendingProps;switch(Zq(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return I1(Z),null;case 1:return I1(Z),null;case 3:if(G=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),Q2(t1,Z),q0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)H7(Z)?(Jq(),X2(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,Qq());return I1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(X2(Z),B!==null?(I1(Z),ZF(Z,B)):(I1(Z),QY(Z,U,null,Y,G))):B?B!==$.memoizedState?(X2(Z),I1(Z),ZF(Z,B)):(I1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&X2(Z),I1(Z),QY(Z,U,$,Y,G)),null;case 27:if(d0(Z),G=b0(Z8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&X2(Z);else{if(!Y){if(Z.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return I1(Z),null}$=F0(),H7(Z)?pB(Z,$):($=CM(U,Y,G,$,!0),Z.stateNode=$,X2(Z))}return I1(Z),null;case 5:if(d0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&X2(Z);else{if(!Y){if(Z.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return I1(Z),null}var W=F0();if(H7(Z))pB(Z,W);else{switch(B=b0(Z8.current),mX(U,W.ancestorInfo),W=W.context,B=HG(B),W){case N$:B=B.createElementNS(v7,U);break;case L3:B=B.createElementNS(SG,U);break;default:switch(U){case"svg":B=B.createElementNS(v7,U);break;case"math":B=B.createElementNS(SG,U);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof Y.is==="string"?B.createElement("select",{is:Y.is}):B.createElement("select"),Y.multiple?B.multiple=!0:Y.size&&(B.size=Y.size);break;default:B=typeof Y.is==="string"?B.createElement(U,{is:Y.is}):B.createElement(U),U.indexOf("-")===-1&&(U!==U.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",U),Object.prototype.toString.call(B)!=="[object HTMLUnknownElement]"||G4.call(UR,U)||(UR[U]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",U)))}}B[P5]=Z,B[x5]=Y;$:for(W=Z.child;W!==null;){if(W.tag===5||W.tag===6)B.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===Z)break $;for(;W.sibling===null;){if(W.return===null||W.return===Z)break $;W=W.return}W.sibling.return=W.return,W=W.sibling}Z.stateNode=B;$:switch(L5(B,U,Y),U){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break $;case"img":Y=!0;break $;default:Y=!1}Y&&X2(Z)}}return I1(Z),QY(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&X2(Z);else{if(typeof Y!=="string"&&Z.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if($=b0(Z8.current),G=F0(),H7(Z)){if($=Z.stateNode,G=Z.memoizedProps,U=!h4,Y=null,B=T5,B!==null)switch(B.tag){case 3:U&&(U=PM($,G,Y),U!==null&&(G9(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=PM($,G,Y),U!==null&&(G9(Z,0).serverProps=U))}$[P5]=Z,$=$.nodeValue===G||Y!==null&&Y.suppressHydrationWarning===!0||qM($.nodeValue,G)?!0:!1,$||p2(Z,!0)}else U=G.ancestorInfo.current,U!=null&&RJ(Y,U.tag,G.ancestorInfo.implicitRootScope),$=HG($).createTextNode(Y),$[P5]=Z,Z.stateNode=$}return I1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=H7(Z),G!==null){if($===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=Z.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[P5]=Z,I1(Z),(Z.mode&g0)!==V0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else Jq(),X9(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,I1(Z),(Z.mode&g0)!==V0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=Qq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return I1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=H7(Z),U!==null&&U.dehydrated!==null){if($===null){if(!B)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(B=Z.memoizedState,B=B!==null?B.dehydrated:null,!B)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");B[P5]=Z,I1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else Jq(),X9(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,I1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=Qq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}}if(z6(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&g0)!==V0&&n$(Z),Z;return G=Y!==null,$=$!==null&&$.memoizedState!==null,G&&(Y=Z.child,U=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(U=Y.alternate.memoizedState.cachePool.pool),B=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(B=Y.memoizedState.cachePool.pool),B!==U&&(Y.flags|=2048)),G!==$&&G&&(Z.child.flags|=8192),JG(Z,Z.updateQueue),I1(Z),(Z.mode&g0)!==V0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return q0(Z),$===null&&_Y(Z.stateNode.containerInfo),I1(Z),null;case 10:return Q2(Z.type,Z),I1(Z),null;case 19:if(P0(r1,Z),Y=Z.memoizedState,Y===null)return I1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)QZ(Y,!1);else{if(f1!==L2||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=xJ($),B!==null){Z.flags|=128,QZ(Y,!1),$=B.updateQueue,Z.updateQueue=$,JG(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)gB(G,$),G=G.sibling;return I0(r1,r1.current&a7|lZ,Z),i0&&Z2(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&F5()>Y3&&(Z.flags|=128,U=!0,QZ(Y,!1),Z.lanes=4194304)}else{if(!U)if($=xJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,JG(Z,$),QZ(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!i0)return I1(Z),null}else 2*F5()-Y.renderingStartTime>Y3&&G!==536870912&&(Z.flags|=128,U=!0,QZ(Y,!1),Z.lanes=4194304);Y.isBackwards?(B.sibling=Z.child,Z.child=B):($=Y.last,$!==null?$.sibling=B:Z.child=B,Y.last=B)}if(Y.tail!==null)return $=Y.tail,Y.rendering=$,Y.tail=$.sibling,Y.renderingStartTime=F5(),$.sibling=null,G=r1.current,G=U?G&a7|lZ:G&a7,I0(r1,G,Z),i0&&Z2(Z,Y.treeForkCount),$;return I1(Z),null;case 22:case 23:return z6(Z),Mq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(G&536870912)!==0&&(Z.flags&128)===0&&(I1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):I1(Z),G=Z.updateQueue,G!==null&&JG(Z,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==G&&(Z.flags|=2048),$!==null&&P0(P9,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),Q2(t1,Z),I1(Z),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function pT($,Z){switch(Zq(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 3:return Q2(t1,Z),q0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return d0(Z),null;case 31:if(Z.memoizedState!==null){if(z6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");X9()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 13:if(z6(Z),$=Z.memoizedState,$!==null&&$.dehydrated!==null){if(Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");X9()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 19:return P0(r1,Z),null;case 4:return q0(Z),null;case 10:return Q2(Z.type,Z),null;case 22:case 23:return z6(Z),Mq(Z),$!==null&&P0(P9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 24:return Q2(t1,Z),null;case 25:return null;default:return null}}function QF($,Z){switch(Zq(Z),Z.tag){case 3:Q2(t1,Z),q0(Z);break;case 26:case 27:case 5:d0(Z);break;case 4:q0(Z);break;case 31:Z.memoizedState!==null&&z6(Z);break;case 13:z6(Z);break;case 19:P0(r1,Z);break;case 10:Q2(Z.type,Z);break;case 22:case 23:z6(Z),Mq(Z),$!==null&&P0(P9,Z);break;case 24:Q2(t1,Z)}}function O4($){return($.mode&g0)!==V0}function JF($,Z){O4($)?(I4(),JZ(Z,$),C4()):JZ(Z,$)}function JY($,Z,G){O4($)?(I4(),z7(G,$,Z),C4()):z7(G,$,Z)}function JZ($,Z){try{var G=Z.updateQueue,Y=G!==null?G.lastEffect:null;if(Y!==null){var U=Y.next;G=U;do{if((G.tag&$)===$&&(Y=void 0,($&c5)!==aG&&(X$=!0),Y=X0(Z,HO,G),($&c5)!==aG&&(X$=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(G.tag&V6)!==0?"useLayoutEffect":(G.tag&c5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
|
|
139
|
+
`+L:""))}}B=Z.stateNode,W=i(G)||"Component",B.render||(G.prototype&&typeof G.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!B.getInitialState||B.getInitialState.isReactClassApproved||B.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",W),B.getDefaultProps&&!B.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",W),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),G.childContextTypes&&!Dw.has(G)&&(Dw.add(G),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),G.contextTypes&&!jw.has(G)&&(jw.add(G),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",W)),typeof B.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",W),G.prototype&&G.prototype.isPureReactComponent&&typeof B.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",i(G)||"A pure component"),typeof B.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",W),typeof B.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",W),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),z=B.props!==Y,B.props!==void 0&&z&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",W),B.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",W,W),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||Vw.has(G)||(Vw.add(G),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",i(G))),typeof B.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof B.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof G.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(z=B.state)&&(typeof z!=="object"||q5(z))&&console.error("%s.state: must be set to an object or null",W),typeof B.getChildContext==="function"&&typeof G.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},Bq(Z),W=G.contextType,B.context=typeof W==="object"&&W!==null?v1(W):Y8,B.state===Y&&(W=i(G)||"Component",Ew.has(W)||(Ew.add(W),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",W))),Z.mode&v5&&Y4.recordLegacyContextWarning(Z,B),Y4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,W=G.getDerivedStateFromProps,typeof W==="function"&&(pq(Z,G,W,Y),B.state=Z.memoizedState),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(W=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),W!==B.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Z)||"Component"),gN.enqueueReplaceState(B,B.state,null)),i$(Z,Y,B,U),a$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&q4)!==V0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var k=Z.memoizedProps;z=B7(G,k),B.props=z;var f=B.context;L=G.contextType,W=Y8,typeof L==="object"&&L!==null&&(W=v1(L)),T=G.getDerivedStateFromProps,L=typeof T==="function"||typeof B.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(k||f!==W)&&hH(Z,B,Y,W),M8=!1;var S=Z.memoizedState;B.state=S,i$(Z,Y,B,U),a$(),f=Z.memoizedState,k||S!==f||M8?(typeof T==="function"&&(pq(Z,G,T,Y),f=Z.memoizedState),(z=M8||gH(Z,G,z,Y,S,f,W))?(L||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&q4)!==V0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&q4)!==V0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),B.props=Y,B.state=f,B.context=W,B=z):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&q4)!==V0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,Hq($,Z),W=Z.memoizedProps,L=B7(G,W),B.props=L,T=Z.pendingProps,S=B.context,f=G.contextType,z=Y8,typeof f==="object"&&f!==null&&(z=v1(f)),k=G.getDerivedStateFromProps,(f=typeof k==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(W!==T||S!==z)&&hH(Z,B,Y,z),M8=!1,S=Z.memoizedState,B.state=S,i$(Z,Y,B,U),a$();var g=Z.memoizedState;W!==T||S!==g||M8||$!==null&&$.dependencies!==null&&SJ($.dependencies)?(typeof k==="function"&&(pq(Z,G,k,Y),g=Z.memoizedState),(L=M8||gH(Z,G,L,Y,S,g,z)||$!==null&&$.dependencies!==null&&SJ($.dependencies))?(f||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(Y,g,z),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(Y,g,z)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),B.props=Y,B.state=g,B.context=z,B=L):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),B=!1)}if(z=B,ZG($,Z),W=(Z.flags&128)!==0,z||W){if(z=Z.stateNode,X9(Z),W&&typeof G.getDerivedStateFromError!=="function")G=null,p5=-1;else if(G=eW(z),Z.mode&v5){C1(!0);try{eW(z)}finally{C1(!1)}}Z.flags|=1,$!==null&&W?(Z.child=I7(Z,$.child,null,U),Z.child=I7(Z,null,G,U)):_5($,Z,G,U),Z.memoizedState=z.state,$=Z.child}else $=G2($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&($$||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",d(Z)||"a component"),$$=!0),$}function iH($,Z,G,Y){return X7(),Z.flags|=256,_5($,Z,G,Y),Z.child}function sq($,Z){Z&&Z.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=i(Z)||"Unknown",gw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),gw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",fw[Z]||(console.error("%s: Function components do not support contextType.",Z),fw[Z]=!0))}function oq($){return{baseLanes:$,cachePool:oB()}}function aq($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=e5),$}function tH($,Z,G){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,W=(Z.flags&128)!==0;if((Y=W)||(Y=$!==null&&$.memoizedState===null?!1:(r1.current&lZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(i0){if(B?s2(Z):o2(Z),($=E1)?(G=_M($,u6),G=G!==null&&G.data!==v7?G:null,G!==null&&(Y={dehydrated:G,treeContext:xB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=hB(G),Y.return=Z,Z.child=Y,T5=Z,E1=null)):G=null,G===null)throw AJ(Z,$),p2(Z);return SY(G)?Z.lanes=32:Z.lanes=536870912,null}var z=U.children;if(U=U.fallback,B){o2(Z);var L=Z.mode;return z=QG({mode:"hidden",children:z},L),U=J7(U,L,G,null),z.return=Z,U.return=Z,z.sibling=U,Z.child=z,U=Z.child,U.memoizedState=oq(G),U.childLanes=aq($,Y,G),Z.memoizedState=xN,ZZ(null,U)}return s2(Z),iq(Z,z)}var T=$.memoizedState;if(T!==null){var k=T.dehydrated;if(k!==null){if(W)Z.flags&256?(s2(Z),Z.flags&=-257,Z=tq($,Z,G)):Z.memoizedState!==null?(o2(Z),Z.child=$.child,Z.flags|=128,Z=null):(o2(Z),z=U.fallback,L=Z.mode,U=QG({mode:"visible",children:U.children},L),z=J7(z,L,G,null),z.flags|=2,U.return=Z,z.return=Z,U.sibling=z,Z.child=U,I7(Z,$.child,null,G),U=Z.child,U.memoizedState=oq(G),U.childLanes=aq($,Y,G),Z.memoizedState=xN,Z=ZZ(null,U));else if(s2(Z),dB(),(G&536870912)!==0&&YG(Z),SY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){z=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=z,U=L,k=S,z=B,L=k,z=z?Error(z):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),z.stack=U||"",z.digest=Y,Y=L===void 0?null:L,U={value:z,source:null,stack:Y},typeof Y==="string"&&_N.set(z,U),c$(U),Z=tq($,Z,G)}else if(Z5||F9($,Z,G,!1),Y=(G&$.childLanes)!==0,Z5||Y){if(Y=P1,Y!==null&&(U=i8(Y,G),U!==0&&U!==T.retryLane))throw T.retryLane=U,j5($,U),h1(Y,$,U),uN;EY(k)||NG(),Z=tq($,Z,G)}else EY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=T.treeContext,E1=L6(k.nextSibling),T5=Z,i0=!0,N8=null,h4=!1,I6=null,u6=!1,$!==null&&mB(Z,$),Z=iq(Z,U.children),Z.flags|=4096);return Z}}if(B)return o2(Z),z=U.fallback,L=Z.mode,S=$.child,k=S.sibling,U=$2(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,k!==null?z=$2(k,z):(z=J7(z,L,G,null),z.flags|=2),z.return=Z,U.return=Z,U.sibling=z,Z.child=U,ZZ(null,U),U=Z.child,z=$.child.memoizedState,z===null?z=oq(G):(L=z.cachePool,L!==null?(S=t1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=oB(),z={baseLanes:z.baseLanes|G,cachePool:L}),U.memoizedState=z,U.childLanes=aq($,Y,G),Z.memoizedState=xN,ZZ($.child,U);return T!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&YG(Z),s2(Z),G=$.child,$=G.sibling,G=$2(G,{mode:"visible",children:U.children}),G.return=Z,G.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=G,Z.memoizedState=null,G}function iq($,Z){return Z=QG({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function QG($,Z){return $=P(22,$,null,Z),$.lanes=0,$}function tq($,Z,G){return I7(Z,$.child,null,G),$=iq(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function eH($,Z,G){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),Gq($.return,Z,G)}function eq($,Z,G,Y,U,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:G,tailMode:U,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=Y,W.tail=G,W.tailMode=U,W.treeForkCount=B)}function $F($,Z,G){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,W=Y.children,z=r1.current;if((Y=(z&lZ)!==0)?(z=z&a9|lZ,Z.flags|=128):z&=a9,I0(r1,z,Z),z=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!hw[z])if(hw[z]=!0,U==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(U==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof U==="string")switch(U.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',U,U.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',U,U.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U);if(z=B==null?"null":B,!$3[z])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")$3[z]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else B!=="visible"&&B!=="collapsed"&&B!=="hidden"?($3[z]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',B)):U!=="forwards"&&U!=="backwards"&&U!=="unstable_legacy-backwards"&&($3[z]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',B));$:if((U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(q5(W)){for(z=0;z<W.length;z++)if(!XH(W[z],z))break $}else if(z=t(W),typeof z==="function"){if(z=z.call(W))for(var L=z.next(),T=0;!L.done;L=z.next()){if(!XH(L.value,T))break $;T++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',U);if(_5($,Z,W,G),i0?(d2(),W=jZ):W=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&eH($,G,Z);else if($.tag===19)eH($,G,Z);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===Z)break $;for(;$.sibling===null;){if($.return===null||$.return===Z)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(U){case"forwards":G=Z.child;for(U=null;G!==null;)$=G.alternate,$!==null&&xJ($)===null&&(U=G),G=G.sibling;G=U,G===null?(U=Z.child,Z.child=null):(U=G.sibling,G.sibling=null),eq(Z,!1,U,G,B,W);break;case"backwards":case"unstable_legacy-backwards":G=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&xJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=G,G=U,U=$}eq(Z,!0,G,null,B,W);break;case"together":eq(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function G2($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),p5=-1,R8|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(F9($,Z,G,!1),(G&Z.childLanes)===0)return null}else return null;if($!==null&&Z.child!==$.child)throw Error("Resuming work not yet implemented.");if(Z.child!==null){$=Z.child,G=$2($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=$2($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function $Y($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&SJ($)?!0:!1}function mT($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),c2(Z,t1,$.memoizedState.cache),X7();break;case 27:case 5:a0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:c2(Z,Z.type,Z.memoizedProps.value);break;case 12:(G&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var Y=Z.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,Wq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return s2(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return tH($,Z,G);return s2(Z),$=G2($,Z,G),$!==null?$.sibling:null}s2(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(G&Z.childLanes)!==0,Y||(F9($,Z,G,!1),Y=(G&Z.childLanes)!==0),U){if(Y)return $F($,Z,G);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),I0(r1,r1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,rH($,Z,G,Z.pendingProps);case 24:c2(Z,t1,$.memoizedState.cache)}return G2($,Z,G)}function ZY($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=iX(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),G._debugStack=Z._debugStack,G._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,G.index=Z.index,G.sibling=Z.sibling,G.return=Z.return,G.ref=Z.ref,G._debugInfo=Z._debugInfo,Z===Y.child)Y.child=G;else{var U=Y.child;if(U===null)throw Error("Expected parent to have a child.");for(;U.sibling!==Z;)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=G}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)Z5=!0;else{if(!$Y($,G)&&(Z.flags&128)===0)return Z5=!1,mT($,Z,G);Z5=($.flags&131072)!==0?!0:!1}else{if(Z5=!1,Y=i0)d2(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,d2(),uB(Z,jZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=l2(Z.elementType),Z.type=$,typeof $==="function")aX($)?(Y=B7($,Y),Z.tag=1,Z.type=$=Q7($),Z=aH(null,Z,$,Y,G)):(Z.tag=0,sq(Z,$),Z.type=$=Q7($),Z=nq(null,Z,$,Y,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===RZ){Z.tag=11,Z.type=$=oX($),Z=pH(null,Z,$,Y,G);break $}else if(U===TG){Z.tag=14,Z=cH(null,Z,$,Y,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===P6&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+G+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return nq($,Z,Z.type,Z.pendingProps,G);case 1:return Y=Z.type,U=B7(Y,Z.pendingProps),aH($,Z,Y,U,G);case 3:$:{if(l(Z,Z.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");Y=Z.pendingProps;var B=Z.memoizedState;U=B.element,Hq($,Z),i$(Z,Y,null,G);var W=Z.memoizedState;if(Y=W.cache,c2(Z,t1,Y),Y!==B.cache&&Xq(Z,[t1],G,!0),a$(),Y=W.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=iH($,Z,Y,G);break $}else if(Y!==U){U=W6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),c$(U),Z=iH($,Z,Y,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}E1=L6($.firstChild),T5=Z,i0=!0,N8=null,h4=!1,I6=null,u6=!0,G=Fw(Z,null,Y,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(X7(),Y===U){Z=G2($,Z,G);break $}_5($,Z,Y,G)}Z=Z.child}return Z;case 26:return ZG($,Z),$===null?(G=OM(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:i0||(G=Z.type,$=Z.pendingProps,Y=b0(Z8.current),Y=HG(Y).createElement(G),Y[P5]=Z,Y[x5]=$,L5(Y,G,$),_0(Y),Z.stateNode=Y):Z.memoizedState=OM(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return a0(Z),$===null&&i0&&(Y=b0(Z8.current),U=F0(),Y=Z.stateNode=CM(Z.type,Z.pendingProps,Y,U,!1),h4||(U=BM(Y,Z.type,Z.pendingProps,U),U!==null&&(G7(Z,0).serverProps=U)),T5=Z,u6=!0,U=E1,e2(Z.type)?(UU=U,E1=L6(Y.firstChild)):E1=U),_5($,Z,Z.pendingProps.children,G),ZG($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&i0&&(B=F0(),Y=mX(Z.type,B.ancestorInfo),U=E1,(W=!U)||(W=SC(U,Z.type,Z.pendingProps,u6),W!==null?(Z.stateNode=W,h4||(B=BM(W,Z.type,Z.pendingProps,B),B!==null&&(G7(Z,0).serverProps=B)),T5=Z,E1=L6(W.firstChild),u6=!1,B=!0):B=!1,W=!B),W&&(Y&&AJ(Z,U),p2(Z))),a0(Z),U=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,Y=B.children,VY(U,B)?Y=null:W!==null&&VY(U,W)&&(Z.flags|=32),Z.memoizedState!==null&&(U=Rq($,Z,bT,null,null,G),UQ._currentValue=U),ZG($,Z),_5($,Z,Y,G),Z.child;case 6:return $===null&&i0&&(G=Z.pendingProps,$=F0(),Y=$.ancestorInfo.current,G=Y!=null?RJ(G,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=E1,(Y=!$)||(Y=jC($,Z.pendingProps,u6),Y!==null?(Z.stateNode=Y,T5=Z,E1=null,Y=!0):Y=!1,Y=!Y),Y&&(G&&AJ(Z,$),p2(Z))),null;case 13:return tH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=I7(Z,null,Y,G):_5($,Z,Y,G),Z.child;case 11:return pH($,Z,Z.type,Z.pendingProps,G);case 7:return _5($,Z,Z.pendingProps,G),Z.child;case 8:return _5($,Z,Z.pendingProps.children,G),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,_5($,Z,Z.pendingProps.children,G),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||uw||(uw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),c2(Z,Y,B),_5($,Z,U.children,G),Z.child;case 9:return U=Z.type._context,Y=Z.pendingProps.children,typeof Y!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),q7(Z),U=v1(U),Y=AN(Y,U,void 0),Z.flags|=1,_5($,Z,Y,G),Z.child;case 14:return cH($,Z,Z.type,Z.pendingProps,G);case 15:return lH($,Z,Z.type,Z.pendingProps,G);case 19:return $F($,Z,G);case 31:return xT($,Z,G);case 22:return rH($,Z,G,Z.pendingProps);case 24:return q7(Z),Y=v1(t1),$===null?(U=Uq(),U===null&&(U=P1,B=qq(),U.pooledCache=B,Y7(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Z.memoizedState={parent:Y,cache:U},Bq(Z),c2(Z,t1,U)):(($.lanes&G)!==0&&(Hq($,Z),i$(Z,null,null,G),a$()),U=$.memoizedState,B=Z.memoizedState,U.parent!==Y?(U={parent:Y,cache:Y},Z.memoizedState=U,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=U),c2(Z,t1,Y)):(Y=B.cache,c2(Z,t1,Y),Y!==U.cache&&Xq(Z,[t1],G,!0))),_5($,Z,Z.pendingProps.children,G),Z.child;case 29:throw Z.pendingProps}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function X2($){$.flags|=4}function QY($,Z,G,Y,U){if(Z=($.mode&YO)!==V0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(bF())$.flags|=8192;else throw C7=sG,SN}else $.flags&=-16777217}function ZF($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&c6)!==f7)$.flags&=-16777217;else if($.flags|=16777216,!jM(Z))if(bF())$.flags|=8192;else throw C7=sG,SN}function JG($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?Y9():536870912,$.lanes|=Z,S7|=Z)}function QZ($,Z){if(!i0)switch($.tailMode){case"hidden":Z=$.tail;for(var G=null;Z!==null;)Z.alternate!==null&&(G=Z),Z=Z.sibling;G===null?$.tail=null:G.sibling=null;break;case"collapsed":G=$.tail;for(var Y=null;G!==null;)G.alternate!==null&&(Y=G),G=G.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function I1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,Y=0;if(Z)if(($.mode&g0)!==V0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)G|=B.lanes|B.childLanes,Y|=B.subtreeFlags&65011712,Y|=B.flags&65011712,U+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=U}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&g0)!==V0){U=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)G|=W.lanes|W.childLanes,Y|=W.subtreeFlags,Y|=W.flags,U+=W.actualDuration,B+=W.treeBaseDuration,W=W.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=G,Z}function dT($,Z,G){var Y=Z.pendingProps;switch(Zq(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return I1(Z),null;case 1:return I1(Z),null;case 3:if(G=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),Q2(t1,Z),q0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)H9(Z)?(Jq(),X2(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,Qq());return I1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(X2(Z),B!==null?(I1(Z),ZF(Z,B)):(I1(Z),QY(Z,U,null,Y,G))):B?B!==$.memoizedState?(X2(Z),I1(Z),ZF(Z,B)):(I1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&X2(Z),I1(Z),QY(Z,U,$,Y,G)),null;case 27:if(d0(Z),G=b0(Z8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&X2(Z);else{if(!Y){if(Z.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return I1(Z),null}$=F0(),H9(Z)?pB(Z,$):($=CM(U,Y,G,$,!0),Z.stateNode=$,X2(Z))}return I1(Z),null;case 5:if(d0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&X2(Z);else{if(!Y){if(Z.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return I1(Z),null}var W=F0();if(H9(Z))pB(Z,W);else{switch(B=b0(Z8.current),mX(U,W.ancestorInfo),W=W.context,B=HG(B),W){case N$:B=B.createElementNS(v9,U);break;case L3:B=B.createElementNS(SG,U);break;default:switch(U){case"svg":B=B.createElementNS(v9,U);break;case"math":B=B.createElementNS(SG,U);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof Y.is==="string"?B.createElement("select",{is:Y.is}):B.createElement("select"),Y.multiple?B.multiple=!0:Y.size&&(B.size=Y.size);break;default:B=typeof Y.is==="string"?B.createElement(U,{is:Y.is}):B.createElement(U),U.indexOf("-")===-1&&(U!==U.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",U),Object.prototype.toString.call(B)!=="[object HTMLUnknownElement]"||G4.call(UR,U)||(UR[U]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",U)))}}B[P5]=Z,B[x5]=Y;$:for(W=Z.child;W!==null;){if(W.tag===5||W.tag===6)B.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===Z)break $;for(;W.sibling===null;){if(W.return===null||W.return===Z)break $;W=W.return}W.sibling.return=W.return,W=W.sibling}Z.stateNode=B;$:switch(L5(B,U,Y),U){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break $;case"img":Y=!0;break $;default:Y=!1}Y&&X2(Z)}}return I1(Z),QY(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&X2(Z);else{if(typeof Y!=="string"&&Z.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if($=b0(Z8.current),G=F0(),H9(Z)){if($=Z.stateNode,G=Z.memoizedProps,U=!h4,Y=null,B=T5,B!==null)switch(B.tag){case 3:U&&(U=PM($,G,Y),U!==null&&(G7(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=PM($,G,Y),U!==null&&(G7(Z,0).serverProps=U))}$[P5]=Z,$=$.nodeValue===G||Y!==null&&Y.suppressHydrationWarning===!0||qM($.nodeValue,G)?!0:!1,$||p2(Z,!0)}else U=G.ancestorInfo.current,U!=null&&RJ(Y,U.tag,G.ancestorInfo.implicitRootScope),$=HG($).createTextNode(Y),$[P5]=Z,Z.stateNode=$}return I1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=H9(Z),G!==null){if($===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=Z.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[P5]=Z,I1(Z),(Z.mode&g0)!==V0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else Jq(),X7(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,I1(Z),(Z.mode&g0)!==V0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=Qq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return I1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=H9(Z),U!==null&&U.dehydrated!==null){if($===null){if(!B)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(B=Z.memoizedState,B=B!==null?B.dehydrated:null,!B)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");B[P5]=Z,I1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else Jq(),X7(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,I1(Z),(Z.mode&g0)!==V0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=Qq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return z6(Z),Z;return z6(Z),null}}if(z6(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&g0)!==V0&&n$(Z),Z;return G=Y!==null,$=$!==null&&$.memoizedState!==null,G&&(Y=Z.child,U=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(U=Y.alternate.memoizedState.cachePool.pool),B=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(B=Y.memoizedState.cachePool.pool),B!==U&&(Y.flags|=2048)),G!==$&&G&&(Z.child.flags|=8192),JG(Z,Z.updateQueue),I1(Z),(Z.mode&g0)!==V0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return q0(Z),$===null&&_Y(Z.stateNode.containerInfo),I1(Z),null;case 10:return Q2(Z.type,Z),I1(Z),null;case 19:if(P0(r1,Z),Y=Z.memoizedState,Y===null)return I1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)QZ(Y,!1);else{if(f1!==L2||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=xJ($),B!==null){Z.flags|=128,QZ(Y,!1),$=B.updateQueue,Z.updateQueue=$,JG(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)gB(G,$),G=G.sibling;return I0(r1,r1.current&a9|lZ,Z),i0&&Z2(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&F5()>Y3&&(Z.flags|=128,U=!0,QZ(Y,!1),Z.lanes=4194304)}else{if(!U)if($=xJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,JG(Z,$),QZ(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!i0)return I1(Z),null}else 2*F5()-Y.renderingStartTime>Y3&&G!==536870912&&(Z.flags|=128,U=!0,QZ(Y,!1),Z.lanes=4194304);Y.isBackwards?(B.sibling=Z.child,Z.child=B):($=Y.last,$!==null?$.sibling=B:Z.child=B,Y.last=B)}if(Y.tail!==null)return $=Y.tail,Y.rendering=$,Y.tail=$.sibling,Y.renderingStartTime=F5(),$.sibling=null,G=r1.current,G=U?G&a9|lZ:G&a9,I0(r1,G,Z),i0&&Z2(Z,Y.treeForkCount),$;return I1(Z),null;case 22:case 23:return z6(Z),Mq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(G&536870912)!==0&&(Z.flags&128)===0&&(I1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):I1(Z),G=Z.updateQueue,G!==null&&JG(Z,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==G&&(Z.flags|=2048),$!==null&&P0(P7,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),Q2(t1,Z),I1(Z),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function pT($,Z){switch(Zq(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 3:return Q2(t1,Z),q0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return d0(Z),null;case 31:if(Z.memoizedState!==null){if(z6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");X7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 13:if(z6(Z),$=Z.memoizedState,$!==null&&$.dehydrated!==null){if(Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");X7()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 19:return P0(r1,Z),null;case 4:return q0(Z),null;case 10:return Q2(Z.type,Z),null;case 22:case 23:return z6(Z),Mq(Z),$!==null&&P0(P7,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&g0)!==V0&&n$(Z),Z):null;case 24:return Q2(t1,Z),null;case 25:return null;default:return null}}function QF($,Z){switch(Zq(Z),Z.tag){case 3:Q2(t1,Z),q0(Z);break;case 26:case 27:case 5:d0(Z);break;case 4:q0(Z);break;case 31:Z.memoizedState!==null&&z6(Z);break;case 13:z6(Z);break;case 19:P0(r1,Z);break;case 10:Q2(Z.type,Z);break;case 22:case 23:z6(Z),Mq(Z),$!==null&&P0(P7,Z);break;case 24:Q2(t1,Z)}}function O4($){return($.mode&g0)!==V0}function JF($,Z){O4($)?(I4(),JZ(Z,$),C4()):JZ(Z,$)}function JY($,Z,G){O4($)?(I4(),z9(G,$,Z),C4()):z9(G,$,Z)}function JZ($,Z){try{var G=Z.updateQueue,Y=G!==null?G.lastEffect:null;if(Y!==null){var U=Y.next;G=U;do{if((G.tag&$)===$&&(Y=void 0,($&c5)!==aG&&(X$=!0),Y=X0(Z,HO,G),($&c5)!==aG&&(X$=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(G.tag&V6)!==0?"useLayoutEffect":(G.tag&c5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
|
|
141
141
|
|
|
142
142
|
It looks like you wrote `+B+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
143
|
|
|
@@ -150,7 +150,7 @@ It looks like you wrote `+B+`(async () => ...) or returned a Promise. Instead, w
|
|
|
150
150
|
fetchData();
|
|
151
151
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
152
152
|
|
|
153
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Y,X0(Z,function(z,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",z,L)},B,W)}G=G.next}while(G!==U)}}catch(z){U1(Z,Z.return,z)}}function z7($,Z,G){try{var Y=Z.updateQueue,U=Y!==null?Y.lastEffect:null;if(U!==null){var B=U.next;Y=B;do{if((Y.tag&$)===$){var W=Y.inst,z=W.destroy;z!==void 0&&(W.destroy=void 0,($&c5)!==aG&&(X$=!0),U=Z,X0(U,FO,U,G,z),($&c5)!==aG&&(X$=!1))}Y=Y.next}while(Y!==B)}}catch(L){U1(Z,Z.return,L)}}function GF($,Z){O4($)?(I4(),JZ(Z,$),C4()):JZ(Z,$)}function GY($,Z,G){O4($)?(I4(),z7(G,$,Z),C4()):z7(G,$,Z)}function XF($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||$$||(G.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d($)||"instance"),G.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d($)||"instance"));try{X0($,YH,Z,G)}catch(Y){U1($,$.return,Y)}}}function cT($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function lT($,Z){var{memoizedProps:G,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||$$||(Z.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d($)||"instance"),Z.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d($)||"instance"));try{var U=B9($.type,G),B=X0($,cT,Z,U,Y);G=xw,B!==void 0||G.has($.type)||(G.add($.type),X0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){U1($,$.return,W)}}function qF($,Z,G){G.props=B9($.type,$.memoizedProps),G.state=$.memoizedState,O4($)?(I4(),X0($,Xw,$,Z,G),C4()):X0($,Xw,$,Z,G)}function rT($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var G=$.stateNode;break;case 30:G=$.stateNode;break;default:G=$.stateNode}if(typeof Z==="function")if(O4($))try{I4(),$.refCleanup=Z(G)}finally{C4()}else $.refCleanup=Z(G);else typeof Z==="string"?console.error("String refs are no longer supported."):Z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d($)),Z.current=G}}function GZ($,Z){try{X0($,rT,$)}catch(G){U1($,Z,G)}}function V4($,Z){var{ref:G,refCleanup:Y}=$;if(G!==null)if(typeof Y==="function")try{if(O4($))try{I4(),X0($,Y)}finally{C4($)}else X0($,Y)}catch(U){U1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(O4($))try{I4(),X0($,G,null)}finally{C4($)}else X0($,G,null)}catch(U){U1($,Z,U)}else G.current=null}function YF($,Z,G,Y){var U=$.memoizedProps,B=U.id,W=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",cG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,Y,G)}function nT($,Z,G,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",cG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,G)}function NF($){var{type:Z,memoizedProps:G,stateNode:Y}=$;try{X0($,RC,Y,Z,G,$)}catch(U){U1($,$.return,U)}}function XY($,Z,G){try{X0($,_C,$.stateNode,$.type,G,Z,$)}catch(Y){U1($,$.return,Y)}}function UF($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&e2($.type)||$.tag===4}function qY($){$:for(;;){for(;$.sibling===null;){if($.return===null||UF($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&e2($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function YY($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(wM(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(wM(G),Z=G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G,Z.appendChild($),G=G._reactRootContainer,G!==null&&G!==void 0||Z.onclick!==null||(Z.onclick=e4));else if(Y!==4&&(Y===27&&e2($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(YY($,Z,G),$=$.sibling;$!==null;)YY($,Z,G),$=$.sibling}function GG($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(Y!==4&&(Y===27&&e2($.type)&&(G=$.stateNode),$=$.child,$!==null))for(GG($,Z,G),$=$.sibling;$!==null;)GG($,Z,G),$=$.sibling}function sT($){for(var Z,G=$.return;G!==null;){if(UF(G)){Z=G;break}G=G.return}if(Z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Z.tag){case 27:Z=Z.stateNode,G=qY($),GG($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(WM(G),Z.flags&=-33),Z=qY($),GG($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=qY($),YY($,G,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function KF($){var{stateNode:Z,memoizedProps:G}=$;try{X0($,fC,$.type,G,Z,$)}catch(Y){U1($,$.return,Y)}}function BF($,Z){return Z.tag===31?(Z=Z.memoizedState,$.memoizedState!==null&&Z===null):Z.tag===13?($=$.memoizedState,Z=Z.memoizedState,$!==null&&$.dehydrated!==null&&(Z===null||Z.dehydrated===null)):Z.tag===3?$.memoizedState.isDehydrated&&(Z.flags&256)===0:!1}function oT($,Z){if($=$.containerInfo,qU=I3,$=AB($),cX($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var Y=G.getSelection&&G.getSelection();if(Y&&Y.rangeCount!==0){G=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{G.nodeType,B.nodeType}catch($0){G=null;break $}var W=0,z=-1,L=-1,T=0,k=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==G||U!==0&&f.nodeType!==3||(z=W+U),f!==B||Y!==0&&f.nodeType!==3||(L=W+Y),f.nodeType===3&&(W+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===G&&++T===U&&(z=W),S===B&&++k===Y&&(L=W),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}G=z===-1||L===-1?null:{start:z,end:L}}else G=null}G=G||{start:0,end:0}}else G=null;YU={focusedElem:$,selectionRange:G},I3=!1;for(W5=Z;W5!==null;)if(Z=W5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,W5=$;else for(;W5!==null;){switch($=Z=W5,G=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(G=0;G<$.length;G++)U=$[G],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&G!==null&&lT($,G);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)AY($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":AY($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((U&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if($=Z.sibling,$!==null){$.return=Z.return,W5=$;break}W5=Z.return}}function HF($,Z,G){var Y=w6(),U=_4(),B=P4(),W=T4(),z=G.flags;switch(G.tag){case 0:case 11:case 15:A4($,G),z&4&&JF(G,V6|d6);break;case 1:if(A4($,G),z&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||$$||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),O4(G)?(I4(),X0(G,EN,G,$),C4()):X0(G,EN,G,$);else{var L=B9(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||$$||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),O4(G)?(I4(),X0(G,Qw,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),C4()):X0(G,Qw,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}z&64&&XF(G),z&512&&GZ(G,G.return);break;case 3:if(Z=J2(),A4($,G),z&64&&(z=G.updateQueue,z!==null)){if(L=null,G.child!==null)switch(G.child.tag){case 27:case 5:L=G.child.stateNode;break;case 1:L=G.child.stateNode}try{X0(G,YH,z,L)}catch(k){U1(G,G.return,k)}}$.effectDuration+=DJ(Z);break;case 27:Z===null&&z&4&&KF(G);case 26:case 5:if(A4($,G),Z===null){if(z&4)NF(G);else if(z&64){$=G.type,Z=G.memoizedProps,L=G.stateNode;try{X0(G,zC,L,$,Z,G)}catch(k){U1(G,G.return,k)}}}z&512&&GZ(G,G.return);break;case 12:if(z&4){z=J2(),A4($,G),$=G.stateNode,$.effectDuration+=r$(z);try{X0(G,YF,G,Z,U8,$.effectDuration)}catch(k){U1(G,G.return,k)}}else A4($,G);break;case 31:A4($,G),z&4&&WF($,G);break;case 13:A4($,G),z&4&&wF($,G),z&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(z=GC.bind(null,G),DC($,z))));break;case 22:if(z=G.memoizedState!==null||_2,!z){Z=Z!==null&&Z.memoizedState!==null||Q5,L=_2;var T=Q5;_2=z,(Q5=Z)&&!T?(E4($,G,(G.subtreeFlags&8772)!==0),(G.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&PJ(G,L0,T0)):A4($,G),_2=L,Q5=T}break;case 30:break;default:A4($,G)}(G.mode&g0)!==V0&&0<=L0&&0<=T0&&((u1||0.05<k1)&&R4(G,L0,T0,k1,b1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<T0-L0&&(BF(G.return.alternate,G.return)||w4(G,L0,T0,"Mount"))),R6(Y),L4(U),b1=B,u1=W}function FF($){var Z=$.alternate;Z!==null&&($.alternate=null,FF(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&Z0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function q2($,Z,G){for(G=G.child;G!==null;)MF($,Z,G),G=G.sibling}function MF($,Z,G){if(D5&&typeof D5.onCommitFiberUnmount==="function")try{D5.onCommitFiberUnmount(j7,G)}catch(T){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",T))}var Y=w6(),U=_4(),B=P4(),W=T4();switch(G.tag){case 26:Q5||V4(G,Z),q2($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:Q5||V4(G,Z);var z=J5,L=i5;e2(G.type)&&(J5=G.stateNode,i5=!1),q2($,Z,G),X0(G,FZ,G.stateNode),J5=z,i5=L;break;case 5:Q5||V4(G,Z);case 6:if(z=J5,L=i5,J5=null,q2($,Z,G),J5=z,i5=L,J5!==null)if(i5)try{X0(G,TC,J5,G.stateNode)}catch(T){U1(G,Z,T)}else try{X0(G,PC,J5,G.stateNode)}catch(T){U1(G,Z,T)}break;case 18:J5!==null&&(i5?($=J5,RM($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),V7($)):RM(J5,G.stateNode));break;case 4:z=J5,L=i5,J5=G.stateNode.containerInfo,i5=!0,q2($,Z,G),J5=z,i5=L;break;case 0:case 11:case 14:case 15:z7(c5,G,Z),Q5||JY(G,Z,V6),q2($,Z,G);break;case 1:Q5||(V4(G,Z),z=G.stateNode,typeof z.componentWillUnmount==="function"&&qF(G,Z,z)),q2($,Z,G);break;case 21:q2($,Z,G);break;case 22:Q5=(z=Q5)||G.memoizedState!==null,q2($,Z,G),Q5=z;break;default:q2($,Z,G)}(G.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(G,L0,T0,k1,b1),R6(Y),L4(U),b1=B,u1=W}function WF($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{X0(Z,bC,$)}catch(G){U1(Z,Z.return,G)}}}function wF($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{X0(Z,kC,$)}catch(G){U1(Z,Z.return,G)}}function aT($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new mw),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new mw),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function XG($,Z){var G=aT($);Z.forEach(function(Y){if(!G.has(Y)){if(G.add(Y),f4)if(Z$!==null&&Q$!==null)NZ(Q$,Z$);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=XC.bind(null,$,Y);Y.then(U,U)}})}function o5($,Z){var G=Z.deletions;if(G!==null)for(var Y=0;Y<G.length;Y++){var U=$,B=Z,W=G[Y],z=w6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(e2(L.type)){J5=L.stateNode,i5=!1;break $}break;case 5:J5=L.stateNode,i5=!1;break $;case 3:case 4:J5=L.stateNode.containerInfo,i5=!0;break $}L=L.return}if(J5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");MF(U,B,W),J5=null,i5=!1,(W.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4(W,L0,T0,"Unmount"),R6(z),U=W,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)RF(Z,$),Z=Z.sibling}function RF($,Z){var G=w6(),Y=_4(),U=P4(),B=T4(),W=$.alternate,z=$.flags;switch($.tag){case 0:case 11:case 14:case 15:o5(Z,$),a5($),z&4&&(z7(c5|d6,$,$.return),JZ(c5|d6,$),JY($,$.return,V6|d6));break;case 1:if(o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),z&64&&_2&&(z=$.updateQueue,z!==null&&(W=z.callbacks,W!==null))){var L=z.shared.hiddenCallbacks;z.shared.hiddenCallbacks=L===null?W:L.concat(W)}break;case 26:if(L=U4,o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),z&4){var T=W!==null?W.memoizedState:null;if(z=$.memoizedState,W===null)if(z===null)if($.stateNode===null){$:{z=$.type,W=$.memoizedProps,L=L.ownerDocument||L;Z:switch(z){case"title":if(T=L.getElementsByTagName("title")[0],!T||T[LZ]||T[P5]||T.namespaceURI===v7||T.hasAttribute("itemprop"))T=L.createElement(z),L.head.insertBefore(T,L.querySelector("head > title"));L5(T,z,W),T[P5]=$,_0(T),z=T;break $;case"link":var k=EM("link","href",L).get(z+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(T=k[f],T.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&T.getAttribute("rel")===(W.rel==null?null:W.rel)&&T.getAttribute("title")===(W.title==null?null:W.title)&&T.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}T=L.createElement(z),L5(T,z,W),L.head.appendChild(T);break;case"meta":if(k=EM("meta","content",L).get(z+(W.content||""))){for(f=0;f<k.length;f++)if(T=k[f],w1(W.content,"content"),T.getAttribute("content")===(W.content==null?null:""+W.content)&&T.getAttribute("name")===(W.name==null?null:W.name)&&T.getAttribute("property")===(W.property==null?null:W.property)&&T.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&T.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}T=L.createElement(z),L5(T,z,W),L.head.appendChild(T);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+z+'". This is a bug in React.')}T[P5]=$,_0(T),z=T}$.stateNode=z}else SM(L,$.type,$.stateNode);else $.stateNode=AM(L,z,$.memoizedProps);else T!==z?(T===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):T.count--,z===null?SM(L,$.type,$.stateNode):AM(L,z,$.memoizedProps)):z===null&&$.stateNode!==null&&XY($,$.memoizedProps,W.memoizedProps)}break;case 27:o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),W!==null&&z&4&&XY($,$.memoizedProps,W.memoizedProps);break;case 5:if(o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),$.flags&32){L=$.stateNode;try{X0($,WM,L)}catch(G0){U1($,$.return,G0)}}z&4&&$.stateNode!=null&&(L=$.memoizedProps,XY($,L,W!==null?W.memoizedProps:L)),z&1024&&(mN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(o5(Z,$),a5($),z&4){if($.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");z=$.memoizedProps,W=W!==null?W.memoizedProps:z,L=$.stateNode;try{X0($,LC,L,W,z)}catch(G0){U1($,$.return,G0)}}break;case 3:if(L=J2(),P3=null,T=U4,U4=FG(Z.containerInfo),o5(Z,$),U4=T,a5($),z&4&&W!==null&&W.memoizedState.isDehydrated)try{X0($,vC,Z.containerInfo)}catch(G0){U1($,$.return,G0)}mN&&(mN=!1,zF($)),Z.effectDuration+=DJ(L);break;case 4:z=U4,U4=FG($.stateNode.containerInfo),o5(Z,$),a5($),U4=z;break;case 12:z=J2(),o5(Z,$),a5($),$.stateNode.effectDuration+=r$(z);break;case 31:o5(Z,$),a5($),z&4&&(z=$.updateQueue,z!==null&&($.updateQueue=null,XG($,z)));break;case 13:o5(Z,$),a5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(q3=F5()),z&4&&(z=$.updateQueue,z!==null&&($.updateQueue=null,XG($,z)));break;case 22:L=$.memoizedState!==null;var S=W!==null&&W.memoizedState!==null,g=_2,$0=Q5;if(_2=g||L,Q5=$0||S,o5(Z,$),Q5=$0,_2=g,S&&!L&&!g&&!$0&&($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&PJ($,L0,T0),a5($),z&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~SZ:Z._visibility|SZ,!L||W===null||S||_2||Q5||(H9($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4($,L0,T0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){S=W=Z;try{T=S.stateNode,L?X0(S,IC,T):X0(S,AC,S.stateNode,S.memoizedProps)}catch(G0){U1(S,S.return,G0)}}}else if(Z.tag===6){if(W===null){S=Z;try{k=S.stateNode,L?X0(S,OC,k):X0(S,EC,k,S.memoizedProps)}catch(G0){U1(S,S.return,G0)}}}else if(Z.tag===18){if(W===null){S=Z;try{f=S.stateNode,L?X0(S,CC,f):X0(S,VC,S.stateNode)}catch(G0){U1(S,S.return,G0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;W===Z&&(W=null),Z=Z.return}W===Z&&(W=null),Z.sibling.return=Z.return,Z=Z.sibling}z&4&&(z=$.updateQueue,z!==null&&(W=z.retryQueue,W!==null&&(z.retryQueue=null,XG($,W))));break;case 19:o5(Z,$),a5($),z&4&&(z=$.updateQueue,z!==null&&($.updateQueue=null,XG($,z)));break;case 30:break;case 21:break;default:o5(Z,$),a5($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&((u1||0.05<k1)&&R4($,L0,T0,k1,b1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-L0&&(BF($.return.alternate,$.return)||w4($,L0,T0,"Mount"))),R6(G),L4(Y),b1=U,u1=B}function a5($){var Z=$.flags;if(Z&2){try{X0($,sT,$)}catch(G){U1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function zF($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;zF(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function A4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)HF($,Z.alternate,Z),Z=Z.sibling}function _F($){var Z=w6(),G=_4(),Y=P4(),U=T4();switch($.tag){case 0:case 11:case 14:case 15:JY($,$.return,V6),H9($);break;case 1:V4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&qF($,$.return,B),H9($);break;case 27:X0($,FZ,$.stateNode);case 26:case 5:V4($,$.return),H9($);break;case 22:$.memoizedState===null&&H9($);break;case 30:H9($);break;default:H9($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4($,L0,T0,k1,b1),R6(Z),L4(G),b1=Y,u1=U}function H9($){for($=$.child;$!==null;)_F($),$=$.sibling}function LF($,Z,G,Y){var U=w6(),B=_4(),W=P4(),z=T4(),L=G.flags;switch(G.tag){case 0:case 11:case 15:E4($,G,Y),JF(G,V6);break;case 1:if(E4($,G,Y),Z=G.stateNode,typeof Z.componentDidMount==="function"&&X0(G,EN,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{X0(G,vT,Z,$)}catch(T){U1(G,G.return,T)}}Y&&L&64&&XF(G),GZ(G,G.return);break;case 27:KF(G);case 26:case 5:E4($,G,Y),Y&&Z===null&&L&4&&NF(G),GZ(G,G.return);break;case 12:if(Y&&L&4){L=J2(),E4($,G,Y),Y=G.stateNode,Y.effectDuration+=r$(L);try{X0(G,YF,G,Z,U8,Y.effectDuration)}catch(T){U1(G,G.return,T)}}else E4($,G,Y);break;case 31:E4($,G,Y),Y&&L&4&&WF($,G);break;case 13:E4($,G,Y),Y&&L&4&&wF($,G);break;case 22:G.memoizedState===null&&E4($,G,Y),GZ(G,G.return);break;case 30:break;default:E4($,G,Y)}(G.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(G,L0,T0,k1,b1),R6(U),L4(B),b1=W,u1=z}function E4($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)LF($,Z.alternate,Z,G),Z=Z.sibling}function NY($,Z){var G=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==G&&($!=null&&Y9($),G!=null&&l$(G))}function UY($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(Y9(Z),$!=null&&l$($))}function J4($,Z,G,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(Z=Z.child;Z!==null;){var B=Z.sibling;PF($,Z,G,Y,B!==null?B.actualStartTime:U),Z=B}}function PF($,Z,G,Y,U){var B=w6(),W=_4(),z=P4(),L=T4(),T=X8,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&TJ(Z,Z.actualStartTime,U,Y5,G),J4($,Z,G,Y,U),k&2048&&GF(Z,l5|d6);break;case 1:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&((Z.flags&128)!==0?rX(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&TJ(Z,Z.actualStartTime,U,Y5,G)),J4($,Z,G,Y,U);break;case 3:var f=J2(),S=Y5;Y5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,J4($,Z,G,Y,U),Y5=S,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==G&&(Y9(Y),G!=null&&l$(G))),$.passiveEffectDuration+=DJ(f);break;case 12:if(k&2048){k=J2(),J4($,Z,G,Y,U),$=Z.stateNode,$.passiveEffectDuration+=r$(k);try{X0(Z,nT,Z,Z.alternate,U8,$.passiveEffectDuration)}catch(g){U1(Z,Z.return,g)}}else J4($,Z,G,Y,U);break;case 31:k=Y5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f!==null&&S===null?(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(Y5=!1,f=f.hydrationErrors,f!==null&&rX(Z,Z.actualStartTime,U,f)):Y5=!0):Y5=!1,J4($,Z,G,Y,U),Y5=k;break;case 13:k=Y5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?Y5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(Y5=!1,f=f.hydrationErrors,f!==null&&rX(Z,Z.actualStartTime,U,f)):Y5=!0),J4($,Z,G,Y,U),Y5=k;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&U2?J4($,Z,G,Y,U):XZ($,Z,G,Y,U):S._visibility&U2?J4($,Z,G,Y,U):(S._visibility|=U2,_7($,Z,G,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&g0)===V0||Y5||($=Z.actualStartTime,0<=$&&0.05<U-$&&PJ(Z,$,U),0<=L0&&0<=T0&&0.05<T0-L0&&PJ(Z,L0,T0))),k&2048&&NY(f,Z);break;case 24:J4($,Z,G,Y,U),k&2048&&UY(Z.alternate,Z);break;default:J4($,Z,G,Y,U)}if((Z.mode&g0)!==V0){if($=!Y5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<U-G&&w4(Z,G,U,"Mount");0<=L0&&0<=T0&&((u1||0.05<k1)&&R4(Z,L0,T0,k1,b1),$&&0.05<T0-L0&&w4(Z,L0,T0,"Mount"))}R6(B),L4(W),b1=z,u1=L,X8=T}function _7($,Z,G,Y,U,B){U=U&&((Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child));for(Z=Z.child;Z!==null;){var W=Z.sibling;TF($,Z,G,Y,U,W!==null?W.actualStartTime:B),Z=W}}function TF($,Z,G,Y,U,B){var W=w6(),z=_4(),L=P4(),T=T4(),k=X8;U&&(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&TJ(Z,Z.actualStartTime,B,Y5,G);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:_7($,Z,G,Y,U,B),GF(Z,l5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&U2?_7($,Z,G,Y,U,B):XZ($,Z,G,Y,B):(S._visibility|=U2,_7($,Z,G,Y,U,B)),U&&f&2048&&NY(Z.alternate,Z);break;case 24:_7($,Z,G,Y,U,B),U&&f&2048&&UY(Z.alternate,Z);break;default:_7($,Z,G,Y,U,B)}(Z.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(Z,L0,T0,k1,b1),R6(W),L4(z),b1=L,u1=T,X8=k}function XZ($,Z,G,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var B=Z.child;B!==null;){Z=B.sibling;var W=$,z=G,L=Y,T=Z!==null?Z.actualStartTime:U,k=X8;(B.mode&g0)!==V0&&0<B.actualStartTime&&(B.flags&1)!==0&&TJ(B,B.actualStartTime,T,Y5,z);var f=B.flags;switch(B.tag){case 22:XZ(W,B,z,L,T),f&2048&&NY(B.alternate,B);break;case 24:XZ(W,B,z,L,T),f&2048&&UY(B.alternate,B);break;default:XZ(W,B,z,L,T)}X8=k,B=Z}}function L7($,Z,G){if($.subtreeFlags&oZ)for($=$.child;$!==null;)CF($,Z,G),$=$.sibling}function CF($,Z,G){switch($.tag){case 26:L7($,Z,G),$.flags&oZ&&$.memoizedState!==null&&hC(G,U4,$.memoizedState,$.memoizedProps);break;case 5:L7($,Z,G);break;case 3:case 4:var Y=U4;U4=FG($.stateNode.containerInfo),L7($,Z,G),U4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=oZ,oZ=16777216,L7($,Z,G),oZ=Y):L7($,Z,G));break;default:L7($,Z,G)}}function IF($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function qZ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=w6();W5=Y,AF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4(Y,L0,T0,"Unmount"),R6(U)}IF($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)OF($),$=$.sibling}function OF($){var Z=w6(),G=_4(),Y=P4(),U=T4();switch($.tag){case 0:case 11:case 15:qZ($),$.flags&2048&&GY($,$.return,l5|d6);break;case 3:var B=J2();qZ($),$.stateNode.passiveEffectDuration+=DJ(B);break;case 12:B=J2(),qZ($),$.stateNode.passiveEffectDuration+=r$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&U2&&($.return===null||$.return.tag!==13)?(B._visibility&=~U2,qG($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4($,L0,T0,"Disconnect")):qZ($);break;default:qZ($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4($,L0,T0,k1,b1),R6(Z),L4(G),u1=U,b1=Y}function qG($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=w6();W5=Y,AF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4(Y,L0,T0,"Unmount"),R6(U)}IF($)}for($=$.child;$!==null;)VF($),$=$.sibling}function VF($){var Z=w6(),G=_4(),Y=P4(),U=T4();switch($.tag){case 0:case 11:case 15:GY($,$.return,l5),qG($);break;case 22:var B=$.stateNode;B._visibility&U2&&(B._visibility&=~U2,qG($));break;default:qG($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4($,L0,T0,k1,b1),R6(Z),L4(G),u1=U,b1=Y}function AF($,Z){for(;W5!==null;){var G=W5,Y=G,U=Z,B=w6(),W=_4(),z=P4(),L=T4();switch(Y.tag){case 0:case 11:case 15:GY(Y,U,l5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&Y9(U));break;case 24:l$(Y.memoizedState.cache)}if((Y.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(Y,L0,T0,k1,b1),R6(B),L4(W),u1=L,b1=z,Y=G.child,Y!==null)Y.return=G,W5=Y;else $:for(G=$;W5!==null;){if(Y=W5,B=Y.sibling,W=Y.return,FF(Y),Y===G){W5=null;break $}if(B!==null){B.return=W,W5=B;break $}W5=W}}}function iT(){zO.forEach(function($){return $()})}function EF(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||x.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function _6($){if((Z1&N5)!==w5&&u0!==0)return u0&-u0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),RY()):y()}function SF(){if(e5===0)if((u0&536870912)===0||i0){var $=OG;OG<<=1,(OG&3932160)===0&&(OG=262144),e5=$}else e5=536870912;return $=O6.current,$!==null&&($.flags|=32),e5}function h1($,Z,G){if(X$&&console.error("useInsertionEffect must not schedule updates."),tN&&(K3=!0),$===P1&&(M1===A9||M1===E9)||$.cancelPendingCommit!==null)T7($,0),i2($,u0,e5,!1);if(u2($,G),(Z1&N5)!==w5&&$===P1){if(b4)switch(Z.tag){case 0:case 11:case 15:$=x0&&d(x0)||"Unknown",QR.has($)||(QR.add($),Z=d(Z)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",Z,$,$));break;case 1:ZR||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),ZR=!0)}}else f4&&k$($,Z,G),YC(Z),$===P1&&((Z1&N5)===w5&&(z8|=G),f1===W8&&i2($,u0,e5,!1)),S4($)}function jF($,Z,G){if((Z1&(N5|A6))!==w5)throw Error("Should not already be working.");if(u0!==0&&x0!==null){var Y=x0,U=F5();switch(sW){case tZ:case A9:var B=fZ;A1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,k6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,k6,void 0,"primary-light"));break;case E9:B=fZ,A1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,k6,void 0,"primary-light")):console.timeStamp("Action",B,U,k6,void 0,"primary-light"));break;default:A1&&(Y=U-fZ,3>Y||console.timeStamp("Blocked",fZ,U,k6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||s8($,Z))?eT($,Z):BY($,Z,!0);var W=G;do{if(B===L2){J$&&!G&&i2($,Z,0,!1),Z=M1,fZ=e1(),sW=Z;break}else{if(Y=F5(),U=$.current.alternate,W&&!tT(U)){M6(Z),U=M5,B=Y,!A1||B<=U||(l1?l1.run(console.timeStamp.bind(console,"Teared Render",U,B,o0,r0,"error")):console.timeStamp("Teared Render",U,B,o0,r0,"error")),F9(Z,Y),B=BY($,Z,!1),W=!1;continue}if(B===V9){if(W=Z,$.errorRecoveryDisabledLanes&W)var z=0;else z=$.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){M6(Z),nX(M5,Y,Z,l1),F9(Z,Y),Z=z;$:{Y=$,B=W,W=$Q;var L=Y.current.memoizedState.isDehydrated;if(L&&(T7(Y,z).flags|=256),z=BY(Y,z,!1),z!==V9){if(cN&&!L){Y.errorRecoveryDisabledLanes|=B,z8|=B,B=W8;break $}Y=r5,r5=W,Y!==null&&(r5===null?r5=Y:r5.push.apply(r5,Y))}B=z}if(W=!1,B!==V9)continue;else Y=F5()}}if(B===iZ){M6(Z),nX(M5,Y,Z,l1),F9(Z,Y),T7($,0),i2($,Z,0,!0);break}$:{switch(G=$,B){case L2:case iZ:throw Error("Root did not complete. This is a bug in React.");case W8:if((Z&4194048)!==Z)break;case Q3:M6(Z),jB(M5,Y,Z,l1),F9(Z,Y),U=Z,(U&127)!==0?mG=Y:(U&4194048)!==0&&(dG=Y),i2(G,Z,e5,!w8);break $;case V9:r5=null;break;case Z3:case dw:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)HY(G,U,Z,r5,ZQ,X3,e5,z8,S9,B,null,null,M5,Y);else{if((Z&62914560)===Z&&(W=q3+lw-F5(),10<W)){if(i2(G,Z,e5,!w8),n8(G,0,!0)!==0)break $;K4=Z,G.timeoutHandle=KR(DF.bind(null,G,U,r5,ZQ,X3,Z,e5,z8,S9,w8,B,"Throttled",M5,Y),W);break $}DF(G,U,r5,ZQ,X3,Z,e5,z8,S9,w8,B,null,M5,Y)}}}break}while(1);S4($)}function DF($,Z,G,Y,U,B,W,z,L,T,k,f,S,g){$.timeoutHandle=k9;var $0=Z.subtreeFlags,G0=null;if($0&8192||($0&16785408)===16785408){if(G0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:e4},CF(Z,B,G0),$0=(B&62914560)===B?q3-F5():(B&4194048)===B?cw-F5():0,$0=uC(G0,$0),$0!==null){K4=B,$.cancelPendingCommit=$0(HY.bind(null,$,Z,B,G,Y,U,W,z,L,k,G0,G0.waitingForViewTransition?"Waiting for the previous Animation":0<G0.count?0<G0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":G0.imgCount===1?"Suspended on an Image":0<G0.imgCount?"Suspended on Images":null,S,g)),i2($,B,W,!T);return}}HY($,Z,B,G,Y,U,W,z,L,k,G0,f,S,g)}function tT($){for(var Z=$;;){var G=Z.tag;if((G===0||G===11||G===15)&&Z.flags&16384&&(G=Z.updateQueue,G!==null&&(G=G.stores,G!==null)))for(var Y=0;Y<G.length;Y++){var U=G[Y],B=U.getSnapshot;U=U.value;try{if(!d5(B(),U))return!1}catch(W){return!1}}if(G=Z.child,Z.subtreeFlags&16384&&G!==null)G.return=Z,Z=G;else{if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function i2($,Z,G,Y){Z&=~lN,Z&=~z8,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-u5(U),W=1<<B;Y[B]=-1,U&=~W}G!==0&&o8($,G,Z)}function P7(){return(Z1&(N5|A6))===w5?(UZ(0,!1),!1):!0}function KY(){if(x0!==null){if(M1===t5)var $=x0.return;else $=x0,EJ(),Pq($),s7=null,cZ=0,$=x0;for(;$!==null;)QF($.alternate,$),$=$.return;x0=null}}function F9($,Z){($&127)!==0&&(K8=Z),($&4194048)!==0&&(x4=Z),($&62914560)!==0&&(rW=Z),($&2080374784)!==0&&(nW=Z)}function T7($,Z){A1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",r0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",r0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",r0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",r0,"primary-light"));var G=M5;if(M5=e1(),u0!==0&&0<G){if(M6(u0),f1===Z3||f1===W8)jB(G,M5,Z,l1);else{var Y=M5,U=l1;if(A1&&!(Y<=G)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,W,G,Y,o0,r0,B)):console.timeStamp(W,G,Y,o0,r0,B)}}F9(u0,M5)}if(G=l1,l1=null,(Z&127)!==0){l1=vZ,U=0<=u4&&u4<K8?K8:u4,Y=0<=z9&&z9<K8?K8:z9,B=0<=Y?Y:0<=U?U:M5,0<=mG?(M6(2),DB(mG,B,Z,G)):(pG&127)!==0&&(M6(2),p$(K8,B,W2)),G=U;var z=Y,L=bZ,T=0<l7,k=B8===DZ,f=B8===xG;if(U=M5,Y=vZ,B=CN,W=IN,A1){if(o0="Blocking",0<G?G>U&&(G=U):G=U,0<z?z>G&&(z=G):z=G,L!==null&&G>z){var S=T?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+L,z,G,o0,r0,S)):console.timeStamp(T?"Consecutive":"Event: "+L,z,G,o0,r0,S)}U>G&&(z=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=f?"Promise Resolved":k?"Cascading Update":5<U-G?"Update Blocked":"Update",f=[],W!=null&&f.push(["Component name",W]),B!=null&&f.push(["Method name",B]),G={start:G,end:U,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:z}}},Y?Y.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}u4=-1.1,B8=0,IN=CN=null,mG=-1.1,l7=z9,z9=-1.1,K8=e1()}if((Z&4194048)!==0&&(l1=kZ,U=0<=M2&&M2<x4?x4:M2,G=0<=x6&&x6<x4?x4:x6,Y=0<=H8&&H8<x4?x4:H8,B=0<=Y?Y:0<=G?G:M5,0<=dG?(M6(256),DB(dG,B,Z,l1)):(pG&4194048)!==0&&(M6(256),p$(x4,B,W2)),f=Y,z=_9,L=0<F8,T=ON===xG,B=M5,Y=kZ,W=cW,k=lW,A1&&(o0="Transition",0<G?G>B&&(G=B):G=B,0<U?U>G&&(U=G):U=G,0<f?f>U&&(f=U):f=U,U>f&&z!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+z,f,U,o0,r0,S)):console.timeStamp(L?"Consecutive":"Event: "+z,f,U,o0,r0,S)),G>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,G,o0,r0,"primary-dark")):console.timeStamp("Action",U,G,o0,r0,"primary-dark")),B>G&&(U=T?"Promise Resolved":5<B-G?"Update Blocked":"Update",f=[],k!=null&&f.push(["Component name",k]),W!=null&&f.push(["Method name",W]),G={start:G,end:B,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,G)):performance.measure(U,G))),x6=M2=-1.1,ON=0,dG=-1.1,F8=H8,H8=-1.1,x4=e1()),(Z&62914560)!==0&&(pG&62914560)!==0&&(M6(4194304),p$(rW,M5,W2)),(Z&2080374784)!==0&&(pG&2080374784)!==0&&(M6(268435456),p$(nW,M5,W2)),G=$.timeoutHandle,G!==k9&&($.timeoutHandle=k9,DO(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),K4=0,KY(),P1=$,x0=G=$2($.current,null),u0=Z,M1=t5,E6=null,w8=!1,J$=s8($,Z),cN=!1,f1=L2,S9=e5=lN=z8=R8=0,r5=$Q=null,X3=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-u5(Y),B=1<<U,Z|=$[U],Y&=~B;return d4=Z,CJ(),$=hW(),1000<$-gW&&(x.recentlyCreatedOwnerStacks=0,gW=$),Y4.discardPendingWarnings(),G}function vF($,Z){A0=null,x.H=sZ,x.getCurrentStack=null,b4=!1,T6=null,Z===n7||Z===nG?(Z=eB(),M1=tZ):Z===SN?(Z=eB(),M1=pw):M1=Z===uN?pN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?eZ:J3,E6=Z;var G=x0;G===null?(f1=iZ,eJ($,W6(Z,$.current))):G.mode&g0&&Nq(G)}function bF(){var $=O6.current;return $===null?!0:(u0&4194048)===u0?m6===null?!0:!1:(u0&62914560)===u0||(u0&536870912)!==0?$===m6:!1}function kF(){var $=x.H;return x.H=sZ,$===null?sZ:$}function fF(){var $=x.A;return x.A=RO,$}function YG($){l1===null&&(l1=$._debugTask==null?null:$._debugTask)}function NG(){f1=W8,w8||(u0&4194048)!==u0&&O6.current!==null||(J$=!0),(R8&134217727)===0&&(z8&134217727)===0||P1===null||i2(P1,u0,e5,!1)}function BY($,Z,G){var Y=Z1;Z1|=N5;var U=kF(),B=fF();if(P1!==$||u0!==Z){if(f4){var W=$.memoizedUpdaters;0<W.size&&(NZ($,u0),W.clear()),x2($,Z)}ZQ=null,T7($,Z)}Z=!1,W=f1;$:do try{if(M1!==t5&&x0!==null){var z=x0,L=E6;switch(M1){case pN:KY(),W=Q3;break $;case tZ:case A9:case E9:case eZ:O6.current===null&&(Z=!0);var T=M1;if(M1=t5,E6=null,C7($,z,L,T),G&&J$){W=L2;break $}break;default:T=M1,M1=t5,E6=null,C7($,z,L,T)}}yF(),W=f1;break}catch(k){vF($,k)}while(1);return Z&&$.shellSuspendCounter++,EJ(),Z1=Y,x.H=U,x.A=B,x0===null&&(P1=null,u0=0,CJ()),W}function yF(){for(;x0!==null;)gF(x0)}function eT($,Z){var G=Z1;Z1|=N5;var Y=kF(),U=fF();if(P1!==$||u0!==Z){if(f4){var B=$.memoizedUpdaters;0<B.size&&(NZ($,u0),B.clear()),x2($,Z)}ZQ=null,Y3=F5()+rw,T7($,Z)}else J$=s8($,Z);$:do try{if(M1!==t5&&x0!==null)Z:switch(Z=x0,B=E6,M1){case J3:M1=t5,E6=null,C7($,Z,B,J3);break;case A9:case E9:if(iB(B)){M1=t5,E6=null,hF(Z);break}Z=function(){M1!==A9&&M1!==E9||P1!==$||(M1=G3),S4($)},B.then(Z,Z);break $;case tZ:M1=G3;break $;case pw:M1=dN;break $;case G3:iB(B)?(M1=t5,E6=null,hF(Z)):(M1=t5,E6=null,C7($,Z,B,G3));break;case dN:var W=null;switch(x0.tag){case 26:W=x0.memoizedState;case 5:case 27:var z=x0;if(W?jM(W):z.stateNode.complete){M1=t5,E6=null;var L=z.sibling;if(L!==null)x0=L;else{var T=z.return;T!==null?(x0=T,UG(T)):x0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}M1=t5,E6=null,C7($,Z,B,dN);break;case eZ:M1=t5,E6=null,C7($,Z,B,eZ);break;case pN:KY(),f1=Q3;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?yF():$C();break}catch(k){vF($,k)}while(1);if(EJ(),x.H=Y,x.A=U,Z1=G,x0!==null)return L2;return P1=null,u0=0,CJ(),f1}function $C(){for(;x0!==null&&!tC();)gF(x0)}function gF($){var Z=$.alternate;($.mode&g0)!==V0?(Yq($),Z=X0($,ZY,Z,$,d4),Nq($)):Z=X0($,ZY,Z,$,d4),$.memoizedProps=$.pendingProps,Z===null?UG($):x0=Z}function hF($){var Z=X0($,ZC,$);$.memoizedProps=$.pendingProps,Z===null?UG($):x0=Z}function ZC($){var Z=$.alternate,G=($.mode&g0)!==V0;switch(G&&Yq($),$.tag){case 15:case 0:Z=oH(Z,$,$.pendingProps,$.type,void 0,u0);break;case 11:Z=oH(Z,$,$.pendingProps,$.type.render,$.ref,u0);break;case 5:Pq($);default:QF(Z,$),$=x0=gB($,d4),Z=ZY(Z,$,d4)}return G&&Nq($),Z}function C7($,Z,G,Y){EJ(),Pq(Z),s7=null,cZ=0;var U=Z.return;try{if(uT($,U,Z,G,u0)){f1=iZ,eJ($,W6(G,$.current)),x0=null;return}}catch(B){if(U!==null)throw x0=U,B;f1=iZ,eJ($,W6(G,$.current)),x0=null;return}if(Z.flags&32768){if(i0||Y===J3)$=!0;else if(J$||(u0&536870912)!==0)$=!1;else if(w8=$=!0,Y===A9||Y===E9||Y===tZ||Y===eZ)Y=O6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);uF(Z,$)}else UG(Z)}function UG($){var Z=$;do{if((Z.flags&32768)!==0){uF(Z,w8);return}var G=Z.alternate;if($=Z.return,Yq(Z),G=X0(Z,dT,G,Z,d4),(Z.mode&g0)!==V0&&rB(Z),G!==null){x0=G;return}if(Z=Z.sibling,Z!==null){x0=Z;return}x0=Z=$}while(Z!==null);f1===L2&&(f1=dw)}function uF($,Z){do{var G=pT($.alternate,$);if(G!==null){G.flags&=32767,x0=G;return}if(($.mode&g0)!==V0){rB($),G=$.actualDuration;for(var Y=$.child;Y!==null;)G+=Y.actualDuration,Y=Y.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Z&&($=$.sibling,$!==null)){x0=$;return}x0=$=G}while($!==null);f1=Q3,x0=null}function HY($,Z,G,Y,U,B,W,z,L,T,k,f,S,g){$.cancelPendingCommit=null;do YZ();while(G5!==L8);if(Y4.flushLegacyContextWarning(),Y4.flushPendingUnsafeLifecycleWarnings(),(Z1&(N5|A6))!==w5)throw Error("Should not already be working.");if(M6(G),T===V9?nX(S,g,G,l1):Y!==null?VT(S,g,G,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,l1):OT(S,g,G,l1),Z!==null){if(G===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Z===$.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(B=Z.lanes|Z.childLanes,B|=zN,HJ($,G,B,W,z,L),$===P1&&(x0=P1=null,u0=0),G$=Z,P8=$,K4=G,sN=B,aN=U,tw=Y,oN=g,ew=f,B4=N3,$R=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,qC(S7,function(){return YQ=window.event,B4===N3&&(B4=nN),cF(),null})):($.callbackNode=null,$.callbackPriority=0),F2=null,U8=e1(),f!==null&&AT(g,U8,f,l1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=K1.p,K1.p=C6,W=Z1,Z1|=A6;try{oT($,Z,G)}finally{Z1=W,K1.p=U,x.T=Y}}G5=sw,xF(),mF(),dF()}}function xF(){if(G5===sw){G5=L8;var $=P8,Z=G$,G=K4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=K1.p;K1.p=C6;var B=Z1;Z1|=A6;try{Z$=G,Q$=$,vJ(),RF(Z,$),Q$=Z$=null,G=YU;var W=AB($.containerInfo),z=G.focusedElem,L=G.selectionRange;if(W!==z&&z&&z.ownerDocument&&VB(z.ownerDocument.documentElement,z)){if(L!==null&&cX(z)){var{start:T,end:k}=L;if(k===void 0&&(k=T),"selectionStart"in z)z.selectionStart=T,z.selectionEnd=Math.min(k,z.value.length);else{var f=z.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),$0=z.textContent.length,G0=Math.min(L.start,$0),O1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>O1&&(W=O1,O1=G0,G0=W);var e0=OB(z,G0),E=OB(z,O1);if(e0&&E&&(g.rangeCount!==1||g.anchorNode!==e0.node||g.anchorOffset!==e0.offset||g.focusNode!==E.node||g.focusOffset!==E.offset)){var j=f.createRange();j.setStart(e0.node,e0.offset),g.removeAllRanges(),G0>O1?(g.addRange(j),g.extend(E.node,E.offset)):(j.setEnd(E.node,E.offset),g.addRange(j))}}}}f=[];for(g=z;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof z.focus==="function"&&z.focus();for(z=0;z<f.length;z++){var b=f[z];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}I3=!!qU,YU=qU=null}finally{Z1=B,K1.p=U,x.T=Y}}$.current=Z,G5=ow}}function mF(){if(G5===ow){G5=L8;var $=$R;if($!==null){U8=e1();var Z=H2,G=U8;!A1||G<=Z||(W2?W2.run(console.timeStamp.bind(console,$,Z,G,o0,r0,"secondary-light")):console.timeStamp($,Z,G,o0,r0,"secondary-light"))}$=P8,Z=G$,G=K4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=K1.p;K1.p=C6;var B=Z1;Z1|=A6;try{Z$=G,Q$=$,vJ(),HF($,Z.alternate,Z),Q$=Z$=null}finally{Z1=B,K1.p=U,x.T=Y}}$=oN,Z=ew,H2=e1(),$=Z===null?$:U8,Z=H2,G=B4===rN,Y=l1,F2!==null?vB($,Z,F2,!1,Y):!A1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,G?"error":"secondary-dark")),G5=aw}}function dF(){if(G5===iw||G5===aw){if(G5===iw){var $=H2;H2=e1();var Z=H2,G=B4===rN;!A1||Z<=$||(W2?W2.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,G?" error":"secondary-light")),B4!==rN&&(B4=nw)}G5=L8,eC(),$=P8;var Y=G$;Z=K4,G=tw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?G5=U3:(G5=L8,G$=P8=null,pF($,$.pendingLanes),j9=0,JQ=null);var B=$.pendingLanes;if(B===0&&(_8=null),U||sF($),B=C(Z),Y=Y.stateNode,D5&&typeof D5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case C6:var z=aY;break;case X4:z=iY;break;case y4:z=S7;break;case AG:z=tY;break;default:z=S7}D5.onCommitFiberRoot(j7,Y,z,W)}catch(f){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",f))}if(f4&&$.memoizedUpdaters.clear(),iT(),G!==null){W=x.T,z=K1.p,K1.p=C6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<G.length;Y++){var T=G[Y],k=QC(T.stack);X0(T.source,L,T.value,k)}}finally{x.T=W,K1.p=z}}(K4&3)!==0&&YZ(),S4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(lG=!0,$===iN?QQ++:(QQ=0,iN=$)):QQ=0,U||F9(Z,H2),UZ(0,!1)}}function QC($){return $={componentStack:$},Object.defineProperty($,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),$}function pF($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,l$(Z)))}function YZ(){return xF(),mF(),dF(),cF()}function cF(){if(G5!==U3)return!1;var $=P8,Z=sN;sN=0;var G=C(K4),Y=y4===0||y4>G?y4:G;G=x.T;var U=K1.p;try{K1.p=Y,x.T=null;var B=aN;aN=null,Y=P8;var W=K4;if(G5=L8,G$=P8=null,K4=0,(Z1&(N5|A6))!==w5)throw Error("Cannot flush passive effects while already rendering.");M6(W),tN=!0,K3=!1;var z=0;if(F2=null,z=F5(),B4===nw)p$(H2,z,W2);else{var L=H2,T=z,k=B4===nN;!A1||T<=L||(l1?l1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light"))}L=Z1,Z1|=A6;var f=Y.current;vJ(),OF(f);var S=Y.current;f=oN,vJ(),PF(Y,S,W,B,f),sF(Y),Z1=L;var g=F5();if(S=z,f=l1,F2!==null?vB(S,g,F2,!0,f):!A1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,o0,r0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,o0,r0,"secondary-dark")),F9(W,g),UZ(0,!1),K3?Y===JQ?j9++:(j9=0,JQ=Y):j9=0,K3=tN=!1,D5&&typeof D5.onPostCommitFiberRoot==="function")try{D5.onPostCommitFiberRoot(j7,Y)}catch(G0){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{K1.p=U,x.T=G,pF($,Z)}}function lF($,Z,G){Z=W6(G,Z),nB(Z),Z=cq($.stateNode,Z,2),$=n2($,Z,2),$!==null&&(u2($,2),S4($))}function U1($,Z,G){if(X$=!1,$.tag===3)lF($,$,G);else{for(;Z!==null;){if(Z.tag===3){lF(Z,$,G);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(_8===null||!_8.has(Y))){$=W6(G,$),nB($),G=lq(2),Y=n2(Z,G,2),Y!==null&&(rq(G,Y,Z,$),u2(Y,2),S4(Y));return}}Z=Z.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
153
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Y,X0(Z,function(z,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",z,L)},B,W)}G=G.next}while(G!==U)}}catch(z){U1(Z,Z.return,z)}}function z9($,Z,G){try{var Y=Z.updateQueue,U=Y!==null?Y.lastEffect:null;if(U!==null){var B=U.next;Y=B;do{if((Y.tag&$)===$){var W=Y.inst,z=W.destroy;z!==void 0&&(W.destroy=void 0,($&c5)!==aG&&(X$=!0),U=Z,X0(U,FO,U,G,z),($&c5)!==aG&&(X$=!1))}Y=Y.next}while(Y!==B)}}catch(L){U1(Z,Z.return,L)}}function GF($,Z){O4($)?(I4(),JZ(Z,$),C4()):JZ(Z,$)}function GY($,Z,G){O4($)?(I4(),z9(G,$,Z),C4()):z9(G,$,Z)}function XF($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||$$||(G.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d($)||"instance"),G.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d($)||"instance"));try{X0($,YH,Z,G)}catch(Y){U1($,$.return,Y)}}}function cT($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function lT($,Z){var{memoizedProps:G,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||$$||(Z.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d($)||"instance"),Z.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d($)||"instance"));try{var U=B7($.type,G),B=X0($,cT,Z,U,Y);G=xw,B!==void 0||G.has($.type)||(G.add($.type),X0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){U1($,$.return,W)}}function qF($,Z,G){G.props=B7($.type,$.memoizedProps),G.state=$.memoizedState,O4($)?(I4(),X0($,Xw,$,Z,G),C4()):X0($,Xw,$,Z,G)}function rT($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var G=$.stateNode;break;case 30:G=$.stateNode;break;default:G=$.stateNode}if(typeof Z==="function")if(O4($))try{I4(),$.refCleanup=Z(G)}finally{C4()}else $.refCleanup=Z(G);else typeof Z==="string"?console.error("String refs are no longer supported."):Z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d($)),Z.current=G}}function GZ($,Z){try{X0($,rT,$)}catch(G){U1($,Z,G)}}function V4($,Z){var{ref:G,refCleanup:Y}=$;if(G!==null)if(typeof Y==="function")try{if(O4($))try{I4(),X0($,Y)}finally{C4($)}else X0($,Y)}catch(U){U1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(O4($))try{I4(),X0($,G,null)}finally{C4($)}else X0($,G,null)}catch(U){U1($,Z,U)}else G.current=null}function YF($,Z,G,Y){var U=$.memoizedProps,B=U.id,W=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",cG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,Y,G)}function nT($,Z,G,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",cG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,G)}function NF($){var{type:Z,memoizedProps:G,stateNode:Y}=$;try{X0($,RC,Y,Z,G,$)}catch(U){U1($,$.return,U)}}function XY($,Z,G){try{X0($,_C,$.stateNode,$.type,G,Z,$)}catch(Y){U1($,$.return,Y)}}function UF($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&e2($.type)||$.tag===4}function qY($){$:for(;;){for(;$.sibling===null;){if($.return===null||UF($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&e2($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function YY($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(wM(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(wM(G),Z=G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G,Z.appendChild($),G=G._reactRootContainer,G!==null&&G!==void 0||Z.onclick!==null||(Z.onclick=e4));else if(Y!==4&&(Y===27&&e2($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(YY($,Z,G),$=$.sibling;$!==null;)YY($,Z,G),$=$.sibling}function GG($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(Y!==4&&(Y===27&&e2($.type)&&(G=$.stateNode),$=$.child,$!==null))for(GG($,Z,G),$=$.sibling;$!==null;)GG($,Z,G),$=$.sibling}function sT($){for(var Z,G=$.return;G!==null;){if(UF(G)){Z=G;break}G=G.return}if(Z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Z.tag){case 27:Z=Z.stateNode,G=qY($),GG($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(WM(G),Z.flags&=-33),Z=qY($),GG($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=qY($),YY($,G,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function KF($){var{stateNode:Z,memoizedProps:G}=$;try{X0($,fC,$.type,G,Z,$)}catch(Y){U1($,$.return,Y)}}function BF($,Z){return Z.tag===31?(Z=Z.memoizedState,$.memoizedState!==null&&Z===null):Z.tag===13?($=$.memoizedState,Z=Z.memoizedState,$!==null&&$.dehydrated!==null&&(Z===null||Z.dehydrated===null)):Z.tag===3?$.memoizedState.isDehydrated&&(Z.flags&256)===0:!1}function oT($,Z){if($=$.containerInfo,qU=I3,$=AB($),cX($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var Y=G.getSelection&&G.getSelection();if(Y&&Y.rangeCount!==0){G=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{G.nodeType,B.nodeType}catch($0){G=null;break $}var W=0,z=-1,L=-1,T=0,k=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==G||U!==0&&f.nodeType!==3||(z=W+U),f!==B||Y!==0&&f.nodeType!==3||(L=W+Y),f.nodeType===3&&(W+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===G&&++T===U&&(z=W),S===B&&++k===Y&&(L=W),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}G=z===-1||L===-1?null:{start:z,end:L}}else G=null}G=G||{start:0,end:0}}else G=null;YU={focusedElem:$,selectionRange:G},I3=!1;for(W5=Z;W5!==null;)if(Z=W5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,W5=$;else for(;W5!==null;){switch($=Z=W5,G=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(G=0;G<$.length;G++)U=$[G],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&G!==null&&lT($,G);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)AY($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":AY($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((U&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if($=Z.sibling,$!==null){$.return=Z.return,W5=$;break}W5=Z.return}}function HF($,Z,G){var Y=w6(),U=_4(),B=P4(),W=T4(),z=G.flags;switch(G.tag){case 0:case 11:case 15:A4($,G),z&4&&JF(G,V6|d6);break;case 1:if(A4($,G),z&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||$$||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),O4(G)?(I4(),X0(G,EN,G,$),C4()):X0(G,EN,G,$);else{var L=B7(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||$$||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),O4(G)?(I4(),X0(G,Qw,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),C4()):X0(G,Qw,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}z&64&&XF(G),z&512&&GZ(G,G.return);break;case 3:if(Z=J2(),A4($,G),z&64&&(z=G.updateQueue,z!==null)){if(L=null,G.child!==null)switch(G.child.tag){case 27:case 5:L=G.child.stateNode;break;case 1:L=G.child.stateNode}try{X0(G,YH,z,L)}catch(k){U1(G,G.return,k)}}$.effectDuration+=DJ(Z);break;case 27:Z===null&&z&4&&KF(G);case 26:case 5:if(A4($,G),Z===null){if(z&4)NF(G);else if(z&64){$=G.type,Z=G.memoizedProps,L=G.stateNode;try{X0(G,zC,L,$,Z,G)}catch(k){U1(G,G.return,k)}}}z&512&&GZ(G,G.return);break;case 12:if(z&4){z=J2(),A4($,G),$=G.stateNode,$.effectDuration+=r$(z);try{X0(G,YF,G,Z,U8,$.effectDuration)}catch(k){U1(G,G.return,k)}}else A4($,G);break;case 31:A4($,G),z&4&&WF($,G);break;case 13:A4($,G),z&4&&wF($,G),z&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(z=GC.bind(null,G),DC($,z))));break;case 22:if(z=G.memoizedState!==null||_2,!z){Z=Z!==null&&Z.memoizedState!==null||Q5,L=_2;var T=Q5;_2=z,(Q5=Z)&&!T?(E4($,G,(G.subtreeFlags&8772)!==0),(G.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&PJ(G,L0,T0)):A4($,G),_2=L,Q5=T}break;case 30:break;default:A4($,G)}(G.mode&g0)!==V0&&0<=L0&&0<=T0&&((u1||0.05<k1)&&R4(G,L0,T0,k1,b1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<T0-L0&&(BF(G.return.alternate,G.return)||w4(G,L0,T0,"Mount"))),R6(Y),L4(U),b1=B,u1=W}function FF($){var Z=$.alternate;Z!==null&&($.alternate=null,FF(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&Z0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function q2($,Z,G){for(G=G.child;G!==null;)MF($,Z,G),G=G.sibling}function MF($,Z,G){if(D5&&typeof D5.onCommitFiberUnmount==="function")try{D5.onCommitFiberUnmount(j9,G)}catch(T){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",T))}var Y=w6(),U=_4(),B=P4(),W=T4();switch(G.tag){case 26:Q5||V4(G,Z),q2($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:Q5||V4(G,Z);var z=J5,L=i5;e2(G.type)&&(J5=G.stateNode,i5=!1),q2($,Z,G),X0(G,FZ,G.stateNode),J5=z,i5=L;break;case 5:Q5||V4(G,Z);case 6:if(z=J5,L=i5,J5=null,q2($,Z,G),J5=z,i5=L,J5!==null)if(i5)try{X0(G,TC,J5,G.stateNode)}catch(T){U1(G,Z,T)}else try{X0(G,PC,J5,G.stateNode)}catch(T){U1(G,Z,T)}break;case 18:J5!==null&&(i5?($=J5,RM($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),V9($)):RM(J5,G.stateNode));break;case 4:z=J5,L=i5,J5=G.stateNode.containerInfo,i5=!0,q2($,Z,G),J5=z,i5=L;break;case 0:case 11:case 14:case 15:z9(c5,G,Z),Q5||JY(G,Z,V6),q2($,Z,G);break;case 1:Q5||(V4(G,Z),z=G.stateNode,typeof z.componentWillUnmount==="function"&&qF(G,Z,z)),q2($,Z,G);break;case 21:q2($,Z,G);break;case 22:Q5=(z=Q5)||G.memoizedState!==null,q2($,Z,G),Q5=z;break;default:q2($,Z,G)}(G.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(G,L0,T0,k1,b1),R6(Y),L4(U),b1=B,u1=W}function WF($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{X0(Z,bC,$)}catch(G){U1(Z,Z.return,G)}}}function wF($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{X0(Z,kC,$)}catch(G){U1(Z,Z.return,G)}}function aT($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new mw),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new mw),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function XG($,Z){var G=aT($);Z.forEach(function(Y){if(!G.has(Y)){if(G.add(Y),f4)if(Z$!==null&&Q$!==null)NZ(Q$,Z$);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=XC.bind(null,$,Y);Y.then(U,U)}})}function o5($,Z){var G=Z.deletions;if(G!==null)for(var Y=0;Y<G.length;Y++){var U=$,B=Z,W=G[Y],z=w6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(e2(L.type)){J5=L.stateNode,i5=!1;break $}break;case 5:J5=L.stateNode,i5=!1;break $;case 3:case 4:J5=L.stateNode.containerInfo,i5=!0;break $}L=L.return}if(J5===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");MF(U,B,W),J5=null,i5=!1,(W.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4(W,L0,T0,"Unmount"),R6(z),U=W,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)RF(Z,$),Z=Z.sibling}function RF($,Z){var G=w6(),Y=_4(),U=P4(),B=T4(),W=$.alternate,z=$.flags;switch($.tag){case 0:case 11:case 14:case 15:o5(Z,$),a5($),z&4&&(z9(c5|d6,$,$.return),JZ(c5|d6,$),JY($,$.return,V6|d6));break;case 1:if(o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),z&64&&_2&&(z=$.updateQueue,z!==null&&(W=z.callbacks,W!==null))){var L=z.shared.hiddenCallbacks;z.shared.hiddenCallbacks=L===null?W:L.concat(W)}break;case 26:if(L=U4,o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),z&4){var T=W!==null?W.memoizedState:null;if(z=$.memoizedState,W===null)if(z===null)if($.stateNode===null){$:{z=$.type,W=$.memoizedProps,L=L.ownerDocument||L;Z:switch(z){case"title":if(T=L.getElementsByTagName("title")[0],!T||T[LZ]||T[P5]||T.namespaceURI===v9||T.hasAttribute("itemprop"))T=L.createElement(z),L.head.insertBefore(T,L.querySelector("head > title"));L5(T,z,W),T[P5]=$,_0(T),z=T;break $;case"link":var k=EM("link","href",L).get(z+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(T=k[f],T.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&T.getAttribute("rel")===(W.rel==null?null:W.rel)&&T.getAttribute("title")===(W.title==null?null:W.title)&&T.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}T=L.createElement(z),L5(T,z,W),L.head.appendChild(T);break;case"meta":if(k=EM("meta","content",L).get(z+(W.content||""))){for(f=0;f<k.length;f++)if(T=k[f],w1(W.content,"content"),T.getAttribute("content")===(W.content==null?null:""+W.content)&&T.getAttribute("name")===(W.name==null?null:W.name)&&T.getAttribute("property")===(W.property==null?null:W.property)&&T.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&T.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}T=L.createElement(z),L5(T,z,W),L.head.appendChild(T);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+z+'". This is a bug in React.')}T[P5]=$,_0(T),z=T}$.stateNode=z}else SM(L,$.type,$.stateNode);else $.stateNode=AM(L,z,$.memoizedProps);else T!==z?(T===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):T.count--,z===null?SM(L,$.type,$.stateNode):AM(L,z,$.memoizedProps)):z===null&&$.stateNode!==null&&XY($,$.memoizedProps,W.memoizedProps)}break;case 27:o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),W!==null&&z&4&&XY($,$.memoizedProps,W.memoizedProps);break;case 5:if(o5(Z,$),a5($),z&512&&(Q5||W===null||V4(W,W.return)),$.flags&32){L=$.stateNode;try{X0($,WM,L)}catch(G0){U1($,$.return,G0)}}z&4&&$.stateNode!=null&&(L=$.memoizedProps,XY($,L,W!==null?W.memoizedProps:L)),z&1024&&(mN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(o5(Z,$),a5($),z&4){if($.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");z=$.memoizedProps,W=W!==null?W.memoizedProps:z,L=$.stateNode;try{X0($,LC,L,W,z)}catch(G0){U1($,$.return,G0)}}break;case 3:if(L=J2(),P3=null,T=U4,U4=FG(Z.containerInfo),o5(Z,$),U4=T,a5($),z&4&&W!==null&&W.memoizedState.isDehydrated)try{X0($,vC,Z.containerInfo)}catch(G0){U1($,$.return,G0)}mN&&(mN=!1,zF($)),Z.effectDuration+=DJ(L);break;case 4:z=U4,U4=FG($.stateNode.containerInfo),o5(Z,$),a5($),U4=z;break;case 12:z=J2(),o5(Z,$),a5($),$.stateNode.effectDuration+=r$(z);break;case 31:o5(Z,$),a5($),z&4&&(z=$.updateQueue,z!==null&&($.updateQueue=null,XG($,z)));break;case 13:o5(Z,$),a5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(q3=F5()),z&4&&(z=$.updateQueue,z!==null&&($.updateQueue=null,XG($,z)));break;case 22:L=$.memoizedState!==null;var S=W!==null&&W.memoizedState!==null,g=_2,$0=Q5;if(_2=g||L,Q5=$0||S,o5(Z,$),Q5=$0,_2=g,S&&!L&&!g&&!$0&&($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&PJ($,L0,T0),a5($),z&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~SZ:Z._visibility|SZ,!L||W===null||S||_2||Q5||(H7($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4($,L0,T0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){S=W=Z;try{T=S.stateNode,L?X0(S,IC,T):X0(S,AC,S.stateNode,S.memoizedProps)}catch(G0){U1(S,S.return,G0)}}}else if(Z.tag===6){if(W===null){S=Z;try{k=S.stateNode,L?X0(S,OC,k):X0(S,EC,k,S.memoizedProps)}catch(G0){U1(S,S.return,G0)}}}else if(Z.tag===18){if(W===null){S=Z;try{f=S.stateNode,L?X0(S,CC,f):X0(S,VC,S.stateNode)}catch(G0){U1(S,S.return,G0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;W===Z&&(W=null),Z=Z.return}W===Z&&(W=null),Z.sibling.return=Z.return,Z=Z.sibling}z&4&&(z=$.updateQueue,z!==null&&(W=z.retryQueue,W!==null&&(z.retryQueue=null,XG($,W))));break;case 19:o5(Z,$),a5($),z&4&&(z=$.updateQueue,z!==null&&($.updateQueue=null,XG($,z)));break;case 30:break;case 21:break;default:o5(Z,$),a5($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&((u1||0.05<k1)&&R4($,L0,T0,k1,b1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-L0&&(BF($.return.alternate,$.return)||w4($,L0,T0,"Mount"))),R6(G),L4(Y),b1=U,u1=B}function a5($){var Z=$.flags;if(Z&2){try{X0($,sT,$)}catch(G){U1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function zF($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;zF(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function A4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)HF($,Z.alternate,Z),Z=Z.sibling}function _F($){var Z=w6(),G=_4(),Y=P4(),U=T4();switch($.tag){case 0:case 11:case 14:case 15:JY($,$.return,V6),H7($);break;case 1:V4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&qF($,$.return,B),H7($);break;case 27:X0($,FZ,$.stateNode);case 26:case 5:V4($,$.return),H7($);break;case 22:$.memoizedState===null&&H7($);break;case 30:H7($);break;default:H7($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4($,L0,T0,k1,b1),R6(Z),L4(G),b1=Y,u1=U}function H7($){for($=$.child;$!==null;)_F($),$=$.sibling}function LF($,Z,G,Y){var U=w6(),B=_4(),W=P4(),z=T4(),L=G.flags;switch(G.tag){case 0:case 11:case 15:E4($,G,Y),JF(G,V6);break;case 1:if(E4($,G,Y),Z=G.stateNode,typeof Z.componentDidMount==="function"&&X0(G,EN,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{X0(G,vT,Z,$)}catch(T){U1(G,G.return,T)}}Y&&L&64&&XF(G),GZ(G,G.return);break;case 27:KF(G);case 26:case 5:E4($,G,Y),Y&&Z===null&&L&4&&NF(G),GZ(G,G.return);break;case 12:if(Y&&L&4){L=J2(),E4($,G,Y),Y=G.stateNode,Y.effectDuration+=r$(L);try{X0(G,YF,G,Z,U8,Y.effectDuration)}catch(T){U1(G,G.return,T)}}else E4($,G,Y);break;case 31:E4($,G,Y),Y&&L&4&&WF($,G);break;case 13:E4($,G,Y),Y&&L&4&&wF($,G);break;case 22:G.memoizedState===null&&E4($,G,Y),GZ(G,G.return);break;case 30:break;default:E4($,G,Y)}(G.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(G,L0,T0,k1,b1),R6(U),L4(B),b1=W,u1=z}function E4($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)LF($,Z.alternate,Z,G),Z=Z.sibling}function NY($,Z){var G=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==G&&($!=null&&Y7($),G!=null&&l$(G))}function UY($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(Y7(Z),$!=null&&l$($))}function J4($,Z,G,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(Z=Z.child;Z!==null;){var B=Z.sibling;PF($,Z,G,Y,B!==null?B.actualStartTime:U),Z=B}}function PF($,Z,G,Y,U){var B=w6(),W=_4(),z=P4(),L=T4(),T=X8,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&TJ(Z,Z.actualStartTime,U,Y5,G),J4($,Z,G,Y,U),k&2048&&GF(Z,l5|d6);break;case 1:(Z.mode&g0)!==V0&&0<Z.actualStartTime&&((Z.flags&128)!==0?rX(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&TJ(Z,Z.actualStartTime,U,Y5,G)),J4($,Z,G,Y,U);break;case 3:var f=J2(),S=Y5;Y5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,J4($,Z,G,Y,U),Y5=S,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==G&&(Y7(Y),G!=null&&l$(G))),$.passiveEffectDuration+=DJ(f);break;case 12:if(k&2048){k=J2(),J4($,Z,G,Y,U),$=Z.stateNode,$.passiveEffectDuration+=r$(k);try{X0(Z,nT,Z,Z.alternate,U8,$.passiveEffectDuration)}catch(g){U1(Z,Z.return,g)}}else J4($,Z,G,Y,U);break;case 31:k=Y5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f!==null&&S===null?(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(Y5=!1,f=f.hydrationErrors,f!==null&&rX(Z,Z.actualStartTime,U,f)):Y5=!0):Y5=!1,J4($,Z,G,Y,U),Y5=k;break;case 13:k=Y5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?Y5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(Y5=!1,f=f.hydrationErrors,f!==null&&rX(Z,Z.actualStartTime,U,f)):Y5=!0),J4($,Z,G,Y,U),Y5=k;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&U2?J4($,Z,G,Y,U):XZ($,Z,G,Y,U):S._visibility&U2?J4($,Z,G,Y,U):(S._visibility|=U2,_9($,Z,G,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&g0)===V0||Y5||($=Z.actualStartTime,0<=$&&0.05<U-$&&PJ(Z,$,U),0<=L0&&0<=T0&&0.05<T0-L0&&PJ(Z,L0,T0))),k&2048&&NY(f,Z);break;case 24:J4($,Z,G,Y,U),k&2048&&UY(Z.alternate,Z);break;default:J4($,Z,G,Y,U)}if((Z.mode&g0)!==V0){if($=!Y5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<U-G&&w4(Z,G,U,"Mount");0<=L0&&0<=T0&&((u1||0.05<k1)&&R4(Z,L0,T0,k1,b1),$&&0.05<T0-L0&&w4(Z,L0,T0,"Mount"))}R6(B),L4(W),b1=z,u1=L,X8=T}function _9($,Z,G,Y,U,B){U=U&&((Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child));for(Z=Z.child;Z!==null;){var W=Z.sibling;TF($,Z,G,Y,U,W!==null?W.actualStartTime:B),Z=W}}function TF($,Z,G,Y,U,B){var W=w6(),z=_4(),L=P4(),T=T4(),k=X8;U&&(Z.mode&g0)!==V0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&TJ(Z,Z.actualStartTime,B,Y5,G);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:_9($,Z,G,Y,U,B),GF(Z,l5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&U2?_9($,Z,G,Y,U,B):XZ($,Z,G,Y,B):(S._visibility|=U2,_9($,Z,G,Y,U,B)),U&&f&2048&&NY(Z.alternate,Z);break;case 24:_9($,Z,G,Y,U,B),U&&f&2048&&UY(Z.alternate,Z);break;default:_9($,Z,G,Y,U,B)}(Z.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(Z,L0,T0,k1,b1),R6(W),L4(z),b1=L,u1=T,X8=k}function XZ($,Z,G,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var B=Z.child;B!==null;){Z=B.sibling;var W=$,z=G,L=Y,T=Z!==null?Z.actualStartTime:U,k=X8;(B.mode&g0)!==V0&&0<B.actualStartTime&&(B.flags&1)!==0&&TJ(B,B.actualStartTime,T,Y5,z);var f=B.flags;switch(B.tag){case 22:XZ(W,B,z,L,T),f&2048&&NY(B.alternate,B);break;case 24:XZ(W,B,z,L,T),f&2048&&UY(B.alternate,B);break;default:XZ(W,B,z,L,T)}X8=k,B=Z}}function L9($,Z,G){if($.subtreeFlags&oZ)for($=$.child;$!==null;)CF($,Z,G),$=$.sibling}function CF($,Z,G){switch($.tag){case 26:L9($,Z,G),$.flags&oZ&&$.memoizedState!==null&&hC(G,U4,$.memoizedState,$.memoizedProps);break;case 5:L9($,Z,G);break;case 3:case 4:var Y=U4;U4=FG($.stateNode.containerInfo),L9($,Z,G),U4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=oZ,oZ=16777216,L9($,Z,G),oZ=Y):L9($,Z,G));break;default:L9($,Z,G)}}function IF($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function qZ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=w6();W5=Y,AF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4(Y,L0,T0,"Unmount"),R6(U)}IF($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)OF($),$=$.sibling}function OF($){var Z=w6(),G=_4(),Y=P4(),U=T4();switch($.tag){case 0:case 11:case 15:qZ($),$.flags&2048&&GY($,$.return,l5|d6);break;case 3:var B=J2();qZ($),$.stateNode.passiveEffectDuration+=DJ(B);break;case 12:B=J2(),qZ($),$.stateNode.passiveEffectDuration+=r$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&U2&&($.return===null||$.return.tag!==13)?(B._visibility&=~U2,qG($),($.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4($,L0,T0,"Disconnect")):qZ($);break;default:qZ($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4($,L0,T0,k1,b1),R6(Z),L4(G),u1=U,b1=Y}function qG($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=w6();W5=Y,AF(Y,$),(Y.mode&g0)!==V0&&0<=L0&&0<=T0&&0.05<T0-L0&&w4(Y,L0,T0,"Unmount"),R6(U)}IF($)}for($=$.child;$!==null;)VF($),$=$.sibling}function VF($){var Z=w6(),G=_4(),Y=P4(),U=T4();switch($.tag){case 0:case 11:case 15:GY($,$.return,l5),qG($);break;case 22:var B=$.stateNode;B._visibility&U2&&(B._visibility&=~U2,qG($));break;default:qG($)}($.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4($,L0,T0,k1,b1),R6(Z),L4(G),u1=U,b1=Y}function AF($,Z){for(;W5!==null;){var G=W5,Y=G,U=Z,B=w6(),W=_4(),z=P4(),L=T4();switch(Y.tag){case 0:case 11:case 15:GY(Y,U,l5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&Y7(U));break;case 24:l$(Y.memoizedState.cache)}if((Y.mode&g0)!==V0&&0<=L0&&0<=T0&&(u1||0.05<k1)&&R4(Y,L0,T0,k1,b1),R6(B),L4(W),u1=L,b1=z,Y=G.child,Y!==null)Y.return=G,W5=Y;else $:for(G=$;W5!==null;){if(Y=W5,B=Y.sibling,W=Y.return,FF(Y),Y===G){W5=null;break $}if(B!==null){B.return=W,W5=B;break $}W5=W}}}function iT(){zO.forEach(function($){return $()})}function EF(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||x.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function _6($){if((Z1&N5)!==w5&&u0!==0)return u0&-u0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),RY()):y()}function SF(){if(e5===0)if((u0&536870912)===0||i0){var $=OG;OG<<=1,(OG&3932160)===0&&(OG=262144),e5=$}else e5=536870912;return $=O6.current,$!==null&&($.flags|=32),e5}function h1($,Z,G){if(X$&&console.error("useInsertionEffect must not schedule updates."),tN&&(K3=!0),$===P1&&(M1===A7||M1===E7)||$.cancelPendingCommit!==null)T9($,0),i2($,u0,e5,!1);if(u2($,G),(Z1&N5)!==w5&&$===P1){if(b4)switch(Z.tag){case 0:case 11:case 15:$=x0&&d(x0)||"Unknown",QR.has($)||(QR.add($),Z=d(Z)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",Z,$,$));break;case 1:ZR||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),ZR=!0)}}else f4&&k$($,Z,G),YC(Z),$===P1&&((Z1&N5)===w5&&(z8|=G),f1===W8&&i2($,u0,e5,!1)),S4($)}function jF($,Z,G){if((Z1&(N5|A6))!==w5)throw Error("Should not already be working.");if(u0!==0&&x0!==null){var Y=x0,U=F5();switch(sW){case tZ:case A7:var B=fZ;A1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,k6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,k6,void 0,"primary-light"));break;case E7:B=fZ,A1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,k6,void 0,"primary-light")):console.timeStamp("Action",B,U,k6,void 0,"primary-light"));break;default:A1&&(Y=U-fZ,3>Y||console.timeStamp("Blocked",fZ,U,k6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||s8($,Z))?eT($,Z):BY($,Z,!0);var W=G;do{if(B===L2){J$&&!G&&i2($,Z,0,!1),Z=M1,fZ=e1(),sW=Z;break}else{if(Y=F5(),U=$.current.alternate,W&&!tT(U)){M6(Z),U=M5,B=Y,!A1||B<=U||(l1?l1.run(console.timeStamp.bind(console,"Teared Render",U,B,o0,r0,"error")):console.timeStamp("Teared Render",U,B,o0,r0,"error")),F7(Z,Y),B=BY($,Z,!1),W=!1;continue}if(B===V7){if(W=Z,$.errorRecoveryDisabledLanes&W)var z=0;else z=$.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){M6(Z),nX(M5,Y,Z,l1),F7(Z,Y),Z=z;$:{Y=$,B=W,W=$Q;var L=Y.current.memoizedState.isDehydrated;if(L&&(T9(Y,z).flags|=256),z=BY(Y,z,!1),z!==V7){if(cN&&!L){Y.errorRecoveryDisabledLanes|=B,z8|=B,B=W8;break $}Y=r5,r5=W,Y!==null&&(r5===null?r5=Y:r5.push.apply(r5,Y))}B=z}if(W=!1,B!==V7)continue;else Y=F5()}}if(B===iZ){M6(Z),nX(M5,Y,Z,l1),F7(Z,Y),T9($,0),i2($,Z,0,!0);break}$:{switch(G=$,B){case L2:case iZ:throw Error("Root did not complete. This is a bug in React.");case W8:if((Z&4194048)!==Z)break;case Q3:M6(Z),jB(M5,Y,Z,l1),F7(Z,Y),U=Z,(U&127)!==0?mG=Y:(U&4194048)!==0&&(dG=Y),i2(G,Z,e5,!w8);break $;case V7:r5=null;break;case Z3:case dw:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)HY(G,U,Z,r5,ZQ,X3,e5,z8,S7,B,null,null,M5,Y);else{if((Z&62914560)===Z&&(W=q3+lw-F5(),10<W)){if(i2(G,Z,e5,!w8),n8(G,0,!0)!==0)break $;K4=Z,G.timeoutHandle=KR(DF.bind(null,G,U,r5,ZQ,X3,Z,e5,z8,S7,w8,B,"Throttled",M5,Y),W);break $}DF(G,U,r5,ZQ,X3,Z,e5,z8,S7,w8,B,null,M5,Y)}}}break}while(1);S4($)}function DF($,Z,G,Y,U,B,W,z,L,T,k,f,S,g){$.timeoutHandle=k7;var $0=Z.subtreeFlags,G0=null;if($0&8192||($0&16785408)===16785408){if(G0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:e4},CF(Z,B,G0),$0=(B&62914560)===B?q3-F5():(B&4194048)===B?cw-F5():0,$0=uC(G0,$0),$0!==null){K4=B,$.cancelPendingCommit=$0(HY.bind(null,$,Z,B,G,Y,U,W,z,L,k,G0,G0.waitingForViewTransition?"Waiting for the previous Animation":0<G0.count?0<G0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":G0.imgCount===1?"Suspended on an Image":0<G0.imgCount?"Suspended on Images":null,S,g)),i2($,B,W,!T);return}}HY($,Z,B,G,Y,U,W,z,L,k,G0,f,S,g)}function tT($){for(var Z=$;;){var G=Z.tag;if((G===0||G===11||G===15)&&Z.flags&16384&&(G=Z.updateQueue,G!==null&&(G=G.stores,G!==null)))for(var Y=0;Y<G.length;Y++){var U=G[Y],B=U.getSnapshot;U=U.value;try{if(!d5(B(),U))return!1}catch(W){return!1}}if(G=Z.child,Z.subtreeFlags&16384&&G!==null)G.return=Z,Z=G;else{if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function i2($,Z,G,Y){Z&=~lN,Z&=~z8,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-u5(U),W=1<<B;Y[B]=-1,U&=~W}G!==0&&o8($,G,Z)}function P9(){return(Z1&(N5|A6))===w5?(UZ(0,!1),!1):!0}function KY(){if(x0!==null){if(M1===t5)var $=x0.return;else $=x0,EJ(),Pq($),s9=null,cZ=0,$=x0;for(;$!==null;)QF($.alternate,$),$=$.return;x0=null}}function F7($,Z){($&127)!==0&&(K8=Z),($&4194048)!==0&&(x4=Z),($&62914560)!==0&&(rW=Z),($&2080374784)!==0&&(nW=Z)}function T9($,Z){A1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",r0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",r0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",r0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",r0,"primary-light"));var G=M5;if(M5=e1(),u0!==0&&0<G){if(M6(u0),f1===Z3||f1===W8)jB(G,M5,Z,l1);else{var Y=M5,U=l1;if(A1&&!(Y<=G)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,W,G,Y,o0,r0,B)):console.timeStamp(W,G,Y,o0,r0,B)}}F7(u0,M5)}if(G=l1,l1=null,(Z&127)!==0){l1=vZ,U=0<=u4&&u4<K8?K8:u4,Y=0<=z7&&z7<K8?K8:z7,B=0<=Y?Y:0<=U?U:M5,0<=mG?(M6(2),DB(mG,B,Z,G)):(pG&127)!==0&&(M6(2),p$(K8,B,W2)),G=U;var z=Y,L=bZ,T=0<l9,k=B8===DZ,f=B8===xG;if(U=M5,Y=vZ,B=CN,W=IN,A1){if(o0="Blocking",0<G?G>U&&(G=U):G=U,0<z?z>G&&(z=G):z=G,L!==null&&G>z){var S=T?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,T?"Consecutive":"Event: "+L,z,G,o0,r0,S)):console.timeStamp(T?"Consecutive":"Event: "+L,z,G,o0,r0,S)}U>G&&(z=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=f?"Promise Resolved":k?"Cascading Update":5<U-G?"Update Blocked":"Update",f=[],W!=null&&f.push(["Component name",W]),B!=null&&f.push(["Method name",B]),G={start:G,end:U,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:z}}},Y?Y.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}u4=-1.1,B8=0,IN=CN=null,mG=-1.1,l9=z7,z7=-1.1,K8=e1()}if((Z&4194048)!==0&&(l1=kZ,U=0<=M2&&M2<x4?x4:M2,G=0<=x6&&x6<x4?x4:x6,Y=0<=H8&&H8<x4?x4:H8,B=0<=Y?Y:0<=G?G:M5,0<=dG?(M6(256),DB(dG,B,Z,l1)):(pG&4194048)!==0&&(M6(256),p$(x4,B,W2)),f=Y,z=_7,L=0<F8,T=ON===xG,B=M5,Y=kZ,W=cW,k=lW,A1&&(o0="Transition",0<G?G>B&&(G=B):G=B,0<U?U>G&&(U=G):U=G,0<f?f>U&&(f=U):f=U,U>f&&z!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+z,f,U,o0,r0,S)):console.timeStamp(L?"Consecutive":"Event: "+z,f,U,o0,r0,S)),G>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,G,o0,r0,"primary-dark")):console.timeStamp("Action",U,G,o0,r0,"primary-dark")),B>G&&(U=T?"Promise Resolved":5<B-G?"Update Blocked":"Update",f=[],k!=null&&f.push(["Component name",k]),W!=null&&f.push(["Method name",W]),G={start:G,end:B,detail:{devtools:{properties:f,track:o0,trackGroup:r0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,G)):performance.measure(U,G))),x6=M2=-1.1,ON=0,dG=-1.1,F8=H8,H8=-1.1,x4=e1()),(Z&62914560)!==0&&(pG&62914560)!==0&&(M6(4194304),p$(rW,M5,W2)),(Z&2080374784)!==0&&(pG&2080374784)!==0&&(M6(268435456),p$(nW,M5,W2)),G=$.timeoutHandle,G!==k7&&($.timeoutHandle=k7,DO(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),K4=0,KY(),P1=$,x0=G=$2($.current,null),u0=Z,M1=t5,E6=null,w8=!1,J$=s8($,Z),cN=!1,f1=L2,S7=e5=lN=z8=R8=0,r5=$Q=null,X3=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-u5(Y),B=1<<U,Z|=$[U],Y&=~B;return d4=Z,CJ(),$=hW(),1000<$-gW&&(x.recentlyCreatedOwnerStacks=0,gW=$),Y4.discardPendingWarnings(),G}function vF($,Z){A0=null,x.H=sZ,x.getCurrentStack=null,b4=!1,T6=null,Z===n9||Z===nG?(Z=eB(),M1=tZ):Z===SN?(Z=eB(),M1=pw):M1=Z===uN?pN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?eZ:J3,E6=Z;var G=x0;G===null?(f1=iZ,eJ($,W6(Z,$.current))):G.mode&g0&&Nq(G)}function bF(){var $=O6.current;return $===null?!0:(u0&4194048)===u0?m6===null?!0:!1:(u0&62914560)===u0||(u0&536870912)!==0?$===m6:!1}function kF(){var $=x.H;return x.H=sZ,$===null?sZ:$}function fF(){var $=x.A;return x.A=RO,$}function YG($){l1===null&&(l1=$._debugTask==null?null:$._debugTask)}function NG(){f1=W8,w8||(u0&4194048)!==u0&&O6.current!==null||(J$=!0),(R8&134217727)===0&&(z8&134217727)===0||P1===null||i2(P1,u0,e5,!1)}function BY($,Z,G){var Y=Z1;Z1|=N5;var U=kF(),B=fF();if(P1!==$||u0!==Z){if(f4){var W=$.memoizedUpdaters;0<W.size&&(NZ($,u0),W.clear()),x2($,Z)}ZQ=null,T9($,Z)}Z=!1,W=f1;$:do try{if(M1!==t5&&x0!==null){var z=x0,L=E6;switch(M1){case pN:KY(),W=Q3;break $;case tZ:case A7:case E7:case eZ:O6.current===null&&(Z=!0);var T=M1;if(M1=t5,E6=null,C9($,z,L,T),G&&J$){W=L2;break $}break;default:T=M1,M1=t5,E6=null,C9($,z,L,T)}}yF(),W=f1;break}catch(k){vF($,k)}while(1);return Z&&$.shellSuspendCounter++,EJ(),Z1=Y,x.H=U,x.A=B,x0===null&&(P1=null,u0=0,CJ()),W}function yF(){for(;x0!==null;)gF(x0)}function eT($,Z){var G=Z1;Z1|=N5;var Y=kF(),U=fF();if(P1!==$||u0!==Z){if(f4){var B=$.memoizedUpdaters;0<B.size&&(NZ($,u0),B.clear()),x2($,Z)}ZQ=null,Y3=F5()+rw,T9($,Z)}else J$=s8($,Z);$:do try{if(M1!==t5&&x0!==null)Z:switch(Z=x0,B=E6,M1){case J3:M1=t5,E6=null,C9($,Z,B,J3);break;case A7:case E7:if(iB(B)){M1=t5,E6=null,hF(Z);break}Z=function(){M1!==A7&&M1!==E7||P1!==$||(M1=G3),S4($)},B.then(Z,Z);break $;case tZ:M1=G3;break $;case pw:M1=dN;break $;case G3:iB(B)?(M1=t5,E6=null,hF(Z)):(M1=t5,E6=null,C9($,Z,B,G3));break;case dN:var W=null;switch(x0.tag){case 26:W=x0.memoizedState;case 5:case 27:var z=x0;if(W?jM(W):z.stateNode.complete){M1=t5,E6=null;var L=z.sibling;if(L!==null)x0=L;else{var T=z.return;T!==null?(x0=T,UG(T)):x0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}M1=t5,E6=null,C9($,Z,B,dN);break;case eZ:M1=t5,E6=null,C9($,Z,B,eZ);break;case pN:KY(),f1=Q3;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?yF():$C();break}catch(k){vF($,k)}while(1);if(EJ(),x.H=Y,x.A=U,Z1=G,x0!==null)return L2;return P1=null,u0=0,CJ(),f1}function $C(){for(;x0!==null&&!tC();)gF(x0)}function gF($){var Z=$.alternate;($.mode&g0)!==V0?(Yq($),Z=X0($,ZY,Z,$,d4),Nq($)):Z=X0($,ZY,Z,$,d4),$.memoizedProps=$.pendingProps,Z===null?UG($):x0=Z}function hF($){var Z=X0($,ZC,$);$.memoizedProps=$.pendingProps,Z===null?UG($):x0=Z}function ZC($){var Z=$.alternate,G=($.mode&g0)!==V0;switch(G&&Yq($),$.tag){case 15:case 0:Z=oH(Z,$,$.pendingProps,$.type,void 0,u0);break;case 11:Z=oH(Z,$,$.pendingProps,$.type.render,$.ref,u0);break;case 5:Pq($);default:QF(Z,$),$=x0=gB($,d4),Z=ZY(Z,$,d4)}return G&&Nq($),Z}function C9($,Z,G,Y){EJ(),Pq(Z),s9=null,cZ=0;var U=Z.return;try{if(uT($,U,Z,G,u0)){f1=iZ,eJ($,W6(G,$.current)),x0=null;return}}catch(B){if(U!==null)throw x0=U,B;f1=iZ,eJ($,W6(G,$.current)),x0=null;return}if(Z.flags&32768){if(i0||Y===J3)$=!0;else if(J$||(u0&536870912)!==0)$=!1;else if(w8=$=!0,Y===A7||Y===E7||Y===tZ||Y===eZ)Y=O6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);uF(Z,$)}else UG(Z)}function UG($){var Z=$;do{if((Z.flags&32768)!==0){uF(Z,w8);return}var G=Z.alternate;if($=Z.return,Yq(Z),G=X0(Z,dT,G,Z,d4),(Z.mode&g0)!==V0&&rB(Z),G!==null){x0=G;return}if(Z=Z.sibling,Z!==null){x0=Z;return}x0=Z=$}while(Z!==null);f1===L2&&(f1=dw)}function uF($,Z){do{var G=pT($.alternate,$);if(G!==null){G.flags&=32767,x0=G;return}if(($.mode&g0)!==V0){rB($),G=$.actualDuration;for(var Y=$.child;Y!==null;)G+=Y.actualDuration,Y=Y.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Z&&($=$.sibling,$!==null)){x0=$;return}x0=$=G}while($!==null);f1=Q3,x0=null}function HY($,Z,G,Y,U,B,W,z,L,T,k,f,S,g){$.cancelPendingCommit=null;do YZ();while(G5!==L8);if(Y4.flushLegacyContextWarning(),Y4.flushPendingUnsafeLifecycleWarnings(),(Z1&(N5|A6))!==w5)throw Error("Should not already be working.");if(M6(G),T===V7?nX(S,g,G,l1):Y!==null?VT(S,g,G,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,l1):OT(S,g,G,l1),Z!==null){if(G===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Z===$.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(B=Z.lanes|Z.childLanes,B|=zN,HJ($,G,B,W,z,L),$===P1&&(x0=P1=null,u0=0),G$=Z,P8=$,K4=G,sN=B,aN=U,tw=Y,oN=g,ew=f,B4=N3,$R=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,qC(S9,function(){return YQ=window.event,B4===N3&&(B4=nN),cF(),null})):($.callbackNode=null,$.callbackPriority=0),F2=null,U8=e1(),f!==null&&AT(g,U8,f,l1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=K1.p,K1.p=C6,W=Z1,Z1|=A6;try{oT($,Z,G)}finally{Z1=W,K1.p=U,x.T=Y}}G5=sw,xF(),mF(),dF()}}function xF(){if(G5===sw){G5=L8;var $=P8,Z=G$,G=K4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=K1.p;K1.p=C6;var B=Z1;Z1|=A6;try{Z$=G,Q$=$,vJ(),RF(Z,$),Q$=Z$=null,G=YU;var W=AB($.containerInfo),z=G.focusedElem,L=G.selectionRange;if(W!==z&&z&&z.ownerDocument&&VB(z.ownerDocument.documentElement,z)){if(L!==null&&cX(z)){var{start:T,end:k}=L;if(k===void 0&&(k=T),"selectionStart"in z)z.selectionStart=T,z.selectionEnd=Math.min(k,z.value.length);else{var f=z.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),$0=z.textContent.length,G0=Math.min(L.start,$0),O1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>O1&&(W=O1,O1=G0,G0=W);var e0=OB(z,G0),E=OB(z,O1);if(e0&&E&&(g.rangeCount!==1||g.anchorNode!==e0.node||g.anchorOffset!==e0.offset||g.focusNode!==E.node||g.focusOffset!==E.offset)){var j=f.createRange();j.setStart(e0.node,e0.offset),g.removeAllRanges(),G0>O1?(g.addRange(j),g.extend(E.node,E.offset)):(j.setEnd(E.node,E.offset),g.addRange(j))}}}}f=[];for(g=z;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof z.focus==="function"&&z.focus();for(z=0;z<f.length;z++){var b=f[z];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}I3=!!qU,YU=qU=null}finally{Z1=B,K1.p=U,x.T=Y}}$.current=Z,G5=ow}}function mF(){if(G5===ow){G5=L8;var $=$R;if($!==null){U8=e1();var Z=H2,G=U8;!A1||G<=Z||(W2?W2.run(console.timeStamp.bind(console,$,Z,G,o0,r0,"secondary-light")):console.timeStamp($,Z,G,o0,r0,"secondary-light"))}$=P8,Z=G$,G=K4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=K1.p;K1.p=C6;var B=Z1;Z1|=A6;try{Z$=G,Q$=$,vJ(),HF($,Z.alternate,Z),Q$=Z$=null}finally{Z1=B,K1.p=U,x.T=Y}}$=oN,Z=ew,H2=e1(),$=Z===null?$:U8,Z=H2,G=B4===rN,Y=l1,F2!==null?vB($,Z,F2,!1,Y):!A1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,o0,r0,G?"error":"secondary-dark")),G5=aw}}function dF(){if(G5===iw||G5===aw){if(G5===iw){var $=H2;H2=e1();var Z=H2,G=B4===rN;!A1||Z<=$||(W2?W2.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,o0,r0,G?" error":"secondary-light")),B4!==rN&&(B4=nw)}G5=L8,eC(),$=P8;var Y=G$;Z=K4,G=tw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?G5=U3:(G5=L8,G$=P8=null,pF($,$.pendingLanes),j7=0,JQ=null);var B=$.pendingLanes;if(B===0&&(_8=null),U||sF($),B=C(Z),Y=Y.stateNode,D5&&typeof D5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case C6:var z=aY;break;case X4:z=iY;break;case y4:z=S9;break;case AG:z=tY;break;default:z=S9}D5.onCommitFiberRoot(j9,Y,z,W)}catch(f){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",f))}if(f4&&$.memoizedUpdaters.clear(),iT(),G!==null){W=x.T,z=K1.p,K1.p=C6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<G.length;Y++){var T=G[Y],k=QC(T.stack);X0(T.source,L,T.value,k)}}finally{x.T=W,K1.p=z}}(K4&3)!==0&&YZ(),S4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(lG=!0,$===iN?QQ++:(QQ=0,iN=$)):QQ=0,U||F7(Z,H2),UZ(0,!1)}}function QC($){return $={componentStack:$},Object.defineProperty($,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),$}function pF($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,l$(Z)))}function YZ(){return xF(),mF(),dF(),cF()}function cF(){if(G5!==U3)return!1;var $=P8,Z=sN;sN=0;var G=C(K4),Y=y4===0||y4>G?y4:G;G=x.T;var U=K1.p;try{K1.p=Y,x.T=null;var B=aN;aN=null,Y=P8;var W=K4;if(G5=L8,G$=P8=null,K4=0,(Z1&(N5|A6))!==w5)throw Error("Cannot flush passive effects while already rendering.");M6(W),tN=!0,K3=!1;var z=0;if(F2=null,z=F5(),B4===nw)p$(H2,z,W2);else{var L=H2,T=z,k=B4===nN;!A1||T<=L||(l1?l1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",L,T,o0,r0,"secondary-light"))}L=Z1,Z1|=A6;var f=Y.current;vJ(),OF(f);var S=Y.current;f=oN,vJ(),PF(Y,S,W,B,f),sF(Y),Z1=L;var g=F5();if(S=z,f=l1,F2!==null?vB(S,g,F2,!0,f):!A1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,o0,r0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,o0,r0,"secondary-dark")),F7(W,g),UZ(0,!1),K3?Y===JQ?j7++:(j7=0,JQ=Y):j7=0,K3=tN=!1,D5&&typeof D5.onPostCommitFiberRoot==="function")try{D5.onPostCommitFiberRoot(j9,Y)}catch(G0){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{K1.p=U,x.T=G,pF($,Z)}}function lF($,Z,G){Z=W6(G,Z),nB(Z),Z=cq($.stateNode,Z,2),$=n2($,Z,2),$!==null&&(u2($,2),S4($))}function U1($,Z,G){if(X$=!1,$.tag===3)lF($,$,G);else{for(;Z!==null;){if(Z.tag===3){lF(Z,$,G);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(_8===null||!_8.has(Y))){$=W6(G,$),nB($),G=lq(2),Y=n2(Z,G,2),Y!==null&&(rq(G,Y,Z,$),u2(Y,2),S4(Y));return}}Z=Z.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
154
154
|
|
|
155
155
|
Error message:
|
|
156
156
|
|
|
@@ -163,7 +163,7 @@ act(() => {
|
|
|
163
163
|
});
|
|
164
164
|
/* assert on the output */
|
|
165
165
|
|
|
166
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),P1===$&&(u0&G)===G&&(f1===W8||f1===Z3&&(u0&62914560)===u0&&F5()-q3<lw?(Z1&N5)===w5&&
|
|
166
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),P1===$&&(u0&G)===G&&(f1===W8||f1===Z3&&(u0&62914560)===u0&&F5()-q3<lw?(Z1&N5)===w5&&T9($,0):lN|=G,S7===u0&&(S7=0)),S4($)}function rF($,Z){Z===0&&(Z=Y9()),$=j5($,Z),$!==null&&(u2($,Z),S4($))}function GC($){var Z=$.memoizedState,G=0;Z!==null&&(G=Z.retryLane),rF($,G)}function XC($,Z){var G=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(G=U.retryLane);break;case 19:Y=$.stateNode;break;case 22:Y=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}Y!==null&&Y.delete(Z),rF($,G)}function MY($,Z,G){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,B=U.type===PG;B=G||B,U.tag!==22?U.flags&67108864?B&&X0(U,nF,Y,U):MY(Y,U,B):U.memoizedState===null&&(B&&U.flags&8192?X0(U,nF,Y,U):U.subtreeFlags&67108864&&X0(U,MY,Y,U,B)),Z=Z.sibling}}function nF($,Z){C1(!0);try{_F(Z),VF(Z),LF($,Z.alternate,Z,!1),TF($,Z,0,null,!1,0)}finally{C1(!1)}}function sF($){var Z=!0;$.current.mode&(v5|q4)||(Z=!1),MY($,$.current,Z)}function oF($){if((Z1&N5)===w5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",B3!==null){if(B3.has(Z))return;B3.add(Z)}else B3=new Set([Z]);X0($,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function NZ($,Z){f4&&$.memoizedUpdaters.forEach(function(G){k$($,G,Z)})}function qC($,Z){var G=x.actQueue;return G!==null?(G.push(Z),TO):oY($,Z)}function YC($){EF()&&x.actQueue===null&&X0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
167
|
|
|
168
168
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
169
|
|
|
@@ -172,16 +172,16 @@ act(() => {
|
|
|
172
172
|
});
|
|
173
173
|
/* assert on the output */
|
|
174
174
|
|
|
175
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,d($))})}function S4($){$!==q$&&$.next===null&&(q$===null?H3=q$=$:q$=q$.next=$),F3=!0,x.actQueue!==null?$U||($U=!0,eF()):eN||(eN=!0,eF())}function UZ($,Z){if(!ZU&&F3){ZU=!0;do{var G=!1;for(var Y=H3;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:W,pingedLanes:z}=Y;B=(1<<31-u5(42|$)+1)-1,B&=U&~(W&~z),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,tF(Y,B))}else B=u0,B=n8(Y,Y===P1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==k9),(B&3)===0||s8(Y,B)||(G=!0,tF(Y,B));Y=Y.next}}while(G);ZU=!1}}function NC(){YQ=window.event,WY()}function WY(){F3=$U=eN=!1;var $=0;T8!==0&&WC()&&($=T8);for(var Z=F5(),G=null,Y=H3;Y!==null;){var U=Y.next,B=aF(Y,Z);if(B===0)Y.next=null,G===null?H3=U:G.next=U,U===null&&(q$=G);else if(G=Y,$!==0||(B&3)!==0)F3=!0;Y=U}G5!==L8&&G5!==U3||UZ($,!1),T8!==0&&(T8=0)}function aF($,Z){for(var{suspendedLanes:G,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-u5(B),z=1<<W,L=U[W];if(L===-1){if((z&G)===0||(z&Y)!==0)U[W]=bX(z,Z)}else L<=Z&&($.expiredLanes|=z);B&=~z}if(Z=P1,G=u0,G=n8($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==k9),Y=$.callbackNode,G===0||$===Z&&(M1===A9||M1===E9)||$.cancelPendingCommit!==null)return Y!==null&&wY(Y),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||s8($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&Y!==QU)wY(Y);else return Z;switch(C(G)){case C6:case X4:G=iY;break;case y4:G=S7;break;case AG:G=tY;break;default:G=S7}return Y=iF.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),G=QU):G=oY(G,Y),$.callbackPriority=Z,$.callbackNode=G,Z}return Y!==null&&wY(Y),$.callbackPriority=2,$.callbackNode=null,2}function iF($,Z){if(lG=cG=!1,YQ=window.event,G5!==L8&&G5!==U3)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(B4===N3&&(B4=nN),YZ()&&$.callbackNode!==G)return null;var Y=u0;if(Y=n8($,$===P1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==k9),Y===0)return null;return jF($,Y,Z),aF($,F5()),$.callbackNode!=null&&$.callbackNode===G?iF.bind(null,$):null}function tF($,Z){if(YZ())return null;cG=lG,lG=!1,jF($,Z,!0)}function wY($){$!==QU&&$!==null&&iC($)}function eF(){x.actQueue!==null&&x.actQueue.push(function(){return WY(),null}),vO(function(){(Z1&(N5|A6))!==w5?oY(aY,NC):WY()})}function RY(){if(T8===0){var $=L9;$===0&&($=IG,IG<<=1,(IG&261888)===0&&(IG=256)),T8=$}return T8}function $M($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return w1($,"action"),x$(""+$)}function ZM($,Z){var G=Z.ownerDocument.createElement("input");return G.name=Z.name,G.value=Z.value,$.id&&G.setAttribute("form",$.id),Z.parentNode.insertBefore(G,Z),$=new FormData($),G.parentNode.removeChild(G),$}function UC($,Z,G,Y,U){if(Z==="submit"&&G&&G.stateNode===U){var B=$M((U[x5]||null).action),W=Y.submitter;W&&(Z=(Z=W[x5]||null)?$M(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var z=new vG("action","action",null,Y,U);$.push({event:z,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(T8!==0){var L=W?ZM(U,W):new FormData(U),T={pending:!0,data:L,method:U.method,action:B};Object.freeze(T),gq(G,T,null,L)}}else typeof B==="function"&&(z.preventDefault(),L=W?ZM(U,W):new FormData(U),T={pending:!0,data:L,method:U.method,action:B},Object.freeze(T),gq(G,T,B,L))},currentTarget:U}]})}}function KG($,Z,G){$.currentTarget=G;try{Z($)}catch(Y){MN(Y)}$.currentTarget=null}function QM($,Z){Z=(Z&4)!==0;for(var G=0;G<$.length;G++){var Y=$[G];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var W=Y.length-1;0<=W;W--){var z=Y[W],L=z.instance,T=z.currentTarget;if(z=z.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,KG,B,z,T):KG(B,z,T),U=L}else for(W=0;W<Y.length;W++){if(z=Y[W],L=z.instance,T=z.currentTarget,z=z.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,KG,B,z,T):KG(B,z,T),U=L}}}}function t0($,Z){JU.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[eY];G===void 0&&(G=Z[eY]=new Set);var Y=$+"__bubble";G.has(Y)||(JM(Z,$,2,!1),G.add(Y))}function zY($,Z,G){JU.has($)&&!Z&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var Y=0;Z&&(Y|=4),JM(G,$,Y,Z)}function _Y($){if(!$[M3]){$[M3]=!0,eM.forEach(function(G){G!=="selectionchange"&&(JU.has(G)||zY(G,!1,$),zY(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[M3]||(Z[M3]=!0,zY("selectionchange",!1,Z))}}function JM($,Z,G,Y){switch(yM(Z)){case C6:var U=pC;break;case X4:U=cC;break;default:U=fY}G=U.bind(null,Z,G,$),U=void 0,!GN||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,G,{capture:!0,passive:U}):$.addEventListener(Z,G,!0):U!==void 0?$.addEventListener(Z,G,{passive:U}):$.addEventListener(Z,G,!1)}function LY($,Z,G,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var W=Y.tag;if(W===3||W===4){var z=Y.stateNode.containerInfo;if(z===U)break;if(W===4)for(W=Y.return;W!==null;){var L=W.tag;if((L===3||L===4)&&W.stateNode.containerInfo===U)return;W=W.return}for(;z!==null;){if(W=N0(z),W===null)return;if(L=W.tag,L===5||L===6||L===26||L===27){Y=B=W;continue $}z=z.parentNode}}Y=Y.return}MB(function(){var T=B,k=dX(G),f=[];$:{var S=yW.get($);if(S!==void 0){var g=vG,$0=$;switch($){case"keypress":if(zJ(G)===0)break $;case"keydown":case"keyup":g=hI;break;case"focusin":$0="focus",g=NN;break;case"focusout":$0="blur",g=NN;break;case"beforeblur":case"afterblur":g=NN;break;case"click":if(G.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=TW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=VI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=mI;break;case vW:case bW:case kW:g=SI;break;case fW:g=pI;break;case"scroll":case"scrollend":g=II;break;case"wheel":g=lI;break;case"copy":case"cut":case"paste":g=DI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=IW;break;case"toggle":case"beforetoggle":g=nI}var G0=(Z&4)!==0,O1=!G0&&($==="scroll"||$==="scrollend"),e0=G0?S!==null?S+"Capture":null:S;G0=[];for(var E=T,j;E!==null;){var b=E;if(j=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||j===null||e0===null||(b=m$(E,e0),b!=null&&G0.push(KZ(E,b,j))),O1)break;E=E.return}0<G0.length&&(S=new g(S,$0,null,G,k),f.push({event:S,listeners:G0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&G!==PZ&&($0=G.relatedTarget||G.fromElement)&&(N0($0)||$0[J8]))break $;if(g||S){if(S=k.window===k?k:(S=k.ownerDocument)?S.defaultView||S.parentWindow:window,g){if($0=G.relatedTarget||G.toElement,g=T,$0=$0?N0($0):null,$0!==null&&(O1=D($0),G0=$0.tag,$0!==O1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=T;if(g!==$0){if(G0=TW,b="onMouseLeave",e0="onMouseEnter",E="mouse",$==="pointerout"||$==="pointerover")G0=IW,b="onPointerLeave",e0="onPointerEnter",E="pointer";if(O1=g==null?S:v0(g),j=$0==null?S:v0($0),S=new G0(b,E+"leave",g,G,k),S.target=O1,S.relatedTarget=j,b=null,N0(k)===T&&(G0=new G0(e0,E+"enter",$0,G,k),G0.target=j,G0.relatedTarget=O1,b=G0),O1=b,g&&$0)Z:{G0=KC,e0=g,E=$0,j=0;for(b=e0;b;b=G0(b))j++;b=0;for(var m=E;m;m=G0(m))b++;for(;0<j-b;)e0=G0(e0),j--;for(;0<b-j;)E=G0(E),b--;for(;j--;){if(e0===E||E!==null&&e0===E.alternate){G0=e0;break Z}e0=G0(e0),E=G0(E)}G0=null}else G0=null;g!==null&&GM(f,S,g,G0,!1),$0!==null&&O1!==null&&GM(f,O1,$0,G0,!0)}}}$:{if(S=T?v0(T):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var Q0=PB;else if(_B(S))if(jW)Q0=TT;else{Q0=LT;var E0=_T}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?T&&u$(T.elementType)&&(Q0=PB):Q0=PT;if(Q0&&(Q0=Q0($,T))){LB(f,Q0,G,k);break $}E0&&E0($,S,T),$==="focusout"&&T&&S.type==="number"&&T.memoizedProps.value!=null&&yX(S,"number",S.value)}switch(E0=T?v0(T):window,$){case"focusin":if(_B(E0)||E0.contentEditable==="true")g7=E0,KN=T,EZ=null;break;case"focusout":EZ=KN=g7=null;break;case"mousedown":BN=!0;break;case"contextmenu":case"mouseup":case"dragend":BN=!1,EB(f,G,k);break;case"selectionchange":if(iI)break;case"keydown":case"keyup":EB(f,G,k)}var z0;if(UN)$:{switch($){case"compositionstart":var B0="onCompositionStart";break $;case"compositionend":B0="onCompositionEnd";break $;case"compositionupdate":B0="onCompositionUpdate";break $}B0=void 0}else y7?RB($,G)&&(B0="onCompositionEnd"):$==="keydown"&&G.keyCode===OW&&(B0="onCompositionStart");if(B0&&(VW&&G.locale!=="ko"&&(y7||B0!=="onCompositionStart"?B0==="onCompositionEnd"&&y7&&(z0=WB()):(G8=k,XN=("value"in G8)?G8.value:G8.textContent,y7=!0)),E0=BG(T,B0),0<E0.length&&(B0=new CW(B0,$,null,G,k),f.push({event:B0,listeners:E0}),z0?B0.data=z0:(z0=zB(G),z0!==null&&(B0.data=z0)))),z0=oI?WT($,G):wT($,G))B0=BG(T,"onBeforeInput"),0<B0.length&&(E0=new bI("onBeforeInput","beforeinput",null,G,k),f.push({event:E0,listeners:B0}),E0.data=z0);UC(f,$,T,G,k)}QM(f,Z)})}function KZ($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function BG($,Z){for(var G=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=m$($,G),U!=null&&Y.unshift(KZ($,U,B)),U=m$($,Z),U!=null&&Y.push(KZ($,U,B))),$.tag===3)return Y;$=$.return}return[]}function KC($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function GM($,Z,G,Y,U){for(var B=Z._reactName,W=[];G!==null&&G!==Y;){var z=G,L=z.alternate,T=z.stateNode;if(z=z.tag,L!==null&&L===Y)break;z!==5&&z!==26&&z!==27||T===null||(L=T,U?(T=m$(G,B),T!=null&&W.unshift(KZ(G,T,L))):U||(T=m$(G,B),T!=null&&W.push(KZ(G,T,L)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function PY($,Z){BT($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||LW||(LW=!0,$==="select"&&Z.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var G={registrationNameDependencies:M9,possibleRegistrationNames:$N};u$($)||typeof Z.is==="string"||FT($,Z,G),Z.contentEditable&&!Z.suppressContentEditableWarning&&Z.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function H5($,Z,G,Y){Z!==G&&(G=t2(G),t2(Z)!==G&&(Y[$]=Z))}function BC($,Z,G){Z.forEach(function(Y){G[YM(Y)]=Y==="style"?CY($):$.getAttribute(Y)})}function j4($,Z){Z===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof Z)}function XM($,Z){return $=$.namespaceURI===SG||$.namespaceURI===v7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function t2($){return h2($)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",r8($)),B5($)),(typeof $==="string"?$:""+$).replace(CO,`
|
|
176
|
-
`).replace(IO,"")}function qM($,Z){return Z=t2(Z),t2($)===Z?!0:!1}function _1($,Z,G,Y,U,B){switch(G){case"children":if(typeof Y==="string")RJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||h$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")RJ(""+Y,Z,!1),Z!=="body"&&h$($,""+Y);break;case"className":MJ($,"class",Y);break;case"tabIndex":MJ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":MJ($,G,Y);break;case"style":BB($,Y,B);break;case"data":if(Z!=="object"){MJ($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||G!=="href")){G==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G),$.removeAttribute(G);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}w1(Y,G),Y=x$(""+Y),$.setAttribute(G,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?G==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(U.encType==null&&U.method==null||R3||(R3=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),U.target==null||w3||(w3=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):Z==="input"||Z==="button"?G==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Z!=="input"||U.type==="submit"||U.type==="image"||W3?Z!=="button"||U.type==null||U.type==="submit"||W3?typeof Y==="function"&&(U.name==null||XR||(XR=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),U.formEncType==null&&U.formMethod==null||R3||(R3=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),U.formTarget==null||w3||(w3=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(W3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(W3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):G==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof Y==="function"){$.setAttribute(G,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof B==="function"&&(G==="formAction"?(Z!=="input"&&_1($,Z,"name",U.name,U,null),_1($,Z,"formEncType",U.formEncType,U,null),_1($,Z,"formMethod",U.formMethod,U,null),_1($,Z,"formTarget",U.formTarget,U,null)):(_1($,Z,"encType",U.encType,U,null),_1($,Z,"method",U.method,U,null),_1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}w1(Y,G),Y=x$(""+Y),$.setAttribute(G,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&j4(G,Y),$.onclick=e4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scrollend",$));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"multiple":$.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":$.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){$.removeAttribute("xlink:href");break}w1(Y,G),G=x$(""+Y),$.setAttributeNS(D9,"xlink:href",G);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(w1(Y,G),$.setAttribute(G,""+Y)):$.removeAttribute(G);break;case"inert":Y!==""||z3[G]||(z3[G]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",G));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?$.setAttribute(G,""):$.removeAttribute(G);break;case"capture":case"download":Y===!0?$.setAttribute(G,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(w1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(w1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(G):(w1(Y,G),$.setAttribute(G,Y));break;case"popover":t0("beforetoggle",$),t0("toggle",$),FJ($,"popover",Y);break;case"xlinkActuate":t4($,D9,"xlink:actuate",Y);break;case"xlinkArcrole":t4($,D9,"xlink:arcrole",Y);break;case"xlinkRole":t4($,D9,"xlink:role",Y);break;case"xlinkShow":t4($,D9,"xlink:show",Y);break;case"xlinkTitle":t4($,D9,"xlink:title",Y);break;case"xlinkType":t4($,D9,"xlink:type",Y);break;case"xmlBase":t4($,GU,"xml:base",Y);break;case"xmlLang":t4($,GU,"xml:lang",Y);break;case"xmlSpace":t4($,GU,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),FJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":qR||Y==null||typeof Y!=="object"||(qR=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=HB(G),FJ($,G,Y)):M9.hasOwnProperty(G)&&Y!=null&&typeof Y!=="function"&&j4(G,Y)}}function TY($,Z,G,Y,U,B){switch(G){case"style":BB($,Y,B);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof Y==="string"?h$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&h$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&j4(G,Y),$.onclick=e4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(M9.hasOwnProperty(G))Y!=null&&typeof Y!=="function"&&j4(G,Y);else $:{if(G[0]==="o"&&G[1]==="n"&&(U=G.endsWith("Capture"),Z=G.slice(2,U?G.length-7:void 0),B=$[x5]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Z,Y,U);break $}G in $?$[G]=Y:Y===!0?$.setAttribute(G,""):FJ($,G,Y)}}}function L5($,Z,G){switch(PY(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":t0("error",$),t0("load",$);var Y=!1,U=!1,B;for(B in G)if(G.hasOwnProperty(B)){var W=G[B];if(W!=null)switch(B){case"src":Y=!0;break;case"srcSet":U=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_1($,Z,B,W,G,null)}}U&&_1($,Z,"srcSet",G.srcSet,G,null),Y&&_1($,Z,"src",G.src,G,null);return;case"input":m2("input",G),t0("invalid",$);var z=B=W=U=null,L=null,T=null;for(Y in G)if(G.hasOwnProperty(Y)){var k=G[Y];if(k!=null)switch(Y){case"name":U=k;break;case"type":W=k;break;case"checked":L=k;break;case"defaultChecked":T=k;break;case"value":B=k;break;case"defaultValue":z=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_1($,Z,Y,k,G,null)}}oK($,G),aK($,B,z,L,T,W,U,!1);return;case"select":m2("select",G),t0("invalid",$),Y=W=B=null;for(U in G)if(G.hasOwnProperty(U)&&(z=G[U],z!=null))switch(U){case"value":B=z;break;case"defaultValue":W=z;break;case"multiple":Y=z;default:_1($,Z,U,z,G,null)}eK($,G),Z=B,G=W,$.multiple=!!Y,Z!=null?U7($,!!Y,Z,!1):G!=null&&U7($,!!Y,G,!0);return;case"textarea":m2("textarea",G),t0("invalid",$),B=U=Y=null;for(W in G)if(G.hasOwnProperty(W)&&(z=G[W],z!=null))switch(W){case"value":Y=z;break;case"defaultValue":U=z;break;case"children":B=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_1($,Z,W,z,G,null)}$B($,G),QB($,Y,U,B);return;case"option":iK($,G);for(L in G)if(G.hasOwnProperty(L)&&(Y=G[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:_1($,Z,L,Y,G,null)}return;case"dialog":t0("beforetoggle",$),t0("toggle",$),t0("cancel",$),t0("close",$);break;case"iframe":case"object":t0("load",$);break;case"video":case"audio":for(Y=0;Y<GQ.length;Y++)t0(GQ[Y],$);break;case"image":t0("error",$),t0("load",$);break;case"details":t0("toggle",$);break;case"embed":case"source":case"link":t0("error",$),t0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in G)if(G.hasOwnProperty(T)&&(Y=G[T],Y!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_1($,Z,T,Y,G,null)}return;default:if(u$(Z)){for(k in G)G.hasOwnProperty(k)&&(Y=G[k],Y!==void 0&&TY($,Z,k,Y,G,void 0));return}}for(z in G)G.hasOwnProperty(z)&&(Y=G[z],Y!=null&&_1($,Z,z,Y,G,null))}function HC($,Z,G,Y){switch(PY(Z,Y),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var U=null,B=null,W=null,z=null,L=null,T=null,k=null;for(g in G){var f=G[g];if(G.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||_1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=G[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":T=g;break;case"defaultChecked":k=g;break;case"value":W=g;break;case"defaultValue":z=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:g!==f&&_1($,Z,S,g,Y,f)}}Z=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||GR||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),GR=!0),!Z||Y||JR||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),JR=!0),fX($,W,z,L,T,k,B,U);return;case"select":g=W=z=S=null;for(B in G)if(L=G[B],G.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||_1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=G[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":z=B;break;case"multiple":W=B;default:B!==L&&_1($,Z,U,B,Y,L)}Y=z,Z=W,G=g,S!=null?U7($,!!Z,S,!1):!!G!==!!Z&&(Y!=null?U7($,!!Z,Y,!0):U7($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(z in G)if(U=G[z],G.hasOwnProperty(z)&&U!=null&&!Y.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:_1($,Z,z,null,Y,U)}for(W in Y)if(U=Y[W],B=G[W],Y.hasOwnProperty(W)&&(U!=null||B!=null))switch(W){case"value":S=U;break;case"defaultValue":g=U;break;case"children":break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U!==B&&_1($,Z,W,U,Y,B)}ZB($,S,g);return;case"option":for(var $0 in G)if(S=G[$0],G.hasOwnProperty($0)&&S!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:_1($,Z,$0,null,Y,S)}for(L in Y)if(S=Y[L],g=G[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:_1($,Z,L,S,Y,g)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var G0 in G)S=G[G0],G.hasOwnProperty(G0)&&S!=null&&!Y.hasOwnProperty(G0)&&_1($,Z,G0,null,Y,S);for(T in Y)if(S=Y[T],g=G[T],Y.hasOwnProperty(T)&&S!==g&&(S!=null||g!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_1($,Z,T,S,Y,g)}return;default:if(u$(Z)){for(var O1 in G)S=G[O1],G.hasOwnProperty(O1)&&S!==void 0&&!Y.hasOwnProperty(O1)&&TY($,Z,O1,void 0,Y,S);for(k in Y)S=Y[k],g=G[k],!Y.hasOwnProperty(k)||S===g||S===void 0&&g===void 0||TY($,Z,k,S,Y,g);return}}for(var e0 in G)S=G[e0],G.hasOwnProperty(e0)&&S!=null&&!Y.hasOwnProperty(e0)&&_1($,Z,e0,null,Y,S);for(f in Y)S=Y[f],g=G[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||_1($,Z,f,S,Y,g)}function YM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function CY($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var Y=$[G];Z[Y]=$.getPropertyValue(Y)}return Z}function NM($,Z,G){if(Z!=null&&typeof Z!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var Y,U=Y="",B;for(B in Z)if(Z.hasOwnProperty(B)){var W=Z[B];W!=null&&typeof W!=="boolean"&&W!==""&&(B.indexOf("--")===0?(b$(W,B),Y+=U+B+":"+(""+W).trim()):typeof W!=="number"||W===0||zW.has(B)?(b$(W,B),Y+=U+B.replace(FW,"-$1").toLowerCase().replace(MW,"-ms-")+":"+(""+W).trim()):Y+=U+B.replace(FW,"-$1").toLowerCase().replace(MW,"-ms-")+":"+W+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=t2(Y),t2(Z)!==Y&&(G.style=CY($)))}}function b6($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(w1(Y,Z),$===""+Y)return}H5(Z,$,Y,B)}function UM($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}H5(Z,$,Y,B)}function IY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(w1(Y,G),$===""+Y)return}H5(Z,$,Y,B)}function KM($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(w1(Y,Z),$===""+Y))return}H5(Z,$,Y,B)}function OY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(w1(Y,Z),G=x$(""+Y),$===G)return}H5(Z,$,Y,B)}function BM($,Z,G,Y){for(var U={},B=new Set,W=$.attributes,z=0;z<W.length;z++)switch(W[z].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[z].name)}if(u$(Z)){for(var L in G)if(G.hasOwnProperty(L)){var T=G[L];if(T!=null){if(M9.hasOwnProperty(L))typeof T!=="function"&&j4(L,T);else if(G.suppressHydrationWarning!==!0)switch(L){case"children":typeof T!=="string"&&typeof T!=="number"||H5("children",$.textContent,T,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,T=T?T.__html:void 0,T!=null&&(T=XM($,T),H5(L,W,T,U));continue;case"style":B.delete(L),NM($,T,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(L.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",L);continue;case"className":B.delete("class"),W=rK($,"class",T),H5("className",W,T,U);continue;default:Y.context===P2&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),W=rK($,L,T),H5(L,W,T,U)}}}}else for(T in G)if(G.hasOwnProperty(T)&&(L=G[T],L!=null)){if(M9.hasOwnProperty(T))typeof L!=="function"&&j4(T,L);else if(G.suppressHydrationWarning!==!0)switch(T){case"children":typeof L!=="string"&&typeof L!=="number"||H5("children",$.textContent,L,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=XM($,L),W!==L&&(U[T]={__html:W}));continue;case"className":b6($,T,"class",L,B,U);continue;case"tabIndex":b6($,T,"tabindex",L,B,U);continue;case"style":B.delete(T),NM($,L,U);continue;case"multiple":B.delete(T),H5(T,$.multiple,L,U);continue;case"muted":B.delete(T),H5(T,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),H5(T,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(T),W=$.getAttribute("data"),H5(T,W,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&T==="href"||Z==="object"&&T==="data")){T==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',T,T):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',T,T);continue}OY($,T,T,L,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(T),typeof L==="function"){B.delete(T.toLowerCase()),T==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(W===OO){B.delete(T.toLowerCase()),H5(T,"function",L,U);continue}OY($,T,T.toLowerCase(),L,B,U);continue;case"xlinkHref":OY($,T,"xlink:href",L,B,U);continue;case"contentEditable":IY($,T,"contenteditable",L,B,U);continue;case"spellCheck":IY($,T,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":IY($,T,T,L,B,U);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":UM($,T,T.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{z=$;var k=W=T,f=U;if(B.delete(k),z=z.getAttribute(k),z===null)switch(typeof L){case"undefined":case"function":case"symbol":break $;default:if(L===!1)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":break;case"boolean":if(L===!0&&z==="")break $;break;default:if(w1(L,W),z===""+L)break $}H5(W,z,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(z=$,k=W=T,f=U,B.delete(k),z=z.getAttribute(k),z===null)switch(typeof L){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(L)||1>L)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(L)||1>L)&&(w1(L,W),z===""+L))break $}H5(W,z,L,f)}continue;case"rowSpan":KM($,T,"rowspan",L,B,U);continue;case"start":KM($,T,T,L,B,U);continue;case"xHeight":b6($,T,"x-height",L,B,U);continue;case"xlinkActuate":b6($,T,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":b6($,T,"xlink:arcrole",L,B,U);continue;case"xlinkRole":b6($,T,"xlink:role",L,B,U);continue;case"xlinkShow":b6($,T,"xlink:show",L,B,U);continue;case"xlinkTitle":b6($,T,"xlink:title",L,B,U);continue;case"xlinkType":b6($,T,"xlink:type",L,B,U);continue;case"xmlBase":b6($,T,"xml:base",L,B,U);continue;case"xmlLang":b6($,T,"xml:lang",L,B,U);continue;case"xmlSpace":b6($,T,"xml:space",L,B,U);continue;case"inert":L!==""||z3[T]||(z3[T]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",T)),UM($,T,T,L,B,U);continue;default:if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){z=HB(T),W=!1,Y.context===P2&&Z!=="svg"&&Z!=="math"?B.delete(z.toLowerCase()):(k=T.toLowerCase(),k=jG.hasOwnProperty(k)?jG[k]||null:null,k!==null&&k!==T&&(W=!0,B.delete(k)),B.delete(z));$:if(k=$,f=z,z=L,f$(f))if(k.hasAttribute(f))k=k.getAttribute(f),w1(z,f),z=k===""+z?z:k;else{switch(typeof z){case"function":case"symbol":break $;case"boolean":if(k=f.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}z=z===void 0?void 0:null}else z=void 0;W||H5(T,z,L,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&BC($,B,U),Object.keys(U).length===0?null:U}function FC($,Z){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+Z+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+Z+" "+$[$.length-1]}}function HM($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MC(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,G=performance.getEntriesByType("resource"),Y=0;Y<G.length;Y++){var U=G[Y],B=U.transferSize,W=U.initiatorType,z=U.duration;if(B&&z&&HM(W)){W=0,z=U.responseEnd;for(Y+=1;Y<G.length;Y++){var L=G[Y],T=L.startTime;if(T>z)break;var{transferSize:k,initiatorType:f}=L;k&&HM(f)&&(L=L.responseEnd,W+=k*(L<z?1:(z-T)/(L-T)))}if(--Y,Z+=8*(B+W)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function HG($){return $.nodeType===9?$:$.ownerDocument}function FM($){switch($){case v7:return N$;case SG:return L3;default:return P2}}function MM($,Z){if($===P2)switch(Z){case"svg":return N$;case"math":return L3;default:return P2}return $===N$&&Z==="foreignObject"?P2:$}function VY($,Z){return $==="textarea"||$==="noscript"||typeof Z.children==="string"||typeof Z.children==="number"||typeof Z.children==="bigint"||typeof Z.dangerouslySetInnerHTML==="object"&&Z.dangerouslySetInnerHTML!==null&&Z.dangerouslySetInnerHTML.__html!=null}function WC(){var $=window.event;if($&&$.type==="popstate"){if($===NU)return!1;return NU=$,!0}return NU=null,!1}function BZ(){var $=window.event;return $&&$!==YQ?$.type:null}function HZ(){var $=window.event;return $&&$!==YQ?$.timeStamp:-1.1}function wC($){setTimeout(function(){throw $})}function RC($,Z,G){switch(Z){case"button":case"input":case"select":case"textarea":G.autoFocus&&$.focus();break;case"img":G.src?$.src=G.src:G.srcSet&&($.srcset=G.srcSet)}}function zC(){}function _C($,Z,G,Y){HC($,Z,G,Y),$[x5]=Y}function WM($){h$($,"")}function LC($,Z,G){$.nodeValue=G}function wM($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[x5]||null;if(Z!==null){var G=D0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,X0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):Z.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,X0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function e2($){return $==="head"}function PC($,Z){$.removeChild(Z)}function TC($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function RM($,Z){var G=Z,Y=0;do{var U=G.nextSibling;if($.removeChild(G),U&&U.nodeType===8)if(G=U.data,G===qQ||G===_3){if(Y===0){$.removeChild(U),V7(Z);return}Y--}else if(G===XQ||G===C8||G===b9||G===Y$||G===v9)Y++;else if(G===AO)FZ($.ownerDocument.documentElement);else if(G===SO){G=$.ownerDocument.head,FZ(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:z}=B;B[LZ]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===EO&&FZ($.ownerDocument.body);G=U}while(G);V7(Z)}function zM($,Z){var G=$;$=0;do{var Y=G.nextSibling;if(G.nodeType===1?Z?(G._stashedDisplay=G.style.display,G.style.display="none"):(G.style.display=G._stashedDisplay||"",G.getAttribute("style")===""&&G.removeAttribute("style")):G.nodeType===3&&(Z?(G._stashedText=G.nodeValue,G.nodeValue=""):G.nodeValue=G._stashedText||""),Y&&Y.nodeType===8)if(G=Y.data,G===qQ)if($===0)break;else $--;else G!==XQ&&G!==C8&&G!==b9&&G!==Y$||$++;G=Y}while(G)}function CC($){zM($,!0)}function IC($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function OC($){$.nodeValue=""}function VC($){zM($,!1)}function AC($,Z){Z=Z[jO],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function EC($,Z){$.nodeValue=Z}function AY($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var G=Z;switch(Z=Z.nextSibling,G.nodeName){case"HTML":case"HEAD":case"BODY":AY(G),Z0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function SC($,Z,G,Y){for(;$.nodeType===1;){var U=G;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){w1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[LZ])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(B=$.getAttribute("rel"),B==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(B!==U.rel||$.getAttribute("href")!==(U.href==null||U.href===""?null:U.href)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin)||$.getAttribute("title")!==(U.title==null?null:U.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(B=$.getAttribute("src"),(B!==(U.src==null?null:U.src)||$.getAttribute("type")!==(U.type==null?null:U.type)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin))&&B&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=L6($.nextSibling),$===null)break}return null}function jC($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=L6($.nextSibling),$===null)return null}return $}function _M($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=L6($.nextSibling),$===null)return null}return $}function EY($){return $.data===C8||$.data===b9}function SY($){return $.data===Y$||$.data===C8&&$.ownerDocument.readyState!==NR}function DC($,Z){var G=$.ownerDocument;if($.data===b9)$._reactRetry=Z;else if($.data!==C8||G.readyState!==NR)Z();else{var Y=function(){Z(),G.removeEventListener("DOMContentLoaded",Y)};G.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function L6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===XQ||Z===Y$||Z===C8||Z===b9||Z===v9||Z===XU||Z===YR)break;if(Z===qQ||Z===_3)return null}}return $}function LM($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];G[YM(B.name)]=B.name.toLowerCase()==="style"?CY($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===v9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function PM($,Z,G){return G===null||G[VO]!==!0?($.nodeValue===Z?$=null:(Z=t2(Z),$=t2($.nodeValue)===Z?null:$.nodeValue),$):null}function jY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===qQ||G===_3){if(Z===0)return L6($.nextSibling);Z--}else G!==XQ&&G!==Y$&&G!==C8&&G!==b9&&G!==v9||Z++}$=$.nextSibling}return null}function TM($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===XQ||G===Y$||G===C8||G===b9||G===v9){if(Z===0)return $;Z--}else G!==qQ&&G!==_3||Z++}$=$.previousSibling}return null}function vC($){V7($)}function bC($){V7($)}function kC($){V7($)}function CM($,Z,G,Y,U){switch(U&&mX($,Y.ancestorInfo),Z=HG(G),$){case"html":if($=Z.documentElement,!$)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"head":if($=Z.head,!$)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"body":if($=Z.body,!$)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function fC($,Z,G,Y){if(!G[J8]&&D0(G)){var U=G.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",U,U,U)}switch($){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(U=G.attributes;U.length;)G.removeAttributeNode(U[0]);L5(G,$,Z),G[P5]=Y,G[x5]=Z}function FZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function FG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function IM($,Z,G){var Y=U$;if(Y&&typeof Z==="string"&&Z){var U=v6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof G==="string"&&(U+='[crossorigin="'+G+'"]'),MR.has(U)||(MR.add(U),$={rel:$,crossOrigin:G,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),L5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}}function OM($,Z,G,Y){var U=(U=Z8.current)?FG(U):null;if(!U)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof G.precedence==="string"&&typeof G.href==="string"?(G=I7(G.href),Z=Q1(U).hoistableStyles,Y=Z.get(G),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=I7(G.href);var B=Q1(U).hoistableStyles,W=B.get($);if(!W&&(U=U.ownerDocument||U,W={type:"stylesheet",instance:null,count:0,state:{loading:f9,preload:null}},B.set($,W),(B=U.querySelector(MZ($)))&&!B._p&&(W.instance=B,W.state.loading=NQ|c6),!l6.has($))){var z={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};l6.set($,z),B||yC(U,$,z,W.state)}if(Z&&Y===null)throw G=`
|
|
175
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,d($))})}function S4($){$!==q$&&$.next===null&&(q$===null?H3=q$=$:q$=q$.next=$),F3=!0,x.actQueue!==null?$U||($U=!0,eF()):eN||(eN=!0,eF())}function UZ($,Z){if(!ZU&&F3){ZU=!0;do{var G=!1;for(var Y=H3;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:W,pingedLanes:z}=Y;B=(1<<31-u5(42|$)+1)-1,B&=U&~(W&~z),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,tF(Y,B))}else B=u0,B=n8(Y,Y===P1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==k7),(B&3)===0||s8(Y,B)||(G=!0,tF(Y,B));Y=Y.next}}while(G);ZU=!1}}function NC(){YQ=window.event,WY()}function WY(){F3=$U=eN=!1;var $=0;T8!==0&&WC()&&($=T8);for(var Z=F5(),G=null,Y=H3;Y!==null;){var U=Y.next,B=aF(Y,Z);if(B===0)Y.next=null,G===null?H3=U:G.next=U,U===null&&(q$=G);else if(G=Y,$!==0||(B&3)!==0)F3=!0;Y=U}G5!==L8&&G5!==U3||UZ($,!1),T8!==0&&(T8=0)}function aF($,Z){for(var{suspendedLanes:G,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-u5(B),z=1<<W,L=U[W];if(L===-1){if((z&G)===0||(z&Y)!==0)U[W]=bX(z,Z)}else L<=Z&&($.expiredLanes|=z);B&=~z}if(Z=P1,G=u0,G=n8($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==k7),Y=$.callbackNode,G===0||$===Z&&(M1===A7||M1===E7)||$.cancelPendingCommit!==null)return Y!==null&&wY(Y),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||s8($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&Y!==QU)wY(Y);else return Z;switch(C(G)){case C6:case X4:G=iY;break;case y4:G=S9;break;case AG:G=tY;break;default:G=S9}return Y=iF.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),G=QU):G=oY(G,Y),$.callbackPriority=Z,$.callbackNode=G,Z}return Y!==null&&wY(Y),$.callbackPriority=2,$.callbackNode=null,2}function iF($,Z){if(lG=cG=!1,YQ=window.event,G5!==L8&&G5!==U3)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(B4===N3&&(B4=nN),YZ()&&$.callbackNode!==G)return null;var Y=u0;if(Y=n8($,$===P1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==k7),Y===0)return null;return jF($,Y,Z),aF($,F5()),$.callbackNode!=null&&$.callbackNode===G?iF.bind(null,$):null}function tF($,Z){if(YZ())return null;cG=lG,lG=!1,jF($,Z,!0)}function wY($){$!==QU&&$!==null&&iC($)}function eF(){x.actQueue!==null&&x.actQueue.push(function(){return WY(),null}),vO(function(){(Z1&(N5|A6))!==w5?oY(aY,NC):WY()})}function RY(){if(T8===0){var $=L7;$===0&&($=IG,IG<<=1,(IG&261888)===0&&(IG=256)),T8=$}return T8}function $M($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return w1($,"action"),x$(""+$)}function ZM($,Z){var G=Z.ownerDocument.createElement("input");return G.name=Z.name,G.value=Z.value,$.id&&G.setAttribute("form",$.id),Z.parentNode.insertBefore(G,Z),$=new FormData($),G.parentNode.removeChild(G),$}function UC($,Z,G,Y,U){if(Z==="submit"&&G&&G.stateNode===U){var B=$M((U[x5]||null).action),W=Y.submitter;W&&(Z=(Z=W[x5]||null)?$M(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var z=new vG("action","action",null,Y,U);$.push({event:z,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(T8!==0){var L=W?ZM(U,W):new FormData(U),T={pending:!0,data:L,method:U.method,action:B};Object.freeze(T),gq(G,T,null,L)}}else typeof B==="function"&&(z.preventDefault(),L=W?ZM(U,W):new FormData(U),T={pending:!0,data:L,method:U.method,action:B},Object.freeze(T),gq(G,T,B,L))},currentTarget:U}]})}}function KG($,Z,G){$.currentTarget=G;try{Z($)}catch(Y){MN(Y)}$.currentTarget=null}function QM($,Z){Z=(Z&4)!==0;for(var G=0;G<$.length;G++){var Y=$[G];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var W=Y.length-1;0<=W;W--){var z=Y[W],L=z.instance,T=z.currentTarget;if(z=z.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,KG,B,z,T):KG(B,z,T),U=L}else for(W=0;W<Y.length;W++){if(z=Y[W],L=z.instance,T=z.currentTarget,z=z.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,KG,B,z,T):KG(B,z,T),U=L}}}}function t0($,Z){JU.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[eY];G===void 0&&(G=Z[eY]=new Set);var Y=$+"__bubble";G.has(Y)||(JM(Z,$,2,!1),G.add(Y))}function zY($,Z,G){JU.has($)&&!Z&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var Y=0;Z&&(Y|=4),JM(G,$,Y,Z)}function _Y($){if(!$[M3]){$[M3]=!0,eM.forEach(function(G){G!=="selectionchange"&&(JU.has(G)||zY(G,!1,$),zY(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[M3]||(Z[M3]=!0,zY("selectionchange",!1,Z))}}function JM($,Z,G,Y){switch(yM(Z)){case C6:var U=pC;break;case X4:U=cC;break;default:U=fY}G=U.bind(null,Z,G,$),U=void 0,!GN||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,G,{capture:!0,passive:U}):$.addEventListener(Z,G,!0):U!==void 0?$.addEventListener(Z,G,{passive:U}):$.addEventListener(Z,G,!1)}function LY($,Z,G,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var W=Y.tag;if(W===3||W===4){var z=Y.stateNode.containerInfo;if(z===U)break;if(W===4)for(W=Y.return;W!==null;){var L=W.tag;if((L===3||L===4)&&W.stateNode.containerInfo===U)return;W=W.return}for(;z!==null;){if(W=N0(z),W===null)return;if(L=W.tag,L===5||L===6||L===26||L===27){Y=B=W;continue $}z=z.parentNode}}Y=Y.return}MB(function(){var T=B,k=dX(G),f=[];$:{var S=yW.get($);if(S!==void 0){var g=vG,$0=$;switch($){case"keypress":if(zJ(G)===0)break $;case"keydown":case"keyup":g=hI;break;case"focusin":$0="focus",g=NN;break;case"focusout":$0="blur",g=NN;break;case"beforeblur":case"afterblur":g=NN;break;case"click":if(G.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=TW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=VI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=mI;break;case vW:case bW:case kW:g=SI;break;case fW:g=pI;break;case"scroll":case"scrollend":g=II;break;case"wheel":g=lI;break;case"copy":case"cut":case"paste":g=DI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=IW;break;case"toggle":case"beforetoggle":g=nI}var G0=(Z&4)!==0,O1=!G0&&($==="scroll"||$==="scrollend"),e0=G0?S!==null?S+"Capture":null:S;G0=[];for(var E=T,j;E!==null;){var b=E;if(j=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||j===null||e0===null||(b=m$(E,e0),b!=null&&G0.push(KZ(E,b,j))),O1)break;E=E.return}0<G0.length&&(S=new g(S,$0,null,G,k),f.push({event:S,listeners:G0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&G!==PZ&&($0=G.relatedTarget||G.fromElement)&&(N0($0)||$0[J8]))break $;if(g||S){if(S=k.window===k?k:(S=k.ownerDocument)?S.defaultView||S.parentWindow:window,g){if($0=G.relatedTarget||G.toElement,g=T,$0=$0?N0($0):null,$0!==null&&(O1=D($0),G0=$0.tag,$0!==O1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=T;if(g!==$0){if(G0=TW,b="onMouseLeave",e0="onMouseEnter",E="mouse",$==="pointerout"||$==="pointerover")G0=IW,b="onPointerLeave",e0="onPointerEnter",E="pointer";if(O1=g==null?S:v0(g),j=$0==null?S:v0($0),S=new G0(b,E+"leave",g,G,k),S.target=O1,S.relatedTarget=j,b=null,N0(k)===T&&(G0=new G0(e0,E+"enter",$0,G,k),G0.target=j,G0.relatedTarget=O1,b=G0),O1=b,g&&$0)Z:{G0=KC,e0=g,E=$0,j=0;for(b=e0;b;b=G0(b))j++;b=0;for(var m=E;m;m=G0(m))b++;for(;0<j-b;)e0=G0(e0),j--;for(;0<b-j;)E=G0(E),b--;for(;j--;){if(e0===E||E!==null&&e0===E.alternate){G0=e0;break Z}e0=G0(e0),E=G0(E)}G0=null}else G0=null;g!==null&&GM(f,S,g,G0,!1),$0!==null&&O1!==null&&GM(f,O1,$0,G0,!0)}}}$:{if(S=T?v0(T):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var Q0=PB;else if(_B(S))if(jW)Q0=TT;else{Q0=LT;var E0=_T}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?T&&u$(T.elementType)&&(Q0=PB):Q0=PT;if(Q0&&(Q0=Q0($,T))){LB(f,Q0,G,k);break $}E0&&E0($,S,T),$==="focusout"&&T&&S.type==="number"&&T.memoizedProps.value!=null&&yX(S,"number",S.value)}switch(E0=T?v0(T):window,$){case"focusin":if(_B(E0)||E0.contentEditable==="true")g9=E0,KN=T,EZ=null;break;case"focusout":EZ=KN=g9=null;break;case"mousedown":BN=!0;break;case"contextmenu":case"mouseup":case"dragend":BN=!1,EB(f,G,k);break;case"selectionchange":if(iI)break;case"keydown":case"keyup":EB(f,G,k)}var z0;if(UN)$:{switch($){case"compositionstart":var B0="onCompositionStart";break $;case"compositionend":B0="onCompositionEnd";break $;case"compositionupdate":B0="onCompositionUpdate";break $}B0=void 0}else y9?RB($,G)&&(B0="onCompositionEnd"):$==="keydown"&&G.keyCode===OW&&(B0="onCompositionStart");if(B0&&(VW&&G.locale!=="ko"&&(y9||B0!=="onCompositionStart"?B0==="onCompositionEnd"&&y9&&(z0=WB()):(G8=k,XN=("value"in G8)?G8.value:G8.textContent,y9=!0)),E0=BG(T,B0),0<E0.length&&(B0=new CW(B0,$,null,G,k),f.push({event:B0,listeners:E0}),z0?B0.data=z0:(z0=zB(G),z0!==null&&(B0.data=z0)))),z0=oI?WT($,G):wT($,G))B0=BG(T,"onBeforeInput"),0<B0.length&&(E0=new bI("onBeforeInput","beforeinput",null,G,k),f.push({event:E0,listeners:B0}),E0.data=z0);UC(f,$,T,G,k)}QM(f,Z)})}function KZ($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function BG($,Z){for(var G=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=m$($,G),U!=null&&Y.unshift(KZ($,U,B)),U=m$($,Z),U!=null&&Y.push(KZ($,U,B))),$.tag===3)return Y;$=$.return}return[]}function KC($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function GM($,Z,G,Y,U){for(var B=Z._reactName,W=[];G!==null&&G!==Y;){var z=G,L=z.alternate,T=z.stateNode;if(z=z.tag,L!==null&&L===Y)break;z!==5&&z!==26&&z!==27||T===null||(L=T,U?(T=m$(G,B),T!=null&&W.unshift(KZ(G,T,L))):U||(T=m$(G,B),T!=null&&W.push(KZ(G,T,L)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function PY($,Z){BT($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||LW||(LW=!0,$==="select"&&Z.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var G={registrationNameDependencies:M7,possibleRegistrationNames:$N};u$($)||typeof Z.is==="string"||FT($,Z,G),Z.contentEditable&&!Z.suppressContentEditableWarning&&Z.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function H5($,Z,G,Y){Z!==G&&(G=t2(G),t2(Z)!==G&&(Y[$]=Z))}function BC($,Z,G){Z.forEach(function(Y){G[YM(Y)]=Y==="style"?CY($):$.getAttribute(Y)})}function j4($,Z){Z===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof Z)}function XM($,Z){return $=$.namespaceURI===SG||$.namespaceURI===v9?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function t2($){return h2($)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",r8($)),B5($)),(typeof $==="string"?$:""+$).replace(CO,`
|
|
176
|
+
`).replace(IO,"")}function qM($,Z){return Z=t2(Z),t2($)===Z?!0:!1}function _1($,Z,G,Y,U,B){switch(G){case"children":if(typeof Y==="string")RJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||h$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")RJ(""+Y,Z,!1),Z!=="body"&&h$($,""+Y);break;case"className":MJ($,"class",Y);break;case"tabIndex":MJ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":MJ($,G,Y);break;case"style":BB($,Y,B);break;case"data":if(Z!=="object"){MJ($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||G!=="href")){G==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G),$.removeAttribute(G);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}w1(Y,G),Y=x$(""+Y),$.setAttribute(G,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?G==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(U.encType==null&&U.method==null||R3||(R3=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),U.target==null||w3||(w3=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):Z==="input"||Z==="button"?G==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Z!=="input"||U.type==="submit"||U.type==="image"||W3?Z!=="button"||U.type==null||U.type==="submit"||W3?typeof Y==="function"&&(U.name==null||XR||(XR=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),U.formEncType==null&&U.formMethod==null||R3||(R3=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),U.formTarget==null||w3||(w3=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(W3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(W3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):G==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof Y==="function"){$.setAttribute(G,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof B==="function"&&(G==="formAction"?(Z!=="input"&&_1($,Z,"name",U.name,U,null),_1($,Z,"formEncType",U.formEncType,U,null),_1($,Z,"formMethod",U.formMethod,U,null),_1($,Z,"formTarget",U.formTarget,U,null)):(_1($,Z,"encType",U.encType,U,null),_1($,Z,"method",U.method,U,null),_1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}w1(Y,G),Y=x$(""+Y),$.setAttribute(G,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&j4(G,Y),$.onclick=e4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scrollend",$));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"multiple":$.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":$.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){$.removeAttribute("xlink:href");break}w1(Y,G),G=x$(""+Y),$.setAttributeNS(D7,"xlink:href",G);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(w1(Y,G),$.setAttribute(G,""+Y)):$.removeAttribute(G);break;case"inert":Y!==""||z3[G]||(z3[G]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",G));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?$.setAttribute(G,""):$.removeAttribute(G);break;case"capture":case"download":Y===!0?$.setAttribute(G,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(w1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(w1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(G):(w1(Y,G),$.setAttribute(G,Y));break;case"popover":t0("beforetoggle",$),t0("toggle",$),FJ($,"popover",Y);break;case"xlinkActuate":t4($,D7,"xlink:actuate",Y);break;case"xlinkArcrole":t4($,D7,"xlink:arcrole",Y);break;case"xlinkRole":t4($,D7,"xlink:role",Y);break;case"xlinkShow":t4($,D7,"xlink:show",Y);break;case"xlinkTitle":t4($,D7,"xlink:title",Y);break;case"xlinkType":t4($,D7,"xlink:type",Y);break;case"xmlBase":t4($,GU,"xml:base",Y);break;case"xmlLang":t4($,GU,"xml:lang",Y);break;case"xmlSpace":t4($,GU,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),FJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":qR||Y==null||typeof Y!=="object"||(qR=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=HB(G),FJ($,G,Y)):M7.hasOwnProperty(G)&&Y!=null&&typeof Y!=="function"&&j4(G,Y)}}function TY($,Z,G,Y,U,B){switch(G){case"style":BB($,Y,B);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof Y==="string"?h$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&h$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&j4(G,Y),t0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&j4(G,Y),$.onclick=e4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(M7.hasOwnProperty(G))Y!=null&&typeof Y!=="function"&&j4(G,Y);else $:{if(G[0]==="o"&&G[1]==="n"&&(U=G.endsWith("Capture"),Z=G.slice(2,U?G.length-7:void 0),B=$[x5]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Z,Y,U);break $}G in $?$[G]=Y:Y===!0?$.setAttribute(G,""):FJ($,G,Y)}}}function L5($,Z,G){switch(PY(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":t0("error",$),t0("load",$);var Y=!1,U=!1,B;for(B in G)if(G.hasOwnProperty(B)){var W=G[B];if(W!=null)switch(B){case"src":Y=!0;break;case"srcSet":U=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_1($,Z,B,W,G,null)}}U&&_1($,Z,"srcSet",G.srcSet,G,null),Y&&_1($,Z,"src",G.src,G,null);return;case"input":m2("input",G),t0("invalid",$);var z=B=W=U=null,L=null,T=null;for(Y in G)if(G.hasOwnProperty(Y)){var k=G[Y];if(k!=null)switch(Y){case"name":U=k;break;case"type":W=k;break;case"checked":L=k;break;case"defaultChecked":T=k;break;case"value":B=k;break;case"defaultValue":z=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_1($,Z,Y,k,G,null)}}oK($,G),aK($,B,z,L,T,W,U,!1);return;case"select":m2("select",G),t0("invalid",$),Y=W=B=null;for(U in G)if(G.hasOwnProperty(U)&&(z=G[U],z!=null))switch(U){case"value":B=z;break;case"defaultValue":W=z;break;case"multiple":Y=z;default:_1($,Z,U,z,G,null)}eK($,G),Z=B,G=W,$.multiple=!!Y,Z!=null?U9($,!!Y,Z,!1):G!=null&&U9($,!!Y,G,!0);return;case"textarea":m2("textarea",G),t0("invalid",$),B=U=Y=null;for(W in G)if(G.hasOwnProperty(W)&&(z=G[W],z!=null))switch(W){case"value":Y=z;break;case"defaultValue":U=z;break;case"children":B=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_1($,Z,W,z,G,null)}$B($,G),QB($,Y,U,B);return;case"option":iK($,G);for(L in G)if(G.hasOwnProperty(L)&&(Y=G[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:_1($,Z,L,Y,G,null)}return;case"dialog":t0("beforetoggle",$),t0("toggle",$),t0("cancel",$),t0("close",$);break;case"iframe":case"object":t0("load",$);break;case"video":case"audio":for(Y=0;Y<GQ.length;Y++)t0(GQ[Y],$);break;case"image":t0("error",$),t0("load",$);break;case"details":t0("toggle",$);break;case"embed":case"source":case"link":t0("error",$),t0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in G)if(G.hasOwnProperty(T)&&(Y=G[T],Y!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_1($,Z,T,Y,G,null)}return;default:if(u$(Z)){for(k in G)G.hasOwnProperty(k)&&(Y=G[k],Y!==void 0&&TY($,Z,k,Y,G,void 0));return}}for(z in G)G.hasOwnProperty(z)&&(Y=G[z],Y!=null&&_1($,Z,z,Y,G,null))}function HC($,Z,G,Y){switch(PY(Z,Y),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var U=null,B=null,W=null,z=null,L=null,T=null,k=null;for(g in G){var f=G[g];if(G.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||_1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=G[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":T=g;break;case"defaultChecked":k=g;break;case"value":W=g;break;case"defaultValue":z=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:g!==f&&_1($,Z,S,g,Y,f)}}Z=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||GR||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),GR=!0),!Z||Y||JR||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),JR=!0),fX($,W,z,L,T,k,B,U);return;case"select":g=W=z=S=null;for(B in G)if(L=G[B],G.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||_1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=G[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":z=B;break;case"multiple":W=B;default:B!==L&&_1($,Z,U,B,Y,L)}Y=z,Z=W,G=g,S!=null?U9($,!!Z,S,!1):!!G!==!!Z&&(Y!=null?U9($,!!Z,Y,!0):U9($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(z in G)if(U=G[z],G.hasOwnProperty(z)&&U!=null&&!Y.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:_1($,Z,z,null,Y,U)}for(W in Y)if(U=Y[W],B=G[W],Y.hasOwnProperty(W)&&(U!=null||B!=null))switch(W){case"value":S=U;break;case"defaultValue":g=U;break;case"children":break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U!==B&&_1($,Z,W,U,Y,B)}ZB($,S,g);return;case"option":for(var $0 in G)if(S=G[$0],G.hasOwnProperty($0)&&S!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:_1($,Z,$0,null,Y,S)}for(L in Y)if(S=Y[L],g=G[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:_1($,Z,L,S,Y,g)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var G0 in G)S=G[G0],G.hasOwnProperty(G0)&&S!=null&&!Y.hasOwnProperty(G0)&&_1($,Z,G0,null,Y,S);for(T in Y)if(S=Y[T],g=G[T],Y.hasOwnProperty(T)&&S!==g&&(S!=null||g!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_1($,Z,T,S,Y,g)}return;default:if(u$(Z)){for(var O1 in G)S=G[O1],G.hasOwnProperty(O1)&&S!==void 0&&!Y.hasOwnProperty(O1)&&TY($,Z,O1,void 0,Y,S);for(k in Y)S=Y[k],g=G[k],!Y.hasOwnProperty(k)||S===g||S===void 0&&g===void 0||TY($,Z,k,S,Y,g);return}}for(var e0 in G)S=G[e0],G.hasOwnProperty(e0)&&S!=null&&!Y.hasOwnProperty(e0)&&_1($,Z,e0,null,Y,S);for(f in Y)S=Y[f],g=G[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||_1($,Z,f,S,Y,g)}function YM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function CY($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var Y=$[G];Z[Y]=$.getPropertyValue(Y)}return Z}function NM($,Z,G){if(Z!=null&&typeof Z!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var Y,U=Y="",B;for(B in Z)if(Z.hasOwnProperty(B)){var W=Z[B];W!=null&&typeof W!=="boolean"&&W!==""&&(B.indexOf("--")===0?(b$(W,B),Y+=U+B+":"+(""+W).trim()):typeof W!=="number"||W===0||zW.has(B)?(b$(W,B),Y+=U+B.replace(FW,"-$1").toLowerCase().replace(MW,"-ms-")+":"+(""+W).trim()):Y+=U+B.replace(FW,"-$1").toLowerCase().replace(MW,"-ms-")+":"+W+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=t2(Y),t2(Z)!==Y&&(G.style=CY($)))}}function b6($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(w1(Y,Z),$===""+Y)return}H5(Z,$,Y,B)}function UM($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}H5(Z,$,Y,B)}function IY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(w1(Y,G),$===""+Y)return}H5(Z,$,Y,B)}function KM($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(w1(Y,Z),$===""+Y))return}H5(Z,$,Y,B)}function OY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(w1(Y,Z),G=x$(""+Y),$===G)return}H5(Z,$,Y,B)}function BM($,Z,G,Y){for(var U={},B=new Set,W=$.attributes,z=0;z<W.length;z++)switch(W[z].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[z].name)}if(u$(Z)){for(var L in G)if(G.hasOwnProperty(L)){var T=G[L];if(T!=null){if(M7.hasOwnProperty(L))typeof T!=="function"&&j4(L,T);else if(G.suppressHydrationWarning!==!0)switch(L){case"children":typeof T!=="string"&&typeof T!=="number"||H5("children",$.textContent,T,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,T=T?T.__html:void 0,T!=null&&(T=XM($,T),H5(L,W,T,U));continue;case"style":B.delete(L),NM($,T,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(L.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",L);continue;case"className":B.delete("class"),W=rK($,"class",T),H5("className",W,T,U);continue;default:Y.context===P2&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),W=rK($,L,T),H5(L,W,T,U)}}}}else for(T in G)if(G.hasOwnProperty(T)&&(L=G[T],L!=null)){if(M7.hasOwnProperty(T))typeof L!=="function"&&j4(T,L);else if(G.suppressHydrationWarning!==!0)switch(T){case"children":typeof L!=="string"&&typeof L!=="number"||H5("children",$.textContent,L,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=XM($,L),W!==L&&(U[T]={__html:W}));continue;case"className":b6($,T,"class",L,B,U);continue;case"tabIndex":b6($,T,"tabindex",L,B,U);continue;case"style":B.delete(T),NM($,L,U);continue;case"multiple":B.delete(T),H5(T,$.multiple,L,U);continue;case"muted":B.delete(T),H5(T,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),H5(T,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(T),W=$.getAttribute("data"),H5(T,W,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&T==="href"||Z==="object"&&T==="data")){T==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',T,T):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',T,T);continue}OY($,T,T,L,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(T),typeof L==="function"){B.delete(T.toLowerCase()),T==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(W===OO){B.delete(T.toLowerCase()),H5(T,"function",L,U);continue}OY($,T,T.toLowerCase(),L,B,U);continue;case"xlinkHref":OY($,T,"xlink:href",L,B,U);continue;case"contentEditable":IY($,T,"contenteditable",L,B,U);continue;case"spellCheck":IY($,T,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":IY($,T,T,L,B,U);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":UM($,T,T.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{z=$;var k=W=T,f=U;if(B.delete(k),z=z.getAttribute(k),z===null)switch(typeof L){case"undefined":case"function":case"symbol":break $;default:if(L===!1)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":break;case"boolean":if(L===!0&&z==="")break $;break;default:if(w1(L,W),z===""+L)break $}H5(W,z,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(z=$,k=W=T,f=U,B.delete(k),z=z.getAttribute(k),z===null)switch(typeof L){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(L)||1>L)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(L)||1>L)&&(w1(L,W),z===""+L))break $}H5(W,z,L,f)}continue;case"rowSpan":KM($,T,"rowspan",L,B,U);continue;case"start":KM($,T,T,L,B,U);continue;case"xHeight":b6($,T,"x-height",L,B,U);continue;case"xlinkActuate":b6($,T,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":b6($,T,"xlink:arcrole",L,B,U);continue;case"xlinkRole":b6($,T,"xlink:role",L,B,U);continue;case"xlinkShow":b6($,T,"xlink:show",L,B,U);continue;case"xlinkTitle":b6($,T,"xlink:title",L,B,U);continue;case"xlinkType":b6($,T,"xlink:type",L,B,U);continue;case"xmlBase":b6($,T,"xml:base",L,B,U);continue;case"xmlLang":b6($,T,"xml:lang",L,B,U);continue;case"xmlSpace":b6($,T,"xml:space",L,B,U);continue;case"inert":L!==""||z3[T]||(z3[T]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",T)),UM($,T,T,L,B,U);continue;default:if(!(2<T.length)||T[0]!=="o"&&T[0]!=="O"||T[1]!=="n"&&T[1]!=="N"){z=HB(T),W=!1,Y.context===P2&&Z!=="svg"&&Z!=="math"?B.delete(z.toLowerCase()):(k=T.toLowerCase(),k=jG.hasOwnProperty(k)?jG[k]||null:null,k!==null&&k!==T&&(W=!0,B.delete(k)),B.delete(z));$:if(k=$,f=z,z=L,f$(f))if(k.hasAttribute(f))k=k.getAttribute(f),w1(z,f),z=k===""+z?z:k;else{switch(typeof z){case"function":case"symbol":break $;case"boolean":if(k=f.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}z=z===void 0?void 0:null}else z=void 0;W||H5(T,z,L,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&BC($,B,U),Object.keys(U).length===0?null:U}function FC($,Z){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+Z+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+Z+" "+$[$.length-1]}}function HM($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MC(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,G=performance.getEntriesByType("resource"),Y=0;Y<G.length;Y++){var U=G[Y],B=U.transferSize,W=U.initiatorType,z=U.duration;if(B&&z&&HM(W)){W=0,z=U.responseEnd;for(Y+=1;Y<G.length;Y++){var L=G[Y],T=L.startTime;if(T>z)break;var{transferSize:k,initiatorType:f}=L;k&&HM(f)&&(L=L.responseEnd,W+=k*(L<z?1:(z-T)/(L-T)))}if(--Y,Z+=8*(B+W)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function HG($){return $.nodeType===9?$:$.ownerDocument}function FM($){switch($){case v9:return N$;case SG:return L3;default:return P2}}function MM($,Z){if($===P2)switch(Z){case"svg":return N$;case"math":return L3;default:return P2}return $===N$&&Z==="foreignObject"?P2:$}function VY($,Z){return $==="textarea"||$==="noscript"||typeof Z.children==="string"||typeof Z.children==="number"||typeof Z.children==="bigint"||typeof Z.dangerouslySetInnerHTML==="object"&&Z.dangerouslySetInnerHTML!==null&&Z.dangerouslySetInnerHTML.__html!=null}function WC(){var $=window.event;if($&&$.type==="popstate"){if($===NU)return!1;return NU=$,!0}return NU=null,!1}function BZ(){var $=window.event;return $&&$!==YQ?$.type:null}function HZ(){var $=window.event;return $&&$!==YQ?$.timeStamp:-1.1}function wC($){setTimeout(function(){throw $})}function RC($,Z,G){switch(Z){case"button":case"input":case"select":case"textarea":G.autoFocus&&$.focus();break;case"img":G.src?$.src=G.src:G.srcSet&&($.srcset=G.srcSet)}}function zC(){}function _C($,Z,G,Y){HC($,Z,G,Y),$[x5]=Y}function WM($){h$($,"")}function LC($,Z,G){$.nodeValue=G}function wM($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[x5]||null;if(Z!==null){var G=D0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,X0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):Z.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,X0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function e2($){return $==="head"}function PC($,Z){$.removeChild(Z)}function TC($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function RM($,Z){var G=Z,Y=0;do{var U=G.nextSibling;if($.removeChild(G),U&&U.nodeType===8)if(G=U.data,G===qQ||G===_3){if(Y===0){$.removeChild(U),V9(Z);return}Y--}else if(G===XQ||G===C8||G===b7||G===Y$||G===v7)Y++;else if(G===AO)FZ($.ownerDocument.documentElement);else if(G===SO){G=$.ownerDocument.head,FZ(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:z}=B;B[LZ]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===EO&&FZ($.ownerDocument.body);G=U}while(G);V9(Z)}function zM($,Z){var G=$;$=0;do{var Y=G.nextSibling;if(G.nodeType===1?Z?(G._stashedDisplay=G.style.display,G.style.display="none"):(G.style.display=G._stashedDisplay||"",G.getAttribute("style")===""&&G.removeAttribute("style")):G.nodeType===3&&(Z?(G._stashedText=G.nodeValue,G.nodeValue=""):G.nodeValue=G._stashedText||""),Y&&Y.nodeType===8)if(G=Y.data,G===qQ)if($===0)break;else $--;else G!==XQ&&G!==C8&&G!==b7&&G!==Y$||$++;G=Y}while(G)}function CC($){zM($,!0)}function IC($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function OC($){$.nodeValue=""}function VC($){zM($,!1)}function AC($,Z){Z=Z[jO],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function EC($,Z){$.nodeValue=Z}function AY($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var G=Z;switch(Z=Z.nextSibling,G.nodeName){case"HTML":case"HEAD":case"BODY":AY(G),Z0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function SC($,Z,G,Y){for(;$.nodeType===1;){var U=G;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){w1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[LZ])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(B=$.getAttribute("rel"),B==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(B!==U.rel||$.getAttribute("href")!==(U.href==null||U.href===""?null:U.href)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin)||$.getAttribute("title")!==(U.title==null?null:U.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(B=$.getAttribute("src"),(B!==(U.src==null?null:U.src)||$.getAttribute("type")!==(U.type==null?null:U.type)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin))&&B&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=L6($.nextSibling),$===null)break}return null}function jC($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=L6($.nextSibling),$===null)return null}return $}function _M($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=L6($.nextSibling),$===null)return null}return $}function EY($){return $.data===C8||$.data===b7}function SY($){return $.data===Y$||$.data===C8&&$.ownerDocument.readyState!==NR}function DC($,Z){var G=$.ownerDocument;if($.data===b7)$._reactRetry=Z;else if($.data!==C8||G.readyState!==NR)Z();else{var Y=function(){Z(),G.removeEventListener("DOMContentLoaded",Y)};G.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function L6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===XQ||Z===Y$||Z===C8||Z===b7||Z===v7||Z===XU||Z===YR)break;if(Z===qQ||Z===_3)return null}}return $}function LM($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];G[YM(B.name)]=B.name.toLowerCase()==="style"?CY($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===v7?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function PM($,Z,G){return G===null||G[VO]!==!0?($.nodeValue===Z?$=null:(Z=t2(Z),$=t2($.nodeValue)===Z?null:$.nodeValue),$):null}function jY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===qQ||G===_3){if(Z===0)return L6($.nextSibling);Z--}else G!==XQ&&G!==Y$&&G!==C8&&G!==b7&&G!==v7||Z++}$=$.nextSibling}return null}function TM($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===XQ||G===Y$||G===C8||G===b7||G===v7){if(Z===0)return $;Z--}else G!==qQ&&G!==_3||Z++}$=$.previousSibling}return null}function vC($){V9($)}function bC($){V9($)}function kC($){V9($)}function CM($,Z,G,Y,U){switch(U&&mX($,Y.ancestorInfo),Z=HG(G),$){case"html":if($=Z.documentElement,!$)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"head":if($=Z.head,!$)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"body":if($=Z.body,!$)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function fC($,Z,G,Y){if(!G[J8]&&D0(G)){var U=G.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",U,U,U)}switch($){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(U=G.attributes;U.length;)G.removeAttributeNode(U[0]);L5(G,$,Z),G[P5]=Y,G[x5]=Z}function FZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function FG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function IM($,Z,G){var Y=U$;if(Y&&typeof Z==="string"&&Z){var U=v6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof G==="string"&&(U+='[crossorigin="'+G+'"]'),MR.has(U)||(MR.add(U),$={rel:$,crossOrigin:G,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),L5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}}function OM($,Z,G,Y){var U=(U=Z8.current)?FG(U):null;if(!U)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof G.precedence==="string"&&typeof G.href==="string"?(G=I9(G.href),Z=Q1(U).hoistableStyles,Y=Z.get(G),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=I9(G.href);var B=Q1(U).hoistableStyles,W=B.get($);if(!W&&(U=U.ownerDocument||U,W={type:"stylesheet",instance:null,count:0,state:{loading:f7,preload:null}},B.set($,W),(B=U.querySelector(MZ($)))&&!B._p&&(W.instance=B,W.state.loading=NQ|c6),!l6.has($))){var z={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};l6.set($,z),B||yC(U,$,z,W.state)}if(Z&&Y===null)throw G=`
|
|
177
177
|
|
|
178
178
|
- `+MG(Z)+`
|
|
179
179
|
+ `+MG(G),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+G);return W}if(Z&&Y!==null)throw G=`
|
|
180
180
|
|
|
181
181
|
- `+MG(Z)+`
|
|
182
|
-
+ `+MG(G),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+G);return null;case"script":return Z=G.async,G=G.src,typeof G==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(G=O7(G),Z=Q1(U).hoistableScripts,Y=Z.get(G),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function MG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):G4.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):G4.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):G4.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function I7($){return'href="'+v6($)+'"'}function MZ($){return'link[rel="stylesheet"]['+$+"]"}function VM($){return l0({},$,{"data-precedence":$.precedence,precedence:null})}function yC($,Z,G,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=NQ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=NQ}),Z.addEventListener("error",function(){return Y.loading|=HR}),L5(Z,"link",G),_0(Z),$.head.appendChild(Z))}function O7($){return'[src="'+v6($)+'"]'}function WZ($){return"script[async]"+$}function AM($,Z,G){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+v6(G.href)+'"]');if(Y)return Z.instance=Y,_0(Y),Y;var U=l0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),_0(Y),L5(Y,"style",U),WG(Y,G.precedence,$),Z.instance=Y;case"stylesheet":U=I7(G.href);var B=$.querySelector(MZ(U));if(B)return Z.state.loading|=c6,Z.instance=B,_0(B),B;Y=VM(G),(U=l6.get(U))&&DY(Y,U),B=($.ownerDocument||$).createElement("link"),_0(B);var W=B;return W._p=new Promise(function(z,L){W.onload=z,W.onerror=L}),L5(B,"link",Y),Z.state.loading|=c6,WG(B,G.precedence,$),Z.instance=B;case"script":if(B=O7(G.src),U=$.querySelector(WZ(B)))return Z.instance=U,_0(U),U;if(Y=G,U=l6.get(B))Y=l0({},G),vY(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),_0(U),L5(U,"link",Y),$.head.appendChild(U),Z.instance=U;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+Z.type+'". this is a bug in React.')}else Z.type==="stylesheet"&&(Z.state.loading&c6)===f9&&(Y=Z.instance,Z.state.loading|=c6,WG(Y,G.precedence,$));return Z.instance}function WG($,Z,G){for(var Y=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,W=0;W<Y.length;W++){var z=Y[W];if(z.dataset.precedence===Z)B=z;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function DY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function vY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function EM($,Z,G){if(P3===null){var Y=new Map,U=P3=new Map;U.set(G,Y)}else U=P3,Y=U.get(G),Y||(Y=new Map,U.set(G,Y));if(Y.has($))return Y;Y.set($,null),G=G.getElementsByTagName($);for(U=0;U<G.length;U++){var B=G[U];if(!(B[LZ]||B[P5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==v7){var W=B.getAttribute(Z)||"";W=$+W;var z=Y.get(W);z?z.push(B):Y.set(W,[B])}}return Y}function SM($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function gC($,Z,G){var Y=!G.ancestorInfo.containerTagInScope;if(G.context===N$||Z.itemProp!=null)return!Y||Z.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof Z.precedence!=="string"||typeof Z.href!=="string"||Z.href===""){Y&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""||Z.onLoad||Z.onError){if(Z.rel==="stylesheet"&&typeof Z.precedence==="string"){$=Z.href;var{onError:U,disabled:B}=Z;G=[],Z.onLoad&&G.push("`onLoad`"),U&&G.push("`onError`"),B!=null&&G.push("`disabled`"),U=FC(G,"and"),U+=G.length===1?" prop":" props",B=G.length===1?"an "+U:"the "+U,G.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',$,B,U)}Y&&(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(Z.onError||Z.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(Z.rel){case"stylesheet":return $=Z.precedence,Z=Z.disabled,typeof $!=="string"&&Y&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof $==="string"&&Z==null;default:return!0}case"script":if($=Z.async&&typeof Z.async!=="function"&&typeof Z.async!=="symbol",!$||Z.onLoad||Z.onError||!Z.src||typeof Z.src!=="string"){Y&&($?Z.onLoad||Z.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function jM($){return $.type==="stylesheet"&&($.state.loading&FR)===f9?!1:!0}function hC($,Z,G,Y){if(G.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(G.state.loading&c6)===f9){if(G.instance===null){var U=I7(Y.href),B=Z.querySelector(MZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=wG.bind($),Z.then($,$)),G.state.loading|=c6,G.instance=B,_0(B);return}B=Z.ownerDocument||Z,Y=VM(Y),(U=l6.get(U))&&DY(Y,U),B=B.createElement("link"),_0(B);var W=B;W._p=new Promise(function(z,L){W.onload=z,W.onerror=L}),L5(B,"link",Y),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&FR)===f9&&($.count++,G=wG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function uC($,Z){return $.stylesheets&&$.count===0&&RG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var Y=setTimeout(function(){if($.stylesheets&&RG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},bO+Z);0<$.imgBytes&&KU===0&&(KU=125*MC()*fO);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&RG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>KU?50:kO)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function wG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)RG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function RG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,T3=new Map,Z.forEach(xC,$),T3=null,wG.call($))}function xC($,Z){if(!(Z.state.loading&c6)){var G=T3.get($);if(G)var Y=G.get(BU);else{G=new Map,T3.set($,G);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var W=U[B];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")G.set(W.dataset.precedence,W),Y=W}Y&&G.set(BU,Y)}U=Z.instance,W=U.getAttribute("data-precedence"),B=G.get(W)||Y,B===Y&&G.set(BU,U),G.set(W,U),this.count++,Y=wG.bind(this),U.addEventListener("load",Y),U.addEventListener("error",Y),B?B.parentNode.insertBefore(U,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(U,$.firstChild)),Z.state.loading|=c6}}function mC($,Z,G,Y,U,B,W,z,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=k9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=N7(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=N7(0),this.hiddenUpdates=N7(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=G?"hydrateRoot()":"createRoot()"}function DM($,Z,G,Y,U,B,W,z,L,T,k,f){return $=new mC($,Z,G,W,L,T,k,f,z),Z=qO,B===!0&&(Z|=v5|q4),Z|=g0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=qq(),Y9(Z),$.pooledCache=Z,Y9(Z),B.memoizedState={element:Y,isDehydrated:G,cache:Z},Bq(B),$}function vM($){if(!$)return Y8;return $=Y8,$}function bY($,Z,G,Y,U,B){if(D5&&typeof D5.onScheduleFiberRoot==="function")try{D5.onScheduleFiberRoot(j7,Y,G)}catch(W){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",W))}U=vM(U),Y.context===null?Y.context=U:Y.pendingContext=U,b4&&T6!==null&&!zR&&(zR=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
182
|
+
+ `+MG(G),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+G);return null;case"script":return Z=G.async,G=G.src,typeof G==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(G=O9(G),Z=Q1(U).hoistableScripts,Y=Z.get(G),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function MG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):G4.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):G4.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):G4.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function I9($){return'href="'+v6($)+'"'}function MZ($){return'link[rel="stylesheet"]['+$+"]"}function VM($){return l0({},$,{"data-precedence":$.precedence,precedence:null})}function yC($,Z,G,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=NQ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=NQ}),Z.addEventListener("error",function(){return Y.loading|=HR}),L5(Z,"link",G),_0(Z),$.head.appendChild(Z))}function O9($){return'[src="'+v6($)+'"]'}function WZ($){return"script[async]"+$}function AM($,Z,G){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+v6(G.href)+'"]');if(Y)return Z.instance=Y,_0(Y),Y;var U=l0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),_0(Y),L5(Y,"style",U),WG(Y,G.precedence,$),Z.instance=Y;case"stylesheet":U=I9(G.href);var B=$.querySelector(MZ(U));if(B)return Z.state.loading|=c6,Z.instance=B,_0(B),B;Y=VM(G),(U=l6.get(U))&&DY(Y,U),B=($.ownerDocument||$).createElement("link"),_0(B);var W=B;return W._p=new Promise(function(z,L){W.onload=z,W.onerror=L}),L5(B,"link",Y),Z.state.loading|=c6,WG(B,G.precedence,$),Z.instance=B;case"script":if(B=O9(G.src),U=$.querySelector(WZ(B)))return Z.instance=U,_0(U),U;if(Y=G,U=l6.get(B))Y=l0({},G),vY(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),_0(U),L5(U,"link",Y),$.head.appendChild(U),Z.instance=U;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+Z.type+'". this is a bug in React.')}else Z.type==="stylesheet"&&(Z.state.loading&c6)===f7&&(Y=Z.instance,Z.state.loading|=c6,WG(Y,G.precedence,$));return Z.instance}function WG($,Z,G){for(var Y=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,W=0;W<Y.length;W++){var z=Y[W];if(z.dataset.precedence===Z)B=z;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function DY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function vY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function EM($,Z,G){if(P3===null){var Y=new Map,U=P3=new Map;U.set(G,Y)}else U=P3,Y=U.get(G),Y||(Y=new Map,U.set(G,Y));if(Y.has($))return Y;Y.set($,null),G=G.getElementsByTagName($);for(U=0;U<G.length;U++){var B=G[U];if(!(B[LZ]||B[P5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==v9){var W=B.getAttribute(Z)||"";W=$+W;var z=Y.get(W);z?z.push(B):Y.set(W,[B])}}return Y}function SM($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function gC($,Z,G){var Y=!G.ancestorInfo.containerTagInScope;if(G.context===N$||Z.itemProp!=null)return!Y||Z.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof Z.precedence!=="string"||typeof Z.href!=="string"||Z.href===""){Y&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""||Z.onLoad||Z.onError){if(Z.rel==="stylesheet"&&typeof Z.precedence==="string"){$=Z.href;var{onError:U,disabled:B}=Z;G=[],Z.onLoad&&G.push("`onLoad`"),U&&G.push("`onError`"),B!=null&&G.push("`disabled`"),U=FC(G,"and"),U+=G.length===1?" prop":" props",B=G.length===1?"an "+U:"the "+U,G.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',$,B,U)}Y&&(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(Z.onError||Z.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(Z.rel){case"stylesheet":return $=Z.precedence,Z=Z.disabled,typeof $!=="string"&&Y&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof $==="string"&&Z==null;default:return!0}case"script":if($=Z.async&&typeof Z.async!=="function"&&typeof Z.async!=="symbol",!$||Z.onLoad||Z.onError||!Z.src||typeof Z.src!=="string"){Y&&($?Z.onLoad||Z.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function jM($){return $.type==="stylesheet"&&($.state.loading&FR)===f7?!1:!0}function hC($,Z,G,Y){if(G.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(G.state.loading&c6)===f7){if(G.instance===null){var U=I9(Y.href),B=Z.querySelector(MZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=wG.bind($),Z.then($,$)),G.state.loading|=c6,G.instance=B,_0(B);return}B=Z.ownerDocument||Z,Y=VM(Y),(U=l6.get(U))&&DY(Y,U),B=B.createElement("link"),_0(B);var W=B;W._p=new Promise(function(z,L){W.onload=z,W.onerror=L}),L5(B,"link",Y),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&FR)===f7&&($.count++,G=wG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function uC($,Z){return $.stylesheets&&$.count===0&&RG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var Y=setTimeout(function(){if($.stylesheets&&RG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},bO+Z);0<$.imgBytes&&KU===0&&(KU=125*MC()*fO);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&RG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>KU?50:kO)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function wG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)RG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function RG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,T3=new Map,Z.forEach(xC,$),T3=null,wG.call($))}function xC($,Z){if(!(Z.state.loading&c6)){var G=T3.get($);if(G)var Y=G.get(BU);else{G=new Map,T3.set($,G);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var W=U[B];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")G.set(W.dataset.precedence,W),Y=W}Y&&G.set(BU,Y)}U=Z.instance,W=U.getAttribute("data-precedence"),B=G.get(W)||Y,B===Y&&G.set(BU,U),G.set(W,U),this.count++,Y=wG.bind(this),U.addEventListener("load",Y),U.addEventListener("error",Y),B?B.parentNode.insertBefore(U,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(U,$.firstChild)),Z.state.loading|=c6}}function mC($,Z,G,Y,U,B,W,z,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=k7,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=N9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=N9(0),this.hiddenUpdates=N9(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=G?"hydrateRoot()":"createRoot()"}function DM($,Z,G,Y,U,B,W,z,L,T,k,f){return $=new mC($,Z,G,W,L,T,k,f,z),Z=qO,B===!0&&(Z|=v5|q4),Z|=g0,B=P(3,null,null,Z),$.current=B,B.stateNode=$,Z=qq(),Y7(Z),$.pooledCache=Z,Y7(Z),B.memoizedState={element:Y,isDehydrated:G,cache:Z},Bq(B),$}function vM($){if(!$)return Y8;return $=Y8,$}function bY($,Z,G,Y,U,B){if(D5&&typeof D5.onScheduleFiberRoot==="function")try{D5.onScheduleFiberRoot(j9,Y,G)}catch(W){k4||(k4=!0,console.error("React instrumentation encountered an error: %o",W))}U=vM(U),Y.context===null?Y.context=U:Y.pendingContext=U,b4&&T6!==null&&!zR&&(zR=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
183
183
|
|
|
184
|
-
Check the render method of %s.`,d(T6)||"Unknown")),Y=r2(Z),Y.payload={element:G},B=B===void 0?null:B,B!==null&&(typeof B!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",B),Y.callback=B),G=n2($,Y,Z),G!==null&&(z4(Z,"root.render()",null),h1(G,$,Z),o$(G,$,Z))}function bM($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function kY($,Z){bM($,Z),($=$.alternate)&&bM($,Z)}function kM($){if($.tag===13||$.tag===31){var Z=j5($,67108864);Z!==null&&h1(Z,$,67108864),kY($,67108864)}}function fM($){if($.tag===13||$.tag===31){var Z=_6($);Z=t8(Z);var G=j5($,Z);G!==null&&h1(G,$,Z),kY($,Z)}}function dC(){return T6}function pC($,Z,G,Y){var U=x.T;x.T=null;var B=K1.p;try{K1.p=C6,fY($,Z,G,Y)}finally{K1.p=B,x.T=U}}function cC($,Z,G,Y){var U=x.T;x.T=null;var B=K1.p;try{K1.p=X4,fY($,Z,G,Y)}finally{K1.p=B,x.T=U}}function fY($,Z,G,Y){if(I3){var U=yY(Y);if(U===null)LY($,Z,Y,O3,G),gM($,Y);else if(lC(U,$,Z,G,Y))Y.stopPropagation();else if(gM($,Y),Z&4&&-1<gO.indexOf($)){for(;U!==null;){var B=D0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=M4(B.pendingLanes);if(W!==0){var z=B;z.pendingLanes|=2;for(z.entangledLanes|=2;W;){var L=1<<31-u5(W);z.entanglements[1]|=L,W&=~L}S4(B),(Z1&(N5|A6))===w5&&(Y3=F5()+rw,UZ(0,!1))}}break;case 31:case 13:z=j5(B,2),z!==null&&h1(z,B,2),P7(),kY(B,2)}if(B=yY(Y),B===null&&LY($,Z,Y,O3,G),B===U)break;U=B}U!==null&&Y.stopPropagation()}else LY($,Z,Y,null,G)}}function yY($){return $=dX($),gY($)}function gY($){if(O3=null,$=N0($),$!==null){var Z=D($);if(Z===null)$=null;else{var G=Z.tag;if(G===13){if($=h(Z),$!==null)return $;$=null}else if(G===31){if($=p(Z),$!==null)return $;$=null}else if(G===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return O3=$,null}function yM($){switch($){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return C6;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return X4;case"message":switch($I()){case aY:return C6;case iY:return X4;case S7:case ZI:return y4;case tY:return AG;default:return y4}default:return y4}}function gM($,Z){switch($){case"focusin":case"focusout":I8=null;break;case"dragenter":case"dragleave":O8=null;break;case"mouseover":case"mouseout":V8=null;break;case"pointerover":case"pointerout":KQ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":BQ.delete(Z.pointerId)}}function wZ($,Z,G,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=D0(Z),Z!==null&&kM(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function lC($,Z,G,Y,U){switch(Z){case"focusin":return I8=wZ(I8,$,Z,G,Y,U),!0;case"dragenter":return O8=wZ(O8,$,Z,G,Y,U),!0;case"mouseover":return V8=wZ(V8,$,Z,G,Y,U),!0;case"pointerover":var B=U.pointerId;return KQ.set(B,wZ(KQ.get(B)||null,$,Z,G,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,BQ.set(B,wZ(BQ.get(B)||null,$,Z,G,Y,U)),!0}return!1}function hM($){var Z=N0($.target);if(Z!==null){var G=D(Z);if(G!==null){if(Z=G.tag,Z===13){if(Z=h(G),Z!==null){$.blockedOn=Z,r($.priority,function(){fM(G)});return}}else if(Z===31){if(Z=p(G),Z!==null){$.blockedOn=Z,r($.priority,function(){fM(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function zG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=yY($.nativeEvent);if(G===null){G=$.nativeEvent;var Y=new G.constructor(G.type,G),U=Y;PZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),PZ=U,G.target.dispatchEvent(Y),PZ===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),PZ=null}else return Z=D0(G),Z!==null&&kM(Z),$.blockedOn=G,!1;Z.shift()}return!0}function uM($,Z,G){zG($)&&G.delete(Z)}function rC(){HU=!1,I8!==null&&zG(I8)&&(I8=null),O8!==null&&zG(O8)&&(O8=null),V8!==null&&zG(V8)&&(V8=null),KQ.forEach(uM),BQ.forEach(uM)}function _G($,Z){$.blockedOn===Z&&($.blockedOn=null,HU||(HU=!0,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,rC)))}function xM($){V3!==$&&(V3=$,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,function(){V3===$&&(V3=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(gY(Y||G)===null)continue;else break;var B=D0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:U,method:G.method,action:Y},Object.freeze(G),gq(B,G,Y,U))}}))}function V7($){function Z(L){return _G(L,$)}I8!==null&&_G(I8,$),O8!==null&&_G(O8,$),V8!==null&&_G(V8,$),KQ.forEach(Z),BQ.forEach(Z);for(var G=0;G<A8.length;G++){var Y=A8[G];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<A8.length&&(G=A8[0],G.blockedOn===null);)hM(G),G.blockedOn===null&&A8.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(Y=0;Y<G.length;Y+=3){var U=G[Y],B=G[Y+1],W=U[x5]||null;if(typeof B==="function")W||xM(G);else if(W){var z=null;if(B&&B.hasAttribute("formAction")){if(U=B,W=B[x5]||null)z=W.formAction;else if(gY(U)!==null)continue}else z=W.action;typeof z==="function"?G[Y+1]=z:(G.splice(Y,3),Y-=3),xM(G)}}}function mM(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(W){return U=W})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(G,20)}function G(){if(!Y&&!navigation.transition){var B=navigation.currentEntry;B&&B.url!=null&&navigation.navigate(B.url,{state:B.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Y=!1,U=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(G,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function hY($){this._internalRoot=$}function LG($){this._internalRoot=$}function dM($){$[J8]&&($._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l0=Object.assign,nC=Symbol.for("react.element"),D4=Symbol.for("react.transitional.element"),A7=Symbol.for("react.portal"),E7=Symbol.for("react.fragment"),PG=Symbol.for("react.strict_mode"),uY=Symbol.for("react.profiler"),xY=Symbol.for("react.consumer"),v4=Symbol.for("react.context"),RZ=Symbol.for("react.forward_ref"),mY=Symbol.for("react.suspense"),dY=Symbol.for("react.suspense_list"),TG=Symbol.for("react.memo"),P6=Symbol.for("react.lazy"),pY=Symbol.for("react.activity"),sC=Symbol.for("react.memo_cache_sentinel"),pM=Symbol.iterator,oC=Symbol.for("react.client.reference"),q5=Array.isArray,x=P$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K1=TK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,aC=Object.freeze({pending:!1,data:null,method:null,action:null}),cY=[],lY=[],Y2=-1,$8=H0(null),zZ=H0(null),Z8=H0(null),CG=H0(null),_Z=0,cM,lM,rM,nM,sM,oM,aM;v.__reactDisabledLog=!0;var rY,iM,nY=!1,sY=new(typeof WeakMap==="function"?WeakMap:Map),T6=null,b4=!1,G4=Object.prototype.hasOwnProperty,oY=G1.unstable_scheduleCallback,iC=G1.unstable_cancelCallback,tC=G1.unstable_shouldYield,eC=G1.unstable_requestPaint,F5=G1.unstable_now,$I=G1.unstable_getCurrentPriorityLevel,aY=G1.unstable_ImmediatePriority,iY=G1.unstable_UserBlockingPriority,S7=G1.unstable_NormalPriority,ZI=G1.unstable_LowPriority,tY=G1.unstable_IdlePriority,QI=G1.log,JI=G1.unstable_setDisableYieldValue,j7=null,D5=null,k4=!1,f4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",u5=Math.clz32?Math.clz32:BJ,GI=Math.log,XI=Math.LN2,IG=256,OG=262144,VG=4194304,C6=2,X4=8,y4=32,AG=268435456,Q8=Math.random().toString(36).slice(2),P5="__reactFiber$"+Q8,x5="__reactProps$"+Q8,J8="__reactContainer$"+Q8,eY="__reactEvents$"+Q8,qI="__reactListeners$"+Q8,YI="__reactHandles$"+Q8,tM="__reactResources$"+Q8,LZ="__reactMarker$"+Q8,eM=new Set,M9={},$N={},NI={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},UI=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$W={},ZW={},KI=/[\n"\\]/g,QW=!1,JW=!1,GW=!1,XW=!1,qW=!1,YW=!1,NW=["value","defaultValue"],UW=!1,KW=/["'&<>\n\t]|^\s|\s$/,BI="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),BW="applet caption html table td th marquee object template foreignObject desc title".split(" "),HI=BW.concat(["button"]),FI="dd dt li option optgroup p rp rt".split(" "),HW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},EG={},ZN={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},FW=/([A-Z])/g,MW=/^ms-/,MI=/^(?:webkit|moz|o)[A-Z]/,WI=/^-ms-/,wI=/-(.)/g,WW=/;\s*$/,D7={},QN={},wW=!1,RW=!1,zW=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),SG="http://www.w3.org/1998/Math/MathML",v7="http://www.w3.org/2000/svg",RI=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jG={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},_W={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},b7={},zI=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_I=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),LW=!1,m5={},PW=/^on./,LI=/^on[^A-Z]/,PI=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),TI=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),CI=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,PZ=null,k7=null,f7=null,JN=!1,g4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),GN=!1;if(g4)try{var TZ={};Object.defineProperty(TZ,"passive",{get:function(){GN=!0}}),window.addEventListener("test",TZ,TZ),window.removeEventListener("test",TZ,TZ)}catch($){GN=!1}var G8=null,XN=null,DG=null,W9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vG=n5(W9),CZ=l0({},W9,{view:0,detail:0}),II=n5(CZ),qN,YN,IZ,bG=l0({},CZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pX,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==IZ&&(IZ&&$.type==="mousemove"?(qN=$.screenX-IZ.screenX,YN=$.screenY-IZ.screenY):YN=qN=0,IZ=$),qN},movementY:function($){return"movementY"in $?$.movementY:YN}}),TW=n5(bG),OI=l0({},bG,{dataTransfer:0}),VI=n5(OI),AI=l0({},CZ,{relatedTarget:0}),NN=n5(AI),EI=l0({},W9,{animationName:0,elapsedTime:0,pseudoElement:0}),SI=n5(EI),jI=l0({},W9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),DI=n5(jI),vI=l0({},W9,{data:0}),CW=n5(vI),bI=CW,kI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},gI=l0({},CZ,{key:function($){if($.key){var Z=kI[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=zJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?fI[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pX,charCode:function($){return $.type==="keypress"?zJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?zJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),hI=n5(gI),uI=l0({},bG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),IW=n5(uI),xI=l0({},CZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pX}),mI=n5(xI),dI=l0({},W9,{propertyName:0,elapsedTime:0,pseudoElement:0}),pI=n5(dI),cI=l0({},bG,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),lI=n5(cI),rI=l0({},W9,{newState:0,oldState:0}),nI=n5(rI),sI=[9,13,27,32],OW=229,UN=g4&&"CompositionEvent"in window,OZ=null;g4&&"documentMode"in document&&(OZ=document.documentMode);var oI=g4&&"TextEvent"in window&&!OZ,VW=g4&&(!UN||OZ&&8<OZ&&11>=OZ),AW=32,EW=String.fromCharCode(AW),SW=!1,y7=!1,aI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},VZ=null,AZ=null,jW=!1;g4&&(jW=RT("input")&&(!document.documentMode||9<document.documentMode));var d5=typeof Object.is==="function"?Object.is:CT,iI=g4&&"documentMode"in document&&11>=document.documentMode,g7=null,KN=null,EZ=null,BN=!1,h7={animationend:$9("Animation","AnimationEnd"),animationiteration:$9("Animation","AnimationIteration"),animationstart:$9("Animation","AnimationStart"),transitionrun:$9("Transition","TransitionRun"),transitionstart:$9("Transition","TransitionStart"),transitioncancel:$9("Transition","TransitionCancel"),transitionend:$9("Transition","TransitionEnd")},HN={},DW={};g4&&(DW=document.createElement("div").style,("AnimationEvent"in window)||(delete h7.animationend.animation,delete h7.animationiteration.animation,delete h7.animationstart.animation),("TransitionEvent"in window)||delete h7.transitionend.transition);var vW=Z9("animationend"),bW=Z9("animationiteration"),kW=Z9("animationstart"),tI=Z9("transitionrun"),eI=Z9("transitionstart"),$O=Z9("transitioncancel"),fW=Z9("transitionend"),yW=new Map,FN="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");FN.push("scrollEnd");var gW=0;if(typeof performance==="object"&&typeof performance.now==="function")var ZO=performance,hW=function(){return ZO.now()};else{var QO=Date;hW=function(){return QO.now()}}var MN=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},JO="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",kG=0,WN=1,wN=2,RN=3,fG="– ",yG="+ ",uW=" ",A1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",k6="Components ⚛",r0="Scheduler ⚛",o0="Blocking",X8=!1,N2={color:"primary",properties:null,tooltipText:"",track:k6},q8={start:-0,end:-0,detail:{devtools:N2}},GO=["Changed Props",""],xW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XO=["Changed Props",xW],SZ=1,U2=2,f6=[],u7=0,zN=0,Y8={};Object.freeze(Y8);var y6=null,x7=null,V0=0,qO=1,g0=2,v5=8,q4=16,YO=32,mW=!1;try{var dW=Object.preventExtensions({})}catch($){mW=!0}var _N=new WeakMap,m7=[],d7=0,gG=null,jZ=0,g6=[],h6=0,w9=null,K2=1,B2="",T5=null,E1=null,i0=!1,h4=!1,I6=null,N8=null,u6=!1,LN=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),PN=H0(null),TN=H0(null),pW={},hG=null,p7=null,c7=!1,NO=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(G,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(G){return G()})}},UO=G1.unstable_scheduleCallback,KO=G1.unstable_NormalPriority,t1={$$typeof:v4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},e1=G1.unstable_now,uG=console.createTask?console.createTask:function(){return null},DZ=1,xG=2,M5=-0,U8=-0,H2=-0,F2=null,p5=-1.1,R9=-0,k1=-0,L0=-1.1,T0=-1.1,b1=null,u1=!1,K8=-0,u4=-1.1,vZ=null,B8=0,CN=null,IN=null,z9=-1.1,bZ=null,l7=-1.1,mG=-1.1,x4=-0,M2=-1.1,x6=-1.1,ON=0,kZ=null,cW=null,lW=null,H8=-1.1,_9=null,F8=-1.1,dG=-1.1,rW=-0,nW=-0,pG=0,W2=null,sW=0,fZ=-1.1,cG=!1,lG=!1,yZ=null,VN=0,L9=0,r7=null,oW=x.S;x.S=function($,Z){if(cw=F5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>M2&&0>x6){M2=e1();var G=HZ(),Y=BZ();if(G!==F8||Y!==_9)F8=-1.1;H8=G,_9=Y}jT($,Z)}oW!==null&&oW($,Z)};var P9=H0(null),Y4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},gZ=[],hZ=[],uZ=[],xZ=[],mZ=[],dZ=[],T9=new Set;Y4.recordUnsafeLifecycleWarnings=function($,Z){T9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&gZ.push($),$.mode&v5&&typeof Z.UNSAFE_componentWillMount==="function"&&hZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&uZ.push($),$.mode&v5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&xZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&mZ.push($),$.mode&v5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&dZ.push($))},Y4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<gZ.length&&(gZ.forEach(function(z){$.add(d(z)||"Component"),T9.add(z.type)}),gZ=[]);var Z=new Set;0<hZ.length&&(hZ.forEach(function(z){Z.add(d(z)||"Component"),T9.add(z.type)}),hZ=[]);var G=new Set;0<uZ.length&&(uZ.forEach(function(z){G.add(d(z)||"Component"),T9.add(z.type)}),uZ=[]);var Y=new Set;0<xZ.length&&(xZ.forEach(function(z){Y.add(d(z)||"Component"),T9.add(z.type)}),xZ=[]);var U=new Set;0<mZ.length&&(mZ.forEach(function(z){U.add(d(z)||"Component"),T9.add(z.type)}),mZ=[]);var B=new Set;if(0<dZ.length&&(dZ.forEach(function(z){B.add(d(z)||"Component"),T9.add(z.type)}),dZ=[]),0<Z.size){var W=_(Z);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
184
|
+
Check the render method of %s.`,d(T6)||"Unknown")),Y=r2(Z),Y.payload={element:G},B=B===void 0?null:B,B!==null&&(typeof B!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",B),Y.callback=B),G=n2($,Y,Z),G!==null&&(z4(Z,"root.render()",null),h1(G,$,Z),o$(G,$,Z))}function bM($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function kY($,Z){bM($,Z),($=$.alternate)&&bM($,Z)}function kM($){if($.tag===13||$.tag===31){var Z=j5($,67108864);Z!==null&&h1(Z,$,67108864),kY($,67108864)}}function fM($){if($.tag===13||$.tag===31){var Z=_6($);Z=t8(Z);var G=j5($,Z);G!==null&&h1(G,$,Z),kY($,Z)}}function dC(){return T6}function pC($,Z,G,Y){var U=x.T;x.T=null;var B=K1.p;try{K1.p=C6,fY($,Z,G,Y)}finally{K1.p=B,x.T=U}}function cC($,Z,G,Y){var U=x.T;x.T=null;var B=K1.p;try{K1.p=X4,fY($,Z,G,Y)}finally{K1.p=B,x.T=U}}function fY($,Z,G,Y){if(I3){var U=yY(Y);if(U===null)LY($,Z,Y,O3,G),gM($,Y);else if(lC(U,$,Z,G,Y))Y.stopPropagation();else if(gM($,Y),Z&4&&-1<gO.indexOf($)){for(;U!==null;){var B=D0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=M4(B.pendingLanes);if(W!==0){var z=B;z.pendingLanes|=2;for(z.entangledLanes|=2;W;){var L=1<<31-u5(W);z.entanglements[1]|=L,W&=~L}S4(B),(Z1&(N5|A6))===w5&&(Y3=F5()+rw,UZ(0,!1))}}break;case 31:case 13:z=j5(B,2),z!==null&&h1(z,B,2),P9(),kY(B,2)}if(B=yY(Y),B===null&&LY($,Z,Y,O3,G),B===U)break;U=B}U!==null&&Y.stopPropagation()}else LY($,Z,Y,null,G)}}function yY($){return $=dX($),gY($)}function gY($){if(O3=null,$=N0($),$!==null){var Z=D($);if(Z===null)$=null;else{var G=Z.tag;if(G===13){if($=h(Z),$!==null)return $;$=null}else if(G===31){if($=p(Z),$!==null)return $;$=null}else if(G===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return O3=$,null}function yM($){switch($){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return C6;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return X4;case"message":switch($I()){case aY:return C6;case iY:return X4;case S9:case ZI:return y4;case tY:return AG;default:return y4}default:return y4}}function gM($,Z){switch($){case"focusin":case"focusout":I8=null;break;case"dragenter":case"dragleave":O8=null;break;case"mouseover":case"mouseout":V8=null;break;case"pointerover":case"pointerout":KQ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":BQ.delete(Z.pointerId)}}function wZ($,Z,G,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=D0(Z),Z!==null&&kM(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function lC($,Z,G,Y,U){switch(Z){case"focusin":return I8=wZ(I8,$,Z,G,Y,U),!0;case"dragenter":return O8=wZ(O8,$,Z,G,Y,U),!0;case"mouseover":return V8=wZ(V8,$,Z,G,Y,U),!0;case"pointerover":var B=U.pointerId;return KQ.set(B,wZ(KQ.get(B)||null,$,Z,G,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,BQ.set(B,wZ(BQ.get(B)||null,$,Z,G,Y,U)),!0}return!1}function hM($){var Z=N0($.target);if(Z!==null){var G=D(Z);if(G!==null){if(Z=G.tag,Z===13){if(Z=h(G),Z!==null){$.blockedOn=Z,r($.priority,function(){fM(G)});return}}else if(Z===31){if(Z=p(G),Z!==null){$.blockedOn=Z,r($.priority,function(){fM(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function zG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=yY($.nativeEvent);if(G===null){G=$.nativeEvent;var Y=new G.constructor(G.type,G),U=Y;PZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),PZ=U,G.target.dispatchEvent(Y),PZ===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),PZ=null}else return Z=D0(G),Z!==null&&kM(Z),$.blockedOn=G,!1;Z.shift()}return!0}function uM($,Z,G){zG($)&&G.delete(Z)}function rC(){HU=!1,I8!==null&&zG(I8)&&(I8=null),O8!==null&&zG(O8)&&(O8=null),V8!==null&&zG(V8)&&(V8=null),KQ.forEach(uM),BQ.forEach(uM)}function _G($,Z){$.blockedOn===Z&&($.blockedOn=null,HU||(HU=!0,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,rC)))}function xM($){V3!==$&&(V3=$,G1.unstable_scheduleCallback(G1.unstable_NormalPriority,function(){V3===$&&(V3=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(gY(Y||G)===null)continue;else break;var B=D0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:U,method:G.method,action:Y},Object.freeze(G),gq(B,G,Y,U))}}))}function V9($){function Z(L){return _G(L,$)}I8!==null&&_G(I8,$),O8!==null&&_G(O8,$),V8!==null&&_G(V8,$),KQ.forEach(Z),BQ.forEach(Z);for(var G=0;G<A8.length;G++){var Y=A8[G];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<A8.length&&(G=A8[0],G.blockedOn===null);)hM(G),G.blockedOn===null&&A8.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(Y=0;Y<G.length;Y+=3){var U=G[Y],B=G[Y+1],W=U[x5]||null;if(typeof B==="function")W||xM(G);else if(W){var z=null;if(B&&B.hasAttribute("formAction")){if(U=B,W=B[x5]||null)z=W.formAction;else if(gY(U)!==null)continue}else z=W.action;typeof z==="function"?G[Y+1]=z:(G.splice(Y,3),Y-=3),xM(G)}}}function mM(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(W){return U=W})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(G,20)}function G(){if(!Y&&!navigation.transition){var B=navigation.currentEntry;B&&B.url!=null&&navigation.navigate(B.url,{state:B.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Y=!1,U=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(G,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function hY($){this._internalRoot=$}function LG($){this._internalRoot=$}function dM($){$[J8]&&($._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l0=Object.assign,nC=Symbol.for("react.element"),D4=Symbol.for("react.transitional.element"),A9=Symbol.for("react.portal"),E9=Symbol.for("react.fragment"),PG=Symbol.for("react.strict_mode"),uY=Symbol.for("react.profiler"),xY=Symbol.for("react.consumer"),v4=Symbol.for("react.context"),RZ=Symbol.for("react.forward_ref"),mY=Symbol.for("react.suspense"),dY=Symbol.for("react.suspense_list"),TG=Symbol.for("react.memo"),P6=Symbol.for("react.lazy"),pY=Symbol.for("react.activity"),sC=Symbol.for("react.memo_cache_sentinel"),pM=Symbol.iterator,oC=Symbol.for("react.client.reference"),q5=Array.isArray,x=P$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K1=TK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,aC=Object.freeze({pending:!1,data:null,method:null,action:null}),cY=[],lY=[],Y2=-1,$8=H0(null),zZ=H0(null),Z8=H0(null),CG=H0(null),_Z=0,cM,lM,rM,nM,sM,oM,aM;v.__reactDisabledLog=!0;var rY,iM,nY=!1,sY=new(typeof WeakMap==="function"?WeakMap:Map),T6=null,b4=!1,G4=Object.prototype.hasOwnProperty,oY=G1.unstable_scheduleCallback,iC=G1.unstable_cancelCallback,tC=G1.unstable_shouldYield,eC=G1.unstable_requestPaint,F5=G1.unstable_now,$I=G1.unstable_getCurrentPriorityLevel,aY=G1.unstable_ImmediatePriority,iY=G1.unstable_UserBlockingPriority,S9=G1.unstable_NormalPriority,ZI=G1.unstable_LowPriority,tY=G1.unstable_IdlePriority,QI=G1.log,JI=G1.unstable_setDisableYieldValue,j9=null,D5=null,k4=!1,f4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",u5=Math.clz32?Math.clz32:BJ,GI=Math.log,XI=Math.LN2,IG=256,OG=262144,VG=4194304,C6=2,X4=8,y4=32,AG=268435456,Q8=Math.random().toString(36).slice(2),P5="__reactFiber$"+Q8,x5="__reactProps$"+Q8,J8="__reactContainer$"+Q8,eY="__reactEvents$"+Q8,qI="__reactListeners$"+Q8,YI="__reactHandles$"+Q8,tM="__reactResources$"+Q8,LZ="__reactMarker$"+Q8,eM=new Set,M7={},$N={},NI={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},UI=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$W={},ZW={},KI=/[\n"\\]/g,QW=!1,JW=!1,GW=!1,XW=!1,qW=!1,YW=!1,NW=["value","defaultValue"],UW=!1,KW=/["'&<>\n\t]|^\s|\s$/,BI="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),BW="applet caption html table td th marquee object template foreignObject desc title".split(" "),HI=BW.concat(["button"]),FI="dd dt li option optgroup p rp rt".split(" "),HW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},EG={},ZN={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},FW=/([A-Z])/g,MW=/^ms-/,MI=/^(?:webkit|moz|o)[A-Z]/,WI=/^-ms-/,wI=/-(.)/g,WW=/;\s*$/,D9={},QN={},wW=!1,RW=!1,zW=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),SG="http://www.w3.org/1998/Math/MathML",v9="http://www.w3.org/2000/svg",RI=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jG={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},_W={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},b9={},zI=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_I=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),LW=!1,m5={},PW=/^on./,LI=/^on[^A-Z]/,PI=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),TI=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),CI=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,PZ=null,k9=null,f9=null,JN=!1,g4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),GN=!1;if(g4)try{var TZ={};Object.defineProperty(TZ,"passive",{get:function(){GN=!0}}),window.addEventListener("test",TZ,TZ),window.removeEventListener("test",TZ,TZ)}catch($){GN=!1}var G8=null,XN=null,DG=null,W7={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vG=n5(W7),CZ=l0({},W7,{view:0,detail:0}),II=n5(CZ),qN,YN,IZ,bG=l0({},CZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pX,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==IZ&&(IZ&&$.type==="mousemove"?(qN=$.screenX-IZ.screenX,YN=$.screenY-IZ.screenY):YN=qN=0,IZ=$),qN},movementY:function($){return"movementY"in $?$.movementY:YN}}),TW=n5(bG),OI=l0({},bG,{dataTransfer:0}),VI=n5(OI),AI=l0({},CZ,{relatedTarget:0}),NN=n5(AI),EI=l0({},W7,{animationName:0,elapsedTime:0,pseudoElement:0}),SI=n5(EI),jI=l0({},W7,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),DI=n5(jI),vI=l0({},W7,{data:0}),CW=n5(vI),bI=CW,kI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},gI=l0({},CZ,{key:function($){if($.key){var Z=kI[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=zJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?fI[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pX,charCode:function($){return $.type==="keypress"?zJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?zJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),hI=n5(gI),uI=l0({},bG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),IW=n5(uI),xI=l0({},CZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pX}),mI=n5(xI),dI=l0({},W7,{propertyName:0,elapsedTime:0,pseudoElement:0}),pI=n5(dI),cI=l0({},bG,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),lI=n5(cI),rI=l0({},W7,{newState:0,oldState:0}),nI=n5(rI),sI=[9,13,27,32],OW=229,UN=g4&&"CompositionEvent"in window,OZ=null;g4&&"documentMode"in document&&(OZ=document.documentMode);var oI=g4&&"TextEvent"in window&&!OZ,VW=g4&&(!UN||OZ&&8<OZ&&11>=OZ),AW=32,EW=String.fromCharCode(AW),SW=!1,y9=!1,aI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},VZ=null,AZ=null,jW=!1;g4&&(jW=RT("input")&&(!document.documentMode||9<document.documentMode));var d5=typeof Object.is==="function"?Object.is:CT,iI=g4&&"documentMode"in document&&11>=document.documentMode,g9=null,KN=null,EZ=null,BN=!1,h9={animationend:$7("Animation","AnimationEnd"),animationiteration:$7("Animation","AnimationIteration"),animationstart:$7("Animation","AnimationStart"),transitionrun:$7("Transition","TransitionRun"),transitionstart:$7("Transition","TransitionStart"),transitioncancel:$7("Transition","TransitionCancel"),transitionend:$7("Transition","TransitionEnd")},HN={},DW={};g4&&(DW=document.createElement("div").style,("AnimationEvent"in window)||(delete h9.animationend.animation,delete h9.animationiteration.animation,delete h9.animationstart.animation),("TransitionEvent"in window)||delete h9.transitionend.transition);var vW=Z7("animationend"),bW=Z7("animationiteration"),kW=Z7("animationstart"),tI=Z7("transitionrun"),eI=Z7("transitionstart"),$O=Z7("transitioncancel"),fW=Z7("transitionend"),yW=new Map,FN="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");FN.push("scrollEnd");var gW=0;if(typeof performance==="object"&&typeof performance.now==="function")var ZO=performance,hW=function(){return ZO.now()};else{var QO=Date;hW=function(){return QO.now()}}var MN=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},JO="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",kG=0,WN=1,wN=2,RN=3,fG="– ",yG="+ ",uW=" ",A1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",k6="Components ⚛",r0="Scheduler ⚛",o0="Blocking",X8=!1,N2={color:"primary",properties:null,tooltipText:"",track:k6},q8={start:-0,end:-0,detail:{devtools:N2}},GO=["Changed Props",""],xW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",XO=["Changed Props",xW],SZ=1,U2=2,f6=[],u9=0,zN=0,Y8={};Object.freeze(Y8);var y6=null,x9=null,V0=0,qO=1,g0=2,v5=8,q4=16,YO=32,mW=!1;try{var dW=Object.preventExtensions({})}catch($){mW=!0}var _N=new WeakMap,m9=[],d9=0,gG=null,jZ=0,g6=[],h6=0,w7=null,K2=1,B2="",T5=null,E1=null,i0=!1,h4=!1,I6=null,N8=null,u6=!1,LN=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),PN=H0(null),TN=H0(null),pW={},hG=null,p9=null,c9=!1,NO=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(G,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(G){return G()})}},UO=G1.unstable_scheduleCallback,KO=G1.unstable_NormalPriority,t1={$$typeof:v4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},e1=G1.unstable_now,uG=console.createTask?console.createTask:function(){return null},DZ=1,xG=2,M5=-0,U8=-0,H2=-0,F2=null,p5=-1.1,R7=-0,k1=-0,L0=-1.1,T0=-1.1,b1=null,u1=!1,K8=-0,u4=-1.1,vZ=null,B8=0,CN=null,IN=null,z7=-1.1,bZ=null,l9=-1.1,mG=-1.1,x4=-0,M2=-1.1,x6=-1.1,ON=0,kZ=null,cW=null,lW=null,H8=-1.1,_7=null,F8=-1.1,dG=-1.1,rW=-0,nW=-0,pG=0,W2=null,sW=0,fZ=-1.1,cG=!1,lG=!1,yZ=null,VN=0,L7=0,r9=null,oW=x.S;x.S=function($,Z){if(cw=F5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>M2&&0>x6){M2=e1();var G=HZ(),Y=BZ();if(G!==F8||Y!==_7)F8=-1.1;H8=G,_7=Y}jT($,Z)}oW!==null&&oW($,Z)};var P7=H0(null),Y4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},gZ=[],hZ=[],uZ=[],xZ=[],mZ=[],dZ=[],T7=new Set;Y4.recordUnsafeLifecycleWarnings=function($,Z){T7.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&gZ.push($),$.mode&v5&&typeof Z.UNSAFE_componentWillMount==="function"&&hZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&uZ.push($),$.mode&v5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&xZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&mZ.push($),$.mode&v5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&dZ.push($))},Y4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<gZ.length&&(gZ.forEach(function(z){$.add(d(z)||"Component"),T7.add(z.type)}),gZ=[]);var Z=new Set;0<hZ.length&&(hZ.forEach(function(z){Z.add(d(z)||"Component"),T7.add(z.type)}),hZ=[]);var G=new Set;0<uZ.length&&(uZ.forEach(function(z){G.add(d(z)||"Component"),T7.add(z.type)}),uZ=[]);var Y=new Set;0<xZ.length&&(xZ.forEach(function(z){Y.add(d(z)||"Component"),T7.add(z.type)}),xZ=[]);var U=new Set;0<mZ.length&&(mZ.forEach(function(z){U.add(d(z)||"Component"),T7.add(z.type)}),mZ=[]);var B=new Set;if(0<dZ.length&&(dZ.forEach(function(z){B.add(d(z)||"Component"),T7.add(z.type)}),dZ=[]),0<Z.size){var W=_(Z);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
185
185
|
|
|
186
186
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
187
|
|
|
@@ -216,28 +216,28 @@ The old API will be supported in all 16.x releases, but applications using it sh
|
|
|
216
216
|
|
|
217
217
|
Please update the following components: %s
|
|
218
218
|
|
|
219
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},Y4.discardPendingWarnings=function(){gZ=[],hZ=[],uZ=[],xZ=[],mZ=[],dZ=[],rG=new Map};var iW={react_stack_bottom_frame:function($,Z,G){var Y=b4;b4=!0;try{return $(Z,G)}finally{b4=Y}}},AN=iW.react_stack_bottom_frame.bind(iW),tW={react_stack_bottom_frame:function($){var Z=b4;b4=!0;try{return $.render()}finally{b4=Z}}},eW=tW.react_stack_bottom_frame.bind(tW),$w={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(G){U1($,$.return,G)}}},EN=$w.react_stack_bottom_frame.bind($w),Zw={react_stack_bottom_frame:function($,Z,G,Y,U){try{Z.componentDidUpdate(G,Y,U)}catch(B){U1($,$.return,B)}}},Qw=Zw.react_stack_bottom_frame.bind(Zw),Jw={react_stack_bottom_frame:function($,Z){var G=Z.stack;$.componentDidCatch(Z.value,{componentStack:G!==null?G:""})}},BO=Jw.react_stack_bottom_frame.bind(Jw),Gw={react_stack_bottom_frame:function($,Z,G){try{G.componentWillUnmount()}catch(Y){U1($,Z,Y)}}},Xw=Gw.react_stack_bottom_frame.bind(Gw),qw={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},HO=qw.react_stack_bottom_frame.bind(qw),Yw={react_stack_bottom_frame:function($,Z,G){try{G()}catch(Y){U1($,Z,Y)}}},FO=Yw.react_stack_bottom_frame.bind(Yw),Nw={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},MO=Nw.react_stack_bottom_frame.bind(Nw),
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},Y4.discardPendingWarnings=function(){gZ=[],hZ=[],uZ=[],xZ=[],mZ=[],dZ=[],rG=new Map};var iW={react_stack_bottom_frame:function($,Z,G){var Y=b4;b4=!0;try{return $(Z,G)}finally{b4=Y}}},AN=iW.react_stack_bottom_frame.bind(iW),tW={react_stack_bottom_frame:function($){var Z=b4;b4=!0;try{return $.render()}finally{b4=Z}}},eW=tW.react_stack_bottom_frame.bind(tW),$w={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(G){U1($,$.return,G)}}},EN=$w.react_stack_bottom_frame.bind($w),Zw={react_stack_bottom_frame:function($,Z,G,Y,U){try{Z.componentDidUpdate(G,Y,U)}catch(B){U1($,$.return,B)}}},Qw=Zw.react_stack_bottom_frame.bind(Zw),Jw={react_stack_bottom_frame:function($,Z){var G=Z.stack;$.componentDidCatch(Z.value,{componentStack:G!==null?G:""})}},BO=Jw.react_stack_bottom_frame.bind(Jw),Gw={react_stack_bottom_frame:function($,Z,G){try{G.componentWillUnmount()}catch(Y){U1($,Z,Y)}}},Xw=Gw.react_stack_bottom_frame.bind(Gw),qw={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},HO=qw.react_stack_bottom_frame.bind(qw),Yw={react_stack_bottom_frame:function($,Z,G){try{G()}catch(Y){U1($,Z,Y)}}},FO=Yw.react_stack_bottom_frame.bind(Yw),Nw={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},MO=Nw.react_stack_bottom_frame.bind(Nw),n9=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),SN=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),nG=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),sG={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},C7=null,pZ=!1,s9=null,cZ=0,h0=null,jN,Uw=jN=!1,Kw={},Bw={},Hw={};R=function($,Z,G){if(G!==null&&typeof G==="object"&&G._store&&(!G._store.validated&&G.key==null||G._store.validated===2)){if(typeof G._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");G._store.validated=1;var Y=d($),U=Y||"null";if(!Kw[U]){Kw[U]=!0,G=G._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(U=d($))&&(B=`
|
|
220
220
|
|
|
221
221
|
Check the render method of \``+U+"`."),B||Y&&(B=`
|
|
222
222
|
|
|
223
|
-
Check the top-level render call using <`+Y+">.");var W="";G!=null&&$!==G&&(Y=null,typeof G.tag==="number"?Y=d(G):typeof G.name==="string"&&(Y=G.name),Y&&(W=" It was passed a child from "+Y+".")),X0(Z,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',B,W)})}}};var I9=GH(!0),Fw=GH(!1),Mw=0,Ww=1,ww=2,DN=3,M8=!1,Rw=!1,vN=null,bN=!1,o7=H0(null),oG=H0(0),O6=H0(null),m6=null,a7=1,lZ=2,r1=H0(0),aG=0,d6=1,c5=2,V6=4,l5=8,i7,zw=new Set,_w=new Set,kN=new Set,Lw=new Set,w2=0,A0=null,L1=null,$5=null,iG=!1,t7=!1,O9=!1,tG=0,rZ=0,R2=null,WO=0,wO=25,u=null,p6=null,z2=-1,nZ=!1,sZ={readContext:v1,use:a2,useCallback:c1,useContext:c1,useEffect:c1,useImperativeHandle:c1,useLayoutEffect:c1,useInsertionEffect:c1,useMemo:c1,useReducer:c1,useRef:c1,useState:c1,useDebugValue:c1,useDeferredValue:c1,useTransition:c1,useSyncExternalStore:c1,useId:c1,useHostTransitionStatus:c1,useFormState:c1,useActionState:c1,useOptimistic:c1,useMemoCache:c1,useCacheRefresh:c1};sZ.useEffectEvent=c1;var fN=null,Pw=null,yN=null,Tw=null,m4=null,N4=null,eG=null;fN={readContext:function($){return v1($)},use:a2,useCallback:function($,Z){return u="useCallback",c0(),M7(Z),bq($,Z)},useContext:function($){return u="useContext",c0(),v1($)},useEffect:function($,Z){return u="useEffect",c0(),M7(Z),rJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c0(),M7(G),vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c0(),M7(Z),U9(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c0(),M7(Z),Dq($,Z)},useMemo:function($,Z){u="useMemo",c0(),M7(Z);var G=x.H;x.H=m4;try{return kq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c0();var Y=x.H;x.H=m4;try{return Tq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c0(),Sq($)},useState:function($){u="useState",c0();var Z=x.H;x.H=m4;try{return Vq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c0()},useDeferredValue:function($,Z){return u="useDeferredValue",c0(),fq($,Z)},useTransition:function(){return u="useTransition",c0(),hq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c0(),Iq($,Z,G)},useId:function(){return u="useId",c0(),uq()},useFormState:function($,Z){return u="useFormState",c0(),mJ(),w7($,Z)},useActionState:function($,Z){return u="useActionState",c0(),w7($,Z)},useOptimistic:function($){return u="useOptimistic",c0(),Aq($)},useHostTransitionStatus:K9,useMemoCache:N9,useCacheRefresh:function(){return u="useCacheRefresh",c0(),xq()},useEffectEvent:function($){return u="useEffectEvent",c0(),jq($)}},Pw={readContext:function($){return v1($)},use:a2,useCallback:function($,Z){return u="useCallback",c(),bq($,Z)},useContext:function($){return u="useContext",c(),v1($)},useEffect:function($,Z){return u="useEffect",c(),rJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),U9(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),Dq($,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=m4;try{return kq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=m4;try{return Tq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),Sq($)},useState:function($){u="useState",c();var Z=x.H;x.H=m4;try{return Vq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),fq($,Z)},useTransition:function(){return u="useTransition",c(),hq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),Iq($,Z,G)},useId:function(){return u="useId",c(),uq()},useActionState:function($,Z){return u="useActionState",c(),w7($,Z)},useFormState:function($,Z){return u="useFormState",c(),mJ(),w7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),Aq($)},useHostTransitionStatus:K9,useMemoCache:N9,useCacheRefresh:function(){return u="useCacheRefresh",c(),xq()},useEffectEvent:function($){return u="useEffectEvent",c(),jq($)}},yN={readContext:function($){return v1($)},use:a2,useCallback:function($,Z){return u="useCallback",c(),oJ($,Z)},useContext:function($){return u="useContext",c(),v1($)},useEffect:function($,Z){u="useEffect",c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=N4;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=N4;try{return W7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),F1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=N4;try{return W7(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),VH($,Z)},useTransition:function(){return u="useTransition",c(),vH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),pJ($,Z,G)},useId:function(){return u="useId",c(),F1().memoizedState},useFormState:function($){return u="useFormState",c(),mJ(),cJ($)},useActionState:function($){return u="useActionState",c(),cJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),wH($,Z)},useHostTransitionStatus:K9,useMemoCache:N9,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),nJ($)}},Tw={readContext:function($){return v1($)},use:a2,useCallback:function($,Z){return u="useCallback",c(),oJ($,Z)},useContext:function($){return u="useContext",c(),v1($)},useEffect:function($,Z){u="useEffect",c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=eG;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=eG;try{return e$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),F1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=eG;try{return e$(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),AH($,Z)},useTransition:function(){return u="useTransition",c(),bH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),pJ($,Z,G)},useId:function(){return u="useId",c(),F1().memoizedState},useFormState:function($){return u="useFormState",c(),mJ(),lJ($)},useActionState:function($){return u="useActionState",c(),lJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),zH($,Z)},useHostTransitionStatus:K9,useMemoCache:N9,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),nJ($)}},m4={readContext:function($){return M(),v1($)},use:function($){return F(),a2($)},useCallback:function($,Z){return u="useCallback",F(),c0(),bq($,Z)},useContext:function($){return u="useContext",F(),c0(),v1($)},useEffect:function($,Z){return u="useEffect",F(),c0(),rJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",F(),c0(),vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",F(),c0(),U9(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c0(),Dq($,Z)},useMemo:function($,Z){u="useMemo",F(),c0();var G=x.H;x.H=m4;try{return kq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",F(),c0();var Y=x.H;x.H=m4;try{return Tq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",F(),c0(),Sq($)},useState:function($){u="useState",F(),c0();var Z=x.H;x.H=m4;try{return Vq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",F(),c0()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c0(),fq($,Z)},useTransition:function(){return u="useTransition",F(),c0(),hq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",F(),c0(),Iq($,Z,G)},useId:function(){return u="useId",F(),c0(),uq()},useFormState:function($,Z){return u="useFormState",F(),c0(),w7($,Z)},useActionState:function($,Z){return u="useActionState",F(),c0(),w7($,Z)},useOptimistic:function($){return u="useOptimistic",F(),c0(),Aq($)},useMemoCache:function($){return F(),N9($)},useHostTransitionStatus:K9,useCacheRefresh:function(){return u="useCacheRefresh",c0(),xq()},useEffectEvent:function($){return u="useEffectEvent",F(),c0(),jq($)}},N4={readContext:function($){return M(),v1($)},use:function($){return F(),a2($)},useCallback:function($,Z){return u="useCallback",F(),c(),oJ($,Z)},useContext:function($){return u="useContext",F(),c(),v1($)},useEffect:function($,Z){u="useEffect",F(),c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",F(),c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var G=x.H;x.H=N4;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",F(),c();var Y=x.H;x.H=N4;try{return W7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),F1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=N4;try{return W7(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),VH($,Z)},useTransition:function(){return u="useTransition",F(),c(),vH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",F(),c(),pJ($,Z,G)},useId:function(){return u="useId",F(),c(),F1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),cJ($)},useActionState:function($){return u="useActionState",F(),c(),cJ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),wH($,Z)},useMemoCache:function($){return F(),N9($)},useHostTransitionStatus:K9,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),nJ($)}},eG={readContext:function($){return M(),v1($)},use:function($){return F(),a2($)},useCallback:function($,Z){return u="useCallback",F(),c(),oJ($,Z)},useContext:function($){return u="useContext",F(),c(),v1($)},useEffect:function($,Z){u="useEffect",F(),c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",F(),c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var G=x.H;x.H=N4;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",F(),c();var Y=x.H;x.H=N4;try{return e$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),F1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=N4;try{return e$(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),AH($,Z)},useTransition:function(){return u="useTransition",F(),c(),bH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",F(),c(),pJ($,Z,G)},useId:function(){return u="useId",F(),c(),F1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),lJ($)},useActionState:function($){return u="useActionState",F(),c(),lJ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),zH($,Z)},useMemoCache:function($){return F(),N9($)},useHostTransitionStatus:K9,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),nJ($)}};var Cw={},Iw=new Set,Ow=new Set,Vw=new Set,Aw=new Set,Ew=new Set,Sw=new Set,jw=new Set,Dw=new Set,vw=new Set,bw=new Set;Object.freeze(Cw);var gN={enqueueSetState:function($,Z,G){$=$._reactInternals;var Y=_6($),U=r2(Y);U.payload=Z,G!==void 0&&G!==null&&(dq(G),U.callback=G),Z=n2($,U,Y),Z!==null&&(z4(Y,"this.setState()",$),h1(Z,$,Y),o$(Z,$,Y))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var Y=_6($),U=r2(Y);U.tag=Ww,U.payload=Z,G!==void 0&&G!==null&&(dq(G),U.callback=G),Z=n2($,U,Y),Z!==null&&(z4(Y,"this.replaceState()",$),h1(Z,$,Y),o$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=_6($),Y=r2(G);Y.tag=ww,Z!==void 0&&Z!==null&&(dq(Z),Y.callback=Z),Z=n2($,Y,G),Z!==null&&(z4(G,"this.forceUpdate()",$),h1(Z,$,G),o$(Z,$,G))}},e7=null,hN=null,uN=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Z5=!1,kw={},fw={},yw={},gw={},$$=!1,hw={},$3={},xN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},uw=!1,xw=null;xw=new Set;var _2=!1,Q5=!1,mN=!1,mw=typeof WeakSet==="function"?WeakSet:Set,W5=null,Z$=null,Q$=null,J5=null,i5=!1,U4=null,Y5=!1,oZ=8192,RO={getCacheForType:function($){var Z=v1(t1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return v1(t1).controller.signal},getOwner:function(){return T6}};if(typeof Symbol==="function"&&Symbol.for){var aZ=Symbol.for;aZ("selector.component"),aZ("selector.has_pseudo_class"),aZ("selector.role"),aZ("selector.test_id"),aZ("selector.text")}var zO=[],_O=typeof WeakMap==="function"?WeakMap:Map,w5=0,N5=2,A6=4,L2=0,iZ=1,V9=2,Z3=3,W8=4,Q3=6,dw=5,Z1=w5,P1=null,x0=null,u0=0,t5=0,J3=1,A9=2,tZ=3,pw=4,dN=5,eZ=6,G3=7,pN=8,E9=9,M1=t5,E6=null,w8=!1,J$=!1,cN=!1,d4=0,f1=L2,R8=0,z8=0,lN=0,e5=0,S9=0,$Q=null,r5=null,X3=!1,q3=0,cw=0,lw=300,Y3=1/0,rw=500,ZQ=null,l1=null,_8=null,N3=0,rN=1,nN=2,nw=3,L8=0,sw=1,ow=2,aw=3,iw=4,U3=5,G5=0,P8=null,G$=null,K4=0,sN=0,oN=-0,aN=null,tw=null,ew=null,B4=N3,$R=null,LO=50,QQ=0,iN=null,tN=!1,K3=!1,PO=50,j9=0,JQ=null,X$=!1,B3=null,ZR=!1,QR=new Set,TO={},H3=null,q$=null,eN=!1,$U=!1,F3=!1,ZU=!1,T8=0,QU={};(function(){for(var $=0;$<FN.length;$++){var Z=FN[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),Z4(G,"on"+Z)}Z4(vW,"onAnimationEnd"),Z4(bW,"onAnimationIteration"),Z4(kW,"onAnimationStart"),Z4("dblclick","onDoubleClick"),Z4("focusin","onFocus"),Z4("focusout","onBlur"),Z4(tI,"onTransitionRun"),Z4(eI,"onTransitionStart"),Z4($O,"onTransitionCancel"),Z4(fW,"onTransitionEnd")})(),H6("onMouseEnter",["mouseout","mouseover"]),H6("onMouseLeave",["mouseout","mouseover"]),H6("onPointerEnter",["pointerout","pointerover"]),H6("onPointerLeave",["pointerout","pointerover"]),S5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),S5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),S5("onBeforeInput",["compositionend","keypress","textInput","paste"]),S5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),S5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),S5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var GQ="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),JU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(GQ)),M3="_reactListening"+Math.random().toString(36).slice(2),JR=!1,GR=!1,W3=!1,XR=!1,w3=!1,R3=!1,qR=!1,z3={},CO=/\r\n?/g,IO=/\u0000|\uFFFD/g,D9="http://www.w3.org/1999/xlink",GU="http://www.w3.org/XML/1998/namespace",OO="javascript:throw new Error('React form unexpectedly submitted.')",VO="suppressHydrationWarning",v9="&",_3="/&",XQ="$",qQ="/$",C8="$?",b9="$~",Y$="$!",AO="html",EO="body",SO="head",XU="F!",YR="F",NR="loading",jO="style",P2=0,N$=1,L3=2,qU=null,YU=null,UR={dialog:!0,webview:!0},NU=null,YQ=void 0,KR=typeof setTimeout==="function"?setTimeout:void 0,DO=typeof clearTimeout==="function"?clearTimeout:void 0,k9=-1,BR=typeof Promise==="function"?Promise:void 0,vO=typeof queueMicrotask==="function"?queueMicrotask:typeof BR<"u"?function($){return BR.resolve(null).then($).catch(wC)}:KR,UU=null,f9=0,NQ=1,HR=2,FR=3,c6=4,l6=new Map,MR=new Set,T2=K1.d;K1.d={f:function(){var $=T2.f(),Z=P7();return $||Z},r:function($){var Z=D0($);Z!==null&&Z.tag===5&&Z.type==="form"?DH(Z):T2.r($)},D:function($){T2.D($),IM("dns-prefetch",$,null)},C:function($,Z){T2.C($,Z),IM("preconnect",$,Z)},L:function($,Z,G){T2.L($,Z,G);var Y=U$;if(Y&&$&&Z){var U='link[rel="preload"][as="'+v6(Z)+'"]';Z==="image"?G&&G.imageSrcSet?(U+='[imagesrcset="'+v6(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(U+='[imagesizes="'+v6(G.imageSizes)+'"]')):U+='[href="'+v6($)+'"]':U+='[href="'+v6($)+'"]';var B=U;switch(Z){case"style":B=I7($);break;case"script":B=O7($)}l6.has(B)||($=l0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),l6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(MZ(B))||Z==="script"&&Y.querySelector(WZ(B))||(Z=Y.createElement("link"),L5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}},m:function($,Z){T2.m($,Z);var G=U$;if(G&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+v6(Y)+'"][href="'+v6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=O7($)}if(!l6.has(B)&&($=l0({rel:"modulepreload",href:$},Z),l6.set(B,$),G.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(WZ(B)))return}Y=G.createElement("link"),L5(Y,"link",$),_0(Y),G.head.appendChild(Y)}}},X:function($,Z){T2.X($,Z);var G=U$;if(G&&$){var Y=Q1(G).hoistableScripts,U=O7($),B=Y.get(U);B||(B=G.querySelector(WZ(U)),B||($=l0({src:$,async:!0},Z),(Z=l6.get(U))&&vY($,Z),B=G.createElement("script"),_0(B),L5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,G){T2.S($,Z,G);var Y=U$;if(Y&&$){var U=Q1(Y).hoistableStyles,B=I7($);Z=Z||"default";var W=U.get(B);if(!W){var z={loading:f9,preload:null};if(W=Y.querySelector(MZ(B)))z.loading=NQ|c6;else{$=l0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=l6.get(B))&&DY($,G);var L=W=Y.createElement("link");_0(L),L5(L,"link",$),L._p=new Promise(function(T,k){L.onload=T,L.onerror=k}),L.addEventListener("load",function(){z.loading|=NQ}),L.addEventListener("error",function(){z.loading|=HR}),z.loading|=c6,WG(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:z},U.set(B,W)}}},M:function($,Z){T2.M($,Z);var G=U$;if(G&&$){var Y=Q1(G).hoistableScripts,U=O7($),B=Y.get(U);B||(B=G.querySelector(WZ(U)),B||($=l0({src:$,async:!0,type:"module"},Z),(Z=l6.get(U))&&vY($,Z),B=G.createElement("script"),_0(B),L5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var U$=typeof document>"u"?null:document,P3=null,bO=60000,kO=800,fO=500,KU=0,BU=null,T3=null,y9=aC,UQ={$$typeof:v4,Provider:null,Consumer:null,_currentValue:y9,_currentValue2:y9,_threadCount:0},WR="%c%s%c",wR="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",RR="",C3=" ",yO=Function.prototype.bind,zR=!1,_R=null,LR=null,PR=null,TR=null,CR=null,IR=null,OR=null,VR=null,AR=null,ER=null;_R=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=l0({},$.memoizedProps),G=j5($,2),G!==null&&h1(G,$,2))},LR=function($,Z,G){Z=Q($,Z),Z!==null&&(G=N(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=l0({},$.memoizedProps),G=j5($,2),G!==null&&h1(G,$,2))},PR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=X(Z.memoizedState,G,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=l0({},$.memoizedProps),G=j5($,2),G!==null&&h1(G,$,2))},TR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=j5($,2),Z!==null&&h1(Z,$,2)},CR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=j5($,2),Z!==null&&h1(Z,$,2)},IR=function($,Z,G){$.pendingProps=X($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=j5($,2),Z!==null&&h1(Z,$,2)},OR=function($){var Z=j5($,2);Z!==null&&h1(Z,$,2)},VR=function($){var Z=Y7(),G=j5($,Z);G!==null&&h1(G,$,Z)},AR=function($){H=$},ER=function($){K=$};var I3=!0,O3=null,HU=!1,I8=null,O8=null,V8=null,KQ=new Map,BQ=new Map,A8=[],gO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),V3=null;if(LG.prototype.render=hY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var G=arguments;typeof G[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):O(G[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof G[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),G=$;var Y=Z.current,U=_6(Y);bY(Y,U,G,Z,null,null)},LG.prototype.unmount=hY.prototype.unmount=function(){var $=arguments;if(typeof $[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),$=this._internalRoot,$!==null){this._internalRoot=null;var Z=$.containerInfo;(Z1&(N5|A6))!==w5&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),bY($.current,2,null,$,null,null),P7(),Z[J8]=null}},LG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<A8.length&&Z!==0&&Z<A8[G].priority;G++);A8.splice(G,0,$),G===0&&hM($)}},function(){var $=P$.version;if($!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
223
|
+
Check the top-level render call using <`+Y+">.");var W="";G!=null&&$!==G&&(Y=null,typeof G.tag==="number"?Y=d(G):typeof G.name==="string"&&(Y=G.name),Y&&(W=" It was passed a child from "+Y+".")),X0(Z,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',B,W)})}}};var I7=GH(!0),Fw=GH(!1),Mw=0,Ww=1,ww=2,DN=3,M8=!1,Rw=!1,vN=null,bN=!1,o9=H0(null),oG=H0(0),O6=H0(null),m6=null,a9=1,lZ=2,r1=H0(0),aG=0,d6=1,c5=2,V6=4,l5=8,i9,zw=new Set,_w=new Set,kN=new Set,Lw=new Set,w2=0,A0=null,L1=null,$5=null,iG=!1,t9=!1,O7=!1,tG=0,rZ=0,R2=null,WO=0,wO=25,u=null,p6=null,z2=-1,nZ=!1,sZ={readContext:v1,use:a2,useCallback:c1,useContext:c1,useEffect:c1,useImperativeHandle:c1,useLayoutEffect:c1,useInsertionEffect:c1,useMemo:c1,useReducer:c1,useRef:c1,useState:c1,useDebugValue:c1,useDeferredValue:c1,useTransition:c1,useSyncExternalStore:c1,useId:c1,useHostTransitionStatus:c1,useFormState:c1,useActionState:c1,useOptimistic:c1,useMemoCache:c1,useCacheRefresh:c1};sZ.useEffectEvent=c1;var fN=null,Pw=null,yN=null,Tw=null,m4=null,N4=null,eG=null;fN={readContext:function($){return v1($)},use:a2,useCallback:function($,Z){return u="useCallback",c0(),M9(Z),bq($,Z)},useContext:function($){return u="useContext",c0(),v1($)},useEffect:function($,Z){return u="useEffect",c0(),M9(Z),rJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c0(),M9(G),vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c0(),M9(Z),U7(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c0(),M9(Z),Dq($,Z)},useMemo:function($,Z){u="useMemo",c0(),M9(Z);var G=x.H;x.H=m4;try{return kq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c0();var Y=x.H;x.H=m4;try{return Tq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c0(),Sq($)},useState:function($){u="useState",c0();var Z=x.H;x.H=m4;try{return Vq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c0()},useDeferredValue:function($,Z){return u="useDeferredValue",c0(),fq($,Z)},useTransition:function(){return u="useTransition",c0(),hq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c0(),Iq($,Z,G)},useId:function(){return u="useId",c0(),uq()},useFormState:function($,Z){return u="useFormState",c0(),mJ(),w9($,Z)},useActionState:function($,Z){return u="useActionState",c0(),w9($,Z)},useOptimistic:function($){return u="useOptimistic",c0(),Aq($)},useHostTransitionStatus:K7,useMemoCache:N7,useCacheRefresh:function(){return u="useCacheRefresh",c0(),xq()},useEffectEvent:function($){return u="useEffectEvent",c0(),jq($)}},Pw={readContext:function($){return v1($)},use:a2,useCallback:function($,Z){return u="useCallback",c(),bq($,Z)},useContext:function($){return u="useContext",c(),v1($)},useEffect:function($,Z){return u="useEffect",c(),rJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),U7(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),Dq($,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=m4;try{return kq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=m4;try{return Tq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),Sq($)},useState:function($){u="useState",c();var Z=x.H;x.H=m4;try{return Vq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),fq($,Z)},useTransition:function(){return u="useTransition",c(),hq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),Iq($,Z,G)},useId:function(){return u="useId",c(),uq()},useActionState:function($,Z){return u="useActionState",c(),w9($,Z)},useFormState:function($,Z){return u="useFormState",c(),mJ(),w9($,Z)},useOptimistic:function($){return u="useOptimistic",c(),Aq($)},useHostTransitionStatus:K7,useMemoCache:N7,useCacheRefresh:function(){return u="useCacheRefresh",c(),xq()},useEffectEvent:function($){return u="useEffectEvent",c(),jq($)}},yN={readContext:function($){return v1($)},use:a2,useCallback:function($,Z){return u="useCallback",c(),oJ($,Z)},useContext:function($){return u="useContext",c(),v1($)},useEffect:function($,Z){u="useEffect",c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=N4;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=N4;try{return W9($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),F1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=N4;try{return W9(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),VH($,Z)},useTransition:function(){return u="useTransition",c(),vH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),pJ($,Z,G)},useId:function(){return u="useId",c(),F1().memoizedState},useFormState:function($){return u="useFormState",c(),mJ(),cJ($)},useActionState:function($){return u="useActionState",c(),cJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),wH($,Z)},useHostTransitionStatus:K7,useMemoCache:N7,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),nJ($)}},Tw={readContext:function($){return v1($)},use:a2,useCallback:function($,Z){return u="useCallback",c(),oJ($,Z)},useContext:function($){return u="useContext",c(),v1($)},useEffect:function($,Z){u="useEffect",c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=eG;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=eG;try{return e$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),F1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=eG;try{return e$(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),AH($,Z)},useTransition:function(){return u="useTransition",c(),bH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),pJ($,Z,G)},useId:function(){return u="useId",c(),F1().memoizedState},useFormState:function($){return u="useFormState",c(),mJ(),lJ($)},useActionState:function($){return u="useActionState",c(),lJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),zH($,Z)},useHostTransitionStatus:K7,useMemoCache:N7,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),nJ($)}},m4={readContext:function($){return M(),v1($)},use:function($){return F(),a2($)},useCallback:function($,Z){return u="useCallback",F(),c0(),bq($,Z)},useContext:function($){return u="useContext",F(),c0(),v1($)},useEffect:function($,Z){return u="useEffect",F(),c0(),rJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",F(),c0(),vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",F(),c0(),U7(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c0(),Dq($,Z)},useMemo:function($,Z){u="useMemo",F(),c0();var G=x.H;x.H=m4;try{return kq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",F(),c0();var Y=x.H;x.H=m4;try{return Tq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",F(),c0(),Sq($)},useState:function($){u="useState",F(),c0();var Z=x.H;x.H=m4;try{return Vq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",F(),c0()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c0(),fq($,Z)},useTransition:function(){return u="useTransition",F(),c0(),hq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",F(),c0(),Iq($,Z,G)},useId:function(){return u="useId",F(),c0(),uq()},useFormState:function($,Z){return u="useFormState",F(),c0(),w9($,Z)},useActionState:function($,Z){return u="useActionState",F(),c0(),w9($,Z)},useOptimistic:function($){return u="useOptimistic",F(),c0(),Aq($)},useMemoCache:function($){return F(),N7($)},useHostTransitionStatus:K7,useCacheRefresh:function(){return u="useCacheRefresh",c0(),xq()},useEffectEvent:function($){return u="useEffectEvent",F(),c0(),jq($)}},N4={readContext:function($){return M(),v1($)},use:function($){return F(),a2($)},useCallback:function($,Z){return u="useCallback",F(),c(),oJ($,Z)},useContext:function($){return u="useContext",F(),c(),v1($)},useEffect:function($,Z){u="useEffect",F(),c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",F(),c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var G=x.H;x.H=N4;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",F(),c();var Y=x.H;x.H=N4;try{return W9($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),F1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=N4;try{return W9(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),VH($,Z)},useTransition:function(){return u="useTransition",F(),c(),vH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",F(),c(),pJ($,Z,G)},useId:function(){return u="useId",F(),c(),F1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),cJ($)},useActionState:function($){return u="useActionState",F(),c(),cJ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),wH($,Z)},useMemoCache:function($){return F(),N7($)},useHostTransitionStatus:K7,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),nJ($)}},eG={readContext:function($){return M(),v1($)},use:function($){return F(),a2($)},useCallback:function($,Z){return u="useCallback",F(),c(),oJ($,Z)},useContext:function($){return u="useContext",F(),c(),v1($)},useEffect:function($,Z){u="useEffect",F(),c(),s5(2048,l5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",F(),c(),sJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",F(),c(),s5(4,c5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",F(),c(),s5(4,V6,$,Z)},useMemo:function($,Z){u="useMemo",F(),c();var G=x.H;x.H=N4;try{return aJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",F(),c();var Y=x.H;x.H=N4;try{return e$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",F(),c(),F1().memoizedState},useState:function(){u="useState",F(),c();var $=x.H;x.H=N4;try{return e$(Q4)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",F(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",F(),c(),AH($,Z)},useTransition:function(){return u="useTransition",F(),c(),bH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",F(),c(),pJ($,Z,G)},useId:function(){return u="useId",F(),c(),F1().memoizedState},useFormState:function($){return u="useFormState",F(),c(),lJ($)},useActionState:function($){return u="useActionState",F(),c(),lJ($)},useOptimistic:function($,Z){return u="useOptimistic",F(),c(),zH($,Z)},useMemoCache:function($){return F(),N7($)},useHostTransitionStatus:K7,useCacheRefresh:function(){return u="useCacheRefresh",c(),F1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",F(),c(),nJ($)}};var Cw={},Iw=new Set,Ow=new Set,Vw=new Set,Aw=new Set,Ew=new Set,Sw=new Set,jw=new Set,Dw=new Set,vw=new Set,bw=new Set;Object.freeze(Cw);var gN={enqueueSetState:function($,Z,G){$=$._reactInternals;var Y=_6($),U=r2(Y);U.payload=Z,G!==void 0&&G!==null&&(dq(G),U.callback=G),Z=n2($,U,Y),Z!==null&&(z4(Y,"this.setState()",$),h1(Z,$,Y),o$(Z,$,Y))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var Y=_6($),U=r2(Y);U.tag=Ww,U.payload=Z,G!==void 0&&G!==null&&(dq(G),U.callback=G),Z=n2($,U,Y),Z!==null&&(z4(Y,"this.replaceState()",$),h1(Z,$,Y),o$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=_6($),Y=r2(G);Y.tag=ww,Z!==void 0&&Z!==null&&(dq(Z),Y.callback=Z),Z=n2($,Y,G),Z!==null&&(z4(G,"this.forceUpdate()",$),h1(Z,$,G),o$(Z,$,G))}},e9=null,hN=null,uN=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Z5=!1,kw={},fw={},yw={},gw={},$$=!1,hw={},$3={},xN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},uw=!1,xw=null;xw=new Set;var _2=!1,Q5=!1,mN=!1,mw=typeof WeakSet==="function"?WeakSet:Set,W5=null,Z$=null,Q$=null,J5=null,i5=!1,U4=null,Y5=!1,oZ=8192,RO={getCacheForType:function($){var Z=v1(t1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return v1(t1).controller.signal},getOwner:function(){return T6}};if(typeof Symbol==="function"&&Symbol.for){var aZ=Symbol.for;aZ("selector.component"),aZ("selector.has_pseudo_class"),aZ("selector.role"),aZ("selector.test_id"),aZ("selector.text")}var zO=[],_O=typeof WeakMap==="function"?WeakMap:Map,w5=0,N5=2,A6=4,L2=0,iZ=1,V7=2,Z3=3,W8=4,Q3=6,dw=5,Z1=w5,P1=null,x0=null,u0=0,t5=0,J3=1,A7=2,tZ=3,pw=4,dN=5,eZ=6,G3=7,pN=8,E7=9,M1=t5,E6=null,w8=!1,J$=!1,cN=!1,d4=0,f1=L2,R8=0,z8=0,lN=0,e5=0,S7=0,$Q=null,r5=null,X3=!1,q3=0,cw=0,lw=300,Y3=1/0,rw=500,ZQ=null,l1=null,_8=null,N3=0,rN=1,nN=2,nw=3,L8=0,sw=1,ow=2,aw=3,iw=4,U3=5,G5=0,P8=null,G$=null,K4=0,sN=0,oN=-0,aN=null,tw=null,ew=null,B4=N3,$R=null,LO=50,QQ=0,iN=null,tN=!1,K3=!1,PO=50,j7=0,JQ=null,X$=!1,B3=null,ZR=!1,QR=new Set,TO={},H3=null,q$=null,eN=!1,$U=!1,F3=!1,ZU=!1,T8=0,QU={};(function(){for(var $=0;$<FN.length;$++){var Z=FN[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),Z4(G,"on"+Z)}Z4(vW,"onAnimationEnd"),Z4(bW,"onAnimationIteration"),Z4(kW,"onAnimationStart"),Z4("dblclick","onDoubleClick"),Z4("focusin","onFocus"),Z4("focusout","onBlur"),Z4(tI,"onTransitionRun"),Z4(eI,"onTransitionStart"),Z4($O,"onTransitionCancel"),Z4(fW,"onTransitionEnd")})(),H6("onMouseEnter",["mouseout","mouseover"]),H6("onMouseLeave",["mouseout","mouseover"]),H6("onPointerEnter",["pointerout","pointerover"]),H6("onPointerLeave",["pointerout","pointerover"]),S5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),S5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),S5("onBeforeInput",["compositionend","keypress","textInput","paste"]),S5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),S5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),S5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var GQ="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),JU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(GQ)),M3="_reactListening"+Math.random().toString(36).slice(2),JR=!1,GR=!1,W3=!1,XR=!1,w3=!1,R3=!1,qR=!1,z3={},CO=/\r\n?/g,IO=/\u0000|\uFFFD/g,D7="http://www.w3.org/1999/xlink",GU="http://www.w3.org/XML/1998/namespace",OO="javascript:throw new Error('React form unexpectedly submitted.')",VO="suppressHydrationWarning",v7="&",_3="/&",XQ="$",qQ="/$",C8="$?",b7="$~",Y$="$!",AO="html",EO="body",SO="head",XU="F!",YR="F",NR="loading",jO="style",P2=0,N$=1,L3=2,qU=null,YU=null,UR={dialog:!0,webview:!0},NU=null,YQ=void 0,KR=typeof setTimeout==="function"?setTimeout:void 0,DO=typeof clearTimeout==="function"?clearTimeout:void 0,k7=-1,BR=typeof Promise==="function"?Promise:void 0,vO=typeof queueMicrotask==="function"?queueMicrotask:typeof BR<"u"?function($){return BR.resolve(null).then($).catch(wC)}:KR,UU=null,f7=0,NQ=1,HR=2,FR=3,c6=4,l6=new Map,MR=new Set,T2=K1.d;K1.d={f:function(){var $=T2.f(),Z=P9();return $||Z},r:function($){var Z=D0($);Z!==null&&Z.tag===5&&Z.type==="form"?DH(Z):T2.r($)},D:function($){T2.D($),IM("dns-prefetch",$,null)},C:function($,Z){T2.C($,Z),IM("preconnect",$,Z)},L:function($,Z,G){T2.L($,Z,G);var Y=U$;if(Y&&$&&Z){var U='link[rel="preload"][as="'+v6(Z)+'"]';Z==="image"?G&&G.imageSrcSet?(U+='[imagesrcset="'+v6(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(U+='[imagesizes="'+v6(G.imageSizes)+'"]')):U+='[href="'+v6($)+'"]':U+='[href="'+v6($)+'"]';var B=U;switch(Z){case"style":B=I9($);break;case"script":B=O9($)}l6.has(B)||($=l0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),l6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(MZ(B))||Z==="script"&&Y.querySelector(WZ(B))||(Z=Y.createElement("link"),L5(Z,"link",$),_0(Z),Y.head.appendChild(Z)))}},m:function($,Z){T2.m($,Z);var G=U$;if(G&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+v6(Y)+'"][href="'+v6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=O9($)}if(!l6.has(B)&&($=l0({rel:"modulepreload",href:$},Z),l6.set(B,$),G.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(WZ(B)))return}Y=G.createElement("link"),L5(Y,"link",$),_0(Y),G.head.appendChild(Y)}}},X:function($,Z){T2.X($,Z);var G=U$;if(G&&$){var Y=Q1(G).hoistableScripts,U=O9($),B=Y.get(U);B||(B=G.querySelector(WZ(U)),B||($=l0({src:$,async:!0},Z),(Z=l6.get(U))&&vY($,Z),B=G.createElement("script"),_0(B),L5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,G){T2.S($,Z,G);var Y=U$;if(Y&&$){var U=Q1(Y).hoistableStyles,B=I9($);Z=Z||"default";var W=U.get(B);if(!W){var z={loading:f7,preload:null};if(W=Y.querySelector(MZ(B)))z.loading=NQ|c6;else{$=l0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=l6.get(B))&&DY($,G);var L=W=Y.createElement("link");_0(L),L5(L,"link",$),L._p=new Promise(function(T,k){L.onload=T,L.onerror=k}),L.addEventListener("load",function(){z.loading|=NQ}),L.addEventListener("error",function(){z.loading|=HR}),z.loading|=c6,WG(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:z},U.set(B,W)}}},M:function($,Z){T2.M($,Z);var G=U$;if(G&&$){var Y=Q1(G).hoistableScripts,U=O9($),B=Y.get(U);B||(B=G.querySelector(WZ(U)),B||($=l0({src:$,async:!0,type:"module"},Z),(Z=l6.get(U))&&vY($,Z),B=G.createElement("script"),_0(B),L5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var U$=typeof document>"u"?null:document,P3=null,bO=60000,kO=800,fO=500,KU=0,BU=null,T3=null,y7=aC,UQ={$$typeof:v4,Provider:null,Consumer:null,_currentValue:y7,_currentValue2:y7,_threadCount:0},WR="%c%s%c",wR="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",RR="",C3=" ",yO=Function.prototype.bind,zR=!1,_R=null,LR=null,PR=null,TR=null,CR=null,IR=null,OR=null,VR=null,AR=null,ER=null;_R=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=l0({},$.memoizedProps),G=j5($,2),G!==null&&h1(G,$,2))},LR=function($,Z,G){Z=Q($,Z),Z!==null&&(G=N(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=l0({},$.memoizedProps),G=j5($,2),G!==null&&h1(G,$,2))},PR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=X(Z.memoizedState,G,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=l0({},$.memoizedProps),G=j5($,2),G!==null&&h1(G,$,2))},TR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=j5($,2),Z!==null&&h1(Z,$,2)},CR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=j5($,2),Z!==null&&h1(Z,$,2)},IR=function($,Z,G){$.pendingProps=X($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=j5($,2),Z!==null&&h1(Z,$,2)},OR=function($){var Z=j5($,2);Z!==null&&h1(Z,$,2)},VR=function($){var Z=Y9(),G=j5($,Z);G!==null&&h1(G,$,Z)},AR=function($){H=$},ER=function($){K=$};var I3=!0,O3=null,HU=!1,I8=null,O8=null,V8=null,KQ=new Map,BQ=new Map,A8=[],gO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),V3=null;if(LG.prototype.render=hY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var G=arguments;typeof G[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):O(G[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof G[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),G=$;var Y=Z.current,U=_6(Y);bY(Y,U,G,Z,null,null)},LG.prototype.unmount=hY.prototype.unmount=function(){var $=arguments;if(typeof $[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),$=this._internalRoot,$!==null){this._internalRoot=null;var Z=$.containerInfo;(Z1&(N5|A6))!==w5&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),bY($.current,2,null,$,null,null),P9(),Z[J8]=null}},LG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<A8.length&&Z!==0&&Z<A8[G].priority;G++);A8.splice(G,0,$),G===0&&hM($)}},function(){var $=P$.version;if($!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
224
|
- react: `+($+`
|
|
225
225
|
- react-dom: 19.2.7
|
|
226
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),K1.findDOMNode=function($){var Z=$._reactInternals;if(Z===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=a(Z),$=$!==null?J0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=_R,$.overrideHookStateDeletePath=LR,$.overrideHookStateRenamePath=PR,$.overrideProps=TR,$.overridePropsDeletePath=CR,$.overridePropsRenamePath=IR,$.scheduleUpdate=OR,$.scheduleRetry=VR,$.setErrorHandler=AR,$.setSuspenseHandler=ER,$.scheduleRefresh=A,$.scheduleRoot=I,$.setRefreshHandler=V,$.getCurrentFiber=dC,
|
|
226
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),K1.findDOMNode=function($){var Z=$._reactInternals;if(Z===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=a(Z),$=$!==null?J0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=_R,$.overrideHookStateDeletePath=LR,$.overrideHookStateRenamePath=PR,$.overrideProps=TR,$.overridePropsDeletePath=CR,$.overridePropsRenamePath=IR,$.scheduleUpdate=OR,$.scheduleRetry=VR,$.setErrorHandler=AR,$.setSuspenseHandler=ER,$.scheduleRefresh=A,$.scheduleRoot=I,$.setRefreshHandler=V,$.getCurrentFiber=dC,q9($)}()&&g4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var SR=window.location.protocol;/^(https?|file):$/.test(SR)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(SR==="file:"?`
|
|
227
227
|
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Gj.createRoot=function($,Z){if(!O($))throw Error("Target container is not a DOM element.");dM($);var G=!1,Y="",U=uH,B=xH,W=mH;return Z!==null&&Z!==void 0&&(Z.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof Z==="object"&&Z!==null&&Z.$$typeof===D4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
228
|
|
|
229
229
|
let root = createRoot(domContainer);
|
|
230
|
-
root.render(<App />);`),Z.unstable_strictMode===!0&&(G=!0),Z.identifierPrefix!==void 0&&(Y=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(U=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(W=Z.onRecoverableError)),Z=DM($,1,!1,null,null,G,Y,null,U,B,W,mM),$[J8]=Z.current,_Y($),new hY(Z)},Gj.hydrateRoot=function($,Z,G){if(!O($))throw Error("Target container is not a DOM element.");dM($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=uH,W=xH,z=mH,L=null;return G!==null&&G!==void 0&&(G.unstable_strictMode===!0&&(Y=!0),G.identifierPrefix!==void 0&&(U=G.identifierPrefix),G.onUncaughtError!==void 0&&(B=G.onUncaughtError),G.onCaughtError!==void 0&&(W=G.onCaughtError),G.onRecoverableError!==void 0&&(z=G.onRecoverableError),G.formState!==void 0&&(L=G.formState)),Z=DM($,1,!0,Z,G!=null?G:null,Y,U,L,B,W,z,mM),Z.context=vM(null),G=Z.current,Y=_6(G),Y=t8(Y),U=r2(Y),U.callback=null,n2(G,U,Y),z4(Y,"hydrateRoot()",null),G=Y,Z.current.lanes=G,u2(Z,G),S4(Z),$[J8]=Z.current,_Y($),new LG(Z)},Gj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var JL=E8((tb,QL)=>{var Xj=n(ZL());QL.exports=Xj});var U0=E8((bj)=>{var
|
|
230
|
+
root.render(<App />);`),Z.unstable_strictMode===!0&&(G=!0),Z.identifierPrefix!==void 0&&(Y=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(U=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(W=Z.onRecoverableError)),Z=DM($,1,!1,null,null,G,Y,null,U,B,W,mM),$[J8]=Z.current,_Y($),new hY(Z)},Gj.hydrateRoot=function($,Z,G){if(!O($))throw Error("Target container is not a DOM element.");dM($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=uH,W=xH,z=mH,L=null;return G!==null&&G!==void 0&&(G.unstable_strictMode===!0&&(Y=!0),G.identifierPrefix!==void 0&&(U=G.identifierPrefix),G.onUncaughtError!==void 0&&(B=G.onUncaughtError),G.onCaughtError!==void 0&&(W=G.onCaughtError),G.onRecoverableError!==void 0&&(z=G.onRecoverableError),G.formState!==void 0&&(L=G.formState)),Z=DM($,1,!0,Z,G!=null?G:null,Y,U,L,B,W,z,mM),Z.context=vM(null),G=Z.current,Y=_6(G),Y=t8(Y),U=r2(Y),U.callback=null,n2(G,U,Y),z4(Y,"hydrateRoot()",null),G=Y,Z.current.lanes=G,u2(Z,G),S4(Z),$[J8]=Z.current,_Y($),new LG(Z)},Gj.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var JL=E8((tb,QL)=>{var Xj=n(ZL());QL.exports=Xj});var U0=E8((bj)=>{var o7=n(T1());(function(){function Q(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case V:return"Fragment";case D:return"Profiler";case O:return"StrictMode";case a:return"Suspense";case J0:return"SuspenseList";case Y0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case A:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var o=v.render;return v=v.displayName,v||(v=o.displayName||o.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return o=v.displayName||null,o!==null?o:Q(v.type)||"Memo";case i:o=v._payload,v=v._init;try{return Q(v(o))}catch(M0){}}return null}function J(v){return""+v}function X(v){try{J(v);var o=!1}catch(p0){o=!0}if(o){o=console;var M0=o.error,W0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return M0.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W0),J(v)}}function q(v){if(v===V)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var o=Q(v);return o?"<"+o+">":"<...>"}catch(M0){return"<...>"}}function N(){var v=H0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(P0.call(v,"key")){var o=Object.getOwnPropertyDescriptor(v,"key").get;if(o&&o.isReactWarning)return!1}return v.key!==void 0}function F(v,o){function M0(){l||(l=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",o))}M0.isReactWarning=!0,Object.defineProperty(v,"key",{get:M0,configurable:!0})}function M(){var v=Q(this.type);return q0[v]||(q0[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function w(v,o,M0,W0,p0,p1){var k0=M0.ref;return v={$$typeof:I,type:v,key:o,props:M0,_owner:W0},(k0!==void 0?k0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:M}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:p0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:p1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function R(v,o,M0,W0,p0,p1){var k0=o.children;if(k0!==void 0)if(W0)if(I0(k0)){for(W0=0;W0<k0.length;W0++)_(k0[W0]);Object.freeze&&Object.freeze(k0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _(k0);if(P0.call(o,"key")){k0=Q(v);var i1=Object.keys(o).filter(function($4){return $4!=="key"});W0=0<i1.length?"{key: someKey, "+i1.join(": ..., ")+": ...}":"{key: someKey}",d0[k0+W0]||(i1=0<i1.length?"{"+i1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
231
231
|
let props = %s;
|
|
232
232
|
<%s {...props} />
|
|
233
233
|
React keys must be passed directly to JSX without using spread:
|
|
234
234
|
let props = %s;
|
|
235
|
-
<%s key={someKey} {...props} />`,W0,k0,i1,k0),d0[k0+W0]=!0)}if(k0=null,M0!==void 0&&(X(M0),k0=""+M0),H(o)&&(X(o.key),k0=""+o.key),"key"in o){M0={};for(var E5 in o)E5!=="key"&&(M0[E5]=o[E5])}else M0=o;return k0&&F(M0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,k0,M0,N(),p0,p1)}function _(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=
|
|
235
|
+
<%s key={someKey} {...props} />`,W0,k0,i1,k0),d0[k0+W0]=!0)}if(k0=null,M0!==void 0&&(X(M0),k0=""+M0),H(o)&&(X(o.key),k0=""+o.key),"key"in o){M0={};for(var E5 in o)E5!=="key"&&(M0[E5]=o[E5])}else M0=o;return k0&&F(M0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,k0,M0,N(),p0,p1)}function _(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=o7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,I0=Array.isArray,b0=console.createTask?console.createTask:function(){return null};o7={react_stack_bottom_frame:function(v){return v()}};var l,q0={},F0=o7.react_stack_bottom_frame.bind(o7,K)(),a0=b0(q(K)),d0={};bj.Fragment=V,bj.jsxDEV=function(v,o,M0,W0){var p0=1e4>H0.recentlyCreatedOwnerStacks++;return R(v,o,M0,W0,p0?Error("react-stack-top-frame"):F0,p0?b0(q(v)):a0)}})()});var wP=E8((OD)=>{var e7=n(T1());(function(){function Q(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case V:return"Fragment";case D:return"Profiler";case O:return"StrictMode";case a:return"Suspense";case J0:return"SuspenseList";case Y0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case A:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var o=v.render;return v=v.displayName,v||(v=o.displayName||o.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return o=v.displayName||null,o!==null?o:Q(v.type)||"Memo";case i:o=v._payload,v=v._init;try{return Q(v(o))}catch(M0){}}return null}function J(v){return""+v}function X(v){try{J(v);var o=!1}catch(p0){o=!0}if(o){o=console;var M0=o.error,W0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return M0.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W0),J(v)}}function q(v){if(v===V)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var o=Q(v);return o?"<"+o+">":"<...>"}catch(M0){return"<...>"}}function N(){var v=H0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(P0.call(v,"key")){var o=Object.getOwnPropertyDescriptor(v,"key").get;if(o&&o.isReactWarning)return!1}return v.key!==void 0}function F(v,o){function M0(){l||(l=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",o))}M0.isReactWarning=!0,Object.defineProperty(v,"key",{get:M0,configurable:!0})}function M(){var v=Q(this.type);return q0[v]||(q0[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function w(v,o,M0,W0,p0,p1){var k0=M0.ref;return v={$$typeof:I,type:v,key:o,props:M0,_owner:W0},(k0!==void 0?k0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:M}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:p0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:p1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function R(v,o,M0,W0,p0,p1){var k0=o.children;if(k0!==void 0)if(W0)if(I0(k0)){for(W0=0;W0<k0.length;W0++)_(k0[W0]);Object.freeze&&Object.freeze(k0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _(k0);if(P0.call(o,"key")){k0=Q(v);var i1=Object.keys(o).filter(function($4){return $4!=="key"});W0=0<i1.length?"{key: someKey, "+i1.join(": ..., ")+": ...}":"{key: someKey}",d0[k0+W0]||(i1=0<i1.length?"{"+i1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
236
236
|
let props = %s;
|
|
237
237
|
<%s {...props} />
|
|
238
238
|
React keys must be passed directly to JSX without using spread:
|
|
239
239
|
let props = %s;
|
|
240
|
-
<%s key={someKey} {...props} />`,W0,k0,i1,k0),d0[k0+W0]=!0)}if(k0=null,M0!==void 0&&(X(M0),k0=""+M0),H(o)&&(X(o.key),k0=""+o.key),"key"in o){M0={};for(var E5 in o)E5!=="key"&&(M0[E5]=o[E5])}else M0=o;return k0&&F(M0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,k0,M0,N(),p0,p1)}function _(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=
|
|
240
|
+
<%s key={someKey} {...props} />`,W0,k0,i1,k0),d0[k0+W0]=!0)}if(k0=null,M0!==void 0&&(X(M0),k0=""+M0),H(o)&&(X(o.key),k0=""+o.key),"key"in o){M0={};for(var E5 in o)E5!=="key"&&(M0[E5]=o[E5])}else M0=o;return k0&&F(M0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,k0,M0,N(),p0,p1)}function _(v){P(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?P(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function P(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=e7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,I0=Array.isArray,b0=console.createTask?console.createTask:function(){return null};e7={react_stack_bottom_frame:function(v){return v()}};var l,q0={},F0=e7.react_stack_bottom_frame.bind(e7,K)(),a0=b0(q(K)),d0={};OD.Fragment=V,OD.jsx=function(v,o,M0){var W0=1e4>H0.recentlyCreatedOwnerStacks++;return R(v,o,M0,!1,W0?Error("react-stack-top-frame"):F0,W0?b0(q(v)):a0)},OD.jsxs=function(v,o,M0){var W0=1e4>H0.recentlyCreatedOwnerStacks++;return R(v,o,M0,!0,W0?Error("react-stack-top-frame"):F0,W0?b0(q(v)):a0)}})()});/*!
|
|
241
241
|
* @kurkle/color v0.3.4
|
|
242
242
|
* https://github.com/kurkle/color#readme
|
|
243
243
|
* (c) 2024 Jukka Kurkela
|
|
@@ -247,11 +247,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
* https://www.chartjs.org
|
|
248
248
|
* (c) 2025 Chart.js Contributors
|
|
249
249
|
* Released under the MIT License
|
|
250
|
-
*/function c4(){}var sR=(()=>{let Q=0;return()=>Q++})();function J1(Q){return Q===null||Q===void 0}function j1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let J=Object.prototype.toString.call(Q);if(J.slice(0,7)==="[object"&&J.slice(-6)==="Array]")return!0;return!1}function $1(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function x1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function G6(Q,J){return x1(Q)?Q:J}function n0(Q,J){return typeof Q>"u"?J:Q}var oR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function V1(Q,J,X){if(Q&&typeof Q.call==="function")return Q.apply(X,J)}function W1(Q,J,X,q){let N,K,H;if(j1(Q))if(K=Q.length,q)for(N=K-1;N>=0;N--)J.call(X,Q[N],N);else for(N=0;N<K;N++)J.call(X,Q[N],N);else if($1(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)J.call(X,Q[H[N]],H[N])}}function wQ(Q,J){let X,q,N,K;if(!Q||!J||Q.length!==J.length)return!1;for(X=0,q=Q.length;X<q;++X)if(N=Q[X],K=J[X],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function b3(Q){if(j1(Q))return Q.map(b3);if($1(Q)){let J=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)J[X[N]]=b3(Q[X[N]]);return J}return Q}function aR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function MV(Q,J,X,q){if(!aR(Q))return;let N=J[Q],K=X[Q];if($1(N)&&$1(K))F$(N,K,q);else J[Q]=b3(K)}function F$(Q,J,X){let q=j1(J)?J:[J],N=q.length;if(!$1(Q))return Q;X=X||{};let K=X.merger||MV,H;for(let F=0;F<N;++F){if(H=q[F],!$1(H))continue;let M=Object.keys(H);for(let w=0,R=M.length;w<R;++w)K(M[w],Q,H,X)}return Q}function W$(Q,J){return F$(Q,J,{merger:WV})}function WV(Q,J,X){if(!aR(Q))return;let q=J[Q],N=X[Q];if($1(q)&&$1(N))W$(q,N);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=b3(N)}var hR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function wV(Q){let J=Q.split("."),X=[],q="";for(let N of J)if(q+=N,q.endsWith("\\"))q=q.slice(0,-1)+".";else X.push(q),q="";return X}function RV(Q){let J=wV(Q);return(X)=>{for(let q of J){if(q==="")break;X=X&&X[q]}return X}}function x9(Q,J){return(hR[J]||(hR[J]=RV(J)))(Q)}function g3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var w$=(Q)=>typeof Q<"u",O2=(Q)=>typeof Q==="function",LU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let X of Q)if(!J.has(X))return!1;return!0};function iR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var s1=Math.PI,Q6=2*s1,zV=Q6+s1,k3=Number.POSITIVE_INFINITY,_V=s1/180,Z6=s1/2,g9=s1/4,uR=s1*2/3,V2=Math.log10,H4=Math.sign;function R$(Q,J,X){return Math.abs(Q-J)<X}function PU(Q){let J=Math.round(Q);Q=R$(Q,J,Q/1000)?J:Q;let X=Math.pow(10,Math.floor(V2(Q))),q=Q/X;return(q<=1?1:q<=2?2:q<=5?5:10)*X}function tR(Q){let J=[],X=Math.sqrt(Q),q;for(q=1;q<X;q++)if(Q%q===0)J.push(q),J.push(Q/q);if(X===(X|0))J.push(X);return J.sort((N,K)=>N-K).pop(),J}function LV(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function z$(Q){return!LV(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function eR(Q,J){let X=Math.round(Q);return X-J<=Q&&X+J>=Q}function TU(Q,J,X){let q,N,K;for(q=0,N=Q.length;q<N;q++)if(K=Q[q][X],!isNaN(K))J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}function A2(Q){return Q*(s1/180)}function h3(Q){return Q*(180/s1)}function CU(Q){if(!x1(Q))return;let J=1,X=0;while(Math.round(Q*J)/J!==Q)J*=10,X++;return X}function $z(Q,J){let X=J.x-Q.x,q=J.y-Q.y,N=Math.sqrt(X*X+q*q),K=Math.atan2(q,X);if(K<-0.5*s1)K+=Q6;return{angle:K,distance:N}}function f3(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function PV(Q,J){return(Q-J+zV)%Q6-s1}function $6(Q){return(Q%Q6+Q6)%Q6}function IU(Q,J,X,q){let N=$6(Q),K=$6(J),H=$6(X),F=$6(K-N),M=$6(H-N),w=$6(N-K),R=$6(N-H);return N===K||N===H||q&&K===H||F>M&&w<R}function J6(Q,J,X){return Math.max(J,Math.min(X,Q))}function Zz(Q){return J6(Q,-32768,32767)}function E2(Q,J,X,q=0.000001){return Q>=Math.min(J,X)-q&&Q<=Math.max(J,X)+q}function u3(Q,J,X){X=X||((H)=>Q[H]<J);let q=Q.length-1,N=0,K;while(q-N>1)if(K=N+q>>1,X(K))N=K;else q=K;return{lo:N,hi:q}}var v8=(Q,J,X,q)=>u3(Q,X,q?(N)=>{let K=Q[N][J];return K<X||K===X&&Q[N+1][J]===X}:(N)=>Q[N][J]<X),Qz=(Q,J,X)=>u3(Q,X,(q)=>Q[q][J]>=X);function Jz(Q,J,X){let q=0,N=Q.length;while(q<N&&Q[q]<J)q++;while(N>q&&Q[N-1]>X)N--;return q>0||N<Q.length?Q.slice(q,N):Q}var Gz=["push","pop","shift","splice","unshift"];function Xz(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),Gz.forEach((X)=>{let q="_onData"+g3(X),N=Q[X];Object.defineProperty(Q,X,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return Q._chartjs.listeners.forEach((F)=>{if(typeof F[q]==="function")F[q](...K)}),H}})})}function OU(Q,J){let X=Q._chartjs;if(!X)return;let q=X.listeners,N=q.indexOf(J);if(N!==-1)q.splice(N,1);if(q.length>0)return;Gz.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function VU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var AU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function EU(Q,J){let X=[],q=!1;return function(...N){if(X=N,!q)q=!0,AU.call(window,()=>{q=!1,Q.apply(J,X)})}}function qz(Q,J){let X;return function(...q){if(J)clearTimeout(X),X=setTimeout(Q,J,q);else Q.apply(this,q);return J}}var x3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",C5=(Q,J,X)=>Q==="start"?J:Q==="end"?X:(J+X)/2,Yz=(Q,J,X,q)=>{return Q===(q?"left":"right")?X:Q==="center"?(J+X)/2:J};function Nz(Q,J,X){let q=J.length,N=0,K=q;if(Q._sorted){let{iScale:H,vScale:F,_parsed:M}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,R=H.axis,{min:_,max:P,minDefined:I,maxDefined:A}=H.getUserBounds();if(I){if(N=Math.min(v8(M,R,_).lo,X?q:v8(J,R,H.getPixelForValue(_)).lo),w){let V=M.slice(0,N+1).reverse().findIndex((O)=>!J1(O[F.axis]));N-=Math.max(0,V)}N=J6(N,0,q-1)}if(A){let V=Math.max(v8(M,H.axis,P,!0).hi+1,X?0:v8(J,R,H.getPixelForValue(P),!0).hi+1);if(w){let O=M.slice(V-1).findIndex((D)=>!J1(D[F.axis]));V+=Math.max(0,O)}K=J6(V,N,q)-N}else K=q-N}return{start:N,count:K}}function Uz(Q){let{xScale:J,yScale:X,_scaleRanges:q}=Q,N={xmin:J.min,xmax:J.max,ymin:X.min,ymax:X.max};if(!q)return Q._scaleRanges=N,!0;let K=q.xmin!==J.min||q.xmax!==J.max||q.ymin!==X.min||q.ymax!==X.max;return Object.assign(q,N),K}var j3=(Q)=>Q===0||Q===1,xR=(Q,J,X)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*Q6/X)),mR=(Q,J,X)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*Q6/X)+1,H$={linear:(Q)=>Q,easeInQuad:(Q)=>Q*Q,easeOutQuad:(Q)=>-Q*(Q-2),easeInOutQuad:(Q)=>(Q/=0.5)<1?0.5*Q*Q:-0.5*(--Q*(Q-2)-1),easeInCubic:(Q)=>Q*Q*Q,easeOutCubic:(Q)=>(Q-=1)*Q*Q+1,easeInOutCubic:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q:0.5*((Q-=2)*Q*Q+2),easeInQuart:(Q)=>Q*Q*Q*Q,easeOutQuart:(Q)=>-((Q-=1)*Q*Q*Q-1),easeInOutQuart:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q:-0.5*((Q-=2)*Q*Q*Q-2),easeInQuint:(Q)=>Q*Q*Q*Q*Q,easeOutQuint:(Q)=>(Q-=1)*Q*Q*Q*Q+1,easeInOutQuint:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q*Q:0.5*((Q-=2)*Q*Q*Q*Q+2),easeInSine:(Q)=>-Math.cos(Q*Z6)+1,easeOutSine:(Q)=>Math.sin(Q*Z6),easeInOutSine:(Q)=>-0.5*(Math.cos(s1*Q)-1),easeInExpo:(Q)=>Q===0?0:Math.pow(2,10*(Q-1)),easeOutExpo:(Q)=>Q===1?1:-Math.pow(2,-10*Q)+1,easeInOutExpo:(Q)=>j3(Q)?Q:Q<0.5?0.5*Math.pow(2,10*(Q*2-1)):0.5*(-Math.pow(2,-10*(Q*2-1))+2),easeInCirc:(Q)=>Q>=1?Q:-(Math.sqrt(1-Q*Q)-1),easeOutCirc:(Q)=>Math.sqrt(1-(Q-=1)*Q),easeInOutCirc:(Q)=>(Q/=0.5)<1?-0.5*(Math.sqrt(1-Q*Q)-1):0.5*(Math.sqrt(1-(Q-=2)*Q)+1),easeInElastic:(Q)=>j3(Q)?Q:xR(Q,0.075,0.3),easeOutElastic:(Q)=>j3(Q)?Q:mR(Q,0.075,0.3),easeInOutElastic(Q){return j3(Q)?Q:Q<0.5?0.5*xR(Q*2,0.1125,0.45):0.5+0.5*mR(Q*2-1,0.1125,0.45)},easeInBack(Q){return Q*Q*(2.70158*Q-1.70158)},easeOutBack(Q){return(Q-=1)*Q*(2.70158*Q+1.70158)+1},easeInOutBack(Q){let J=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((J*=1.525)+1)*Q-J));return 0.5*((Q-=2)*Q*(((J*=1.525)+1)*Q+J)+2)},easeInBounce:(Q)=>1-H$.easeOutBounce(1-Q),easeOutBounce(Q){if(Q<0.36363636363636365)return 7.5625*Q*Q;if(Q<0.7272727272727273)return 7.5625*(Q-=0.5454545454545454)*Q+0.75;if(Q<0.9090909090909091)return 7.5625*(Q-=0.8181818181818182)*Q+0.9375;return 7.5625*(Q-=0.9545454545454546)*Q+0.984375},easeInOutBounce:(Q)=>Q<0.5?H$.easeInBounce(Q*2)*0.5:H$.easeOutBounce(Q*2-1)*0.5+0.5};function SU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function jU(Q){return SU(Q)?Q:new B$(Q)}function zU(Q){return SU(Q)?Q:new B$(Q).saturate(0.5).darken(0.1).hexString()}var TV=["x","y","borderWidth","radius","tension"],CV=["color","borderColor","backgroundColor"];function IV(Q){Q.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),Q.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(J)=>J!=="onProgress"&&J!=="onComplete"&&J!=="fn"}),Q.set("animations",{colors:{type:"color",properties:CV},numbers:{type:"number",properties:TV}}),Q.describe("animations",{_fallback:"animation"}),Q.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(J)=>J|0}}}})}function OV(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var dR=new Map;function VV(Q,J){J=J||{};let X=Q+JSON.stringify(J),q=dR.get(X);if(!q)q=new Intl.NumberFormat(Q,J),dR.set(X,q);return q}function m3(Q,J,X){return VV(J,X).format(Q)}var Kz={values(Q){return j1(Q)?Q:""+Q},numeric(Q,J,X){if(Q===0)return"0";let q=this.chart.options.locale,N,K=Q;if(X.length>1){let w=Math.max(Math.abs(X[0].value),Math.abs(X[X.length-1].value));if(w<0.0001||w>1000000000000000)N="scientific";K=AV(Q,X)}let H=V2(Math.abs(K)),F=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),M={notation:N,minimumFractionDigits:F,maximumFractionDigits:F};return Object.assign(M,this.options.ticks.format),m3(Q,q,M)},logarithmic(Q,J,X){if(Q===0)return"0";let q=X[J].significand||Q/Math.pow(10,Math.floor(V2(Q)));if([1,2,3,5,10,15].includes(q)||J>0.8*X.length)return Kz.numeric.call(this,Q,J,X);return""}};function AV(Q,J){let X=J.length>3?J[2].value-J[1].value:J[1].value-J[0].value;if(Math.abs(X)>=1&&Q!==Math.floor(Q))X=Q-Math.floor(Q);return X}var RQ={formatters:Kz};function EV(Q){Q.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(J,X)=>X.lineWidth,tickColor:(J,X)=>X.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:RQ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Q.route("scale.ticks","color","","color"),Q.route("scale.grid","color","","borderColor"),Q.route("scale.border","color","","borderColor"),Q.route("scale.title","color","","color"),Q.describe("scale",{_fallback:!1,_scriptable:(J)=>!J.startsWith("before")&&!J.startsWith("after")&&J!=="callback"&&J!=="parser",_indexable:(J)=>J!=="borderDash"&&J!=="tickBorderDash"&&J!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(J)=>J!=="backdropPadding"&&J!=="callback",_indexable:(J)=>J!=="backdropPadding"})}var k8=Object.create(null),d3=Object.create(null);function MQ(Q,J){if(!J)return Q;let X=J.split(".");for(let q=0,N=X.length;q<N;++q){let K=X[q];Q=Q[K]||(Q[K]=Object.create(null))}return Q}function _U(Q,J,X){if(typeof J==="string")return F$(MQ(Q,J),X);return F$(MQ(Q,""),J)}class Bz{constructor(Q,J){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(X)=>X.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(X,q)=>zU(q.backgroundColor),this.hoverBorderColor=(X,q)=>zU(q.borderColor),this.hoverColor=(X,q)=>zU(q.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(Q),this.apply(J)}set(Q,J){return _U(this,Q,J)}get(Q){return MQ(this,Q)}describe(Q,J){return _U(d3,Q,J)}override(Q,J){return _U(k8,Q,J)}route(Q,J,X,q){let N=MQ(this,Q),K=MQ(this,X),H="_"+J;Object.defineProperties(N,{[H]:{value:N[J],writable:!0},[J]:{enumerable:!0,get(){let F=this[H],M=K[q];if($1(F))return Object.assign({},M,F);return n0(F,M)},set(F){this[H]=F}}})}apply(Q){Q.forEach((J)=>J(this))}}var m1=new Bz({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[IV,OV,EV]);function SV(Q){if(!Q||J1(Q.size)||J1(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function WQ(Q,J,X,q,N){let K=J[N];if(!K)K=J[N]=Q.measureText(N).width,X.push(N);if(K>q)q=K;return q}function Hz(Q,J,X,q){q=q||{};let N=q.data=q.data||{},K=q.garbageCollect=q.garbageCollect||[];if(q.font!==J)N=q.data={},K=q.garbageCollect=[],q.font=J;Q.save(),Q.font=J;let H=0,F=X.length,M,w,R,_,P;for(M=0;M<F;M++)if(_=X[M],_!==void 0&&_!==null&&!j1(_))H=WQ(Q,N,K,H,_);else if(j1(_)){for(w=0,R=_.length;w<R;w++)if(P=_[w],P!==void 0&&P!==null&&!j1(P))H=WQ(Q,N,K,H,P)}Q.restore();let I=K.length/2;if(I>X.length){for(M=0;M<I;M++)delete N[K[M]];K.splice(0,I)}return H}function f8(Q,J,X){let q=Q.currentDevicePixelRatio,N=X!==0?Math.max(X/2,0.5):0;return Math.round((J-N)*q)/q+N}function DU(Q,J){if(!J&&!Q)return;J=J||Q.getContext("2d"),J.save(),J.resetTransform(),J.clearRect(0,0,Q.width,Q.height),J.restore()}function p3(Q,J,X,q){vU(Q,J,X,q,null)}function vU(Q,J,X,q,N){let K,H,F,M,w,R,_,P,I=J.pointStyle,A=J.rotation,V=J.radius,O=(A||0)*_V;if(I&&typeof I==="object"){if(K=I.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(X,q),Q.rotate(O),Q.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),Q.restore();return}}if(isNaN(V)||V<=0)return;switch(Q.beginPath(),I){default:if(N)Q.ellipse(X,q,N/2,V,0,0,Q6);else Q.arc(X,q,V,0,Q6);Q.closePath();break;case"triangle":R=N?N/2:V,Q.moveTo(X+Math.sin(O)*R,q-Math.cos(O)*V),O+=uR,Q.lineTo(X+Math.sin(O)*R,q-Math.cos(O)*V),O+=uR,Q.lineTo(X+Math.sin(O)*R,q-Math.cos(O)*V),Q.closePath();break;case"rectRounded":w=V*0.516,M=V-w,H=Math.cos(O+g9)*M,_=Math.cos(O+g9)*(N?N/2-w:M),F=Math.sin(O+g9)*M,P=Math.sin(O+g9)*(N?N/2-w:M),Q.arc(X-_,q-F,w,O-s1,O-Z6),Q.arc(X+P,q-H,w,O-Z6,O),Q.arc(X+_,q+F,w,O,O+Z6),Q.arc(X-P,q+H,w,O+Z6,O+s1),Q.closePath();break;case"rect":if(!A){M=Math.SQRT1_2*V,R=N?N/2:M,Q.rect(X-R,q-M,2*R,2*M);break}O+=g9;case"rectRot":_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+P,q-H),Q.lineTo(X+_,q+F),Q.lineTo(X-P,q+H),Q.closePath();break;case"crossRot":O+=g9;case"cross":_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+_,q+F),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"star":_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+_,q+F),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H),O+=g9,_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+_,q+F),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"line":H=N?N/2:Math.cos(O)*V,F=Math.sin(O)*V,Q.moveTo(X-H,q-F),Q.lineTo(X+H,q+F);break;case"dash":Q.moveTo(X,q),Q.lineTo(X+Math.cos(O)*(N?N/2:V),q+Math.sin(O)*V);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function p4(Q,J,X){return X=X||0.5,!J||Q&&Q.x>J.left-X&&Q.x<J.right+X&&Q.y>J.top-X&&Q.y<J.bottom+X}function zQ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function _Q(Q){Q.restore()}function Fz(Q,J,X,q,N){if(!J)return Q.lineTo(X.x,X.y);if(N==="middle"){let K=(J.x+X.x)/2;Q.lineTo(K,J.y),Q.lineTo(K,X.y)}else if(N==="after"!==!!q)Q.lineTo(J.x,X.y);else Q.lineTo(X.x,J.y);Q.lineTo(X.x,X.y)}function Mz(Q,J,X,q){if(!J)return Q.lineTo(X.x,X.y);Q.bezierCurveTo(q?J.cp1x:J.cp2x,q?J.cp1y:J.cp2y,q?X.cp2x:X.cp1x,q?X.cp2y:X.cp1y,X.x,X.y)}function jV(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!J1(J.rotation))Q.rotate(J.rotation);if(J.color)Q.fillStyle=J.color;if(J.textAlign)Q.textAlign=J.textAlign;if(J.textBaseline)Q.textBaseline=J.textBaseline}function DV(Q,J,X,q,N){if(N.strikethrough||N.underline){let K=Q.measureText(q),H=J-K.actualBoundingBoxLeft,F=J+K.actualBoundingBoxRight,M=X-K.actualBoundingBoxAscent,w=X+K.actualBoundingBoxDescent,R=N.strikethrough?(M+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,R),Q.lineTo(F,R),Q.stroke()}}function vV(Q,J){let X=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=X}function y8(Q,J,X,q,N,K={}){let H=j1(J)?J:[J],F=K.strokeWidth>0&&K.strokeColor!=="",M,w;Q.save(),Q.font=N.string,jV(Q,K);for(M=0;M<H.length;++M){if(w=H[M],K.backdrop)vV(Q,K.backdrop);if(F){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!J1(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,X,q,K.maxWidth)}Q.fillText(w,X,q,K.maxWidth),DV(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function _$(Q,J){let{x:X,y:q,w:N,h:K,radius:H}=J;Q.arc(X+H.topLeft,q+H.topLeft,H.topLeft,1.5*s1,s1,!0),Q.lineTo(X,q+K-H.bottomLeft),Q.arc(X+H.bottomLeft,q+K-H.bottomLeft,H.bottomLeft,s1,Z6,!0),Q.lineTo(X+N-H.bottomRight,q+K),Q.arc(X+N-H.bottomRight,q+K-H.bottomRight,H.bottomRight,Z6,0,!0),Q.lineTo(X+N,q+H.topRight),Q.arc(X+N-H.topRight,q+H.topRight,H.topRight,0,-Z6,!0),Q.lineTo(X+H.topLeft,q)}var bV=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,kV=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function fV(Q,J){let X=(""+Q).match(bV);if(!X||X[1]==="normal")return J*1.2;switch(Q=+X[2],X[3]){case"px":return Q;case"%":Q/=100;break}return J*Q}var yV=(Q)=>+Q||0;function bU(Q,J){let X={},q=$1(J),N=q?Object.keys(J):J,K=$1(Q)?q?(H)=>n0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=yV(K(H));return X}function kU(Q){return bU(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function g8(Q){return bU(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function I5(Q){let J=kU(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function X5(Q,J){Q=Q||{},J=J||m1.font;let X=n0(Q.size,J.size);if(typeof X==="string")X=parseInt(X,10);let q=n0(Q.style,J.style);if(q&&!(""+q).match(kV))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:n0(Q.family,J.family),lineHeight:fV(n0(Q.lineHeight,J.lineHeight),X),size:X,style:q,weight:n0(Q.weight,J.weight),string:""};return N.string=SV(N),N}function LQ(Q,J,X,q){let N=!0,K,H,F;for(K=0,H=Q.length;K<H;++K){if(F=Q[K],F===void 0)continue;if(J!==void 0&&typeof F==="function")F=F(J),N=!1;if(X!==void 0&&j1(F))F=F[X%F.length],N=!1;if(F!==void 0){if(q&&!N)q.cacheable=!1;return F}}}function Wz(Q,J,X){let{min:q,max:N}=Q,K=oR(J,(N-q)/2),H=(F,M)=>X&&F===0?0:F+M;return{min:H(q,-Math.abs(K)),max:H(N,K)}}function S2(Q,J){return Object.assign(Object.create(Q),J)}function c3(Q,J=[""],X,q,N=()=>Q[0]){let K=X||Q;if(typeof q>"u")q=zz("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:q,_getTarget:N,override:(F)=>c3([F,...Q],J,K,q)};return new Proxy(H,{deleteProperty(F,M){return delete F[M],delete F._keys,delete Q[0][M],!0},get(F,M){return wz(F,M,()=>cV(M,J,Q,F))},getOwnPropertyDescriptor(F,M){return Reflect.getOwnPropertyDescriptor(F._scopes[0],M)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(F,M){return cR(F).includes(M)},ownKeys(F){return cR(F)},set(F,M,w){let R=F._storage||(F._storage=N());return F[M]=R[M]=w,delete F._keys,!0}})}function u9(Q,J,X,q){let N={_cacheable:!1,_proxy:Q,_context:J,_subProxy:X,_stack:new Set,_descriptors:fU(Q,q),setContext:(K)=>u9(Q,K,X,q),override:(K)=>u9(Q.override(K),J,X,q)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,F){return wz(K,H,()=>hV(K,H,F))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(Q,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(Q,H)},getPrototypeOf(){return Reflect.getPrototypeOf(Q)},has(K,H){return Reflect.has(Q,H)},ownKeys(){return Reflect.ownKeys(Q)},set(K,H,F){return Q[H]=F,delete K[H],!0}})}function fU(Q,J={scriptable:!0,indexable:!0}){let{_scriptable:X=J.scriptable,_indexable:q=J.indexable,_allKeys:N=J.allKeys}=Q;return{allKeys:N,scriptable:X,indexable:q,isScriptable:O2(X)?X:()=>X,isIndexable:O2(q)?q:()=>q}}var gV=(Q,J)=>Q?Q+g3(J):J,yU=(Q,J)=>$1(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function wz(Q,J,X){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let q=X();return Q[J]=q,q}function hV(Q,J,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,F=q[J];if(O2(F)&&H.isScriptable(J))F=uV(J,F,Q,X);if(j1(F)&&F.length)F=xV(J,F,Q,H.isIndexable);if(yU(J,F))F=u9(F,N,K&&K[J],H);return F}function uV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_stack:F}=X;if(F.has(Q))throw Error("Recursion detected: "+Array.from(F).join("->")+"->"+Q);F.add(Q);let M=J(K,H||q);if(F.delete(Q),yU(Q,M))M=gU(N._scopes,N,Q,M);return M}function xV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_descriptors:F}=X;if(typeof K.index<"u"&&q(Q))return J[K.index%J.length];else if($1(J[0])){let M=J,w=N._scopes.filter((R)=>R!==M);J=[];for(let R of M){let _=gU(w,N,Q,R);J.push(u9(_,K,H&&H[Q],F))}}return J}function Rz(Q,J,X){return O2(Q)?Q(J,X):Q}var mV=(Q,J)=>Q===!0?J:typeof Q==="string"?x9(J,Q):void 0;function dV(Q,J,X,q,N){for(let K of J){let H=mV(X,K);if(H){Q.add(H);let F=Rz(H._fallback,X,N);if(typeof F<"u"&&F!==X&&F!==q)return F}else if(H===!1&&typeof q<"u"&&X!==q)return null}return!1}function gU(Q,J,X,q){let N=J._rootScopes,K=Rz(J._fallback,X,q),H=[...Q,...N],F=new Set;F.add(q);let M=pR(F,H,X,K||X,q);if(M===null)return!1;if(typeof K<"u"&&K!==X){if(M=pR(F,H,K,M,q),M===null)return!1}return c3(Array.from(F),[""],N,K,()=>pV(J,X,q))}function pR(Q,J,X,q,N){while(X)X=dV(Q,J,X,q,N);return X}function pV(Q,J,X){let q=Q._getTarget();if(!(J in q))q[J]={};let N=q[J];if(j1(N)&&$1(X))return X;return N||{}}function cV(Q,J,X,q){let N;for(let K of J)if(N=zz(gV(K,Q),X),typeof N<"u")return yU(Q,N)?gU(X,q,Q,N):N}function zz(Q,J){for(let X of J){if(!X)continue;let q=X[Q];if(typeof q<"u")return q}}function cR(Q){let J=Q._keys;if(!J)J=Q._keys=lV(Q._scopes);return J}function lV(Q){let J=new Set;for(let X of Q)for(let q of Object.keys(X).filter((N)=>!N.startsWith("_")))J.add(q);return Array.from(J)}var rV=Number.EPSILON||0.00000000000001,M$=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],_z=(Q)=>Q==="x"?"y":"x";function nV(Q,J,X,q){let N=Q.skip?J:Q,K=J,H=X.skip?J:X,F=f3(K,N),M=f3(H,K),w=F/(F+M),R=M/(F+M);w=isNaN(w)?0:w,R=isNaN(R)?0:R;let _=q*w,P=q*R;return{previous:{x:K.x-_*(H.x-N.x),y:K.y-_*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function sV(Q,J,X){let q=Q.length,N,K,H,F,M,w=M$(Q,0);for(let R=0;R<q-1;++R){if(M=w,w=M$(Q,R+1),!M||!w)continue;if(R$(J[R],0,rV)){X[R]=X[R+1]=0;continue}if(N=X[R]/J[R],K=X[R+1]/J[R],F=Math.pow(N,2)+Math.pow(K,2),F<=9)continue;H=3/Math.sqrt(F),X[R]=N*H*J[R],X[R+1]=K*H*J[R]}}function oV(Q,J,X="x"){let q=_z(X),N=Q.length,K,H,F,M=M$(Q,0);for(let w=0;w<N;++w){if(H=F,F=M,M=M$(Q,w+1),!F)continue;let R=F[X],_=F[q];if(H)K=(R-H[X])/3,F[`cp1${X}`]=R-K,F[`cp1${q}`]=_-K*J[w];if(M)K=(M[X]-R)/3,F[`cp2${X}`]=R+K,F[`cp2${q}`]=_+K*J[w]}}function aV(Q,J="x"){let X=_z(J),q=Q.length,N=Array(q).fill(0),K=Array(q),H,F,M,w=M$(Q,0);for(H=0;H<q;++H){if(F=M,M=w,w=M$(Q,H+1),!M)continue;if(w){let R=w[J]-M[J];N[H]=R!==0?(w[X]-M[X])/R:0}K[H]=!F?N[H]:!w?N[H-1]:H4(N[H-1])!==H4(N[H])?0:(N[H-1]+N[H])/2}sV(Q,N,K),oV(Q,K,J)}function D3(Q,J,X){return Math.max(Math.min(Q,X),J)}function iV(Q,J){let X,q,N,K,H,F=p4(Q[0],J);for(X=0,q=Q.length;X<q;++X){if(H=K,K=F,F=X<q-1&&p4(Q[X+1],J),!K)continue;if(N=Q[X],H)N.cp1x=D3(N.cp1x,J.left,J.right),N.cp1y=D3(N.cp1y,J.top,J.bottom);if(F)N.cp2x=D3(N.cp2x,J.left,J.right),N.cp2y=D3(N.cp2y,J.top,J.bottom)}}function Lz(Q,J,X,q,N){let K,H,F,M;if(J.spanGaps)Q=Q.filter((w)=>!w.skip);if(J.cubicInterpolationMode==="monotone")aV(Q,N);else{let w=q?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)F=Q[K],M=nV(w,F,Q[Math.min(K+1,H-(q?0:1))%H],J.tension),F.cp1x=M.previous.x,F.cp1y=M.previous.y,F.cp2x=M.next.x,F.cp2y=M.next.y,w=F}if(J.capBezierPoints)iV(Q,X)}function l3(){return typeof window<"u"&&typeof document<"u"}function r3(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function y3(Q,J,X){let q;if(typeof Q==="string"){if(q=parseInt(Q,10),Q.indexOf("%")!==-1)q=q/100*J.parentNode[X]}else q=Q;return q}var n3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function tV(Q,J){return n3(Q).getPropertyValue(J)}var eV=["top","right","bottom","left"];function h9(Q,J,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=eV[N];q[K]=parseFloat(Q[J+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var $A=(Q,J,X)=>(Q>0||J>0)&&(!X||!X.shadowRoot);function ZA(Q,J){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,F,M;if($A(N,K,Q.target))F=N,M=K;else{let w=J.getBoundingClientRect();F=q.clientX-w.left,M=q.clientY-w.top,H=!0}return{x:F,y:M,box:H}}function h8(Q,J){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=J,N=n3(X),K=N.boxSizing==="border-box",H=h9(N,"padding"),F=h9(N,"border","width"),{x:M,y:w,box:R}=ZA(Q,X),_=H.left+(R&&F.left),P=H.top+(R&&F.top),{width:I,height:A}=J;if(K)I-=H.width+F.width,A-=H.height+F.height;return{x:Math.round((M-_)/I*X.width/q),y:Math.round((w-P)/A*X.height/q)}}function QA(Q,J,X){let q,N;if(J===void 0||X===void 0){let K=Q&&r3(Q);if(!K)J=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),F=n3(K),M=h9(F,"border","width"),w=h9(F,"padding");J=H.width-w.width-M.width,X=H.height-w.height-M.height,q=y3(F.maxWidth,K,"clientWidth"),N=y3(F.maxHeight,K,"clientHeight")}}return{width:J,height:X,maxWidth:q||k3,maxHeight:N||k3}}var b8=(Q)=>Math.round(Q*10)/10;function Pz(Q,J,X,q){let N=n3(Q),K=h9(N,"margin"),H=y3(N.maxWidth,Q,"clientWidth")||k3,F=y3(N.maxHeight,Q,"clientHeight")||k3,M=QA(Q,J,X),{width:w,height:R}=M;if(N.boxSizing==="content-box"){let P=h9(N,"border","width"),I=h9(N,"padding");w-=I.width+P.width,R-=I.height+P.height}if(w=Math.max(0,w-K.width),R=Math.max(0,q?w/q:R-K.height),w=b8(Math.min(w,H,M.maxWidth)),R=b8(Math.min(R,F,M.maxHeight)),w&&!R)R=b8(w/2);if((J!==void 0||X!==void 0)&&q&&M.height&&R>M.height)R=M.height,w=b8(Math.floor(R*q));return{width:w,height:R}}function hU(Q,J,X){let q=J||1,N=b8(Q.height*q),K=b8(Q.width*q);Q.height=b8(Q.height),Q.width=b8(Q.width);let H=Q.canvas;if(H.style&&(X||!H.style.height&&!H.style.width))H.style.height=`${Q.height}px`,H.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==q||H.height!==N||H.width!==K)return Q.currentDevicePixelRatio=q,H.height=N,H.width=K,Q.ctx.setTransform(q,0,0,q,0,0),!0;return!1}var Tz=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(l3())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function uU(Q,J){let X=tV(Q,J),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function D8(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:Q.y+X*(J.y-Q.y)}}function Cz(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:q==="middle"?X<0.5?Q.y:J.y:q==="after"?X<1?Q.y:J.y:X>0?J.y:Q.y}}function Iz(Q,J,X,q){let N={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=D8(Q,N,X),F=D8(N,K,X),M=D8(K,J,X),w=D8(H,F,X),R=D8(F,M,X);return D8(w,R,X)}var JA=function(Q,J){return{x(X){return Q+Q+J-X},setWidth(X){J=X},textAlign(X){if(X==="center")return X;return X==="right"?"left":"right"},xPlus(X,q){return X-q},leftForLtr(X,q){return X-q}}},GA=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function m9(Q,J,X){return Q?JA(J,X):GA()}function xU(Q,J){let X,q;if(J==="ltr"||J==="rtl")X=Q.canvas.style,q=[X.getPropertyValue("direction"),X.getPropertyPriority("direction")],X.setProperty("direction",J,"important"),Q.prevTextDirection=q}function mU(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function Oz(Q){if(Q==="angle")return{between:IU,compare:PV,normalize:$6};return{between:E2,compare:(J,X)=>J-X,normalize:(J)=>J}}function lR({start:Q,end:J,count:X,loop:q,style:N}){return{start:Q%X,end:J%X,loop:q&&(J-Q+1)%X===0,style:N}}function XA(Q,J,X){let{property:q,start:N,end:K}=X,{between:H,normalize:F}=Oz(q),M=J.length,{start:w,end:R,loop:_}=Q,P,I;if(_){w+=M,R+=M;for(P=0,I=M;P<I;++P){if(!H(F(J[w%M][q]),N,K))break;w--,R--}w%=M,R%=M}if(R<w)R+=M;return{start:w,end:R,loop:_,style:Q.style}}function dU(Q,J,X){if(!X)return[Q];let{property:q,start:N,end:K}=X,H=J.length,{compare:F,between:M,normalize:w}=Oz(q),{start:R,end:_,loop:P,style:I}=XA(Q,J,X),A=[],V=!1,O=null,D,h,p,s=()=>M(N,p,D)&&F(N,p)!==0,a=()=>F(K,D)===0||M(K,p,D),J0=()=>V||s(),t=()=>!V||a();for(let i=R,Y0=R;i<=_;++i){if(h=J[i%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(V=M(D,N,K),O===null&&J0())O=F(D,N)===0?i:Y0;if(O!==null&&t())A.push(lR({start:O,end:i,loop:P,count:H,style:I})),O=null;Y0=i,p=D}if(O!==null)A.push(lR({start:O,end:_,loop:P,count:H,style:I}));return A}function pU(Q,J){let X=[],q=Q.segments;for(let N=0;N<q.length;N++){let K=dU(q[N],Q.points,J);if(K.length)X.push(...K)}return X}function qA(Q,J,X,q){let N=0,K=J-1;if(X&&!q)while(N<J&&!Q[N].skip)N++;while(N<J&&Q[N].skip)N++;if(N%=J,X)K+=N;while(K>N&&Q[K%J].skip)K--;return K%=J,{start:N,end:K}}function YA(Q,J,X,q){let N=Q.length,K=[],H=J,F=Q[J],M;for(M=J+1;M<=X;++M){let w=Q[M%N];if(w.skip||w.stop){if(!F.skip)q=!1,K.push({start:J%N,end:(M-1)%N,loop:q}),J=H=w.stop?M:null}else if(H=M,F.skip)J=M;F=w}if(H!==null)K.push({start:J%N,end:H%N,loop:q});return K}function Vz(Q,J){let X=Q.points,q=Q.options.spanGaps,N=X.length;if(!N)return[];let K=!!Q._loop,{start:H,end:F}=qA(X,N,K,q);if(q===!0)return rR(Q,[{start:H,end:F,loop:K}],X,J);let M=F<H?F+N:F,w=!!Q._fullLoop&&H===0&&F===N-1;return rR(Q,YA(X,H,M,w),X,J)}function rR(Q,J,X,q){if(!q||!q.setContext||!X)return J;return NA(Q,J,X,q)}function NA(Q,J,X,q){let N=Q._chart.getContext(),K=nR(Q.options),{_datasetIndex:H,options:{spanGaps:F}}=Q,M=X.length,w=[],R=K,_=J[0].start,P=_;function I(A,V,O,D){let h=F?-1:1;if(A===V)return;A+=M;while(X[A%M].skip)A-=h;while(X[V%M].skip)V+=h;if(A%M!==V%M)w.push({start:A%M,end:V%M,loop:O,style:D}),R=D,_=V%M}for(let A of J){_=F?_:A.start;let V=X[_%M],O;for(P=_+1;P<=A.end;P++){let D=X[P%M];if(O=nR(q.setContext(S2(N,{type:"segment",p0:V,p1:D,p0DataIndex:(P-1)%M,p1DataIndex:P%M,datasetIndex:H}))),UA(O,R))I(_,P-1,A.loop,R);V=D,R=O}if(_<P-1)I(_,P-1,A.loop,R)}return w}function nR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function UA(Q,J){if(!J)return!1;let X=[],q=function(N,K){if(!SU(K))return K;if(!X.includes(K))X.push(K);return X.indexOf(K)};return JSON.stringify(Q,q)!==JSON.stringify(J,q)}function v3(Q,J,X){return Q.options.clip?Q[X]:J[X]}function KA(Q,J){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:v3(X,J,"left"),right:v3(X,J,"right"),top:v3(q,J,"top"),bottom:v3(q,J,"bottom")};return J}function cU(Q,J){let X=J._clip;if(X.disabled)return!1;let q=KA(J,Q.chartArea);return{left:X.left===!1?0:q.left-(X.left===!0?0:X.left),right:X.right===!1?Q.width:q.right+(X.right===!0?0:X.right),top:X.top===!1?0:q.top-(X.top===!0?0:X.top),bottom:X.bottom===!1?Q.height:q.bottom+(X.bottom===!0?0:X.bottom)}}/*!
|
|
250
|
+
*/function c4(){}var sR=(()=>{let Q=0;return()=>Q++})();function J1(Q){return Q===null||Q===void 0}function j1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let J=Object.prototype.toString.call(Q);if(J.slice(0,7)==="[object"&&J.slice(-6)==="Array]")return!0;return!1}function $1(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function x1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function G6(Q,J){return x1(Q)?Q:J}function n0(Q,J){return typeof Q>"u"?J:Q}var oR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function V1(Q,J,X){if(Q&&typeof Q.call==="function")return Q.apply(X,J)}function W1(Q,J,X,q){let N,K,H;if(j1(Q))if(K=Q.length,q)for(N=K-1;N>=0;N--)J.call(X,Q[N],N);else for(N=0;N<K;N++)J.call(X,Q[N],N);else if($1(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)J.call(X,Q[H[N]],H[N])}}function wQ(Q,J){let X,q,N,K;if(!Q||!J||Q.length!==J.length)return!1;for(X=0,q=Q.length;X<q;++X)if(N=Q[X],K=J[X],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function b3(Q){if(j1(Q))return Q.map(b3);if($1(Q)){let J=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)J[X[N]]=b3(Q[X[N]]);return J}return Q}function aR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function MV(Q,J,X,q){if(!aR(Q))return;let N=J[Q],K=X[Q];if($1(N)&&$1(K))F$(N,K,q);else J[Q]=b3(K)}function F$(Q,J,X){let q=j1(J)?J:[J],N=q.length;if(!$1(Q))return Q;X=X||{};let K=X.merger||MV,H;for(let F=0;F<N;++F){if(H=q[F],!$1(H))continue;let M=Object.keys(H);for(let w=0,R=M.length;w<R;++w)K(M[w],Q,H,X)}return Q}function W$(Q,J){return F$(Q,J,{merger:WV})}function WV(Q,J,X){if(!aR(Q))return;let q=J[Q],N=X[Q];if($1(q)&&$1(N))W$(q,N);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=b3(N)}var hR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function wV(Q){let J=Q.split("."),X=[],q="";for(let N of J)if(q+=N,q.endsWith("\\"))q=q.slice(0,-1)+".";else X.push(q),q="";return X}function RV(Q){let J=wV(Q);return(X)=>{for(let q of J){if(q==="")break;X=X&&X[q]}return X}}function x7(Q,J){return(hR[J]||(hR[J]=RV(J)))(Q)}function g3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var w$=(Q)=>typeof Q<"u",O2=(Q)=>typeof Q==="function",LU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let X of Q)if(!J.has(X))return!1;return!0};function iR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var s1=Math.PI,Q6=2*s1,zV=Q6+s1,k3=Number.POSITIVE_INFINITY,_V=s1/180,Z6=s1/2,g7=s1/4,uR=s1*2/3,V2=Math.log10,H4=Math.sign;function R$(Q,J,X){return Math.abs(Q-J)<X}function PU(Q){let J=Math.round(Q);Q=R$(Q,J,Q/1000)?J:Q;let X=Math.pow(10,Math.floor(V2(Q))),q=Q/X;return(q<=1?1:q<=2?2:q<=5?5:10)*X}function tR(Q){let J=[],X=Math.sqrt(Q),q;for(q=1;q<X;q++)if(Q%q===0)J.push(q),J.push(Q/q);if(X===(X|0))J.push(X);return J.sort((N,K)=>N-K).pop(),J}function LV(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function z$(Q){return!LV(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function eR(Q,J){let X=Math.round(Q);return X-J<=Q&&X+J>=Q}function TU(Q,J,X){let q,N,K;for(q=0,N=Q.length;q<N;q++)if(K=Q[q][X],!isNaN(K))J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}function A2(Q){return Q*(s1/180)}function h3(Q){return Q*(180/s1)}function CU(Q){if(!x1(Q))return;let J=1,X=0;while(Math.round(Q*J)/J!==Q)J*=10,X++;return X}function $z(Q,J){let X=J.x-Q.x,q=J.y-Q.y,N=Math.sqrt(X*X+q*q),K=Math.atan2(q,X);if(K<-0.5*s1)K+=Q6;return{angle:K,distance:N}}function f3(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function PV(Q,J){return(Q-J+zV)%Q6-s1}function $6(Q){return(Q%Q6+Q6)%Q6}function IU(Q,J,X,q){let N=$6(Q),K=$6(J),H=$6(X),F=$6(K-N),M=$6(H-N),w=$6(N-K),R=$6(N-H);return N===K||N===H||q&&K===H||F>M&&w<R}function J6(Q,J,X){return Math.max(J,Math.min(X,Q))}function Zz(Q){return J6(Q,-32768,32767)}function E2(Q,J,X,q=0.000001){return Q>=Math.min(J,X)-q&&Q<=Math.max(J,X)+q}function u3(Q,J,X){X=X||((H)=>Q[H]<J);let q=Q.length-1,N=0,K;while(q-N>1)if(K=N+q>>1,X(K))N=K;else q=K;return{lo:N,hi:q}}var v8=(Q,J,X,q)=>u3(Q,X,q?(N)=>{let K=Q[N][J];return K<X||K===X&&Q[N+1][J]===X}:(N)=>Q[N][J]<X),Qz=(Q,J,X)=>u3(Q,X,(q)=>Q[q][J]>=X);function Jz(Q,J,X){let q=0,N=Q.length;while(q<N&&Q[q]<J)q++;while(N>q&&Q[N-1]>X)N--;return q>0||N<Q.length?Q.slice(q,N):Q}var Gz=["push","pop","shift","splice","unshift"];function Xz(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),Gz.forEach((X)=>{let q="_onData"+g3(X),N=Q[X];Object.defineProperty(Q,X,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return Q._chartjs.listeners.forEach((F)=>{if(typeof F[q]==="function")F[q](...K)}),H}})})}function OU(Q,J){let X=Q._chartjs;if(!X)return;let q=X.listeners,N=q.indexOf(J);if(N!==-1)q.splice(N,1);if(q.length>0)return;Gz.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function VU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var AU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function EU(Q,J){let X=[],q=!1;return function(...N){if(X=N,!q)q=!0,AU.call(window,()=>{q=!1,Q.apply(J,X)})}}function qz(Q,J){let X;return function(...q){if(J)clearTimeout(X),X=setTimeout(Q,J,q);else Q.apply(this,q);return J}}var x3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",C5=(Q,J,X)=>Q==="start"?J:Q==="end"?X:(J+X)/2,Yz=(Q,J,X,q)=>{return Q===(q?"left":"right")?X:Q==="center"?(J+X)/2:J};function Nz(Q,J,X){let q=J.length,N=0,K=q;if(Q._sorted){let{iScale:H,vScale:F,_parsed:M}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,R=H.axis,{min:_,max:P,minDefined:I,maxDefined:A}=H.getUserBounds();if(I){if(N=Math.min(v8(M,R,_).lo,X?q:v8(J,R,H.getPixelForValue(_)).lo),w){let V=M.slice(0,N+1).reverse().findIndex((O)=>!J1(O[F.axis]));N-=Math.max(0,V)}N=J6(N,0,q-1)}if(A){let V=Math.max(v8(M,H.axis,P,!0).hi+1,X?0:v8(J,R,H.getPixelForValue(P),!0).hi+1);if(w){let O=M.slice(V-1).findIndex((D)=>!J1(D[F.axis]));V+=Math.max(0,O)}K=J6(V,N,q)-N}else K=q-N}return{start:N,count:K}}function Uz(Q){let{xScale:J,yScale:X,_scaleRanges:q}=Q,N={xmin:J.min,xmax:J.max,ymin:X.min,ymax:X.max};if(!q)return Q._scaleRanges=N,!0;let K=q.xmin!==J.min||q.xmax!==J.max||q.ymin!==X.min||q.ymax!==X.max;return Object.assign(q,N),K}var j3=(Q)=>Q===0||Q===1,xR=(Q,J,X)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*Q6/X)),mR=(Q,J,X)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*Q6/X)+1,H$={linear:(Q)=>Q,easeInQuad:(Q)=>Q*Q,easeOutQuad:(Q)=>-Q*(Q-2),easeInOutQuad:(Q)=>(Q/=0.5)<1?0.5*Q*Q:-0.5*(--Q*(Q-2)-1),easeInCubic:(Q)=>Q*Q*Q,easeOutCubic:(Q)=>(Q-=1)*Q*Q+1,easeInOutCubic:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q:0.5*((Q-=2)*Q*Q+2),easeInQuart:(Q)=>Q*Q*Q*Q,easeOutQuart:(Q)=>-((Q-=1)*Q*Q*Q-1),easeInOutQuart:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q:-0.5*((Q-=2)*Q*Q*Q-2),easeInQuint:(Q)=>Q*Q*Q*Q*Q,easeOutQuint:(Q)=>(Q-=1)*Q*Q*Q*Q+1,easeInOutQuint:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q*Q:0.5*((Q-=2)*Q*Q*Q*Q+2),easeInSine:(Q)=>-Math.cos(Q*Z6)+1,easeOutSine:(Q)=>Math.sin(Q*Z6),easeInOutSine:(Q)=>-0.5*(Math.cos(s1*Q)-1),easeInExpo:(Q)=>Q===0?0:Math.pow(2,10*(Q-1)),easeOutExpo:(Q)=>Q===1?1:-Math.pow(2,-10*Q)+1,easeInOutExpo:(Q)=>j3(Q)?Q:Q<0.5?0.5*Math.pow(2,10*(Q*2-1)):0.5*(-Math.pow(2,-10*(Q*2-1))+2),easeInCirc:(Q)=>Q>=1?Q:-(Math.sqrt(1-Q*Q)-1),easeOutCirc:(Q)=>Math.sqrt(1-(Q-=1)*Q),easeInOutCirc:(Q)=>(Q/=0.5)<1?-0.5*(Math.sqrt(1-Q*Q)-1):0.5*(Math.sqrt(1-(Q-=2)*Q)+1),easeInElastic:(Q)=>j3(Q)?Q:xR(Q,0.075,0.3),easeOutElastic:(Q)=>j3(Q)?Q:mR(Q,0.075,0.3),easeInOutElastic(Q){return j3(Q)?Q:Q<0.5?0.5*xR(Q*2,0.1125,0.45):0.5+0.5*mR(Q*2-1,0.1125,0.45)},easeInBack(Q){return Q*Q*(2.70158*Q-1.70158)},easeOutBack(Q){return(Q-=1)*Q*(2.70158*Q+1.70158)+1},easeInOutBack(Q){let J=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((J*=1.525)+1)*Q-J));return 0.5*((Q-=2)*Q*(((J*=1.525)+1)*Q+J)+2)},easeInBounce:(Q)=>1-H$.easeOutBounce(1-Q),easeOutBounce(Q){if(Q<0.36363636363636365)return 7.5625*Q*Q;if(Q<0.7272727272727273)return 7.5625*(Q-=0.5454545454545454)*Q+0.75;if(Q<0.9090909090909091)return 7.5625*(Q-=0.8181818181818182)*Q+0.9375;return 7.5625*(Q-=0.9545454545454546)*Q+0.984375},easeInOutBounce:(Q)=>Q<0.5?H$.easeInBounce(Q*2)*0.5:H$.easeOutBounce(Q*2-1)*0.5+0.5};function SU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function jU(Q){return SU(Q)?Q:new B$(Q)}function zU(Q){return SU(Q)?Q:new B$(Q).saturate(0.5).darken(0.1).hexString()}var TV=["x","y","borderWidth","radius","tension"],CV=["color","borderColor","backgroundColor"];function IV(Q){Q.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),Q.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(J)=>J!=="onProgress"&&J!=="onComplete"&&J!=="fn"}),Q.set("animations",{colors:{type:"color",properties:CV},numbers:{type:"number",properties:TV}}),Q.describe("animations",{_fallback:"animation"}),Q.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(J)=>J|0}}}})}function OV(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var dR=new Map;function VV(Q,J){J=J||{};let X=Q+JSON.stringify(J),q=dR.get(X);if(!q)q=new Intl.NumberFormat(Q,J),dR.set(X,q);return q}function m3(Q,J,X){return VV(J,X).format(Q)}var Kz={values(Q){return j1(Q)?Q:""+Q},numeric(Q,J,X){if(Q===0)return"0";let q=this.chart.options.locale,N,K=Q;if(X.length>1){let w=Math.max(Math.abs(X[0].value),Math.abs(X[X.length-1].value));if(w<0.0001||w>1000000000000000)N="scientific";K=AV(Q,X)}let H=V2(Math.abs(K)),F=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),M={notation:N,minimumFractionDigits:F,maximumFractionDigits:F};return Object.assign(M,this.options.ticks.format),m3(Q,q,M)},logarithmic(Q,J,X){if(Q===0)return"0";let q=X[J].significand||Q/Math.pow(10,Math.floor(V2(Q)));if([1,2,3,5,10,15].includes(q)||J>0.8*X.length)return Kz.numeric.call(this,Q,J,X);return""}};function AV(Q,J){let X=J.length>3?J[2].value-J[1].value:J[1].value-J[0].value;if(Math.abs(X)>=1&&Q!==Math.floor(Q))X=Q-Math.floor(Q);return X}var RQ={formatters:Kz};function EV(Q){Q.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(J,X)=>X.lineWidth,tickColor:(J,X)=>X.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:RQ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Q.route("scale.ticks","color","","color"),Q.route("scale.grid","color","","borderColor"),Q.route("scale.border","color","","borderColor"),Q.route("scale.title","color","","color"),Q.describe("scale",{_fallback:!1,_scriptable:(J)=>!J.startsWith("before")&&!J.startsWith("after")&&J!=="callback"&&J!=="parser",_indexable:(J)=>J!=="borderDash"&&J!=="tickBorderDash"&&J!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(J)=>J!=="backdropPadding"&&J!=="callback",_indexable:(J)=>J!=="backdropPadding"})}var k8=Object.create(null),d3=Object.create(null);function MQ(Q,J){if(!J)return Q;let X=J.split(".");for(let q=0,N=X.length;q<N;++q){let K=X[q];Q=Q[K]||(Q[K]=Object.create(null))}return Q}function _U(Q,J,X){if(typeof J==="string")return F$(MQ(Q,J),X);return F$(MQ(Q,""),J)}class Bz{constructor(Q,J){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(X)=>X.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(X,q)=>zU(q.backgroundColor),this.hoverBorderColor=(X,q)=>zU(q.borderColor),this.hoverColor=(X,q)=>zU(q.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(Q),this.apply(J)}set(Q,J){return _U(this,Q,J)}get(Q){return MQ(this,Q)}describe(Q,J){return _U(d3,Q,J)}override(Q,J){return _U(k8,Q,J)}route(Q,J,X,q){let N=MQ(this,Q),K=MQ(this,X),H="_"+J;Object.defineProperties(N,{[H]:{value:N[J],writable:!0},[J]:{enumerable:!0,get(){let F=this[H],M=K[q];if($1(F))return Object.assign({},M,F);return n0(F,M)},set(F){this[H]=F}}})}apply(Q){Q.forEach((J)=>J(this))}}var m1=new Bz({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[IV,OV,EV]);function SV(Q){if(!Q||J1(Q.size)||J1(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function WQ(Q,J,X,q,N){let K=J[N];if(!K)K=J[N]=Q.measureText(N).width,X.push(N);if(K>q)q=K;return q}function Hz(Q,J,X,q){q=q||{};let N=q.data=q.data||{},K=q.garbageCollect=q.garbageCollect||[];if(q.font!==J)N=q.data={},K=q.garbageCollect=[],q.font=J;Q.save(),Q.font=J;let H=0,F=X.length,M,w,R,_,P;for(M=0;M<F;M++)if(_=X[M],_!==void 0&&_!==null&&!j1(_))H=WQ(Q,N,K,H,_);else if(j1(_)){for(w=0,R=_.length;w<R;w++)if(P=_[w],P!==void 0&&P!==null&&!j1(P))H=WQ(Q,N,K,H,P)}Q.restore();let I=K.length/2;if(I>X.length){for(M=0;M<I;M++)delete N[K[M]];K.splice(0,I)}return H}function f8(Q,J,X){let q=Q.currentDevicePixelRatio,N=X!==0?Math.max(X/2,0.5):0;return Math.round((J-N)*q)/q+N}function DU(Q,J){if(!J&&!Q)return;J=J||Q.getContext("2d"),J.save(),J.resetTransform(),J.clearRect(0,0,Q.width,Q.height),J.restore()}function p3(Q,J,X,q){vU(Q,J,X,q,null)}function vU(Q,J,X,q,N){let K,H,F,M,w,R,_,P,I=J.pointStyle,A=J.rotation,V=J.radius,O=(A||0)*_V;if(I&&typeof I==="object"){if(K=I.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(X,q),Q.rotate(O),Q.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),Q.restore();return}}if(isNaN(V)||V<=0)return;switch(Q.beginPath(),I){default:if(N)Q.ellipse(X,q,N/2,V,0,0,Q6);else Q.arc(X,q,V,0,Q6);Q.closePath();break;case"triangle":R=N?N/2:V,Q.moveTo(X+Math.sin(O)*R,q-Math.cos(O)*V),O+=uR,Q.lineTo(X+Math.sin(O)*R,q-Math.cos(O)*V),O+=uR,Q.lineTo(X+Math.sin(O)*R,q-Math.cos(O)*V),Q.closePath();break;case"rectRounded":w=V*0.516,M=V-w,H=Math.cos(O+g7)*M,_=Math.cos(O+g7)*(N?N/2-w:M),F=Math.sin(O+g7)*M,P=Math.sin(O+g7)*(N?N/2-w:M),Q.arc(X-_,q-F,w,O-s1,O-Z6),Q.arc(X+P,q-H,w,O-Z6,O),Q.arc(X+_,q+F,w,O,O+Z6),Q.arc(X-P,q+H,w,O+Z6,O+s1),Q.closePath();break;case"rect":if(!A){M=Math.SQRT1_2*V,R=N?N/2:M,Q.rect(X-R,q-M,2*R,2*M);break}O+=g7;case"rectRot":_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+P,q-H),Q.lineTo(X+_,q+F),Q.lineTo(X-P,q+H),Q.closePath();break;case"crossRot":O+=g7;case"cross":_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+_,q+F),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"star":_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+_,q+F),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H),O+=g7,_=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,F=Math.sin(O)*V,P=Math.sin(O)*(N?N/2:V),Q.moveTo(X-_,q-F),Q.lineTo(X+_,q+F),Q.moveTo(X+P,q-H),Q.lineTo(X-P,q+H);break;case"line":H=N?N/2:Math.cos(O)*V,F=Math.sin(O)*V,Q.moveTo(X-H,q-F),Q.lineTo(X+H,q+F);break;case"dash":Q.moveTo(X,q),Q.lineTo(X+Math.cos(O)*(N?N/2:V),q+Math.sin(O)*V);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function p4(Q,J,X){return X=X||0.5,!J||Q&&Q.x>J.left-X&&Q.x<J.right+X&&Q.y>J.top-X&&Q.y<J.bottom+X}function zQ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function _Q(Q){Q.restore()}function Fz(Q,J,X,q,N){if(!J)return Q.lineTo(X.x,X.y);if(N==="middle"){let K=(J.x+X.x)/2;Q.lineTo(K,J.y),Q.lineTo(K,X.y)}else if(N==="after"!==!!q)Q.lineTo(J.x,X.y);else Q.lineTo(X.x,J.y);Q.lineTo(X.x,X.y)}function Mz(Q,J,X,q){if(!J)return Q.lineTo(X.x,X.y);Q.bezierCurveTo(q?J.cp1x:J.cp2x,q?J.cp1y:J.cp2y,q?X.cp2x:X.cp1x,q?X.cp2y:X.cp1y,X.x,X.y)}function jV(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!J1(J.rotation))Q.rotate(J.rotation);if(J.color)Q.fillStyle=J.color;if(J.textAlign)Q.textAlign=J.textAlign;if(J.textBaseline)Q.textBaseline=J.textBaseline}function DV(Q,J,X,q,N){if(N.strikethrough||N.underline){let K=Q.measureText(q),H=J-K.actualBoundingBoxLeft,F=J+K.actualBoundingBoxRight,M=X-K.actualBoundingBoxAscent,w=X+K.actualBoundingBoxDescent,R=N.strikethrough?(M+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,R),Q.lineTo(F,R),Q.stroke()}}function vV(Q,J){let X=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=X}function y8(Q,J,X,q,N,K={}){let H=j1(J)?J:[J],F=K.strokeWidth>0&&K.strokeColor!=="",M,w;Q.save(),Q.font=N.string,jV(Q,K);for(M=0;M<H.length;++M){if(w=H[M],K.backdrop)vV(Q,K.backdrop);if(F){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!J1(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,X,q,K.maxWidth)}Q.fillText(w,X,q,K.maxWidth),DV(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function _$(Q,J){let{x:X,y:q,w:N,h:K,radius:H}=J;Q.arc(X+H.topLeft,q+H.topLeft,H.topLeft,1.5*s1,s1,!0),Q.lineTo(X,q+K-H.bottomLeft),Q.arc(X+H.bottomLeft,q+K-H.bottomLeft,H.bottomLeft,s1,Z6,!0),Q.lineTo(X+N-H.bottomRight,q+K),Q.arc(X+N-H.bottomRight,q+K-H.bottomRight,H.bottomRight,Z6,0,!0),Q.lineTo(X+N,q+H.topRight),Q.arc(X+N-H.topRight,q+H.topRight,H.topRight,0,-Z6,!0),Q.lineTo(X+H.topLeft,q)}var bV=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,kV=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function fV(Q,J){let X=(""+Q).match(bV);if(!X||X[1]==="normal")return J*1.2;switch(Q=+X[2],X[3]){case"px":return Q;case"%":Q/=100;break}return J*Q}var yV=(Q)=>+Q||0;function bU(Q,J){let X={},q=$1(J),N=q?Object.keys(J):J,K=$1(Q)?q?(H)=>n0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=yV(K(H));return X}function kU(Q){return bU(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function g8(Q){return bU(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function I5(Q){let J=kU(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function X5(Q,J){Q=Q||{},J=J||m1.font;let X=n0(Q.size,J.size);if(typeof X==="string")X=parseInt(X,10);let q=n0(Q.style,J.style);if(q&&!(""+q).match(kV))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:n0(Q.family,J.family),lineHeight:fV(n0(Q.lineHeight,J.lineHeight),X),size:X,style:q,weight:n0(Q.weight,J.weight),string:""};return N.string=SV(N),N}function LQ(Q,J,X,q){let N=!0,K,H,F;for(K=0,H=Q.length;K<H;++K){if(F=Q[K],F===void 0)continue;if(J!==void 0&&typeof F==="function")F=F(J),N=!1;if(X!==void 0&&j1(F))F=F[X%F.length],N=!1;if(F!==void 0){if(q&&!N)q.cacheable=!1;return F}}}function Wz(Q,J,X){let{min:q,max:N}=Q,K=oR(J,(N-q)/2),H=(F,M)=>X&&F===0?0:F+M;return{min:H(q,-Math.abs(K)),max:H(N,K)}}function S2(Q,J){return Object.assign(Object.create(Q),J)}function c3(Q,J=[""],X,q,N=()=>Q[0]){let K=X||Q;if(typeof q>"u")q=zz("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:q,_getTarget:N,override:(F)=>c3([F,...Q],J,K,q)};return new Proxy(H,{deleteProperty(F,M){return delete F[M],delete F._keys,delete Q[0][M],!0},get(F,M){return wz(F,M,()=>cV(M,J,Q,F))},getOwnPropertyDescriptor(F,M){return Reflect.getOwnPropertyDescriptor(F._scopes[0],M)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(F,M){return cR(F).includes(M)},ownKeys(F){return cR(F)},set(F,M,w){let R=F._storage||(F._storage=N());return F[M]=R[M]=w,delete F._keys,!0}})}function u7(Q,J,X,q){let N={_cacheable:!1,_proxy:Q,_context:J,_subProxy:X,_stack:new Set,_descriptors:fU(Q,q),setContext:(K)=>u7(Q,K,X,q),override:(K)=>u7(Q.override(K),J,X,q)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,F){return wz(K,H,()=>hV(K,H,F))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(Q,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(Q,H)},getPrototypeOf(){return Reflect.getPrototypeOf(Q)},has(K,H){return Reflect.has(Q,H)},ownKeys(){return Reflect.ownKeys(Q)},set(K,H,F){return Q[H]=F,delete K[H],!0}})}function fU(Q,J={scriptable:!0,indexable:!0}){let{_scriptable:X=J.scriptable,_indexable:q=J.indexable,_allKeys:N=J.allKeys}=Q;return{allKeys:N,scriptable:X,indexable:q,isScriptable:O2(X)?X:()=>X,isIndexable:O2(q)?q:()=>q}}var gV=(Q,J)=>Q?Q+g3(J):J,yU=(Q,J)=>$1(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function wz(Q,J,X){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let q=X();return Q[J]=q,q}function hV(Q,J,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,F=q[J];if(O2(F)&&H.isScriptable(J))F=uV(J,F,Q,X);if(j1(F)&&F.length)F=xV(J,F,Q,H.isIndexable);if(yU(J,F))F=u7(F,N,K&&K[J],H);return F}function uV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_stack:F}=X;if(F.has(Q))throw Error("Recursion detected: "+Array.from(F).join("->")+"->"+Q);F.add(Q);let M=J(K,H||q);if(F.delete(Q),yU(Q,M))M=gU(N._scopes,N,Q,M);return M}function xV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_descriptors:F}=X;if(typeof K.index<"u"&&q(Q))return J[K.index%J.length];else if($1(J[0])){let M=J,w=N._scopes.filter((R)=>R!==M);J=[];for(let R of M){let _=gU(w,N,Q,R);J.push(u7(_,K,H&&H[Q],F))}}return J}function Rz(Q,J,X){return O2(Q)?Q(J,X):Q}var mV=(Q,J)=>Q===!0?J:typeof Q==="string"?x7(J,Q):void 0;function dV(Q,J,X,q,N){for(let K of J){let H=mV(X,K);if(H){Q.add(H);let F=Rz(H._fallback,X,N);if(typeof F<"u"&&F!==X&&F!==q)return F}else if(H===!1&&typeof q<"u"&&X!==q)return null}return!1}function gU(Q,J,X,q){let N=J._rootScopes,K=Rz(J._fallback,X,q),H=[...Q,...N],F=new Set;F.add(q);let M=pR(F,H,X,K||X,q);if(M===null)return!1;if(typeof K<"u"&&K!==X){if(M=pR(F,H,K,M,q),M===null)return!1}return c3(Array.from(F),[""],N,K,()=>pV(J,X,q))}function pR(Q,J,X,q,N){while(X)X=dV(Q,J,X,q,N);return X}function pV(Q,J,X){let q=Q._getTarget();if(!(J in q))q[J]={};let N=q[J];if(j1(N)&&$1(X))return X;return N||{}}function cV(Q,J,X,q){let N;for(let K of J)if(N=zz(gV(K,Q),X),typeof N<"u")return yU(Q,N)?gU(X,q,Q,N):N}function zz(Q,J){for(let X of J){if(!X)continue;let q=X[Q];if(typeof q<"u")return q}}function cR(Q){let J=Q._keys;if(!J)J=Q._keys=lV(Q._scopes);return J}function lV(Q){let J=new Set;for(let X of Q)for(let q of Object.keys(X).filter((N)=>!N.startsWith("_")))J.add(q);return Array.from(J)}var rV=Number.EPSILON||0.00000000000001,M$=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],_z=(Q)=>Q==="x"?"y":"x";function nV(Q,J,X,q){let N=Q.skip?J:Q,K=J,H=X.skip?J:X,F=f3(K,N),M=f3(H,K),w=F/(F+M),R=M/(F+M);w=isNaN(w)?0:w,R=isNaN(R)?0:R;let _=q*w,P=q*R;return{previous:{x:K.x-_*(H.x-N.x),y:K.y-_*(H.y-N.y)},next:{x:K.x+P*(H.x-N.x),y:K.y+P*(H.y-N.y)}}}function sV(Q,J,X){let q=Q.length,N,K,H,F,M,w=M$(Q,0);for(let R=0;R<q-1;++R){if(M=w,w=M$(Q,R+1),!M||!w)continue;if(R$(J[R],0,rV)){X[R]=X[R+1]=0;continue}if(N=X[R]/J[R],K=X[R+1]/J[R],F=Math.pow(N,2)+Math.pow(K,2),F<=9)continue;H=3/Math.sqrt(F),X[R]=N*H*J[R],X[R+1]=K*H*J[R]}}function oV(Q,J,X="x"){let q=_z(X),N=Q.length,K,H,F,M=M$(Q,0);for(let w=0;w<N;++w){if(H=F,F=M,M=M$(Q,w+1),!F)continue;let R=F[X],_=F[q];if(H)K=(R-H[X])/3,F[`cp1${X}`]=R-K,F[`cp1${q}`]=_-K*J[w];if(M)K=(M[X]-R)/3,F[`cp2${X}`]=R+K,F[`cp2${q}`]=_+K*J[w]}}function aV(Q,J="x"){let X=_z(J),q=Q.length,N=Array(q).fill(0),K=Array(q),H,F,M,w=M$(Q,0);for(H=0;H<q;++H){if(F=M,M=w,w=M$(Q,H+1),!M)continue;if(w){let R=w[J]-M[J];N[H]=R!==0?(w[X]-M[X])/R:0}K[H]=!F?N[H]:!w?N[H-1]:H4(N[H-1])!==H4(N[H])?0:(N[H-1]+N[H])/2}sV(Q,N,K),oV(Q,K,J)}function D3(Q,J,X){return Math.max(Math.min(Q,X),J)}function iV(Q,J){let X,q,N,K,H,F=p4(Q[0],J);for(X=0,q=Q.length;X<q;++X){if(H=K,K=F,F=X<q-1&&p4(Q[X+1],J),!K)continue;if(N=Q[X],H)N.cp1x=D3(N.cp1x,J.left,J.right),N.cp1y=D3(N.cp1y,J.top,J.bottom);if(F)N.cp2x=D3(N.cp2x,J.left,J.right),N.cp2y=D3(N.cp2y,J.top,J.bottom)}}function Lz(Q,J,X,q,N){let K,H,F,M;if(J.spanGaps)Q=Q.filter((w)=>!w.skip);if(J.cubicInterpolationMode==="monotone")aV(Q,N);else{let w=q?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)F=Q[K],M=nV(w,F,Q[Math.min(K+1,H-(q?0:1))%H],J.tension),F.cp1x=M.previous.x,F.cp1y=M.previous.y,F.cp2x=M.next.x,F.cp2y=M.next.y,w=F}if(J.capBezierPoints)iV(Q,X)}function l3(){return typeof window<"u"&&typeof document<"u"}function r3(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function y3(Q,J,X){let q;if(typeof Q==="string"){if(q=parseInt(Q,10),Q.indexOf("%")!==-1)q=q/100*J.parentNode[X]}else q=Q;return q}var n3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function tV(Q,J){return n3(Q).getPropertyValue(J)}var eV=["top","right","bottom","left"];function h7(Q,J,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=eV[N];q[K]=parseFloat(Q[J+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var $A=(Q,J,X)=>(Q>0||J>0)&&(!X||!X.shadowRoot);function ZA(Q,J){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,F,M;if($A(N,K,Q.target))F=N,M=K;else{let w=J.getBoundingClientRect();F=q.clientX-w.left,M=q.clientY-w.top,H=!0}return{x:F,y:M,box:H}}function h8(Q,J){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=J,N=n3(X),K=N.boxSizing==="border-box",H=h7(N,"padding"),F=h7(N,"border","width"),{x:M,y:w,box:R}=ZA(Q,X),_=H.left+(R&&F.left),P=H.top+(R&&F.top),{width:I,height:A}=J;if(K)I-=H.width+F.width,A-=H.height+F.height;return{x:Math.round((M-_)/I*X.width/q),y:Math.round((w-P)/A*X.height/q)}}function QA(Q,J,X){let q,N;if(J===void 0||X===void 0){let K=Q&&r3(Q);if(!K)J=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),F=n3(K),M=h7(F,"border","width"),w=h7(F,"padding");J=H.width-w.width-M.width,X=H.height-w.height-M.height,q=y3(F.maxWidth,K,"clientWidth"),N=y3(F.maxHeight,K,"clientHeight")}}return{width:J,height:X,maxWidth:q||k3,maxHeight:N||k3}}var b8=(Q)=>Math.round(Q*10)/10;function Pz(Q,J,X,q){let N=n3(Q),K=h7(N,"margin"),H=y3(N.maxWidth,Q,"clientWidth")||k3,F=y3(N.maxHeight,Q,"clientHeight")||k3,M=QA(Q,J,X),{width:w,height:R}=M;if(N.boxSizing==="content-box"){let P=h7(N,"border","width"),I=h7(N,"padding");w-=I.width+P.width,R-=I.height+P.height}if(w=Math.max(0,w-K.width),R=Math.max(0,q?w/q:R-K.height),w=b8(Math.min(w,H,M.maxWidth)),R=b8(Math.min(R,F,M.maxHeight)),w&&!R)R=b8(w/2);if((J!==void 0||X!==void 0)&&q&&M.height&&R>M.height)R=M.height,w=b8(Math.floor(R*q));return{width:w,height:R}}function hU(Q,J,X){let q=J||1,N=b8(Q.height*q),K=b8(Q.width*q);Q.height=b8(Q.height),Q.width=b8(Q.width);let H=Q.canvas;if(H.style&&(X||!H.style.height&&!H.style.width))H.style.height=`${Q.height}px`,H.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==q||H.height!==N||H.width!==K)return Q.currentDevicePixelRatio=q,H.height=N,H.width=K,Q.ctx.setTransform(q,0,0,q,0,0),!0;return!1}var Tz=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(l3())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function uU(Q,J){let X=tV(Q,J),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function D8(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:Q.y+X*(J.y-Q.y)}}function Cz(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:q==="middle"?X<0.5?Q.y:J.y:q==="after"?X<1?Q.y:J.y:X>0?J.y:Q.y}}function Iz(Q,J,X,q){let N={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=D8(Q,N,X),F=D8(N,K,X),M=D8(K,J,X),w=D8(H,F,X),R=D8(F,M,X);return D8(w,R,X)}var JA=function(Q,J){return{x(X){return Q+Q+J-X},setWidth(X){J=X},textAlign(X){if(X==="center")return X;return X==="right"?"left":"right"},xPlus(X,q){return X-q},leftForLtr(X,q){return X-q}}},GA=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function m7(Q,J,X){return Q?JA(J,X):GA()}function xU(Q,J){let X,q;if(J==="ltr"||J==="rtl")X=Q.canvas.style,q=[X.getPropertyValue("direction"),X.getPropertyPriority("direction")],X.setProperty("direction",J,"important"),Q.prevTextDirection=q}function mU(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function Oz(Q){if(Q==="angle")return{between:IU,compare:PV,normalize:$6};return{between:E2,compare:(J,X)=>J-X,normalize:(J)=>J}}function lR({start:Q,end:J,count:X,loop:q,style:N}){return{start:Q%X,end:J%X,loop:q&&(J-Q+1)%X===0,style:N}}function XA(Q,J,X){let{property:q,start:N,end:K}=X,{between:H,normalize:F}=Oz(q),M=J.length,{start:w,end:R,loop:_}=Q,P,I;if(_){w+=M,R+=M;for(P=0,I=M;P<I;++P){if(!H(F(J[w%M][q]),N,K))break;w--,R--}w%=M,R%=M}if(R<w)R+=M;return{start:w,end:R,loop:_,style:Q.style}}function dU(Q,J,X){if(!X)return[Q];let{property:q,start:N,end:K}=X,H=J.length,{compare:F,between:M,normalize:w}=Oz(q),{start:R,end:_,loop:P,style:I}=XA(Q,J,X),A=[],V=!1,O=null,D,h,p,s=()=>M(N,p,D)&&F(N,p)!==0,a=()=>F(K,D)===0||M(K,p,D),J0=()=>V||s(),t=()=>!V||a();for(let i=R,Y0=R;i<=_;++i){if(h=J[i%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(V=M(D,N,K),O===null&&J0())O=F(D,N)===0?i:Y0;if(O!==null&&t())A.push(lR({start:O,end:i,loop:P,count:H,style:I})),O=null;Y0=i,p=D}if(O!==null)A.push(lR({start:O,end:_,loop:P,count:H,style:I}));return A}function pU(Q,J){let X=[],q=Q.segments;for(let N=0;N<q.length;N++){let K=dU(q[N],Q.points,J);if(K.length)X.push(...K)}return X}function qA(Q,J,X,q){let N=0,K=J-1;if(X&&!q)while(N<J&&!Q[N].skip)N++;while(N<J&&Q[N].skip)N++;if(N%=J,X)K+=N;while(K>N&&Q[K%J].skip)K--;return K%=J,{start:N,end:K}}function YA(Q,J,X,q){let N=Q.length,K=[],H=J,F=Q[J],M;for(M=J+1;M<=X;++M){let w=Q[M%N];if(w.skip||w.stop){if(!F.skip)q=!1,K.push({start:J%N,end:(M-1)%N,loop:q}),J=H=w.stop?M:null}else if(H=M,F.skip)J=M;F=w}if(H!==null)K.push({start:J%N,end:H%N,loop:q});return K}function Vz(Q,J){let X=Q.points,q=Q.options.spanGaps,N=X.length;if(!N)return[];let K=!!Q._loop,{start:H,end:F}=qA(X,N,K,q);if(q===!0)return rR(Q,[{start:H,end:F,loop:K}],X,J);let M=F<H?F+N:F,w=!!Q._fullLoop&&H===0&&F===N-1;return rR(Q,YA(X,H,M,w),X,J)}function rR(Q,J,X,q){if(!q||!q.setContext||!X)return J;return NA(Q,J,X,q)}function NA(Q,J,X,q){let N=Q._chart.getContext(),K=nR(Q.options),{_datasetIndex:H,options:{spanGaps:F}}=Q,M=X.length,w=[],R=K,_=J[0].start,P=_;function I(A,V,O,D){let h=F?-1:1;if(A===V)return;A+=M;while(X[A%M].skip)A-=h;while(X[V%M].skip)V+=h;if(A%M!==V%M)w.push({start:A%M,end:V%M,loop:O,style:D}),R=D,_=V%M}for(let A of J){_=F?_:A.start;let V=X[_%M],O;for(P=_+1;P<=A.end;P++){let D=X[P%M];if(O=nR(q.setContext(S2(N,{type:"segment",p0:V,p1:D,p0DataIndex:(P-1)%M,p1DataIndex:P%M,datasetIndex:H}))),UA(O,R))I(_,P-1,A.loop,R);V=D,R=O}if(_<P-1)I(_,P-1,A.loop,R)}return w}function nR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function UA(Q,J){if(!J)return!1;let X=[],q=function(N,K){if(!SU(K))return K;if(!X.includes(K))X.push(K);return X.indexOf(K)};return JSON.stringify(Q,q)!==JSON.stringify(J,q)}function v3(Q,J,X){return Q.options.clip?Q[X]:J[X]}function KA(Q,J){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:v3(X,J,"left"),right:v3(X,J,"right"),top:v3(q,J,"top"),bottom:v3(q,J,"bottom")};return J}function cU(Q,J){let X=J._clip;if(X.disabled)return!1;let q=KA(J,Q.chartArea);return{left:X.left===!1?0:q.left-(X.left===!0?0:X.left),right:X.right===!1?Q.width:q.right+(X.right===!0?0:X.right),top:X.top===!1?0:q.top-(X.top===!0?0:X.top),bottom:X.bottom===!1?Q.height:q.bottom+(X.bottom===!0?0:X.bottom)}}/*!
|
|
251
251
|
* Chart.js v4.5.1
|
|
252
252
|
* https://www.chartjs.org
|
|
253
253
|
* (c) 2025 Chart.js Contributors
|
|
254
254
|
* Released under the MIT License
|
|
255
|
-
*/class C_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,J,X,q){let N=J.listeners[q],K=J.duration;N.forEach((H)=>H({chart:Q,initial:J.initial,numSteps:K,currentStep:Math.min(X-J.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=AU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let J=0;if(this._charts.forEach((X,q)=>{if(!X.running||!X.items.length)return;let N=X.items,K=N.length-1,H=!1,F;for(;K>=0;--K)if(F=N[K],F._active){if(F._total>X.duration)X.duration=F._total;F.tick(Q),H=!0}else N[K]=N[N.length-1],N.pop();if(H)q.draw(),this._notify(q,X,Q,"progress");if(!N.length)X.running=!1,this._notify(q,X,Q,"complete"),X.initial=!1;J+=N.length}),this._lastDate=Q,J===0)this._running=!1}_getAnims(Q){let J=this._charts,X=J.get(Q);if(!X)X={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},J.set(Q,X);return X}listen(Q,J,X){this._getAnims(Q).listeners[J].push(X)}add(Q,J){if(!J||!J.length)return;this._getAnims(Q).items.push(...J)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let J=this._charts.get(Q);if(!J)return;J.running=!0,J.start=Date.now(),J.duration=J.items.reduce((X,q)=>Math.max(X,q._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let J=this._charts.get(Q);if(!J||!J.running||!J.items.length)return!1;return!0}stop(Q){let J=this._charts.get(Q);if(!J||!J.items.length)return;let X=J.items,q=X.length-1;for(;q>=0;--q)X[q].cancel();J.items=[],this._notify(Q,J,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var j2=new C_,Az="transparent",BA={boolean(Q,J,X){return X>0.5?J:Q},color(Q,J,X){let q=jU(Q||Az),N=q.valid&&jU(J||Az);return N&&N.valid?N.mix(q,X).hexString():J},number(Q,J,X){return Q+(J-Q)*X}};class I_{constructor(Q,J,X,q){let N=J[X];q=LQ([Q.to,q,N,Q.from]);let K=LQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||BA[Q.type||typeof K],this._easing=H$[Q.easing]||H$.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=J,this._prop=X,this._from=K,this._to=q,this._promises=void 0}active(){return this._active}update(Q,J,X){if(this._active){this._notify(!1);let q=this._target[this._prop],N=X-this._start,K=this._duration-N;this._start=X,this._duration=Math.floor(Math.max(K,Q.duration)),this._total+=N,this._loop=!!Q.loop,this._to=LQ([Q.to,J,q,Q.from]),this._from=LQ([Q.from,q,J])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let J=Q-this._start,X=this._duration,q=this._prop,N=this._from,K=this._loop,H=this._to,F;if(this._active=N!==H&&(K||J<X),!this._active){this._target[q]=H,this._notify(!0);return}if(J<0){this._target[q]=N;return}F=J/X%2,F=K&&F>1?2-F:F,F=this._easing(Math.min(1,Math.max(0,F))),this._target[q]=this._fn(N,H,F)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((J,X)=>{Q.push({res:J,rej:X})})}_notify(Q){let J=Q?"res":"rej",X=this._promises||[];for(let q=0;q<X.length;q++)X[q][J]()}}class KK{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!$1(Q))return;let J=Object.keys(m1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!$1(N))return;let K={};for(let H of J)K[H]=N[H];(j1(N.properties)&&N.properties||[q]).forEach((H)=>{if(H===q||!X.has(H))X.set(H,K)})})}_animateOptions(Q,J){let X=J.options,q=FA(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)HA(Q.options.$animations,X).then(()=>{Q.options=X},()=>{});return N}_createAnimations(Q,J){let X=this._properties,q=[],N=Q.$animations||(Q.$animations={}),K=Object.keys(J),H=Date.now(),F;for(F=K.length-1;F>=0;--F){let M=K[F];if(M.charAt(0)==="$")continue;if(M==="options"){q.push(...this._animateOptions(Q,J));continue}let w=J[M],R=N[M],_=X.get(M);if(R)if(_&&R.active()){R.update(_,w,H);continue}else R.cancel();if(!_||!_.duration){Q[M]=w;continue}N[M]=R=new I_(_,Q,M,w),q.push(R)}return q}update(Q,J){if(this._properties.size===0){Object.assign(Q,J);return}let X=this._createAnimations(Q,J);if(X.length)return j2.add(this._chart,X),!0}}function HA(Q,J){let X=[],q=Object.keys(J);for(let N=0;N<q.length;N++){let K=Q[q[N]];if(K&&K.active())X.push(K.wait())}return Promise.all(X)}function FA(Q,J){if(!J)return;let X=Q.options;if(!X){Q.options=J;return}if(X.$shared)Q.options=X=Object.assign({},X,{$shared:!1,$animations:{}});return X}function Ez(Q,J){let X=Q&&Q.options||{},q=X.reverse,N=X.min===void 0?J:0,K=X.max===void 0?J:0;return{start:q?K:N,end:q?N:K}}function MA(Q,J,X){if(X===!1)return!1;let q=Ez(Q,X),N=Ez(J,X);return{top:N.end,right:q.end,bottom:N.start,left:q.start}}function WA(Q){let J,X,q,N;if($1(Q))J=Q.top,X=Q.right,q=Q.bottom,N=Q.left;else J=X=q=N=Q;return{top:J,right:X,bottom:q,left:N,disabled:Q===!1}}function O_(Q,J){let X=[],q=Q._getSortedDatasetMetas(J),N,K;for(N=0,K=q.length;N<K;++N)X.push(q[N].index);return X}function Sz(Q,J,X,q={}){let N=Q.keys,K=q.mode==="single",H,F,M,w;if(J===null)return;let R=!1;for(H=0,F=N.length;H<F;++H){if(M=+N[H],M===X){if(R=!0,q.all)continue;break}if(w=Q.values[M],x1(w)&&(K||J===0||H4(J)===H4(w)))J+=w}if(!R&&!q.all)return 0;return J}function wA(Q,J){let{iScale:X,vScale:q}=J,N=X.axis==="x"?"x":"y",K=q.axis==="x"?"x":"y",H=Object.keys(Q),F=Array(H.length),M,w,R;for(M=0,w=H.length;M<w;++M)R=H[M],F[M]={[N]:R,[K]:Q[R]};return F}function lU(Q,J){let X=Q&&Q.options.stacked;return X||X===void 0&&J.stack!==void 0}function RA(Q,J,X){return`${Q.id}.${J.id}.${X.stack||X.type}`}function zA(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=Q.getUserBounds();return{min:q?J:Number.NEGATIVE_INFINITY,max:N?X:Number.POSITIVE_INFINITY}}function _A(Q,J,X){let q=Q[J]||(Q[J]={});return q[X]||(q[X]={})}function jz(Q,J,X,q){for(let N of J.getMatchingVisibleMetas(q).reverse()){let K=Q[N.index];if(X&&K>0||!X&&K<0)return N.index}return null}function Dz(Q,J){let{chart:X,_cachedMeta:q}=Q,N=X._stacks||(X._stacks={}),{iScale:K,vScale:H,index:F}=q,M=K.axis,w=H.axis,R=RA(K,H,q),_=J.length,P;for(let I=0;I<_;++I){let A=J[I],{[M]:V,[w]:O}=A,D=A._stacks||(A._stacks={});P=D[w]=_A(N,R,V),P[F]=O,P._top=jz(P,H,!0,q.type),P._bottom=jz(P,H,!1,q.type);let h=P._visualValues||(P._visualValues={});h[F]=O}}function rU(Q,J){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===J).shift()}function LA(Q,J){return S2(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function PA(Q,J,X){return S2(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:X,index:J,mode:"default",type:"data"})}function PQ(Q,J){let X=Q.controller.index,q=Q.vScale&&Q.vScale.axis;if(!q)return;J=J||Q._parsed;for(let N of J){let K=N._stacks;if(!K||K[q]===void 0||K[q][X]===void 0)return;if(delete K[q][X],K[q]._visualValues!==void 0&&K[q]._visualValues[X]!==void 0)delete K[q]._visualValues[X]}}var nU=(Q)=>Q==="reset"||Q==="none",vz=(Q,J)=>J?Q:Object.assign({},Q),TA=(Q,J,X)=>Q&&!J.hidden&&J._stacked&&{keys:O_(X,!0),values:null};class QX{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,J){this.chart=Q,this._ctx=Q.ctx,this.index=J,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let Q=this._cachedMeta;if(this.configure(),this.linkScales(),Q._stacked=lU(Q.vScale,Q),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(Q){if(this.index!==Q)PQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,X=this.getDataset(),q=(R,_,P,I)=>R==="x"?_:R==="r"?I:P,N=J.xAxisID=n0(X.xAxisID,rU(Q,"x")),K=J.yAxisID=n0(X.yAxisID,rU(Q,"y")),H=J.rAxisID=n0(X.rAxisID,rU(Q,"r")),F=J.indexAxis,M=J.iAxisID=q(F,N,K,H),w=J.vAxisID=q(F,K,N,H);J.xScale=this.getScaleForId(N),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(M),J.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(Q){return this.chart.scales[Q]}_getOtherScale(Q){let J=this._cachedMeta;return Q===J.iScale?J.vScale:J.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)OU(this._data,this);if(Q._stacked)PQ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),X=this._data;if($1(J)){let q=this._cachedMeta;this._data=wA(J,q)}else if(X!==J){if(X){OU(X,this);let q=this._cachedMeta;PQ(q),q._parsed=[]}if(J&&Object.isExtensible(J))Xz(J,this);this._syncList=[],this._data=J}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let J=this._cachedMeta,X=this.getDataset(),q=!1;this._dataCheck();let N=J._stacked;if(J._stacked=lU(J.vScale,J),J.stack!==X.stack)q=!0,PQ(J),J.stack=X.stack;if(this._resyncElements(Q),q||N!==J._stacked)Dz(this,J._parsed),J._stacked=lU(J.vScale,J)}configure(){let Q=this.chart.config,J=Q.datasetScopeKeys(this._type),X=Q.getOptionScopes(this.getDataset(),J,!0);this.options=Q.createResolver(X,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,J){let{_cachedMeta:X,_data:q}=this,{iScale:N,_stacked:K}=X,H=N.axis,F=Q===0&&J===q.length?!0:X._sorted,M=Q>0&&X._parsed[Q-1],w,R,_;if(this._parsing===!1)X._parsed=q,X._sorted=!0,_=q;else{if(j1(q[Q]))_=this.parseArrayData(X,q,Q,J);else if($1(q[Q]))_=this.parseObjectData(X,q,Q,J);else _=this.parsePrimitiveData(X,q,Q,J);let P=()=>R[H]===null||M&&R[H]<M[H];for(w=0;w<J;++w)if(X._parsed[w+Q]=R=_[w],F){if(P())F=!1;M=R}X._sorted=F}if(K)Dz(this,_)}parsePrimitiveData(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.axis,F=K.axis,M=N.getLabels(),w=N===K,R=Array(q),_,P,I;for(_=0,P=q;_<P;++_)I=_+X,R[_]={[H]:w||N.parse(M[I],I),[F]:K.parse(J[I],I)};return R}parseArrayData(Q,J,X,q){let{xScale:N,yScale:K}=Q,H=Array(q),F,M,w,R;for(F=0,M=q;F<M;++F)w=F+X,R=J[w],H[F]={x:N.parse(R[0],w),y:K.parse(R[1],w)};return H}parseObjectData(Q,J,X,q){let{xScale:N,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,M=Array(q),w,R,_,P;for(w=0,R=q;w<R;++w)_=w+X,P=J[_],M[w]={x:N.parse(x9(P,H),_),y:K.parse(x9(P,F),_)};return M}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,J,X){let q=this.chart,N=this._cachedMeta,K=J[Q.axis],H={keys:O_(q,!0),values:J._stacks[Q.axis]._visualValues};return Sz(H,K,N.index,{mode:X})}updateRangeFromParsed(Q,J,X,q){let N=X[J.axis],K=N===null?NaN:N,H=q&&X._stacks[J.axis];if(q&&H)q.values=H,K=Sz(q,N,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,J){let X=this._cachedMeta,q=X._parsed,N=X._sorted&&Q===X.iScale,K=q.length,H=this._getOtherScale(Q),F=TA(J,X,this.chart),M={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:R}=zA(H),_,P;function I(){P=q[_];let A=P[H.axis];return!x1(P[Q.axis])||w>A||R<A}for(_=0;_<K;++_){if(I())continue;if(this.updateRangeFromParsed(M,Q,P,F),N)break}if(N)for(_=K-1;_>=0;--_){if(I())continue;this.updateRangeFromParsed(M,Q,P,F);break}return M}getAllParsedValues(Q){let J=this._cachedMeta._parsed,X=[],q,N,K;for(q=0,N=J.length;q<N;++q)if(K=J[q][Q.axis],x1(K))X.push(K);return X}getMaxOverflow(){return!1}getLabelAndValue(Q){let J=this._cachedMeta,X=J.iScale,q=J.vScale,N=this.getParsed(Q);return{label:X?""+X.getLabelForValue(N[X.axis]):"",value:q?""+q.getLabelForValue(N[q.axis]):""}}_update(Q){let J=this._cachedMeta;this.update(Q||"default"),J._clip=WA(n0(this.options.clip,MA(J.xScale,J.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,J=this.chart,X=this._cachedMeta,q=X.data||[],N=J.chartArea,K=[],H=this._drawStart||0,F=this._drawCount||q.length-H,M=this.options.drawActiveElementsOnTop,w;if(X.dataset)X.dataset.draw(Q,N,H,F);for(w=H;w<H+F;++w){let R=q[w];if(R.hidden)continue;if(R.active&&M)K.push(R);else R.draw(Q,N)}for(w=0;w<K.length;++w)K[w].draw(Q,N)}getStyle(Q,J){let X=J?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(X):this.resolveDataElementOptions(Q||0,X)}getContext(Q,J,X){let q=this.getDataset(),N;if(Q>=0&&Q<this._cachedMeta.data.length){let K=this._cachedMeta.data[Q];N=K.$context||(K.$context=PA(this.getContext(),Q,K)),N.parsed=this.getParsed(Q),N.raw=q.data[Q],N.index=N.dataIndex=Q}else N=this.$context||(this.$context=LA(this.chart.getContext(),this.index)),N.dataset=q,N.index=N.datasetIndex=this.index;return N.active=!!J,N.mode=X,N}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,J){return this._resolveElementOptions(this.dataElementType.id,J,Q)}_resolveElementOptions(Q,J="default",X){let q=J==="active",N=this._cachedDataOpts,K=Q+"-"+J,H=N[K],F=this.enableOptionSharing&&w$(X);if(H)return vz(H,F);let M=this.chart.config,w=M.datasetElementScopeKeys(this._type,Q),R=q?[`${Q}Hover`,"hover",Q,""]:[Q,""],_=M.getOptionScopes(this.getDataset(),w),P=Object.keys(m1.elements[Q]),I=()=>this.getContext(X,q,J),A=M.resolveNamedOptions(_,P,I,R);if(A.$shared)A.$shared=F,N[K]=Object.freeze(vz(A,F));return A}_resolveAnimations(Q,J,X){let q=this.chart,N=this._cachedDataOpts,K=`animation-${J}`,H=N[K];if(H)return H;let F;if(q.options.animation!==!1){let w=this.chart.config,R=w.datasetAnimationScopeKeys(this._type,J),_=w.getOptionScopes(this.getDataset(),R);F=w.createResolver(_,this.getContext(Q,X,J))}let M=new KK(q,F&&F.animations);if(F&&F._cacheable)N[K]=Object.freeze(M);return M}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||nU(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,J){let X=this.resolveDataElementOptions(Q,J),q=this._sharedOptions,N=this.getSharedOptions(X),K=this.includeOptions(J,N)||N!==q;return this.updateSharedOptions(N,J,X),{sharedOptions:N,includeOptions:K}}updateElement(Q,J,X,q){if(nU(q))Object.assign(Q,X);else this._resolveAnimations(J,q).update(Q,X)}updateSharedOptions(Q,J,X){if(Q&&!nU(J))this._resolveAnimations(void 0,J).update(Q,X)}_setStyle(Q,J,X,q){Q.active=q;let N=this.getStyle(J,q);this._resolveAnimations(J,X,q).update(Q,{options:!q&&this.getSharedOptions(N)||N})}removeHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!1)}setHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!0)}_removeDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!1)}_setDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!0)}_resyncElements(Q){let J=this._data,X=this._cachedMeta.data;for(let[H,F,M]of this._syncList)this[H](F,M);this._syncList=[];let q=X.length,N=J.length,K=Math.min(N,q);if(K)this.parse(0,K);if(N>q)this._insertElements(q,N-q,Q);else if(N<q)this._removeElements(N,q-N)}_insertElements(Q,J,X=!0){let q=this._cachedMeta,N=q.data,K=Q+J,H,F=(M)=>{M.length+=J;for(H=M.length-1;H>=K;H--)M[H]=M[H-J]};F(N);for(H=Q;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)F(q._parsed);if(this.parse(Q,J),X)this.updateElements(N,Q,J,"reset")}updateElements(Q,J,X,q){}_removeElements(Q,J){let X=this._cachedMeta;if(this._parsing){let q=X._parsed.splice(Q,J);if(X._stacked)PQ(X,q)}X.data.splice(Q,J)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[J,X,q]=Q;this[J](X,q)}this.chart._dataChanges.push([this.index,...Q])}_onDataPush(){let Q=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-Q,Q])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(Q,J){if(J)this._sync(["_removeElements",Q,J]);let X=arguments.length-2;if(X)this._sync(["_insertElements",Q,X])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function CA(Q,J){if(!Q._cache.$bar){let X=Q.getMatchingVisibleMetas(J),q=[];for(let N=0,K=X.length;N<K;N++)q=q.concat(X[N].controller.getAllParsedValues(Q));Q._cache.$bar=VU(q.sort((N,K)=>N-K))}return Q._cache.$bar}function IA(Q){let J=Q.iScale,X=CA(J,Q.type),q=J._length,N,K,H,F,M=()=>{if(H===32767||H===-32768)return;if(w$(F))q=Math.min(q,Math.abs(H-F)||q);F=H};for(N=0,K=X.length;N<K;++N)H=J.getPixelForValue(X[N]),M();F=void 0;for(N=0,K=J.ticks.length;N<K;++N)H=J.getPixelForTick(N),M();return q}function OA(Q,J,X,q){let N=X.barThickness,K,H;if(J1(N))K=J.min*X.categoryPercentage,H=X.barPercentage;else K=N*q,H=1;return{chunk:K/q,ratio:H,start:J.pixels[Q]-K/2}}function VA(Q,J,X,q){let N=J.pixels,K=N[Q],H=Q>0?N[Q-1]:null,F=Q<N.length-1?N[Q+1]:null,M=X.categoryPercentage;if(H===null)H=K-(F===null?J.end-J.start:F-K);if(F===null)F=K+K-H;let w=K-(K-Math.min(H,F))/2*M;return{chunk:Math.abs(F-H)/2*M/q,ratio:X.barPercentage,start:w}}function AA(Q,J,X,q){let N=X.parse(Q[0],q),K=X.parse(Q[1],q),H=Math.min(N,K),F=Math.max(N,K),M=H,w=F;if(Math.abs(H)>Math.abs(F))M=F,w=H;J[X.axis]=w,J._custom={barStart:M,barEnd:w,start:N,end:K,min:H,max:F}}function V_(Q,J,X,q){if(j1(Q))AA(Q,J,X,q);else J[X.axis]=X.parse(Q,q);return J}function bz(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),F=N===K,M=[],w,R,_,P;for(w=X,R=X+q;w<R;++w)P=J[w],_={},_[N.axis]=F||N.parse(H[w],w),M.push(V_(P,_,K,w));return M}function sU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function EA(Q,J,X){if(Q!==0)return H4(Q);return(J.isHorizontal()?1:-1)*(J.min>=X?1:-1)}function SA(Q){let J,X,q,N,K;if(Q.horizontal)J=Q.base>Q.x,X="left",q="right";else J=Q.base<Q.y,X="bottom",q="top";if(J)N="end",K="start";else N="start",K="end";return{start:X,end:q,reverse:J,top:N,bottom:K}}function jA(Q,J,X,q){let N=J.borderSkipped,K={};if(!N){Q.borderSkipped=K;return}if(N===!0){Q.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:F,reverse:M,top:w,bottom:R}=SA(Q);if(N==="middle"&&X)if(Q.enableBorderRadius=!0,(X._top||0)===q)N=w;else if((X._bottom||0)===q)N=R;else K[kz(R,H,F,M)]=!0,N=w;K[kz(N,H,F,M)]=!0,Q.borderSkipped=K}function kz(Q,J,X,q){if(q)Q=DA(Q,J,X),Q=fz(Q,X,J);else Q=fz(Q,J,X);return Q}function DA(Q,J,X){return Q===J?X:Q===X?J:Q}function fz(Q,J,X){return Q==="start"?J:Q==="end"?X:Q}function vA(Q,{inflateAmount:J},X){Q.inflateAmount=J==="auto"?X===1?0.33:0:J}class BK extends QX{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(Q,J,X,q){return bz(Q,J,X,q)}parseArrayData(Q,J,X,q){return bz(Q,J,X,q)}parseObjectData(Q,J,X,q){let{iScale:N,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,M=N.axis==="x"?H:F,w=K.axis==="x"?H:F,R=[],_,P,I,A;for(_=X,P=X+q;_<P;++_)A=J[_],I={},I[N.axis]=N.parse(x9(A,M),_),R.push(V_(x9(A,w),I,K,_));return R}updateRangeFromParsed(Q,J,X,q){super.updateRangeFromParsed(Q,J,X,q);let N=X._custom;if(N&&J===this._cachedMeta.vScale)Q.min=Math.min(Q.min,N.min),Q.max=Math.max(Q.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(Q){let J=this._cachedMeta,{iScale:X,vScale:q}=J,N=this.getParsed(Q),K=N._custom,H=sU(K)?"["+K.start+", "+K.end+"]":""+q.getLabelForValue(N[q.axis]);return{label:""+X.getLabelForValue(N[X.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let Q=this._cachedMeta;Q.stack=this.getDataset().stack}update(Q){let J=this._cachedMeta;this.updateElements(J.data,0,J.data.length,Q)}updateElements(Q,J,X,q){let N=q==="reset",{index:K,_cachedMeta:{vScale:H}}=this,F=H.getBasePixel(),M=H.isHorizontal(),w=this._getRuler(),{sharedOptions:R,includeOptions:_}=this._getSharedOptions(J,q);for(let P=J;P<J+X;P++){let I=this.getParsed(P),A=N||J1(I[H.axis])?{base:F,head:F}:this._calculateBarValuePixels(P),V=this._calculateBarIndexPixels(P,w),O=(I._stacks||{})[H.axis],D={horizontal:M,base:A.base,enableBorderRadius:!O||sU(I._custom)||K===O._top||K===O._bottom,x:M?A.head:V.center,y:M?V.center:A.head,height:M?V.size:Math.abs(A.size),width:M?Math.abs(A.size):V.size};if(_)D.options=R||this.resolveDataElementOptions(P,Q[P].active?"active":q);let h=D.options||Q[P].options;jA(D,h,O,K),vA(D,h,w.ratio),this.updateElement(Q[P],P,D,q)}}_getStacks(Q,J){let{iScale:X}=this._cachedMeta,q=X.getMatchingVisibleMetas(this._type).filter((w)=>w.controller.options.grouped),N=X.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(J),F=H&&H[X.axis],M=(w)=>{let R=w._parsed.find((P)=>P[X.axis]===F),_=R&&R[w.vScale.axis];if(J1(_)||isNaN(_))return!0};for(let w of q){if(J!==void 0&&M(w))continue;if(N===!1||K.indexOf(w.stack)===-1||N===void 0&&w.stack===void 0)K.push(w.stack);if(w.index===Q)break}if(!K.length)K.push(void 0);return K}_getStackCount(Q){return this._getStacks(void 0,Q).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let Q=this.chart.scales,J=this.chart.options.indexAxis;return Object.keys(Q).filter((X)=>Q[X].axis===J).shift()}_getAxis(){let Q={},J=this.getFirstScaleIdForIndexAxis();for(let X of this.chart.data.datasets)Q[n0(this.chart.options.indexAxis==="x"?X.xAxisID:X.yAxisID,J)]=!0;return Object.keys(Q)}_getStackIndex(Q,J,X){let q=this._getStacks(Q,X),N=J!==void 0?q.indexOf(J):-1;return N===-1?q.length-1:N}_getRuler(){let Q=this.options,J=this._cachedMeta,X=J.iScale,q=[],N,K;for(N=0,K=J.data.length;N<K;++N)q.push(X.getPixelForValue(this.getParsed(N)[X.axis],N));let H=Q.barThickness;return{min:H||IA(J),pixels:q,start:X._startPixel,end:X._endPixel,stackCount:this._getStackCount(),scale:X,grouped:Q.grouped,ratio:H?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:J,_stacked:X,index:q},options:{base:N,minBarLength:K}}=this,H=N||0,F=this.getParsed(Q),M=F._custom,w=sU(M),R=F[J.axis],_=0,P=X?this.applyStack(J,F,X):R,I,A;if(P!==R)_=P-R,P=R;if(w){if(R=M.barStart,P=M.barEnd-M.barStart,R!==0&&H4(R)!==H4(M.barEnd))_=0;_+=R}let V=!J1(N)&&!w?N:_,O=J.getPixelForValue(V);if(this.chart.getDataVisibility(Q))I=J.getPixelForValue(_+P);else I=O;if(A=I-O,Math.abs(A)<K){if(A=EA(A,J,H)*K,R===H)O-=A/2;let D=J.getPixelForDecimal(0),h=J.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(O=Math.max(Math.min(O,s),p),I=O+A,X&&!w)F._stacks[J.axis]._visualValues[q]=J.getValueForPixel(I)-J.getValueForPixel(O)}if(O===J.getPixelForValue(H)){let D=H4(A)*J.getLineWidthForValue(H)/2;O+=D,A-=D}return{size:A,base:O,head:I,center:I+A/2}}_calculateBarIndexPixels(Q,J){let X=J.scale,q=this.options,N=q.skipNull,K=n0(q.maxBarThickness,1/0),H,F,M=this._getAxisCount();if(J.grouped){let w=N?this._getStackCount(Q):J.stackCount,R=q.barThickness==="flex"?VA(Q,J,q,w*M):OA(Q,J,q,w*M),_=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(n0(_,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+P;H=R.start+R.chunk*I+R.chunk/2,F=Math.min(K,R.chunk*R.ratio)}else H=X.getPixelForValue(this.getParsed(Q)[X.axis],Q),F=Math.min(K,J.min*J.ratio);return{base:H-F/2,head:H+F/2,center:H,size:F}}draw(){let Q=this._cachedMeta,J=Q.vScale,X=Q.data,q=X.length,N=0;for(;N<q;++N)if(this.getParsed(N)[J.axis]!==null&&!X[N].hidden)X[N].draw(this._ctx)}}class HK extends QX{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(Q){let J=this._cachedMeta,{dataset:X,data:q=[],_dataset:N}=J,K=this.chart._animationsDisabled,{start:H,count:F}=Nz(J,q,K);if(this._drawStart=H,this._drawCount=F,Uz(J))H=0,F=q.length;X._chart=this.chart,X._datasetIndex=this.index,X._decimated=!!N._decimated,X.points=q;let M=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)M.borderWidth=0;M.segment=this.options.segment,this.updateElement(X,void 0,{animated:!K,options:M},Q),this.updateElements(q,H,F,Q)}updateElements(Q,J,X,q){let N=q==="reset",{iScale:K,vScale:H,_stacked:F,_dataset:M}=this._cachedMeta,{sharedOptions:w,includeOptions:R}=this._getSharedOptions(J,q),_=K.axis,P=H.axis,{spanGaps:I,segment:A}=this.options,V=z$(I)?I:Number.POSITIVE_INFINITY,O=this.chart._animationsDisabled||N||q==="none",D=J+X,h=Q.length,p=J>0&&this.getParsed(J-1);for(let s=0;s<h;++s){let a=Q[s],J0=O?a:{};if(s<J||s>=D){J0.skip=!0;continue}let t=this.getParsed(s),i=J1(t[P]),Y0=J0[_]=K.getPixelForValue(t[_],s),d=J0[P]=N||i?H.getBasePixel():H.getPixelForValue(F?this.applyStack(H,t,F):t[P],s);if(J0.skip=isNaN(Y0)||isNaN(d)||i,J0.stop=s>0&&Math.abs(t[_]-p[_])>V,A)J0.parsed=t,J0.raw=M.data[s];if(R)J0.options=w||this.resolveDataElementOptions(s,a.active?"active":q);if(!O)this.updateElement(a,s,J0,q);p=t}}getMaxOverflow(){let Q=this._cachedMeta,J=Q.dataset,X=J.options&&J.options.borderWidth||0,q=Q.data||[];if(!q.length)return X;let N=q[0].size(this.resolveDataElementOptions(0)),K=q[q.length-1].size(this.resolveDataElementOptions(q.length-1));return Math.max(X,N,K)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function d9(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class FK{static override(Q){Object.assign(FK.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return d9()}parse(){return d9()}format(){return d9()}add(){return d9()}diff(){return d9()}startOf(){return d9()}endOf(){return d9()}}var bA={_date:FK};function kA(Q,J,X,q){let{controller:N,data:K,_sorted:H}=Q,F=N._cachedMeta.iScale,M=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(F&&J===F.axis&&J!=="r"&&H&&K.length){let w=F._reversePixels?Qz:v8;if(!q){let R=w(K,J,X);if(M){let{vScale:_}=N._cachedMeta,{_parsed:P}=Q,I=P.slice(0,R.lo+1).reverse().findIndex((V)=>!J1(V[_.axis]));R.lo-=Math.max(0,I);let A=P.slice(R.hi).findIndex((V)=>!J1(V[_.axis]));R.hi+=Math.max(0,A)}return R}else if(N._sharedOptions){let R=K[0],_=typeof R.getRange==="function"&&R.getRange(J);if(_){let P=w(K,J,X-_),I=w(K,J,X+_);return{lo:P.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function vQ(Q,J,X,q,N){let K=Q.getSortedVisibleDatasetMetas(),H=X[J];for(let F=0,M=K.length;F<M;++F){let{index:w,data:R}=K[F],{lo:_,hi:P}=kA(K[F],J,H,N);for(let I=_;I<=P;++I){let A=R[I];if(!A.skip)q(A,w,I)}}}function fA(Q){let J=Q.indexOf("x")!==-1,X=Q.indexOf("y")!==-1;return function(q,N){let K=J?Math.abs(q.x-N.x):0,H=X?Math.abs(q.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function oU(Q,J,X,q,N){let K=[];if(!N&&!Q.isPointInArea(J))return K;return vQ(Q,X,J,function(F,M,w){if(!N&&!p4(F,Q.chartArea,0))return;if(F.inRange(J.x,J.y,q))K.push({element:F,datasetIndex:M,index:w})},!0),K}function yA(Q,J,X,q){let N=[];function K(H,F,M){let{startAngle:w,endAngle:R}=H.getProps(["startAngle","endAngle"],q),{angle:_}=$z(H,{x:J.x,y:J.y});if(IU(_,w,R))N.push({element:H,datasetIndex:F,index:M})}return vQ(Q,X,J,K),N}function gA(Q,J,X,q,N,K){let H=[],F=fA(X),M=Number.POSITIVE_INFINITY;function w(R,_,P){let I=R.inRange(J.x,J.y,N);if(q&&!I)return;let A=R.getCenterPoint(N);if(!(!!K||Q.isPointInArea(A))&&!I)return;let O=F(J,A);if(O<M)H=[{element:R,datasetIndex:_,index:P}],M=O;else if(O===M)H.push({element:R,datasetIndex:_,index:P})}return vQ(Q,X,J,w),H}function aU(Q,J,X,q,N,K){if(!K&&!Q.isPointInArea(J))return[];return X==="r"&&!q?yA(Q,J,X,N):gA(Q,J,X,q,N,K)}function yz(Q,J,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",F=!1;if(vQ(Q,X,J,(M,w,R)=>{if(M[H]&&M[H](J[X],N))K.push({element:M,datasetIndex:w,index:R}),F=F||M.inRange(J.x,J.y,N)}),q&&!F)return[];return K}var hA={evaluateInteractionItems:vQ,modes:{index(Q,J,X,q){let N=h8(J,Q),K=X.axis||"x",H=X.includeInvisible||!1,F=X.intersect?oU(Q,N,K,q,H):aU(Q,N,K,!1,q,H),M=[];if(!F.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let R=F[0].index,_=w.data[R];if(_&&!_.skip)M.push({element:_,datasetIndex:w.index,index:R})}),M},dataset(Q,J,X,q){let N=h8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1,F=X.intersect?oU(Q,N,K,q,H):aU(Q,N,K,!1,q,H);if(F.length>0){let M=F[0].datasetIndex,w=Q.getDatasetMeta(M).data;F=[];for(let R=0;R<w.length;++R)F.push({element:w[R],datasetIndex:M,index:R})}return F},point(Q,J,X,q){let N=h8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return oU(Q,N,K,q,H)},nearest(Q,J,X,q){let N=h8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return aU(Q,N,K,X.intersect,q,H)},x(Q,J,X,q){let N=h8(J,Q);return yz(Q,N,"x",X.intersect,q)},y(Q,J,X,q){let N=h8(J,Q);return yz(Q,N,"y",X.intersect,q)}}},A_=["left","top","right","bottom"];function TQ(Q,J){return Q.filter((X)=>X.pos===J)}function gz(Q,J){return Q.filter((X)=>A_.indexOf(X.pos)===-1&&X.box.axis===J)}function CQ(Q,J){return Q.sort((X,q)=>{let N=J?q:X,K=J?X:q;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function uA(Q){let J=[],X,q,N,K,H,F;for(X=0,q=(Q||[]).length;X<q;++X)N=Q[X],{position:K,options:{stack:H,stackWeight:F=1}}=N,J.push({index:X,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:F});return J}function xA(Q){let J={};for(let X of Q){let{stack:q,pos:N,stackWeight:K}=X;if(!q||!A_.includes(N))continue;let H=J[q]||(J[q]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return J}function mA(Q,J){let X=xA(Q),{vBoxMaxWidth:q,hBoxMaxHeight:N}=J,K,H,F;for(K=0,H=Q.length;K<H;++K){F=Q[K];let{fullSize:M}=F.box,w=X[F.stack],R=w&&F.stackWeight/w.weight;if(F.horizontal)F.width=R?R*q:M&&J.availableWidth,F.height=N;else F.width=q,F.height=R?R*N:M&&J.availableHeight}return X}function dA(Q){let J=uA(Q),X=CQ(J.filter((w)=>w.box.fullSize),!0),q=CQ(TQ(J,"left"),!0),N=CQ(TQ(J,"right")),K=CQ(TQ(J,"top"),!0),H=CQ(TQ(J,"bottom")),F=gz(J,"x"),M=gz(J,"y");return{fullSize:X,leftAndTop:q.concat(K),rightAndBottom:N.concat(M).concat(H).concat(F),chartArea:TQ(J,"chartArea"),vertical:q.concat(N).concat(M),horizontal:K.concat(H).concat(F)}}function hz(Q,J,X,q){return Math.max(Q[X],J[X])+Math.max(Q[q],J[q])}function E_(Q,J){Q.top=Math.max(Q.top,J.top),Q.left=Math.max(Q.left,J.left),Q.bottom=Math.max(Q.bottom,J.bottom),Q.right=Math.max(Q.right,J.right)}function pA(Q,J,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!$1(N)){if(X.size)Q[N]-=X.size;let _=q[X.stack]||{size:0,count:1};_.size=Math.max(_.size,X.horizontal?K.height:K.width),X.size=_.size/_.count,Q[N]+=X.size}if(K.getPadding)E_(H,K.getPadding());let F=Math.max(0,J.outerWidth-hz(H,Q,"left","right")),M=Math.max(0,J.outerHeight-hz(H,Q,"top","bottom")),w=F!==Q.w,R=M!==Q.h;return Q.w=F,Q.h=M,X.horizontal?{same:w,other:R}:{same:R,other:w}}function cA(Q){let J=Q.maxPadding;function X(q){let N=Math.max(J[q]-Q[q],0);return Q[q]+=N,N}Q.y+=X("top"),Q.x+=X("left"),X("right"),X("bottom")}function lA(Q,J){let X=J.maxPadding;function q(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(J[H],X[H])}),K}return Q?q(["left","right"]):q(["top","bottom"])}function VQ(Q,J,X,q){let N=[],K,H,F,M,w,R;for(K=0,H=Q.length,w=0;K<H;++K){F=Q[K],M=F.box,M.update(F.width||J.w,F.height||J.h,lA(F.horizontal,J));let{same:_,other:P}=pA(J,X,F,q);if(w|=_&&N.length,R=R||P,!M.fullSize)N.push(F)}return w&&VQ(N,J,X,q)||R}function s3(Q,J,X,q,N){Q.top=X,Q.left=J,Q.right=J+q,Q.bottom=X+N,Q.width=q,Q.height=N}function uz(Q,J,X,q){let N=X.padding,{x:K,y:H}=J;for(let F of Q){let M=F.box,w=q[F.stack]||{count:1,placed:0,weight:1},R=F.stackWeight/w.weight||1;if(F.horizontal){let _=J.w*R,P=w.size||M.height;if(w$(w.start))H=w.start;if(M.fullSize)s3(M,N.left,H,X.outerWidth-N.right-N.left,P);else s3(M,J.left+w.placed,H,_,P);w.start=H,w.placed+=_,H=M.bottom}else{let _=J.h*R,P=w.size||M.width;if(w$(w.start))K=w.start;if(M.fullSize)s3(M,K,N.top,P,X.outerHeight-N.bottom-N.top);else s3(M,K,J.top+w.placed,P,_);w.start=K,w.placed+=_,K=M.right}}J.x=K,J.y=H}var n6={addBox(Q,J){if(!Q.boxes)Q.boxes=[];J.fullSize=J.fullSize||!1,J.position=J.position||"top",J.weight=J.weight||0,J._layers=J._layers||function(){return[{z:0,draw(X){J.draw(X)}}]},Q.boxes.push(J)},removeBox(Q,J){let X=Q.boxes?Q.boxes.indexOf(J):-1;if(X!==-1)Q.boxes.splice(X,1)},configure(Q,J,X){J.fullSize=X.fullSize,J.position=X.position,J.weight=X.weight},update(Q,J,X,q){if(!Q)return;let N=I5(Q.options.layout.padding),K=Math.max(J-N.width,0),H=Math.max(X-N.height,0),F=dA(Q.boxes),M=F.vertical,w=F.horizontal;W1(Q.boxes,(V)=>{if(typeof V.beforeLayout==="function")V.beforeLayout()});let R=M.reduce((V,O)=>O.box.options&&O.box.options.display===!1?V:V+1,0)||1,_=Object.freeze({outerWidth:J,outerHeight:X,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/R,hBoxMaxHeight:H/2}),P=Object.assign({},N);E_(P,I5(q));let I=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),A=mA(M.concat(w),_);if(VQ(F.fullSize,I,_,A),VQ(M,I,_,A),VQ(w,I,_,A))VQ(M,I,_,A);cA(I),uz(F.leftAndTop,I,_,A),I.x+=I.w,I.y+=I.h,uz(F.rightAndBottom,I,_,A),Q.chartArea={left:I.left,top:I.top,right:I.left+I.w,bottom:I.top+I.h,height:I.h,width:I.w},W1(F.chartArea,(V)=>{let O=V.box;Object.assign(O,Q.chartArea),O.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class MK{acquireContext(Q,J){}releaseContext(Q){return!1}addEventListener(Q,J,X){}removeEventListener(Q,J,X){}getDevicePixelRatio(){return 1}getMaximumSize(Q,J,X,q){return J=Math.max(0,J||Q.width),X=X||Q.height,{width:J,height:Math.max(0,q?Math.floor(J/q):X)}}isAttached(Q){return!0}updateConfig(Q){}}class S_ extends MK{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var e3="$chartjs",rA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xz=(Q)=>Q===null||Q==="";function nA(Q,J){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[e3]={initial:{height:q,width:N,style:{display:X.display,height:X.height,width:X.width}}},X.display=X.display||"block",X.boxSizing=X.boxSizing||"border-box",xz(N)){let K=uU(Q,"width");if(K!==void 0)Q.width=K}if(xz(q))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=uU(Q,"height");if(K!==void 0)Q.height=K}return Q}var j_=Tz?{passive:!0}:!1;function sA(Q,J,X){if(Q)Q.addEventListener(J,X,j_)}function oA(Q,J,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,X,j_)}function aA(Q,J){let X=rA[Q.type]||Q.type,{x:q,y:N}=h8(Q,J);return{type:X,chart:J,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function ZX(Q,J){for(let X of Q)if(X===J||X.contains(J))return!0}function iA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||ZX(F.addedNodes,q),H=H&&!ZX(F.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function tA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||ZX(F.removedNodes,q),H=H&&!ZX(F.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var SQ=new Map,mz=0;function D_(){let Q=window.devicePixelRatio;if(Q===mz)return;mz=Q,SQ.forEach((J,X)=>{if(X.currentDevicePixelRatio!==Q)J()})}function eA(Q,J){if(!SQ.size)window.addEventListener("resize",D_);SQ.set(Q,J)}function $E(Q){if(SQ.delete(Q),!SQ.size)window.removeEventListener("resize",D_)}function ZE(Q,J,X){let q=Q.canvas,N=q&&r3(q);if(!N)return;let K=EU((F,M)=>{let w=N.clientWidth;if(X(F,M),w<N.clientWidth)X()},window),H=new ResizeObserver((F)=>{let M=F[0],w=M.contentRect.width,R=M.contentRect.height;if(w===0&&R===0)return;K(w,R)});return H.observe(N),eA(Q,K),H}function iU(Q,J,X){if(X)X.disconnect();if(J==="resize")$E(Q)}function QE(Q,J,X){let q=Q.canvas,N=EU((K)=>{if(Q.ctx!==null)X(aA(K,Q))},Q);return sA(q,J,N),N}class v_ extends MK{acquireContext(Q,J){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return nA(Q,J),X;return null}releaseContext(Q){let J=Q.canvas;if(!J[e3])return!1;let X=J[e3].initial;["height","width"].forEach((N)=>{let K=X[N];if(J1(K))J.removeAttribute(N);else J.setAttribute(N,K)});let q=X.style||{};return Object.keys(q).forEach((N)=>{J.style[N]=q[N]}),J.width=J.width,delete J[e3],!0}addEventListener(Q,J,X){this.removeEventListener(Q,J);let q=Q.$proxies||(Q.$proxies={}),K={attach:iA,detach:tA,resize:ZE}[J]||QE;q[J]=K(Q,J,X)}removeEventListener(Q,J){let X=Q.$proxies||(Q.$proxies={}),q=X[J];if(!q)return;({attach:iU,detach:iU,resize:iU}[J]||oA)(Q,J,q),X[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,X,q){return Pz(Q,J,X,q)}isAttached(Q){let J=Q&&r3(Q);return!!(J&&J.isConnected)}}function JE(Q){if(!l3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return S_;return v_}class v2{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}hasValue(){return z$(this.x)&&z$(this.y)}getProps(Q,J){let X=this.$animations;if(!J||!X)return this;let q={};return Q.forEach((N)=>{q[N]=X[N]&&X[N].active()?X[N]._to:this[N]}),q}}function GE(Q,J){let X=Q.options.ticks,q=XE(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?YE(J):[],H=K.length,F=K[0],M=K[H-1],w=[];if(H>N)return NE(J,w,K,H/N),w;let R=qE(K,J,N);if(H>0){let _,P,I=H>1?Math.round((M-F)/(H-1)):null;o3(J,w,R,J1(I)?0:F-I,F);for(_=0,P=H-1;_<P;_++)o3(J,w,R,K[_],K[_+1]);return o3(J,w,R,M,J1(I)?J.length:M+I),w}return o3(J,w,R),w}function XE(Q){let J=Q.options.offset,X=Q._tickSize(),q=Q._length/X+(J?0:1),N=Q._maxLength/X;return Math.floor(Math.min(q,N))}function qE(Q,J,X){let q=UE(Q),N=J.length/X;if(!q)return Math.max(N,1);let K=tR(q);for(let H=0,F=K.length-1;H<F;H++){let M=K[H];if(M>N)return M}return Math.max(N,1)}function YE(Q){let J=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)J.push(X);return J}function NE(Q,J,X,q){let N=0,K=X[0],H;q=Math.ceil(q);for(H=0;H<Q.length;H++)if(H===K)J.push(Q[H]),N++,K=X[N*q]}function o3(Q,J,X,q,N){let K=n0(q,0),H=Math.min(n0(N,Q.length),Q.length),F=0,M,w,R;if(X=Math.ceil(X),N)M=N-q,X=M/Math.floor(M/X);R=K;while(R<0)F++,R=Math.round(K+F*X);for(w=Math.max(K,0);w<H;w++)if(w===R)J.push(Q[w]),F++,R=Math.round(K+F*X)}function UE(Q){let J=Q.length,X,q;if(J<2)return!1;for(q=Q[0],X=1;X<J;++X)if(Q[X]-Q[X-1]!==q)return!1;return q}var KE=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,dz=(Q,J,X)=>J==="top"||J==="left"?Q[J]+X:Q[J]-X,pz=(Q,J)=>Math.min(J||Q,Q);function cz(Q,J){let X=[],q=Q.length/J,N=Q.length,K=0;for(;K<N;K+=q)X.push(Q[Math.floor(K)]);return X}function BE(Q,J,X){let q=Q.ticks.length,N=Math.min(J,q-1),K=Q._startPixel,H=Q._endPixel,F=0.000001,M=Q.getPixelForTick(N),w;if(X){if(q===1)w=Math.max(M-K,H-M);else if(J===0)w=(Q.getPixelForTick(1)-M)/2;else w=(M-Q.getPixelForTick(N-1))/2;if(M+=N<J?w:-w,M<K-0.000001||M>H+0.000001)return}return M}function HE(Q,J){W1(Q,(X)=>{let q=X.gc,N=q.length/2,K;if(N>J){for(K=0;K<N;++K)delete X.data[q[K]];q.splice(0,N)}})}function IQ(Q){return Q.drawTicks?Q.tickLength:0}function lz(Q,J){if(!Q.display)return 0;let X=X5(Q.font,J),q=I5(Q.padding);return(j1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function FE(Q,J){return S2(Q,{scale:J,type:"scale"})}function ME(Q,J,X){return S2(Q,{tick:X,index:J,type:"tick"})}function WE(Q,J,X){let q=x3(Q);if(X&&J!=="right"||!X&&J==="right")q=KE(q);return q}function wE(Q,J,X,q){let{top:N,left:K,bottom:H,right:F,chart:M}=Q,{chartArea:w,scales:R}=M,_=0,P,I,A,V=H-N,O=F-K;if(Q.isHorizontal()){if(I=C5(q,K,F),$1(X)){let D=Object.keys(X)[0],h=X[D];A=R[D].getPixelForValue(h)+V-J}else if(X==="center")A=(w.bottom+w.top)/2+V-J;else A=dz(Q,X,J);P=F-K}else{if($1(X)){let D=Object.keys(X)[0],h=X[D];I=R[D].getPixelForValue(h)-O+J}else if(X==="center")I=(w.left+w.right)/2-O+J;else I=dz(Q,X,J);A=C5(q,H,N),_=X==="left"?-Z6:Z6}return{titleX:I,titleY:A,maxWidth:P,rotation:_}}class c9 extends v2{constructor(Q){super();this.id=Q.id,this.type=Q.type,this.options=void 0,this.ctx=Q.ctx,this.chart=Q.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(Q){this.options=Q.setContext(this.getContext()),this.axis=Q.axis,this._userMin=this.parse(Q.min),this._userMax=this.parse(Q.max),this._suggestedMin=this.parse(Q.suggestedMin),this._suggestedMax=this.parse(Q.suggestedMax)}parse(Q,J){return Q}getUserBounds(){let{_userMin:Q,_userMax:J,_suggestedMin:X,_suggestedMax:q}=this;return Q=G6(Q,Number.POSITIVE_INFINITY),J=G6(J,Number.NEGATIVE_INFINITY),X=G6(X,Number.POSITIVE_INFINITY),q=G6(q,Number.NEGATIVE_INFINITY),{min:G6(Q,X),max:G6(J,q),minDefined:x1(Q),maxDefined:x1(J)}}getMinMax(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=this.getUserBounds(),K;if(q&&N)return{min:J,max:X};let H=this.getMatchingVisibleMetas();for(let F=0,M=H.length;F<M;++F){if(K=H[F].controller.getMinMax(this,Q),!q)J=Math.min(J,K.min);if(!N)X=Math.max(X,K.max)}return J=N&&J>X?X:J,X=q&&J>X?J:X,{min:G6(J,G6(X,J)),max:G6(X,G6(J,X))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let Q=this.chart.data;return this.options.labels||(this.isHorizontal()?Q.xLabels:Q.yLabels)||Q.labels||[]}getLabelItems(Q=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(Q))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){V1(this.options.beforeUpdate,[this])}update(Q,J,X){let{beginAtZero:q,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=J,this._margins=X=Object.assign({left:0,right:0,top:0,bottom:0},X),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+X.left+X.right:this.height+X.top+X.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Wz(this,N,q),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let F=H<this.ticks.length;if(this._convertTicksToLabels(F?cz(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=GE(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(F)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Q=this.options.reverse,J,X;if(this.isHorizontal())J=this.left,X=this.right;else J=this.top,X=this.bottom,Q=!Q;this._startPixel=J,this._endPixel=X,this._reversePixels=Q,this._length=X-J,this._alignToPixels=this.options.alignToPixels}afterUpdate(){V1(this.options.afterUpdate,[this])}beforeSetDimensions(){V1(this.options.beforeSetDimensions,[this])}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=0,this.right=this.width;else this.height=this.maxHeight,this.top=0,this.bottom=this.height;this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){V1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),V1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){V1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let J=this.options.ticks,X,q,N;for(X=0,q=Q.length;X<q;X++)N=Q[X],N.label=V1(J.callback,[N.value,X,Q],this)}afterTickToLabelConversion(){V1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){V1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,X=pz(this.ticks.length,Q.ticks.maxTicksLimit),q=J.minRotation||0,N=J.maxRotation,K=q,H,F,M;if(!this._isVisible()||!J.display||q>=N||X<=1||!this.isHorizontal()){this.labelRotation=q;return}let w=this._getLabelSizes(),R=w.widest.width,_=w.highest.height,P=J6(this.chart.width-R,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:P/(X-1),R+6>H)H=P/(X-(Q.offset?0.5:1)),F=this.maxHeight-IQ(Q.grid)-J.padding-lz(Q.title,this.chart.options.font),M=Math.sqrt(R*R+_*_),K=h3(Math.min(Math.asin(J6((w.highest.height+6)/H,-1,1)),Math.asin(J6(F/M,-1,1))-Math.asin(J6(_/M,-1,1)))),K=Math.max(q,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){V1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){V1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:J,options:{ticks:X,title:q,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let F=lz(q,J.options.font);if(H)Q.width=this.maxWidth,Q.height=IQ(N)+F;else Q.height=this.maxHeight,Q.width=IQ(N)+F;if(X.display&&this.ticks.length){let{first:M,last:w,widest:R,highest:_}=this._getLabelSizes(),P=X.padding*2,I=A2(this.labelRotation),A=Math.cos(I),V=Math.sin(I);if(H){let O=X.mirror?0:V*R.width+A*_.height;Q.height=Math.min(this.maxHeight,Q.height+O+P)}else{let O=X.mirror?0:A*R.width+V*_.height;Q.width=Math.min(this.maxWidth,Q.width+O+P)}this._calculatePadding(M,w,V,A)}}if(this._handleMargins(),H)this.width=this._length=J.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=J.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,J,X,q){let{ticks:{align:N,padding:K},position:H}=this.options,F=this.labelRotation!==0,M=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,R=this.right-this.getPixelForTick(this.ticks.length-1),_=0,P=0;if(F)if(M)_=q*Q.width,P=X*J.height;else _=X*Q.height,P=q*J.width;else if(N==="start")P=J.width;else if(N==="end")_=Q.width;else if(N!=="inner")_=Q.width/2,P=J.width/2;this.paddingLeft=Math.max((_-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((P-R+K)*this.width/(this.width-R),0)}else{let w=J.height/2,R=Q.height/2;if(N==="start")w=0,R=Q.height;else if(N==="end")w=J.height,R=0;this.paddingTop=w+K,this.paddingBottom=R+K}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){V1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:J}=this.options;return J==="top"||J==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let J,X;for(J=0,X=Q.length;J<X;J++)if(J1(Q[J].label))Q.splice(J,1),X--,J--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let J=this.options.ticks.sampleSize,X=this.ticks;if(J<X.length)X=cz(X,J);this._labelSizes=Q=this._computeLabelSizes(X,X.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,J,X){let{ctx:q,_longestTextCache:N}=this,K=[],H=[],F=Math.floor(J/pz(J,X)),M=0,w=0,R,_,P,I,A,V,O,D,h,p,s;for(R=0;R<J;R+=F){if(I=Q[R].label,A=this._resolveTickFontOptions(R),q.font=V=A.string,O=N[V]=N[V]||{data:{},gc:[]},D=A.lineHeight,h=p=0,!J1(I)&&!j1(I))h=WQ(q,O.data,O.gc,h,I),p=D;else if(j1(I)){for(_=0,P=I.length;_<P;++_)if(s=I[_],!J1(s)&&!j1(s))h=WQ(q,O.data,O.gc,h,s),p+=D}K.push(h),H.push(p),M=Math.max(h,M),w=Math.max(p,w)}HE(N,J);let a=K.indexOf(M),J0=H.indexOf(w),t=(i)=>({width:K[i]||0,height:H[i]||0});return{first:t(0),last:t(J-1),widest:t(a),highest:t(J0),widths:K,heights:H}}getLabelForValue(Q){return Q}getPixelForValue(Q,J){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let J=this._startPixel+Q*this._length;return Zz(this._alignToPixels?f8(this.chart,J,0):J)}getDecimalForPixel(Q){let J=(Q-this._startPixel)/this._length;return this._reversePixels?1-J:J}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:J}=this;return Q<0&&J<0?J:Q>0&&J>0?Q:0}getContext(Q){let J=this.ticks||[];if(Q>=0&&Q<J.length){let X=J[Q];return X.$context||(X.$context=ME(this.getContext(),Q,X))}return this.$context||(this.$context=FE(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=A2(this.labelRotation),X=Math.abs(Math.cos(J)),q=Math.abs(Math.sin(J)),N=this._getLabelSizes(),K=Q.autoSkipPadding||0,H=N?N.widest.width+K:0,F=N?N.highest.height+K:0;return this.isHorizontal()?F*X>H*q?H/X:F/q:F*q<H*X?F/X:H/q}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let J=this.axis,X=this.chart,q=this.options,{grid:N,position:K,border:H}=q,F=N.offset,M=this.isHorizontal(),R=this.ticks.length+(F?1:0),_=IQ(N),P=[],I=H.setContext(this.getContext()),A=I.display?I.width:0,V=A/2,O=function(l){return f8(X,l,A)},D,h,p,s,a,J0,t,i,Y0,d,H0,P0;if(K==="top")D=O(this.bottom),J0=this.bottom-_,i=D-V,d=O(Q.top)+V,P0=Q.bottom;else if(K==="bottom")D=O(this.top),d=Q.top,P0=O(Q.bottom)-V,J0=D+V,i=this.top+_;else if(K==="left")D=O(this.right),a=this.right-_,t=D-V,Y0=O(Q.left)+V,H0=Q.right;else if(K==="right")D=O(this.left),Y0=Q.left,H0=O(Q.right)-V,a=D+V,t=this.left+_;else if(J==="x"){if(K==="center")D=O((Q.top+Q.bottom)/2+0.5);else if($1(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}d=Q.top,P0=Q.bottom,J0=D+V,i=J0+_}else if(J==="y"){if(K==="center")D=O((Q.left+Q.right)/2);else if($1(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}a=D-V,t=a-_,Y0=Q.left,H0=Q.right}let I0=n0(q.ticks.maxTicksLimit,R),b0=Math.max(1,Math.ceil(R/I0));for(h=0;h<R;h+=b0){let l=this.getContext(h),q0=N.setContext(l),F0=H.setContext(l),a0=q0.lineWidth,d0=q0.color,v=F0.dash||[],o=F0.dashOffset,M0=q0.tickWidth,W0=q0.tickColor,p0=q0.tickBorderDash||[],p1=q0.tickBorderDashOffset;if(p=BE(this,h,F),p===void 0)continue;if(s=f8(X,p,a0),M)a=t=Y0=H0=s;else J0=i=d=P0=s;P.push({tx1:a,ty1:J0,tx2:t,ty2:i,x1:Y0,y1:d,x2:H0,y2:P0,width:a0,color:d0,borderDash:v,borderDashOffset:o,tickWidth:M0,tickColor:W0,tickBorderDash:p0,tickBorderDashOffset:p1})}return this._ticksLength=R,this._borderValue=D,P}_computeLabelItems(Q){let J=this.axis,X=this.options,{position:q,ticks:N}=X,K=this.isHorizontal(),H=this.ticks,{align:F,crossAlign:M,padding:w,mirror:R}=N,_=IQ(X.grid),P=_+w,I=R?-w:P,A=-A2(this.labelRotation),V=[],O,D,h,p,s,a,J0,t,i,Y0,d,H0,P0="middle";if(q==="top")a=this.bottom-I,J0=this._getXAxisLabelAlignment();else if(q==="bottom")a=this.top+I,J0=this._getXAxisLabelAlignment();else if(q==="left"){let b0=this._getYAxisLabelAlignment(_);J0=b0.textAlign,s=b0.x}else if(q==="right"){let b0=this._getYAxisLabelAlignment(_);J0=b0.textAlign,s=b0.x}else if(J==="x"){if(q==="center")a=(Q.top+Q.bottom)/2+P;else if($1(q)){let b0=Object.keys(q)[0],l=q[b0];a=this.chart.scales[b0].getPixelForValue(l)+P}J0=this._getXAxisLabelAlignment()}else if(J==="y"){if(q==="center")s=(Q.left+Q.right)/2-P;else if($1(q)){let b0=Object.keys(q)[0],l=q[b0];s=this.chart.scales[b0].getPixelForValue(l)}J0=this._getYAxisLabelAlignment(_).textAlign}if(J==="y"){if(F==="start")P0="top";else if(F==="end")P0="bottom"}let I0=this._getLabelSizes();for(O=0,D=H.length;O<D;++O){h=H[O],p=h.label;let b0=N.setContext(this.getContext(O));t=this.getPixelForTick(O)+N.labelOffset,i=this._resolveTickFontOptions(O),Y0=i.lineHeight,d=j1(p)?p.length:1;let l=d/2,q0=b0.color,F0=b0.textStrokeColor,a0=b0.textStrokeWidth,d0=J0;if(K){if(s=t,J0==="inner")if(O===D-1)d0=!this.options.reverse?"right":"left";else if(O===0)d0=!this.options.reverse?"left":"right";else d0="center";if(q==="top")if(M==="near"||A!==0)H0=-d*Y0+Y0/2;else if(M==="center")H0=-I0.highest.height/2-l*Y0+Y0;else H0=-I0.highest.height+Y0/2;else if(M==="near"||A!==0)H0=Y0/2;else if(M==="center")H0=I0.highest.height/2-l*Y0;else H0=I0.highest.height-d*Y0;if(R)H0*=-1;if(A!==0&&!b0.showLabelBackdrop)s+=Y0/2*Math.sin(A)}else a=t,H0=(1-d)*Y0/2;let v;if(b0.showLabelBackdrop){let o=I5(b0.backdropPadding),M0=I0.heights[O],W0=I0.widths[O],p0=H0-o.top,p1=0-o.left;switch(P0){case"middle":p0-=M0/2;break;case"bottom":p0-=M0;break}switch(J0){case"center":p1-=W0/2;break;case"right":p1-=W0;break;case"inner":if(O===D-1)p1-=W0;else if(O>0)p1-=W0/2;break}v={left:p1,top:p0,width:W0+o.width,height:M0+o.height,color:b0.backdropColor}}V.push({label:p,font:i,textOffset:H0,options:{rotation:A,color:q0,strokeColor:F0,strokeWidth:a0,textAlign:d0,textBaseline:P0,translation:[s,a],backdrop:v}})}return V}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-A2(this.labelRotation))return Q==="top"?"left":"right";let q="center";if(J.align==="start")q="left";else if(J.align==="end")q="right";else if(J.align==="inner")q="inner";return q}_getYAxisLabelAlignment(Q){let{position:J,ticks:{crossAlign:X,mirror:q,padding:N}}=this.options,K=this._getLabelSizes(),H=Q+N,F=K.widest.width,M,w;if(J==="left")if(q)if(w=this.right+N,X==="near")M="left";else if(X==="center")M="center",w+=F/2;else M="right",w+=F;else if(w=this.right-H,X==="near")M="right";else if(X==="center")M="center",w-=F/2;else M="left",w=this.left;else if(J==="right")if(q)if(w=this.left+N,X==="near")M="right";else if(X==="center")M="center",w-=F/2;else M="left",w-=F;else if(w=this.left+H,X==="near")M="left";else if(X==="center")M="center",w+=F/2;else M="right",w=this.right;else M="right";return{textAlign:M,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;let Q=this.chart,J=this.options.position;if(J==="left"||J==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(J==="top"||J==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:J},left:X,top:q,width:N,height:K}=this;if(J)Q.save(),Q.fillStyle=J,Q.fillRect(X,q,N,K),Q.restore()}getLineWidthForValue(Q){let J=this.options.grid;if(!this._isVisible()||!J.display)return 0;let q=this.ticks.findIndex((N)=>N.value===Q);if(q>=0)return J.setContext(this.getContext(q)).lineWidth;return 0}drawGrid(Q){let J=this.options.grid,X=this.ctx,q=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),N,K,H=(F,M,w)=>{if(!w.width||!w.color)return;X.save(),X.lineWidth=w.width,X.strokeStyle=w.color,X.setLineDash(w.borderDash||[]),X.lineDashOffset=w.borderDashOffset,X.beginPath(),X.moveTo(F.x,F.y),X.lineTo(M.x,M.y),X.stroke(),X.restore()};if(J.display)for(N=0,K=q.length;N<K;++N){let F=q[N];if(J.drawOnChartArea)H({x:F.x1,y:F.y1},{x:F.x2,y:F.y2},F);if(J.drawTicks)H({x:F.tx1,y:F.ty1},{x:F.tx2,y:F.ty2},{color:F.tickColor,width:F.tickWidth,borderDash:F.tickBorderDash,borderDashOffset:F.tickBorderDashOffset})}}drawBorder(){let{chart:Q,ctx:J,options:{border:X,grid:q}}=this,N=X.setContext(this.getContext()),K=X.display?N.width:0;if(!K)return;let H=q.setContext(this.getContext(0)).lineWidth,F=this._borderValue,M,w,R,_;if(this.isHorizontal())M=f8(Q,this.left,K)-K/2,w=f8(Q,this.right,H)+H/2,R=_=F;else R=f8(Q,this.top,K)-K/2,_=f8(Q,this.bottom,H)+H/2,M=w=F;J.save(),J.lineWidth=N.width,J.strokeStyle=N.color,J.beginPath(),J.moveTo(M,R),J.lineTo(w,_),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let X=this.ctx,q=this._computeLabelArea();if(q)zQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:F,label:M,textOffset:w}=K;y8(X,M,0,w,F,H)}if(q)_Q(X)}drawTitle(){let{ctx:Q,options:{position:J,title:X,reverse:q}}=this;if(!X.display)return;let N=X5(X.font),K=I5(X.padding),H=X.align,F=N.lineHeight/2;if(J==="bottom"||J==="center"||$1(J)){if(F+=K.bottom,j1(X.text))F+=N.lineHeight*(X.text.length-1)}else F+=K.top;let{titleX:M,titleY:w,maxWidth:R,rotation:_}=wE(this,F,J,H);y8(Q,X.text,0,0,N,{color:X.color,maxWidth:R,rotation:_,textAlign:WE(H,J,q),textBaseline:"middle",translation:[M,w]})}draw(Q){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(Q),this.drawBorder(),this.drawTitle(),this.drawLabels(Q)}_layers(){let Q=this.options,J=Q.ticks&&Q.ticks.z||0,X=n0(Q.grid&&Q.grid.z,-1),q=n0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==c9.prototype.draw)return[{z:J,draw:(N)=>{this.draw(N)}}];return[{z:X,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:q,draw:()=>{this.drawBorder()}},{z:J,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(Q){let J=this.chart.getSortedVisibleDatasetMetas(),X=this.axis+"AxisID",q=[],N,K;for(N=0,K=J.length;N<K;++N){let H=J[N];if(H[X]===this.id&&(!Q||H.type===Q))q.push(H)}return q}_resolveTickFontOptions(Q){let J=this.options.ticks.setContext(this.getContext(Q));return X5(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class AQ{constructor(Q,J,X){this.type=Q,this.scope=J,this.override=X,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let J=Object.getPrototypeOf(Q),X;if(_E(J))X=this.register(J);let q=this.items,N=Q.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+Q);if(N in q)return K;if(q[N]=Q,RE(Q,K,X),this.override)m1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let J=this.items,X=Q.id,q=this.scope;if(X in J)delete J[X];if(q&&X in m1[q]){if(delete m1[q][X],this.override)delete k8[X]}}}function RE(Q,J,X){let q=F$(Object.create(null),[X?m1.get(X):{},m1.get(J),Q.defaults]);if(m1.set(J,q),Q.defaultRoutes)zE(J,Q.defaultRoutes);if(Q.descriptors)m1.describe(J,Q.descriptors)}function zE(Q,J){Object.keys(J).forEach((X)=>{let q=X.split("."),N=q.pop(),K=[Q].concat(q).join("."),H=J[X].split("."),F=H.pop(),M=H.join(".");m1.route(K,N,M,F)})}function _E(Q){return"id"in Q&&"defaults"in Q}class b_{constructor(){this.controllers=new AQ(QX,"datasets",!0),this.elements=new AQ(v2,"elements"),this.plugins=new AQ(Object,"plugins"),this.scales=new AQ(c9,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...Q){this._each("register",Q)}remove(...Q){this._each("unregister",Q)}addControllers(...Q){this._each("register",Q,this.controllers)}addElements(...Q){this._each("register",Q,this.elements)}addPlugins(...Q){this._each("register",Q,this.plugins)}addScales(...Q){this._each("register",Q,this.scales)}getController(Q){return this._get(Q,this.controllers,"controller")}getElement(Q){return this._get(Q,this.elements,"element")}getPlugin(Q){return this._get(Q,this.plugins,"plugin")}getScale(Q){return this._get(Q,this.scales,"scale")}removeControllers(...Q){this._each("unregister",Q,this.controllers)}removeElements(...Q){this._each("unregister",Q,this.elements)}removePlugins(...Q){this._each("unregister",Q,this.plugins)}removeScales(...Q){this._each("unregister",Q,this.scales)}_each(Q,J,X){[...J].forEach((q)=>{let N=X||this._getRegistryForType(q);if(X||N.isForType(q)||N===this.plugins&&q.id)this._exec(Q,N,q);else W1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,X){let q=g3(Q);V1(X["before"+q],[],X),J[Q](X),V1(X["after"+q],[],X)}_getRegistryForType(Q){for(let J=0;J<this._typedRegistries.length;J++){let X=this._typedRegistries[J];if(X.isForType(Q))return X}return this.plugins}_get(Q,J,X){let q=J.get(Q);if(q===void 0)throw Error('"'+Q+'" is not a registered '+X+".");return q}}var r4=new b_;class k_{constructor(){this._init=void 0}notify(Q,J,X,q){if(J==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let N=q?this._descriptors(Q).filter(q):this._descriptors(Q),K=this._notify(N,Q,J,X);if(J==="afterDestroy")this._notify(N,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,J,X,q){q=q||{};for(let N of Q){let K=N.plugin,H=K[X],F=[J,q,N.options];if(V1(H,F,K)===!1&&q.cancelable)return!1}return!0}invalidate(){if(!J1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let J=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),J}_createDescriptors(Q,J){let X=Q&&Q.config,q=n0(X.options&&X.options.plugins,{}),N=LE(X);return q===!1&&!J?[]:TE(Q,N,q,J)}_notifyStateChanges(Q){let J=this._oldCache||[],X=this._cache,q=(N,K)=>N.filter((H)=>!K.some((F)=>H.plugin.id===F.plugin.id));this._notify(q(J,X),Q,"stop"),this._notify(q(X,J),Q,"start")}}function LE(Q){let J={},X=[],q=Object.keys(r4.plugins.items);for(let K=0;K<q.length;K++)X.push(r4.getPlugin(q[K]));let N=Q.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(X.indexOf(H)===-1)X.push(H),J[H.id]=!0}return{plugins:X,localIds:J}}function PE(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function TE(Q,{plugins:J,localIds:X},q,N){let K=[],H=Q.getContext();for(let F of J){let M=F.id,w=PE(q[M],N);if(w===null)continue;K.push({plugin:F,options:CE(Q.config,{plugin:F,local:X[M]},w,H)})}return K}function CE(Q,{plugin:J,local:X},q,N){let K=Q.pluginScopeKeys(J),H=Q.getOptionScopes(q,K);if(X&&J.defaults)H.push(J.defaults);return Q.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function QK(Q,J){let X=m1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||X.indexAxis||"x"}function IE(Q,J){let X=Q;if(Q==="_index_")X=J;else if(Q==="_value_")X=J==="x"?"y":"x";return X}function OE(Q,J){return Q===J?"_index_":"_value_"}function rz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function VE(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function JK(Q,...J){if(rz(Q))return Q;for(let X of J){let q=X.axis||VE(X.position)||Q.length>1&&rz(Q[0].toLowerCase());if(q)return q}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function nz(Q,J,X){if(X[J+"AxisID"]===Q)return{axis:J}}function AE(Q,J){if(J.data&&J.data.datasets){let X=J.data.datasets.filter((q)=>q.xAxisID===Q||q.yAxisID===Q);if(X.length)return nz(Q,"x",X[0])||nz(Q,"y",X[0])}return{}}function EE(Q,J){let X=k8[Q.type]||{scales:{}},q=J.scales||{},N=QK(Q.type,J),K=Object.create(null);return Object.keys(q).forEach((H)=>{let F=q[H];if(!$1(F))return console.error(`Invalid scale configuration for scale: ${H}`);if(F._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let M=JK(H,F,AE(H,Q),m1.scales[F.type]),w=OE(M,N),R=X.scales||{};K[H]=W$(Object.create(null),[{axis:M},F,R[M],R[w]])}),Q.data.datasets.forEach((H)=>{let F=H.type||Q.type,M=H.indexAxis||QK(F,J),R=(k8[F]||{}).scales||{};Object.keys(R).forEach((_)=>{let P=IE(_,M),I=H[P+"AxisID"]||P;K[I]=K[I]||Object.create(null),W$(K[I],[{axis:P},q[I],R[_]])})}),Object.keys(K).forEach((H)=>{let F=K[H];W$(F,[m1.scales[F.type],m1.scale])}),K}function f_(Q){let J=Q.options||(Q.options={});J.plugins=n0(J.plugins,{}),J.scales=EE(Q,J)}function y_(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function SE(Q){return Q=Q||{},Q.data=y_(Q.data),f_(Q),Q}var sz=new Map,g_=new Set;function a3(Q,J){let X=sz.get(Q);if(!X)X=J(),sz.set(Q,X),g_.add(X);return X}var OQ=(Q,J,X)=>{let q=x9(J,X);if(q!==void 0)Q.add(q)};class h_{constructor(Q){this._config=SE(Q),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(Q){this._config.type=Q}get data(){return this._config.data}set data(Q){this._config.data=y_(Q)}get options(){return this._config.options}set options(Q){this._config.options=Q}get plugins(){return this._config.plugins}update(){let Q=this._config;this.clearCache(),f_(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return a3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return a3(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return a3(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,X=this.type;return a3(`${X}-plugin-${J}`,()=>[[`plugins.${J}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,J){let X=this._scopeCache,q=X.get(Q);if(!q||J)q=new Map,X.set(Q,q);return q}getOptionScopes(Q,J,X){let{options:q,type:N}=this,K=this._cachedScopes(Q,X),H=K.get(J);if(H)return H;let F=new Set;J.forEach((w)=>{if(Q)F.add(Q),w.forEach((R)=>OQ(F,Q,R));w.forEach((R)=>OQ(F,q,R)),w.forEach((R)=>OQ(F,k8[N]||{},R)),w.forEach((R)=>OQ(F,m1,R)),w.forEach((R)=>OQ(F,d3,R))});let M=Array.from(F);if(M.length===0)M.push(Object.create(null));if(g_.has(J))K.set(J,M);return M}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,k8[J]||{},m1.datasets[J]||{},{type:J},m1,d3]}resolveNamedOptions(Q,J,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=oz(this._resolverCache,Q,q),F=K;if(DE(K,J)){N.$shared=!1,X=O2(X)?X():X;let M=this.createResolver(Q,X,H);F=u9(K,X,M)}for(let M of J)N[M]=F[M];return N}createResolver(Q,J,X=[""],q){let{resolver:N}=oz(this._resolverCache,Q,X);return $1(J)?u9(N,J,void 0,q):N}}function oz(Q,J,X){let q=Q.get(J);if(!q)q=new Map,Q.set(J,q);let N=X.join(),K=q.get(N);if(!K)K={resolver:c3(J,X),subPrefixes:X.filter((F)=>!F.toLowerCase().includes("hover"))},q.set(N,K);return K}var jE=(Q)=>$1(Q)&&Object.getOwnPropertyNames(Q).some((J)=>O2(Q[J]));function DE(Q,J){let{isScriptable:X,isIndexable:q}=fU(Q);for(let N of J){let K=X(N),H=q(N),F=(H||K)&&Q[N];if(K&&(O2(F)||jE(F))||H&&j1(F))return!0}return!1}var vE="4.5.1",bE=["top","bottom","left","right","chartArea"];function az(Q,J){return Q==="top"||Q==="bottom"||bE.indexOf(Q)===-1&&J==="x"}function iz(Q,J){return function(X,q){return X[Q]===q[Q]?X[J]-q[J]:X[Q]-q[Q]}}function tz(Q){let J=Q.chart,X=J.options.animation;J.notifyPlugins("afterRender"),V1(X&&X.onComplete,[Q],J)}function kE(Q){let J=Q.chart,X=J.options.animation;V1(X&&X.onProgress,[Q],J)}function u_(Q){if(l3()&&typeof Q==="string")Q=document.getElementById(Q);else if(Q&&Q.length)Q=Q[0];if(Q&&Q.canvas)Q=Q.canvas;return Q}var $X={},ez=(Q)=>{let J=u_(Q);return Object.values($X).filter((X)=>X.canvas===J).pop()};function fE(Q,J,X){let q=Object.keys(Q);for(let N of q){let K=+N;if(K>=J){let H=Q[N];if(delete Q[N],X>0||K>J)Q[K+X]=H}}}function yE(Q,J,X,q){if(!X||Q.type==="mouseout")return null;if(q)return J;return Q}class l9{static defaults=m1;static instances=$X;static overrides=k8;static registry=r4;static version=vE;static getChart=ez;static register(...Q){r4.add(...Q),$_()}static unregister(...Q){r4.remove(...Q),$_()}constructor(Q,J){let X=this.config=new h_(J),q=u_(Q),N=ez(q);if(N)throw Error("Canvas is already in use. Chart with ID '"+N.id+"' must be destroyed before the canvas with ID '"+N.canvas.id+"' can be reused.");let K=X.createResolver(X.chartOptionScopes(),this.getContext());this.platform=new(X.platform||JE(q)),this.platform.updateConfig(X);let H=this.platform.acquireContext(q,K.aspectRatio),F=H&&H.canvas,M=F&&F.height,w=F&&F.width;if(this.id=sR(),this.ctx=H,this.canvas=F,this.width=w,this.height=M,this._options=K,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new k_,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=qz((R)=>this.update(R),K.resizeDelay||0),this._dataChanges=[],$X[this.id]=this,!H||!F){console.error("Failed to create chart: can't acquire context from the given item");return}if(j2.listen(this,"complete",tz),j2.listen(this,"progress",kE),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:X,height:q,_aspectRatio:N}=this;if(!J1(Q))return Q;if(J&&N)return N;return q?X/q:null}get data(){return this.config.data}set data(Q){this.config.data=Q}get options(){return this._options}set options(Q){this.config.options=Q}get registry(){return r4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else hU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return DU(this.canvas,this.ctx),this}stop(){return j2.stop(this),this}resize(Q,J){if(!j2.running(this))this._resize(Q,J);else this._resizeBeforeDraw={width:Q,height:J}}_resize(Q,J){let X=this.options,q=this.canvas,N=X.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(q,Q,J,N),H=X.devicePixelRatio||this.platform.getDevicePixelRatio(),F=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!hU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),V1(X.onResize,[this,K],this),this.attached){if(this._doResize(F))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};W1(J,(X,q)=>{X.id=q})}buildOrUpdateScales(){let Q=this.options,J=Q.scales,X=this.scales,q=Object.keys(X).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(J)N=N.concat(Object.keys(J).map((K)=>{let H=J[K],F=JK(K,H),M=F==="r",w=F==="x";return{options:H,dposition:M?"chartArea":w?"bottom":"left",dtype:M?"radialLinear":w?"category":"linear"}}));W1(N,(K)=>{let H=K.options,F=H.id,M=JK(F,H),w=n0(H.type,K.dtype);if(H.position===void 0||az(H.position,M)!==az(K.dposition))H.position=K.dposition;q[F]=!0;let R=null;if(F in X&&X[F].type===w)R=X[F];else R=new(r4.getScale(w))({id:F,type:w,ctx:this.ctx,chart:this}),X[R.id]=R;R.init(H,Q)}),W1(q,(K,H)=>{if(!K)delete X[H]}),W1(X,(K)=>{n6.configure(this,K,K.options),n6.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,J=this.data.datasets.length,X=Q.length;if(Q.sort((q,N)=>q.index-N.index),X>J){for(let q=J;q<X;++q)this._destroyDatasetMeta(q);Q.splice(J,X-J)}this._sortedMetasets=Q.slice(0).sort(iz("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:J}}=this;if(Q.length>J.length)delete this._stacks;Q.forEach((X,q)=>{if(J.filter((N)=>N===X._dataset).length===0)this._destroyDatasetMeta(q)})}buildOrUpdateControllers(){let Q=[],J=this.data.datasets,X,q;this._removeUnreferencedMetasets();for(X=0,q=J.length;X<q;X++){let N=J[X],K=this.getDatasetMeta(X),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(X),K=this.getDatasetMeta(X);if(K.type=H,K.indexAxis=N.indexAxis||QK(H,this.options),K.order=N.order||0,K.index=X,K.label=""+N.label,K.visible=this.isDatasetVisible(X),K.controller)K.controller.updateIndex(X),K.controller.linkScales();else{let F=r4.getController(H),{datasetElementType:M,dataElementType:w}=m1.datasets[H];Object.assign(F,{dataElementType:r4.getElement(w),datasetElementType:M&&r4.getElement(M)}),K.controller=new F(this,X),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){W1(this.data.datasets,(Q,J)=>{this.getDatasetMeta(J).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let J=this.config;J.update();let X=this._options=J.createResolver(J.chartOptionScopes(),this.getContext()),q=this._animationsDisabled=!X.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Q,cancelable:!0})===!1)return;let N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let M=0,w=this.data.datasets.length;M<w;M++){let{controller:R}=this.getDatasetMeta(M),_=!q&&N.indexOf(R)===-1;R.buildOrUpdateElements(_),K=Math.max(+R.getMaxOverflow(),K)}if(K=this._minPadding=X.layout.autoPadding?K:0,this._updateLayout(K),!q)W1(N,(M)=>{M.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(iz("z","_idx"));let{_active:H,_lastEvent:F}=this;if(F)this._eventHandler(F,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){W1(this.scales,(Q)=>{n6.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,J=new Set(Object.keys(this._listeners)),X=new Set(Q.events);if(!LU(J,X)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,J=this._getUniformDataChanges()||[];for(let{method:X,start:q,count:N}of J){let K=X==="_removeElements"?-N:N;fE(Q,q,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let J=this.data.datasets.length,X=(N)=>new Set(Q.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),q=X(0);for(let N=1;N<J;N++)if(!LU(q,X(N)))return;return Array.from(q).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(Q){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;n6.update(this,this.width,this.height,Q);let J=this.chartArea,X=J.width<=0||J.height<=0;this._layers=[],W1(this.boxes,(q)=>{if(X&&q.position==="chartArea")return;if(q.configure)q.configure();this._layers.push(...q._layers())},this),this._layers.forEach((q,N)=>{q._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let J=0,X=this.data.datasets.length;J<X;++J)this.getDatasetMeta(J).controller.configure();for(let J=0,X=this.data.datasets.length;J<X;++J)this._updateDataset(J,O2(Q)?Q({datasetIndex:J}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,J){let X=this.getDatasetMeta(Q),q={meta:X,index:Q,mode:J,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",q)===!1)return;X.controller._update(J),q.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",q)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(j2.has(this)){if(this.attached&&!j2.running(this))j2.start(this)}else this.draw(),tz({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:X,height:q}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(X,q)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let J=this._layers;for(Q=0;Q<J.length&&J[Q].z<=0;++Q)J[Q].draw(this.chartArea);this._drawDatasets();for(;Q<J.length;++Q)J[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let J=this._sortedMetasets,X=[],q,N;for(q=0,N=J.length;q<N;++q){let K=J[q];if(!Q||K.visible)X.push(K)}return X}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let Q=this.getSortedVisibleDatasetMetas();for(let J=Q.length-1;J>=0;--J)this._drawDataset(Q[J]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let J=this.ctx,X={meta:Q,index:Q.index,cancelable:!0},q=cU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",X)===!1)return;if(q)zQ(J,q);if(Q.controller.draw(),q)_Q(J);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return p4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,X,q){let N=hA.modes[J];if(typeof N==="function")return N(this,Q,X,q);return[]}getDatasetMeta(Q){let J=this.data.datasets[Q],X=this._metasets,q=X.filter((N)=>N&&N._dataset===J).pop();if(!q)q={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:J&&J.order||0,index:Q,_dataset:J,_parsed:[],_sorted:!1},X.push(q);return q}getContext(){return this.$context||(this.$context=S2(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let J=this.data.datasets[Q];if(!J)return!1;let X=this.getDatasetMeta(Q);return typeof X.hidden==="boolean"?!X.hidden:!J.hidden}setDatasetVisibility(Q,J){let X=this.getDatasetMeta(Q);X.hidden=!J}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,J,X){let q=X?"show":"hide",N=this.getDatasetMeta(Q),K=N.controller._resolveAnimations(void 0,q);if(w$(J))N.data[J].hidden=!X,this.update();else this.setDatasetVisibility(Q,X),K.update(N,{visible:X}),this.update((H)=>H.datasetIndex===Q?q:void 0)}hide(Q,J){this._updateVisibility(Q,J,!1)}show(Q,J){this._updateVisibility(Q,J,!0)}_destroyDatasetMeta(Q){let J=this._metasets[Q];if(J&&J.controller)J.controller._destroy();delete this._metasets[Q]}_stop(){let Q,J;this.stop(),j2.remove(this);for(Q=0,J=this.data.datasets.length;Q<J;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:J}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),DU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete $X[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...Q){return this.canvas.toDataURL(...Q)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let Q=this._listeners,J=this.platform,X=(N,K)=>{J.addEventListener(this,N,K),Q[N]=K},q=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};W1(this.options.events,(N)=>X(N,q))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,X=(F,M)=>{J.addEventListener(this,F,M),Q[F]=M},q=(F,M)=>{if(Q[F])J.removeEventListener(this,F,M),delete Q[F]},N=(F,M)=>{if(this.canvas)this.resize(F,M)},K,H=()=>{q("attach",H),this.attached=!0,this.resize(),X("resize",N),X("detach",K)};if(K=()=>{this.attached=!1,q("resize",N),this._stop(),this._resize(0,0),X("attach",H)},J.isAttached(this.canvas))H();else K()}unbindEvents(){W1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},W1(this._responsiveListeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,J,X){let q=X?"set":"remove",N,K,H,F;if(J==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+q+"DatasetHoverStyle"]();for(H=0,F=Q.length;H<F;++H){K=Q[H];let M=K&&this.getDatasetMeta(K.datasetIndex).controller;if(M)M[q+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let J=this._active||[],X=Q.map(({datasetIndex:N,index:K})=>{let H=this.getDatasetMeta(N);if(!H)throw Error("No dataset found at index "+N);return{datasetIndex:N,element:H.data[K],index:K}});if(!wQ(X,J))this._active=X,this._lastEvent=null,this._updateHoverStyles(X,J)}notifyPlugins(Q,J,X){return this._plugins.notify(this,Q,J,X)}isPluginEnabled(Q){return this._plugins._cache.filter((J)=>J.plugin.id===Q).length===1}_updateHoverStyles(Q,J,X){let q=this.options.hover,N=(F,M)=>F.filter((w)=>!M.some((R)=>w.datasetIndex===R.datasetIndex&&w.index===R.index)),K=N(J,Q),H=X?Q:N(Q,J);if(K.length)this.updateHoverStyle(K,q.mode,!1);if(H.length&&q.mode)this.updateHoverStyle(H,q.mode,!0)}_eventHandler(Q,J){let X={event:Q,replay:J,cancelable:!0,inChartArea:this.isPointInArea(Q)},q=(K)=>(K.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",X,q)===!1)return;let N=this._handleEvent(Q,J,X.inChartArea);if(X.cancelable=!1,this.notifyPlugins("afterEvent",X,q),N||X.changed)this.render();return this}_handleEvent(Q,J,X){let{_active:q=[],options:N}=this,K=J,H=this._getActiveElements(Q,q,X,K),F=iR(Q),M=yE(Q,this._lastEvent,X,F);if(X){if(this._lastEvent=null,V1(N.onHover,[Q,H,this],this),F)V1(N.onClick,[Q,H,this],this)}let w=!wQ(H,q);if(w||J)this._active=H,this._updateHoverStyles(H,q,J);return this._lastEvent=M,w}_getActiveElements(Q,J,X,q){if(Q.type==="mouseout")return[];if(!X)return J;let N=this.options.hover;return this.getElementsAtEventForMode(Q,N.mode,N,q)}}function $_(){return W1(l9.instances,(Q)=>Q._plugins.invalidate())}function x_(Q,J,X=J){Q.lineCap=n0(X.borderCapStyle,J.borderCapStyle),Q.setLineDash(n0(X.borderDash,J.borderDash)),Q.lineDashOffset=n0(X.borderDashOffset,J.borderDashOffset),Q.lineJoin=n0(X.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=n0(X.borderWidth,J.borderWidth),Q.strokeStyle=n0(X.borderColor,J.borderColor)}function gE(Q,J,X){Q.lineTo(X.x,X.y)}function hE(Q){if(Q.stepped)return Fz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Mz;return gE}function m_(Q,J,X={}){let q=Q.length,{start:N=0,end:K=q-1}=X,{start:H,end:F}=J,M=Math.max(N,H),w=Math.min(K,F),R=N<H&&K<H||N>F&&K>F;return{count:q,start:M,loop:J.loop,ilen:w<M&&!R?q+w-M:w-M}}function uE(Q,J,X,q){let{points:N,options:K}=J,{count:H,start:F,loop:M,ilen:w}=m_(N,X,q),R=hE(K),{move:_=!0,reverse:P}=q||{},I,A,V;for(I=0;I<=w;++I){if(A=N[(F+(P?w-I:I))%H],A.skip)continue;else if(_)Q.moveTo(A.x,A.y),_=!1;else R(Q,V,A,P,K.stepped);V=A}if(M)A=N[(F+(P?w:0))%H],R(Q,V,A,P,K.stepped);return!!M}function xE(Q,J,X,q){let N=J.points,{count:K,start:H,ilen:F}=m_(N,X,q),{move:M=!0,reverse:w}=q||{},R=0,_=0,P,I,A,V,O,D,h=(s)=>(H+(w?F-s:s))%K,p=()=>{if(V!==O)Q.lineTo(R,O),Q.lineTo(R,V),Q.lineTo(R,D)};if(M)I=N[h(0)],Q.moveTo(I.x,I.y);for(P=0;P<=F;++P){if(I=N[h(P)],I.skip)continue;let{x:s,y:a}=I,J0=s|0;if(J0===A){if(a<V)V=a;else if(a>O)O=a;R=(_*R+s)/++_}else p(),Q.lineTo(s,a),A=J0,_=0,V=O=a;D=a}p()}function GK(Q){let J=Q.options,X=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!X?xE:uE}function mE(Q){if(Q.stepped)return Cz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Iz;return D8}function dE(Q,J,X,q){let N=J._path;if(!N){if(N=J._path=new Path2D,J.path(N,X,q))N.closePath()}x_(Q,J.options),Q.stroke(N)}function pE(Q,J,X,q){let{segments:N,options:K}=J,H=GK(J);for(let F of N){if(x_(Q,K,F.style),Q.beginPath(),H(Q,J,F,{start:X,end:X+q-1}))Q.closePath();Q.stroke()}}var cE=typeof Path2D==="function";function lE(Q,J,X,q){if(cE&&!J.options.segment)dE(Q,J,X,q);else pE(Q,J,X,q)}class L$ extends v2{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(Q)=>Q!=="borderDash"&&Q!=="fill"};constructor(Q){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,Q)Object.assign(this,Q)}updateControlPoints(Q,J){let X=this.options;if((X.tension||X.cubicInterpolationMode==="monotone")&&!X.stepped&&!this._pointsUpdated){let q=X.spanGaps?this._loop:this._fullLoop;Lz(this._points,X,Q,q,J),this._pointsUpdated=!0}}set points(Q){this._points=Q,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Vz(this,this.options.segment))}first(){let Q=this.segments,J=this.points;return Q.length&&J[Q[0].start]}last(){let Q=this.segments,J=this.points,X=Q.length;return X&&J[Q[X-1].end]}interpolate(Q,J){let X=this.options,q=Q[J],N=this.points,K=pU(this,{property:J,start:q,end:q});if(!K.length)return;let H=[],F=mE(X),M,w;for(M=0,w=K.length;M<w;++M){let{start:R,end:_}=K[M],P=N[R],I=N[_];if(P===I){H.push(P);continue}let A=Math.abs((q-P[J])/(I[J]-P[J])),V=F(P,I,A,X.stepped);V[J]=Q[J],H.push(V)}return H.length===1?H[0]:H}pathSegment(Q,J,X){return GK(this)(Q,this,J,X)}path(Q,J,X){let q=this.segments,N=GK(this),K=this._loop;J=J||0,X=X||this.points.length-J;for(let H of q)K&=N(Q,this,H,{start:J,end:J+X-1});return!!K}draw(Q,J,X,q){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)Q.save(),lE(Q,this,X,q),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function Z_(Q,J,X,q){let N=Q.options,{[X]:K}=Q.getProps([X],q);return Math.abs(J-K)<N.radius+N.hitRadius}class WK extends v2{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,Q)Object.assign(this,Q)}inRange(Q,J,X){let q=this.options,{x:N,y:K}=this.getProps(["x","y"],X);return Math.pow(Q-N,2)+Math.pow(J-K,2)<Math.pow(q.hitRadius+q.radius,2)}inXRange(Q,J){return Z_(this,Q,"x",J)}inYRange(Q,J){return Z_(this,Q,"y",J)}getCenterPoint(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}size(Q){Q=Q||this.options||{};let J=Q.radius||0;J=Math.max(J,J&&Q.hoverRadius||0);let X=J&&Q.borderWidth||0;return(J+X)*2}draw(Q,J){let X=this.options;if(this.skip||X.radius<0.1||!p4(this,J,this.size(X)/2))return;Q.strokeStyle=X.borderColor,Q.lineWidth=X.borderWidth,Q.fillStyle=X.backgroundColor,p3(Q,X,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function d_(Q,J){let{x:X,y:q,base:N,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),F,M,w,R,_;if(Q.horizontal)_=H/2,F=Math.min(X,N),M=Math.max(X,N),w=q-_,R=q+_;else _=K/2,F=X-_,M=X+_,w=Math.min(q,N),R=Math.max(q,N);return{left:F,top:w,right:M,bottom:R}}function u8(Q,J,X,q){return Q?0:J6(J,X,q)}function rE(Q,J,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=kU(q);return{t:u8(N.top,K.top,0,X),r:u8(N.right,K.right,0,J),b:u8(N.bottom,K.bottom,0,X),l:u8(N.left,K.left,0,J)}}function nE(Q,J,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=g8(N),H=Math.min(J,X),F=Q.borderSkipped,M=q||$1(N);return{topLeft:u8(!M||F.top||F.left,K.topLeft,0,H),topRight:u8(!M||F.top||F.right,K.topRight,0,H),bottomLeft:u8(!M||F.bottom||F.left,K.bottomLeft,0,H),bottomRight:u8(!M||F.bottom||F.right,K.bottomRight,0,H)}}function sE(Q){let J=d_(Q),X=J.right-J.left,q=J.bottom-J.top,N=rE(Q,X/2,q/2),K=nE(Q,X/2,q/2);return{outer:{x:J.left,y:J.top,w:X,h:q,radius:K},inner:{x:J.left+N.l,y:J.top+N.t,w:X-N.l-N.r,h:q-N.t-N.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(N.t,N.l)),topRight:Math.max(0,K.topRight-Math.max(N.t,N.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(N.b,N.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(N.b,N.r))}}}}function tU(Q,J,X,q){let N=J===null,K=X===null,F=Q&&!(N&&K)&&d_(Q,q);return F&&(N||E2(J,F.left,F.right))&&(K||E2(X,F.top,F.bottom))}function oE(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function aE(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function eU(Q,J,X={}){let q=Q.x!==X.x?-J:0,N=Q.y!==X.y?-J:0,K=(Q.x+Q.w!==X.x+X.w?J:0)-q,H=(Q.y+Q.h!==X.y+X.h?J:0)-N;return{x:Q.x+q,y:Q.y+N,w:Q.w+K,h:Q.h+H,radius:Q.radius}}class wK extends v2{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,Q)Object.assign(this,Q)}draw(Q){let{inflateAmount:J,options:{borderColor:X,backgroundColor:q}}=this,{inner:N,outer:K}=sE(this),H=oE(K.radius)?_$:aE;if(Q.save(),K.w!==N.w||K.h!==N.h)Q.beginPath(),H(Q,eU(K,J,N)),Q.clip(),H(Q,eU(N,-J,K)),Q.fillStyle=X,Q.fill("evenodd");Q.beginPath(),H(Q,eU(N,J)),Q.fillStyle=q,Q.fill(),Q.restore()}inRange(Q,J,X){return tU(this,Q,J,X)}inXRange(Q,J){return tU(this,Q,null,J)}inYRange(Q,J){return tU(this,null,Q,J)}getCenterPoint(Q){let{x:J,y:X,base:q,horizontal:N}=this.getProps(["x","y","base","horizontal"],Q);return{x:N?(J+q)/2:J,y:N?X:(X+q)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function iE(Q,J,X){let{segments:q,points:N}=Q,K=J.points,H=[];for(let F of q){let{start:M,end:w}=F;w=JX(M,w,N);let R=XK(X,N[M],N[w],F.loop);if(!J.segments){H.push({source:F,target:R,start:N[M],end:N[w]});continue}let _=pU(J,R);for(let P of _){let I=XK(X,K[P.start],K[P.end],P.loop),A=dU(F,N,I);for(let V of A)H.push({source:V,target:P,start:{[X]:Q_(R,I,"start",Math.max)},end:{[X]:Q_(R,I,"end",Math.min)}})}}return H}function XK(Q,J,X,q){if(q)return;let N=J[Q],K=X[Q];if(Q==="angle")N=$6(N),K=$6(K);return{property:Q,start:N,end:K}}function tE(Q,J){let{x:X=null,y:q=null}=Q||{},N=J.points,K=[];return J.segments.forEach(({start:H,end:F})=>{F=JX(H,F,N);let M=N[H],w=N[F];if(q!==null)K.push({x:M.x,y:q}),K.push({x:w.x,y:q});else if(X!==null)K.push({x:X,y:M.y}),K.push({x:X,y:w.y})}),K}function JX(Q,J,X){for(;J>Q;J--){let q=X[J];if(!isNaN(q.x)&&!isNaN(q.y))break}return J}function Q_(Q,J,X,q){if(Q&&J)return q(Q[X],J[X]);return Q?Q[X]:J?J[X]:0}function p_(Q,J){let X=[],q=!1;if(j1(Q))q=!0,X=Q;else X=tE(Q,J);return X.length?new L$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function J_(Q){return Q&&Q.fill!==!1}function eE(Q,J,X){let N=Q[J].fill,K=[J],H;if(!X)return N;while(N!==!1&&K.indexOf(N)===-1){if(!x1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function $S(Q,J,X){let q=GS(Q);if($1(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(x1(N)&&Math.floor(N)===N)return ZS(q[0],J,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function ZS(Q,J,X,q){if(Q==="-"||Q==="+")X=J+X;if(X===J||X<0||X>=q)return!1;return X}function QS(Q,J){let X=null;if(Q==="start")X=J.bottom;else if(Q==="end")X=J.top;else if($1(Q))X=J.getPixelForValue(Q.value);else if(J.getBasePixel)X=J.getBasePixel();return X}function JS(Q,J,X){let q;if(Q==="start")q=X;else if(Q==="end")q=J.options.reverse?J.min:J.max;else if($1(Q))q=Q.value;else q=J.getBaseValue();return q}function GS(Q){let J=Q.options,X=J.fill,q=n0(X&&X.target,X);if(q===void 0)q=!!J.backgroundColor;if(q===!1||q===null)return!1;if(q===!0)return"origin";return q}function XS(Q){let{scale:J,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,F=qS(J,X);F.push(p_({x:null,y:J.bottom},q));for(let M=0;M<K.length;M++){let w=K[M];for(let R=w.start;R<=w.end;R++)YS(N,H[R],F)}return new L$({points:N,options:{}})}function qS(Q,J){let X=[],q=Q.getMatchingVisibleMetas("line");for(let N=0;N<q.length;N++){let K=q[N];if(K.index===J)break;if(!K.hidden)X.unshift(K.dataset)}return X}function YS(Q,J,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:F,point:M}=NS(K,J,"x");if(!M||H&&F)continue;if(H)q.unshift(M);else if(Q.push(M),!F)break}Q.push(...q)}function NS(Q,J,X){let q=Q.interpolate(J,X);if(!q)return{};let N=q[X],K=Q.segments,H=Q.points,F=!1,M=!1;for(let w=0;w<K.length;w++){let R=K[w],_=H[R.start][X],P=H[R.end][X];if(E2(N,_,P)){F=N===_,M=N===P;break}}return{first:F,last:M,point:q}}class RK{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,J,X){let{x:q,y:N,radius:K}=this;return J=J||{start:0,end:Q6},Q.arc(q,N,K,J.end,J.start,!0),!X.bounds}interpolate(Q){let{x:J,y:X,radius:q}=this,N=Q.angle;return{x:J+Math.cos(N)*q,y:X+Math.sin(N)*q,angle:N}}}function US(Q){let{chart:J,fill:X,line:q}=Q;if(x1(X))return KS(J,X);if(X==="stack")return XS(Q);if(X==="shape")return!0;let N=BS(Q);if(N instanceof RK)return N;return p_(N,q)}function KS(Q,J){let X=Q.getDatasetMeta(J);return X&&Q.isDatasetVisible(J)?X.dataset:null}function BS(Q){if((Q.scale||{}).getPointPositionForValue)return FS(Q);return HS(Q)}function HS(Q){let{scale:J={},fill:X}=Q,q=QS(X,J);if(x1(q)){let N=J.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function FS(Q){let{scale:J,fill:X}=Q,q=J.options,N=J.getLabels().length,K=q.reverse?J.max:J.min,H=JS(X,J,K),F=[];if(q.grid.circular){let M=J.getPointPositionForValue(0,K);return new RK({x:M.x,y:M.y,radius:J.getDistanceFromCenterForValue(H)})}for(let M=0;M<N;++M)F.push(J.getPointPositionForValue(M,H));return F}function $K(Q,J,X){let q=US(J),{chart:N,index:K,line:H,scale:F,axis:M}=J,w=H.options,R=w.fill,_=w.backgroundColor,{above:P=_,below:I=_}=R||{},A=N.getDatasetMeta(K),V=cU(N,A);if(q&&H.points.length)zQ(Q,X),MS(Q,{line:H,target:q,above:P,below:I,area:X,scale:F,axis:M,clip:V}),_Q(Q)}function MS(Q,J){let{line:X,target:q,above:N,below:K,area:H,scale:F,clip:M}=J,w=X._loop?"angle":J.axis;Q.save();let R=K;if(K!==N){if(w==="x")G_(Q,q,H.top),ZK(Q,{line:X,target:q,color:N,scale:F,property:w,clip:M}),Q.restore(),Q.save(),G_(Q,q,H.bottom);else if(w==="y")X_(Q,q,H.left),ZK(Q,{line:X,target:q,color:K,scale:F,property:w,clip:M}),Q.restore(),Q.save(),X_(Q,q,H.right),R=N}ZK(Q,{line:X,target:q,color:R,scale:F,property:w,clip:M}),Q.restore()}function G_(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let F of q){let{start:M,end:w}=F,R=N[M],_=N[JX(M,w,N)];if(K)Q.moveTo(R.x,R.y),K=!1;else Q.lineTo(R.x,X),Q.lineTo(R.x,R.y);if(H=!!J.pathSegment(Q,F,{move:H}),H)Q.closePath();else Q.lineTo(_.x,X)}Q.lineTo(J.first().x,X),Q.closePath(),Q.clip()}function X_(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let F of q){let{start:M,end:w}=F,R=N[M],_=N[JX(M,w,N)];if(K)Q.moveTo(R.x,R.y),K=!1;else Q.lineTo(X,R.y),Q.lineTo(R.x,R.y);if(H=!!J.pathSegment(Q,F,{move:H}),H)Q.closePath();else Q.lineTo(X,_.y)}Q.lineTo(X,J.first().y),Q.closePath(),Q.clip()}function ZK(Q,J){let{line:X,target:q,property:N,color:K,scale:H,clip:F}=J,M=iE(X,q,N);for(let{source:w,target:R,start:_,end:P}of M){let{style:{backgroundColor:I=K}={}}=w,A=q!==!0;Q.save(),Q.fillStyle=I,WS(Q,H,F,A&&XK(N,_,P)),Q.beginPath();let V=!!X.pathSegment(Q,w),O;if(A){if(V)Q.closePath();else q_(Q,q,P,N);let D=!!q.pathSegment(Q,R,{move:V,reverse:!0});if(O=V&&D,!O)q_(Q,q,_,N)}Q.closePath(),Q.fill(O?"evenodd":"nonzero"),Q.restore()}}function WS(Q,J,X,q){let N=J.chart.chartArea,{property:K,start:H,end:F}=q||{};if(K==="x"||K==="y"){let M,w,R,_;if(K==="x")M=H,w=N.top,R=F,_=N.bottom;else M=N.left,w=H,R=N.right,_=F;if(Q.beginPath(),X)M=Math.max(M,X.left),R=Math.min(R,X.right),w=Math.max(w,X.top),_=Math.min(_,X.bottom);Q.rect(M,w,R-M,_-w),Q.clip()}}function q_(Q,J,X,q){let N=J.interpolate(X,q);if(N)Q.lineTo(N.x,N.y)}var c_={id:"filler",afterDatasetsUpdate(Q,J,X){let q=(Q.data.datasets||[]).length,N=[],K,H,F,M;for(H=0;H<q;++H){if(K=Q.getDatasetMeta(H),F=K.dataset,M=null,F&&F.options&&F instanceof L$)M={visible:Q.isDatasetVisible(H),index:H,fill:$S(F,H,q),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:F};K.$filler=M,N.push(M)}for(H=0;H<q;++H){if(M=N[H],!M||M.fill===!1)continue;M.fill=eE(N,H,X.propagate)}},beforeDraw(Q,J,X){let q=X.drawTime==="beforeDraw",N=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let H=N.length-1;H>=0;--H){let F=N[H].$filler;if(!F)continue;if(F.line.updateControlPoints(K,F.axis),q&&F.fill)$K(Q.ctx,F,K)}},beforeDatasetsDraw(Q,J,X){if(X.drawTime!=="beforeDatasetsDraw")return;let q=Q.getSortedVisibleDatasetMetas();for(let N=q.length-1;N>=0;--N){let K=q[N].$filler;if(J_(K))$K(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,X){let q=J.meta.$filler;if(!J_(q)||X.drawTime!=="beforeDatasetDraw")return;$K(Q.ctx,q,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Y_=(Q,J)=>{let{boxHeight:X=J,boxWidth:q=J}=Q;if(Q.usePointStyle)X=Math.min(X,J),q=Q.pointStyleWidth||Math.min(q,J);return{boxWidth:q,boxHeight:X,itemHeight:Math.max(J,X)}},wS=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class qK extends v2{constructor(Q){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J,X){this.maxWidth=Q,this.maxHeight=J,this._margins=X,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width;else this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height}buildLabels(){let Q=this.options.labels||{},J=V1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)J=J.filter((X)=>Q.filter(X,this.chart.data));if(Q.sort)J=J.sort((X,q)=>Q.sort(X,q,this.chart.data));if(this.options.reverse)J.reverse();this.legendItems=J}fit(){let{options:Q,ctx:J}=this;if(!Q.display){this.width=this.height=0;return}let X=Q.labels,q=X5(X.font),N=q.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:F}=Y_(X,N),M,w;if(J.font=q.string,this.isHorizontal())M=this.maxWidth,w=this._fitRows(K,N,H,F)+10;else w=this.maxHeight,M=this._fitCols(K,q,H,F)+10;this.width=Math.min(M,Q.maxWidth||this.maxWidth),this.height=Math.min(w,Q.maxHeight||this.maxHeight)}_fitRows(Q,J,X,q){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],M=this.lineWidths=[0],w=q+H,R=Q;N.textAlign="left",N.textBaseline="middle";let _=-1,P=-w;return this.legendItems.forEach((I,A)=>{let V=X+J/2+N.measureText(I.text).width;if(A===0||M[M.length-1]+V+2*H>K)R+=w,M[M.length-(A>0?0:1)]=0,P+=w,_++;F[A]={left:0,top:P,row:_,width:V,height:q},M[M.length-1]+=V+H}),R}_fitCols(Q,J,X,q){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],M=this.columnSizes=[],w=K-Q,R=H,_=0,P=0,I=0,A=0;return this.legendItems.forEach((V,O)=>{let{itemWidth:D,itemHeight:h}=RS(X,J,N,V,q);if(O>0&&P+h+2*H>w)R+=_+H,M.push({width:_,height:P}),I+=_+H,A++,_=P=0;F[O]={left:I,top:P,col:A,width:D,height:h},_=Math.max(_,D),P+=h+H}),R+=_,M.push({width:_,height:P}),R}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:X,labels:{padding:q},rtl:N}}=this,K=m9(N,this.left,this.width);if(this.isHorizontal()){let H=0,F=C5(X,this.left+q,this.right-this.lineWidths[H]);for(let M of J){if(H!==M.row)H=M.row,F=C5(X,this.left+q,this.right-this.lineWidths[H]);M.top+=this.top+Q+q,M.left=K.leftForLtr(K.x(F),M.width),F+=M.width+q}}else{let H=0,F=C5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);for(let M of J){if(M.col!==H)H=M.col,F=C5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);M.top=F,M.left+=this.left+q,M.left=K.leftForLtr(K.x(M.left),M.width),F+=M.height+q}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;zQ(Q,this),this._draw(),_Q(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=m1.color,F=m9(Q.rtl,this.left,this.width),M=X5(K.font),{padding:w}=K,R=M.size,_=R/2,P;this.drawTitle(),q.textAlign=F.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=M.string;let{boxWidth:I,boxHeight:A,itemHeight:V}=Y_(K,R),O=function(a,J0,t){if(isNaN(I)||I<=0||isNaN(A)||A<0)return;q.save();let i=n0(t.lineWidth,1);if(q.fillStyle=n0(t.fillStyle,H),q.lineCap=n0(t.lineCap,"butt"),q.lineDashOffset=n0(t.lineDashOffset,0),q.lineJoin=n0(t.lineJoin,"miter"),q.lineWidth=i,q.strokeStyle=n0(t.strokeStyle,H),q.setLineDash(n0(t.lineDash,[])),K.usePointStyle){let Y0={radius:A*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},d=F.xPlus(a,I/2),H0=J0+_;vU(q,Y0,d,H0,K.pointStyleWidth&&I)}else{let Y0=J0+Math.max((R-A)/2,0),d=F.leftForLtr(a,I),H0=g8(t.borderRadius);if(q.beginPath(),Object.values(H0).some((P0)=>P0!==0))_$(q,{x:d,y:Y0,w:I,h:A,radius:H0});else q.rect(d,Y0,I,A);if(q.fill(),i!==0)q.stroke()}q.restore()},D=function(a,J0,t){y8(q,t.text,a,J0+V/2,M,{strikethrough:t.hidden,textAlign:F.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:C5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else P={x:this.left+w,y:C5(N,this.top+p+w,this.bottom-J[0].height),line:0};xU(this.ctx,Q.textDirection);let s=V+w;this.legendItems.forEach((a,J0)=>{q.strokeStyle=a.fontColor,q.fillStyle=a.fontColor;let t=q.measureText(a.text).width,i=F.textAlign(a.textAlign||(a.textAlign=K.textAlign)),Y0=I+_+t,d=P.x,H0=P.y;if(F.setWidth(this.width),h){if(J0>0&&d+Y0+w>this.right)H0=P.y+=s,P.line++,d=P.x=C5(N,this.left+w,this.right-X[P.line])}else if(J0>0&&H0+s>this.bottom)d=P.x=d+J[P.line].width+w,P.line++,H0=P.y=C5(N,this.top+p+w,this.bottom-J[P.line].height);let P0=F.x(d);if(O(P0,H0,a),d=Yz(i,d+I+_,h?d+Y0:this.right,Q.rtl),D(F.x(d),H0,a),h)P.x+=Y0+w;else if(typeof a.text!=="string"){let I0=M.lineHeight;P.y+=l_(a,I0)+w}else P.y+=s}),mU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,X=X5(J.font),q=I5(J.padding);if(!J.display)return;let N=m9(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,F=X.size/2,M=q.top+F,w,R=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),w=this.top+M,R=C5(Q.align,R,this.right-_);else{let I=this.columnSizes.reduce((A,V)=>Math.max(A,V.height),0);w=M+C5(Q.align,this.top,this.bottom-I-Q.labels.padding-this._computeTitleHeight())}let P=C5(H,R,R+_);K.textAlign=N.textAlign(x3(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=X.string,y8(K,J.text,P,w,X)}_computeTitleHeight(){let Q=this.options.title,J=X5(Q.font),X=I5(Q.padding);return Q.display?J.lineHeight+X.height:0}_getLegendItemAt(Q,J){let X,q,N;if(E2(Q,this.left,this.right)&&E2(J,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],E2(Q,q.left,q.left+q.width)&&E2(J,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let J=this.options;if(!LS(Q.type,J))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=wS(q,X);if(q&&!N)V1(J.onLeave,[Q,q,this],this);if(this._hoveredItem=X,X&&!N)V1(J.onHover,[Q,X,this],this)}else if(X)V1(J.onClick,[Q,X,this],this)}}function RS(Q,J,X,q,N){let K=zS(q,Q,J,X),H=_S(N,q,J.lineHeight);return{itemWidth:K,itemHeight:H}}function zS(Q,J,X,q){let N=Q.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return J+X.size/2+q.measureText(N).width}function _S(Q,J,X){let q=Q;if(typeof J.text!=="string")q=l_(J,X);return q}function l_(Q,J){let X=Q.text?Q.text.length:0;return J*X}function LS(Q,J){if((Q==="mousemove"||Q==="mouseout")&&(J.onHover||J.onLeave))return!0;if(J.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var r_={id:"legend",_element:qK,start(Q,J,X){let q=Q.legend=new qK({ctx:Q.ctx,options:X,chart:Q});n6.configure(Q,q,X),n6.addBox(Q,q)},stop(Q){n6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,X){let q=Q.legend;n6.configure(Q,q,X),q.options=X},afterUpdate(Q){let J=Q.legend;J.buildLabels(),J.adjustHitBoxes()},afterEvent(Q,J){if(!J.replay)Q.legend.handleEvent(J.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,J,X){let q=J.datasetIndex,N=X.chart;if(N.isDatasetVisible(q))N.hide(q),J.hidden=!0;else N.show(q),J.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let J=Q.data.datasets,{labels:{usePointStyle:X,pointStyle:q,textAlign:N,color:K,useBorderRadius:H,borderRadius:F}}=Q.legend.options;return Q._getSortedDatasetMetas().map((M)=>{let w=M.controller.getStyle(X?0:void 0),R=I5(w.borderWidth);return{text:J[M.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!M.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(R.width+R.height)/4,strokeStyle:w.borderColor,pointStyle:q||w.pointStyle,rotation:w.rotation,textAlign:N||w.textAlign,borderRadius:H&&(F||w.borderRadius),datasetIndex:M.index}},this)}},title:{color:(Q)=>Q.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(Q)=>!Q.startsWith("on"),labels:{_scriptable:(Q)=>!["generateLabels","filter","sort"].includes(Q)}}};class zK extends v2{constructor(Q){super();this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J){let X=this.options;if(this.left=0,this.top=0,!X.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=Q,this.height=this.bottom=J;let q=j1(X.text)?X.text.length:1;this._padding=I5(X.padding);let N=q*X5(X.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let Q=this.options.position;return Q==="top"||Q==="bottom"}_drawArgs(Q){let{top:J,left:X,bottom:q,right:N,options:K}=this,H=K.align,F=0,M,w,R;if(this.isHorizontal())w=C5(H,X,N),R=J+Q,M=N-X;else{if(K.position==="left")w=X+Q,R=C5(H,q,J),F=s1*-0.5;else w=N-Q,R=C5(H,J,q),F=s1*0.5;M=q-J}return{titleX:w,titleY:R,maxWidth:M,rotation:F}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let X=X5(J.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:F,rotation:M}=this._drawArgs(N);y8(Q,J.text,0,0,X,{color:J.color,maxWidth:F,rotation:M,textAlign:x3(J.align),textBaseline:"middle",translation:[K,H]})}}function PS(Q,J){let X=new zK({ctx:Q.ctx,options:J,chart:Q});n6.configure(Q,X,J),n6.addBox(Q,X),Q.titleBlock=X}var n_={id:"title",_element:zK,start(Q,J,X){PS(Q,X)},stop(Q){let J=Q.titleBlock;n6.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,X){let q=Q.titleBlock;n6.configure(Q,q,X),q.options=X},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2000},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};var EQ={average(Q){if(!Q.length)return!1;let J,X,q=new Set,N=0,K=0;for(J=0,X=Q.length;J<X;++J){let F=Q[J].element;if(F&&F.hasValue()){let M=F.tooltipPosition();q.add(M.x),N+=M.y,++K}}if(K===0||q.size===0)return!1;return{x:[...q].reduce((F,M)=>F+M)/q.size,y:N/K}},nearest(Q,J){if(!Q.length)return!1;let{x:X,y:q}=J,N=Number.POSITIVE_INFINITY,K,H,F;for(K=0,H=Q.length;K<H;++K){let M=Q[K].element;if(M&&M.hasValue()){let w=M.getCenterPoint(),R=f3(J,w);if(R<N)N=R,F=M}}if(F){let M=F.tooltipPosition();X=M.x,q=M.y}return{x:X,y:q}}};function l4(Q,J){if(J)if(j1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function D2(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
|
|
255
|
+
*/class C_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,J,X,q){let N=J.listeners[q],K=J.duration;N.forEach((H)=>H({chart:Q,initial:J.initial,numSteps:K,currentStep:Math.min(X-J.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=AU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let J=0;if(this._charts.forEach((X,q)=>{if(!X.running||!X.items.length)return;let N=X.items,K=N.length-1,H=!1,F;for(;K>=0;--K)if(F=N[K],F._active){if(F._total>X.duration)X.duration=F._total;F.tick(Q),H=!0}else N[K]=N[N.length-1],N.pop();if(H)q.draw(),this._notify(q,X,Q,"progress");if(!N.length)X.running=!1,this._notify(q,X,Q,"complete"),X.initial=!1;J+=N.length}),this._lastDate=Q,J===0)this._running=!1}_getAnims(Q){let J=this._charts,X=J.get(Q);if(!X)X={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},J.set(Q,X);return X}listen(Q,J,X){this._getAnims(Q).listeners[J].push(X)}add(Q,J){if(!J||!J.length)return;this._getAnims(Q).items.push(...J)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let J=this._charts.get(Q);if(!J)return;J.running=!0,J.start=Date.now(),J.duration=J.items.reduce((X,q)=>Math.max(X,q._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let J=this._charts.get(Q);if(!J||!J.running||!J.items.length)return!1;return!0}stop(Q){let J=this._charts.get(Q);if(!J||!J.items.length)return;let X=J.items,q=X.length-1;for(;q>=0;--q)X[q].cancel();J.items=[],this._notify(Q,J,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var j2=new C_,Az="transparent",BA={boolean(Q,J,X){return X>0.5?J:Q},color(Q,J,X){let q=jU(Q||Az),N=q.valid&&jU(J||Az);return N&&N.valid?N.mix(q,X).hexString():J},number(Q,J,X){return Q+(J-Q)*X}};class I_{constructor(Q,J,X,q){let N=J[X];q=LQ([Q.to,q,N,Q.from]);let K=LQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||BA[Q.type||typeof K],this._easing=H$[Q.easing]||H$.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=J,this._prop=X,this._from=K,this._to=q,this._promises=void 0}active(){return this._active}update(Q,J,X){if(this._active){this._notify(!1);let q=this._target[this._prop],N=X-this._start,K=this._duration-N;this._start=X,this._duration=Math.floor(Math.max(K,Q.duration)),this._total+=N,this._loop=!!Q.loop,this._to=LQ([Q.to,J,q,Q.from]),this._from=LQ([Q.from,q,J])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let J=Q-this._start,X=this._duration,q=this._prop,N=this._from,K=this._loop,H=this._to,F;if(this._active=N!==H&&(K||J<X),!this._active){this._target[q]=H,this._notify(!0);return}if(J<0){this._target[q]=N;return}F=J/X%2,F=K&&F>1?2-F:F,F=this._easing(Math.min(1,Math.max(0,F))),this._target[q]=this._fn(N,H,F)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((J,X)=>{Q.push({res:J,rej:X})})}_notify(Q){let J=Q?"res":"rej",X=this._promises||[];for(let q=0;q<X.length;q++)X[q][J]()}}class KK{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!$1(Q))return;let J=Object.keys(m1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!$1(N))return;let K={};for(let H of J)K[H]=N[H];(j1(N.properties)&&N.properties||[q]).forEach((H)=>{if(H===q||!X.has(H))X.set(H,K)})})}_animateOptions(Q,J){let X=J.options,q=FA(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)HA(Q.options.$animations,X).then(()=>{Q.options=X},()=>{});return N}_createAnimations(Q,J){let X=this._properties,q=[],N=Q.$animations||(Q.$animations={}),K=Object.keys(J),H=Date.now(),F;for(F=K.length-1;F>=0;--F){let M=K[F];if(M.charAt(0)==="$")continue;if(M==="options"){q.push(...this._animateOptions(Q,J));continue}let w=J[M],R=N[M],_=X.get(M);if(R)if(_&&R.active()){R.update(_,w,H);continue}else R.cancel();if(!_||!_.duration){Q[M]=w;continue}N[M]=R=new I_(_,Q,M,w),q.push(R)}return q}update(Q,J){if(this._properties.size===0){Object.assign(Q,J);return}let X=this._createAnimations(Q,J);if(X.length)return j2.add(this._chart,X),!0}}function HA(Q,J){let X=[],q=Object.keys(J);for(let N=0;N<q.length;N++){let K=Q[q[N]];if(K&&K.active())X.push(K.wait())}return Promise.all(X)}function FA(Q,J){if(!J)return;let X=Q.options;if(!X){Q.options=J;return}if(X.$shared)Q.options=X=Object.assign({},X,{$shared:!1,$animations:{}});return X}function Ez(Q,J){let X=Q&&Q.options||{},q=X.reverse,N=X.min===void 0?J:0,K=X.max===void 0?J:0;return{start:q?K:N,end:q?N:K}}function MA(Q,J,X){if(X===!1)return!1;let q=Ez(Q,X),N=Ez(J,X);return{top:N.end,right:q.end,bottom:N.start,left:q.start}}function WA(Q){let J,X,q,N;if($1(Q))J=Q.top,X=Q.right,q=Q.bottom,N=Q.left;else J=X=q=N=Q;return{top:J,right:X,bottom:q,left:N,disabled:Q===!1}}function O_(Q,J){let X=[],q=Q._getSortedDatasetMetas(J),N,K;for(N=0,K=q.length;N<K;++N)X.push(q[N].index);return X}function Sz(Q,J,X,q={}){let N=Q.keys,K=q.mode==="single",H,F,M,w;if(J===null)return;let R=!1;for(H=0,F=N.length;H<F;++H){if(M=+N[H],M===X){if(R=!0,q.all)continue;break}if(w=Q.values[M],x1(w)&&(K||J===0||H4(J)===H4(w)))J+=w}if(!R&&!q.all)return 0;return J}function wA(Q,J){let{iScale:X,vScale:q}=J,N=X.axis==="x"?"x":"y",K=q.axis==="x"?"x":"y",H=Object.keys(Q),F=Array(H.length),M,w,R;for(M=0,w=H.length;M<w;++M)R=H[M],F[M]={[N]:R,[K]:Q[R]};return F}function lU(Q,J){let X=Q&&Q.options.stacked;return X||X===void 0&&J.stack!==void 0}function RA(Q,J,X){return`${Q.id}.${J.id}.${X.stack||X.type}`}function zA(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=Q.getUserBounds();return{min:q?J:Number.NEGATIVE_INFINITY,max:N?X:Number.POSITIVE_INFINITY}}function _A(Q,J,X){let q=Q[J]||(Q[J]={});return q[X]||(q[X]={})}function jz(Q,J,X,q){for(let N of J.getMatchingVisibleMetas(q).reverse()){let K=Q[N.index];if(X&&K>0||!X&&K<0)return N.index}return null}function Dz(Q,J){let{chart:X,_cachedMeta:q}=Q,N=X._stacks||(X._stacks={}),{iScale:K,vScale:H,index:F}=q,M=K.axis,w=H.axis,R=RA(K,H,q),_=J.length,P;for(let I=0;I<_;++I){let A=J[I],{[M]:V,[w]:O}=A,D=A._stacks||(A._stacks={});P=D[w]=_A(N,R,V),P[F]=O,P._top=jz(P,H,!0,q.type),P._bottom=jz(P,H,!1,q.type);let h=P._visualValues||(P._visualValues={});h[F]=O}}function rU(Q,J){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===J).shift()}function LA(Q,J){return S2(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function PA(Q,J,X){return S2(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:X,index:J,mode:"default",type:"data"})}function PQ(Q,J){let X=Q.controller.index,q=Q.vScale&&Q.vScale.axis;if(!q)return;J=J||Q._parsed;for(let N of J){let K=N._stacks;if(!K||K[q]===void 0||K[q][X]===void 0)return;if(delete K[q][X],K[q]._visualValues!==void 0&&K[q]._visualValues[X]!==void 0)delete K[q]._visualValues[X]}}var nU=(Q)=>Q==="reset"||Q==="none",vz=(Q,J)=>J?Q:Object.assign({},Q),TA=(Q,J,X)=>Q&&!J.hidden&&J._stacked&&{keys:O_(X,!0),values:null};class QX{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,J){this.chart=Q,this._ctx=Q.ctx,this.index=J,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let Q=this._cachedMeta;if(this.configure(),this.linkScales(),Q._stacked=lU(Q.vScale,Q),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(Q){if(this.index!==Q)PQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,X=this.getDataset(),q=(R,_,P,I)=>R==="x"?_:R==="r"?I:P,N=J.xAxisID=n0(X.xAxisID,rU(Q,"x")),K=J.yAxisID=n0(X.yAxisID,rU(Q,"y")),H=J.rAxisID=n0(X.rAxisID,rU(Q,"r")),F=J.indexAxis,M=J.iAxisID=q(F,N,K,H),w=J.vAxisID=q(F,K,N,H);J.xScale=this.getScaleForId(N),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(M),J.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(Q){return this.chart.scales[Q]}_getOtherScale(Q){let J=this._cachedMeta;return Q===J.iScale?J.vScale:J.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)OU(this._data,this);if(Q._stacked)PQ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),X=this._data;if($1(J)){let q=this._cachedMeta;this._data=wA(J,q)}else if(X!==J){if(X){OU(X,this);let q=this._cachedMeta;PQ(q),q._parsed=[]}if(J&&Object.isExtensible(J))Xz(J,this);this._syncList=[],this._data=J}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let J=this._cachedMeta,X=this.getDataset(),q=!1;this._dataCheck();let N=J._stacked;if(J._stacked=lU(J.vScale,J),J.stack!==X.stack)q=!0,PQ(J),J.stack=X.stack;if(this._resyncElements(Q),q||N!==J._stacked)Dz(this,J._parsed),J._stacked=lU(J.vScale,J)}configure(){let Q=this.chart.config,J=Q.datasetScopeKeys(this._type),X=Q.getOptionScopes(this.getDataset(),J,!0);this.options=Q.createResolver(X,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,J){let{_cachedMeta:X,_data:q}=this,{iScale:N,_stacked:K}=X,H=N.axis,F=Q===0&&J===q.length?!0:X._sorted,M=Q>0&&X._parsed[Q-1],w,R,_;if(this._parsing===!1)X._parsed=q,X._sorted=!0,_=q;else{if(j1(q[Q]))_=this.parseArrayData(X,q,Q,J);else if($1(q[Q]))_=this.parseObjectData(X,q,Q,J);else _=this.parsePrimitiveData(X,q,Q,J);let P=()=>R[H]===null||M&&R[H]<M[H];for(w=0;w<J;++w)if(X._parsed[w+Q]=R=_[w],F){if(P())F=!1;M=R}X._sorted=F}if(K)Dz(this,_)}parsePrimitiveData(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.axis,F=K.axis,M=N.getLabels(),w=N===K,R=Array(q),_,P,I;for(_=0,P=q;_<P;++_)I=_+X,R[_]={[H]:w||N.parse(M[I],I),[F]:K.parse(J[I],I)};return R}parseArrayData(Q,J,X,q){let{xScale:N,yScale:K}=Q,H=Array(q),F,M,w,R;for(F=0,M=q;F<M;++F)w=F+X,R=J[w],H[F]={x:N.parse(R[0],w),y:K.parse(R[1],w)};return H}parseObjectData(Q,J,X,q){let{xScale:N,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,M=Array(q),w,R,_,P;for(w=0,R=q;w<R;++w)_=w+X,P=J[_],M[w]={x:N.parse(x7(P,H),_),y:K.parse(x7(P,F),_)};return M}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,J,X){let q=this.chart,N=this._cachedMeta,K=J[Q.axis],H={keys:O_(q,!0),values:J._stacks[Q.axis]._visualValues};return Sz(H,K,N.index,{mode:X})}updateRangeFromParsed(Q,J,X,q){let N=X[J.axis],K=N===null?NaN:N,H=q&&X._stacks[J.axis];if(q&&H)q.values=H,K=Sz(q,N,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,J){let X=this._cachedMeta,q=X._parsed,N=X._sorted&&Q===X.iScale,K=q.length,H=this._getOtherScale(Q),F=TA(J,X,this.chart),M={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:R}=zA(H),_,P;function I(){P=q[_];let A=P[H.axis];return!x1(P[Q.axis])||w>A||R<A}for(_=0;_<K;++_){if(I())continue;if(this.updateRangeFromParsed(M,Q,P,F),N)break}if(N)for(_=K-1;_>=0;--_){if(I())continue;this.updateRangeFromParsed(M,Q,P,F);break}return M}getAllParsedValues(Q){let J=this._cachedMeta._parsed,X=[],q,N,K;for(q=0,N=J.length;q<N;++q)if(K=J[q][Q.axis],x1(K))X.push(K);return X}getMaxOverflow(){return!1}getLabelAndValue(Q){let J=this._cachedMeta,X=J.iScale,q=J.vScale,N=this.getParsed(Q);return{label:X?""+X.getLabelForValue(N[X.axis]):"",value:q?""+q.getLabelForValue(N[q.axis]):""}}_update(Q){let J=this._cachedMeta;this.update(Q||"default"),J._clip=WA(n0(this.options.clip,MA(J.xScale,J.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,J=this.chart,X=this._cachedMeta,q=X.data||[],N=J.chartArea,K=[],H=this._drawStart||0,F=this._drawCount||q.length-H,M=this.options.drawActiveElementsOnTop,w;if(X.dataset)X.dataset.draw(Q,N,H,F);for(w=H;w<H+F;++w){let R=q[w];if(R.hidden)continue;if(R.active&&M)K.push(R);else R.draw(Q,N)}for(w=0;w<K.length;++w)K[w].draw(Q,N)}getStyle(Q,J){let X=J?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(X):this.resolveDataElementOptions(Q||0,X)}getContext(Q,J,X){let q=this.getDataset(),N;if(Q>=0&&Q<this._cachedMeta.data.length){let K=this._cachedMeta.data[Q];N=K.$context||(K.$context=PA(this.getContext(),Q,K)),N.parsed=this.getParsed(Q),N.raw=q.data[Q],N.index=N.dataIndex=Q}else N=this.$context||(this.$context=LA(this.chart.getContext(),this.index)),N.dataset=q,N.index=N.datasetIndex=this.index;return N.active=!!J,N.mode=X,N}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,J){return this._resolveElementOptions(this.dataElementType.id,J,Q)}_resolveElementOptions(Q,J="default",X){let q=J==="active",N=this._cachedDataOpts,K=Q+"-"+J,H=N[K],F=this.enableOptionSharing&&w$(X);if(H)return vz(H,F);let M=this.chart.config,w=M.datasetElementScopeKeys(this._type,Q),R=q?[`${Q}Hover`,"hover",Q,""]:[Q,""],_=M.getOptionScopes(this.getDataset(),w),P=Object.keys(m1.elements[Q]),I=()=>this.getContext(X,q,J),A=M.resolveNamedOptions(_,P,I,R);if(A.$shared)A.$shared=F,N[K]=Object.freeze(vz(A,F));return A}_resolveAnimations(Q,J,X){let q=this.chart,N=this._cachedDataOpts,K=`animation-${J}`,H=N[K];if(H)return H;let F;if(q.options.animation!==!1){let w=this.chart.config,R=w.datasetAnimationScopeKeys(this._type,J),_=w.getOptionScopes(this.getDataset(),R);F=w.createResolver(_,this.getContext(Q,X,J))}let M=new KK(q,F&&F.animations);if(F&&F._cacheable)N[K]=Object.freeze(M);return M}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||nU(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,J){let X=this.resolveDataElementOptions(Q,J),q=this._sharedOptions,N=this.getSharedOptions(X),K=this.includeOptions(J,N)||N!==q;return this.updateSharedOptions(N,J,X),{sharedOptions:N,includeOptions:K}}updateElement(Q,J,X,q){if(nU(q))Object.assign(Q,X);else this._resolveAnimations(J,q).update(Q,X)}updateSharedOptions(Q,J,X){if(Q&&!nU(J))this._resolveAnimations(void 0,J).update(Q,X)}_setStyle(Q,J,X,q){Q.active=q;let N=this.getStyle(J,q);this._resolveAnimations(J,X,q).update(Q,{options:!q&&this.getSharedOptions(N)||N})}removeHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!1)}setHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!0)}_removeDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!1)}_setDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!0)}_resyncElements(Q){let J=this._data,X=this._cachedMeta.data;for(let[H,F,M]of this._syncList)this[H](F,M);this._syncList=[];let q=X.length,N=J.length,K=Math.min(N,q);if(K)this.parse(0,K);if(N>q)this._insertElements(q,N-q,Q);else if(N<q)this._removeElements(N,q-N)}_insertElements(Q,J,X=!0){let q=this._cachedMeta,N=q.data,K=Q+J,H,F=(M)=>{M.length+=J;for(H=M.length-1;H>=K;H--)M[H]=M[H-J]};F(N);for(H=Q;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)F(q._parsed);if(this.parse(Q,J),X)this.updateElements(N,Q,J,"reset")}updateElements(Q,J,X,q){}_removeElements(Q,J){let X=this._cachedMeta;if(this._parsing){let q=X._parsed.splice(Q,J);if(X._stacked)PQ(X,q)}X.data.splice(Q,J)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[J,X,q]=Q;this[J](X,q)}this.chart._dataChanges.push([this.index,...Q])}_onDataPush(){let Q=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-Q,Q])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(Q,J){if(J)this._sync(["_removeElements",Q,J]);let X=arguments.length-2;if(X)this._sync(["_insertElements",Q,X])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function CA(Q,J){if(!Q._cache.$bar){let X=Q.getMatchingVisibleMetas(J),q=[];for(let N=0,K=X.length;N<K;N++)q=q.concat(X[N].controller.getAllParsedValues(Q));Q._cache.$bar=VU(q.sort((N,K)=>N-K))}return Q._cache.$bar}function IA(Q){let J=Q.iScale,X=CA(J,Q.type),q=J._length,N,K,H,F,M=()=>{if(H===32767||H===-32768)return;if(w$(F))q=Math.min(q,Math.abs(H-F)||q);F=H};for(N=0,K=X.length;N<K;++N)H=J.getPixelForValue(X[N]),M();F=void 0;for(N=0,K=J.ticks.length;N<K;++N)H=J.getPixelForTick(N),M();return q}function OA(Q,J,X,q){let N=X.barThickness,K,H;if(J1(N))K=J.min*X.categoryPercentage,H=X.barPercentage;else K=N*q,H=1;return{chunk:K/q,ratio:H,start:J.pixels[Q]-K/2}}function VA(Q,J,X,q){let N=J.pixels,K=N[Q],H=Q>0?N[Q-1]:null,F=Q<N.length-1?N[Q+1]:null,M=X.categoryPercentage;if(H===null)H=K-(F===null?J.end-J.start:F-K);if(F===null)F=K+K-H;let w=K-(K-Math.min(H,F))/2*M;return{chunk:Math.abs(F-H)/2*M/q,ratio:X.barPercentage,start:w}}function AA(Q,J,X,q){let N=X.parse(Q[0],q),K=X.parse(Q[1],q),H=Math.min(N,K),F=Math.max(N,K),M=H,w=F;if(Math.abs(H)>Math.abs(F))M=F,w=H;J[X.axis]=w,J._custom={barStart:M,barEnd:w,start:N,end:K,min:H,max:F}}function V_(Q,J,X,q){if(j1(Q))AA(Q,J,X,q);else J[X.axis]=X.parse(Q,q);return J}function bz(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),F=N===K,M=[],w,R,_,P;for(w=X,R=X+q;w<R;++w)P=J[w],_={},_[N.axis]=F||N.parse(H[w],w),M.push(V_(P,_,K,w));return M}function sU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function EA(Q,J,X){if(Q!==0)return H4(Q);return(J.isHorizontal()?1:-1)*(J.min>=X?1:-1)}function SA(Q){let J,X,q,N,K;if(Q.horizontal)J=Q.base>Q.x,X="left",q="right";else J=Q.base<Q.y,X="bottom",q="top";if(J)N="end",K="start";else N="start",K="end";return{start:X,end:q,reverse:J,top:N,bottom:K}}function jA(Q,J,X,q){let N=J.borderSkipped,K={};if(!N){Q.borderSkipped=K;return}if(N===!0){Q.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:F,reverse:M,top:w,bottom:R}=SA(Q);if(N==="middle"&&X)if(Q.enableBorderRadius=!0,(X._top||0)===q)N=w;else if((X._bottom||0)===q)N=R;else K[kz(R,H,F,M)]=!0,N=w;K[kz(N,H,F,M)]=!0,Q.borderSkipped=K}function kz(Q,J,X,q){if(q)Q=DA(Q,J,X),Q=fz(Q,X,J);else Q=fz(Q,J,X);return Q}function DA(Q,J,X){return Q===J?X:Q===X?J:Q}function fz(Q,J,X){return Q==="start"?J:Q==="end"?X:Q}function vA(Q,{inflateAmount:J},X){Q.inflateAmount=J==="auto"?X===1?0.33:0:J}class BK extends QX{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(Q,J,X,q){return bz(Q,J,X,q)}parseArrayData(Q,J,X,q){return bz(Q,J,X,q)}parseObjectData(Q,J,X,q){let{iScale:N,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:F="y"}=this._parsing,M=N.axis==="x"?H:F,w=K.axis==="x"?H:F,R=[],_,P,I,A;for(_=X,P=X+q;_<P;++_)A=J[_],I={},I[N.axis]=N.parse(x7(A,M),_),R.push(V_(x7(A,w),I,K,_));return R}updateRangeFromParsed(Q,J,X,q){super.updateRangeFromParsed(Q,J,X,q);let N=X._custom;if(N&&J===this._cachedMeta.vScale)Q.min=Math.min(Q.min,N.min),Q.max=Math.max(Q.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(Q){let J=this._cachedMeta,{iScale:X,vScale:q}=J,N=this.getParsed(Q),K=N._custom,H=sU(K)?"["+K.start+", "+K.end+"]":""+q.getLabelForValue(N[q.axis]);return{label:""+X.getLabelForValue(N[X.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let Q=this._cachedMeta;Q.stack=this.getDataset().stack}update(Q){let J=this._cachedMeta;this.updateElements(J.data,0,J.data.length,Q)}updateElements(Q,J,X,q){let N=q==="reset",{index:K,_cachedMeta:{vScale:H}}=this,F=H.getBasePixel(),M=H.isHorizontal(),w=this._getRuler(),{sharedOptions:R,includeOptions:_}=this._getSharedOptions(J,q);for(let P=J;P<J+X;P++){let I=this.getParsed(P),A=N||J1(I[H.axis])?{base:F,head:F}:this._calculateBarValuePixels(P),V=this._calculateBarIndexPixels(P,w),O=(I._stacks||{})[H.axis],D={horizontal:M,base:A.base,enableBorderRadius:!O||sU(I._custom)||K===O._top||K===O._bottom,x:M?A.head:V.center,y:M?V.center:A.head,height:M?V.size:Math.abs(A.size),width:M?Math.abs(A.size):V.size};if(_)D.options=R||this.resolveDataElementOptions(P,Q[P].active?"active":q);let h=D.options||Q[P].options;jA(D,h,O,K),vA(D,h,w.ratio),this.updateElement(Q[P],P,D,q)}}_getStacks(Q,J){let{iScale:X}=this._cachedMeta,q=X.getMatchingVisibleMetas(this._type).filter((w)=>w.controller.options.grouped),N=X.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(J),F=H&&H[X.axis],M=(w)=>{let R=w._parsed.find((P)=>P[X.axis]===F),_=R&&R[w.vScale.axis];if(J1(_)||isNaN(_))return!0};for(let w of q){if(J!==void 0&&M(w))continue;if(N===!1||K.indexOf(w.stack)===-1||N===void 0&&w.stack===void 0)K.push(w.stack);if(w.index===Q)break}if(!K.length)K.push(void 0);return K}_getStackCount(Q){return this._getStacks(void 0,Q).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let Q=this.chart.scales,J=this.chart.options.indexAxis;return Object.keys(Q).filter((X)=>Q[X].axis===J).shift()}_getAxis(){let Q={},J=this.getFirstScaleIdForIndexAxis();for(let X of this.chart.data.datasets)Q[n0(this.chart.options.indexAxis==="x"?X.xAxisID:X.yAxisID,J)]=!0;return Object.keys(Q)}_getStackIndex(Q,J,X){let q=this._getStacks(Q,X),N=J!==void 0?q.indexOf(J):-1;return N===-1?q.length-1:N}_getRuler(){let Q=this.options,J=this._cachedMeta,X=J.iScale,q=[],N,K;for(N=0,K=J.data.length;N<K;++N)q.push(X.getPixelForValue(this.getParsed(N)[X.axis],N));let H=Q.barThickness;return{min:H||IA(J),pixels:q,start:X._startPixel,end:X._endPixel,stackCount:this._getStackCount(),scale:X,grouped:Q.grouped,ratio:H?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:J,_stacked:X,index:q},options:{base:N,minBarLength:K}}=this,H=N||0,F=this.getParsed(Q),M=F._custom,w=sU(M),R=F[J.axis],_=0,P=X?this.applyStack(J,F,X):R,I,A;if(P!==R)_=P-R,P=R;if(w){if(R=M.barStart,P=M.barEnd-M.barStart,R!==0&&H4(R)!==H4(M.barEnd))_=0;_+=R}let V=!J1(N)&&!w?N:_,O=J.getPixelForValue(V);if(this.chart.getDataVisibility(Q))I=J.getPixelForValue(_+P);else I=O;if(A=I-O,Math.abs(A)<K){if(A=EA(A,J,H)*K,R===H)O-=A/2;let D=J.getPixelForDecimal(0),h=J.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(O=Math.max(Math.min(O,s),p),I=O+A,X&&!w)F._stacks[J.axis]._visualValues[q]=J.getValueForPixel(I)-J.getValueForPixel(O)}if(O===J.getPixelForValue(H)){let D=H4(A)*J.getLineWidthForValue(H)/2;O+=D,A-=D}return{size:A,base:O,head:I,center:I+A/2}}_calculateBarIndexPixels(Q,J){let X=J.scale,q=this.options,N=q.skipNull,K=n0(q.maxBarThickness,1/0),H,F,M=this._getAxisCount();if(J.grouped){let w=N?this._getStackCount(Q):J.stackCount,R=q.barThickness==="flex"?VA(Q,J,q,w*M):OA(Q,J,q,w*M),_=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,P=this._getAxis().indexOf(n0(_,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+P;H=R.start+R.chunk*I+R.chunk/2,F=Math.min(K,R.chunk*R.ratio)}else H=X.getPixelForValue(this.getParsed(Q)[X.axis],Q),F=Math.min(K,J.min*J.ratio);return{base:H-F/2,head:H+F/2,center:H,size:F}}draw(){let Q=this._cachedMeta,J=Q.vScale,X=Q.data,q=X.length,N=0;for(;N<q;++N)if(this.getParsed(N)[J.axis]!==null&&!X[N].hidden)X[N].draw(this._ctx)}}class HK extends QX{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(Q){let J=this._cachedMeta,{dataset:X,data:q=[],_dataset:N}=J,K=this.chart._animationsDisabled,{start:H,count:F}=Nz(J,q,K);if(this._drawStart=H,this._drawCount=F,Uz(J))H=0,F=q.length;X._chart=this.chart,X._datasetIndex=this.index,X._decimated=!!N._decimated,X.points=q;let M=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)M.borderWidth=0;M.segment=this.options.segment,this.updateElement(X,void 0,{animated:!K,options:M},Q),this.updateElements(q,H,F,Q)}updateElements(Q,J,X,q){let N=q==="reset",{iScale:K,vScale:H,_stacked:F,_dataset:M}=this._cachedMeta,{sharedOptions:w,includeOptions:R}=this._getSharedOptions(J,q),_=K.axis,P=H.axis,{spanGaps:I,segment:A}=this.options,V=z$(I)?I:Number.POSITIVE_INFINITY,O=this.chart._animationsDisabled||N||q==="none",D=J+X,h=Q.length,p=J>0&&this.getParsed(J-1);for(let s=0;s<h;++s){let a=Q[s],J0=O?a:{};if(s<J||s>=D){J0.skip=!0;continue}let t=this.getParsed(s),i=J1(t[P]),Y0=J0[_]=K.getPixelForValue(t[_],s),d=J0[P]=N||i?H.getBasePixel():H.getPixelForValue(F?this.applyStack(H,t,F):t[P],s);if(J0.skip=isNaN(Y0)||isNaN(d)||i,J0.stop=s>0&&Math.abs(t[_]-p[_])>V,A)J0.parsed=t,J0.raw=M.data[s];if(R)J0.options=w||this.resolveDataElementOptions(s,a.active?"active":q);if(!O)this.updateElement(a,s,J0,q);p=t}}getMaxOverflow(){let Q=this._cachedMeta,J=Q.dataset,X=J.options&&J.options.borderWidth||0,q=Q.data||[];if(!q.length)return X;let N=q[0].size(this.resolveDataElementOptions(0)),K=q[q.length-1].size(this.resolveDataElementOptions(q.length-1));return Math.max(X,N,K)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function d7(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class FK{static override(Q){Object.assign(FK.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return d7()}parse(){return d7()}format(){return d7()}add(){return d7()}diff(){return d7()}startOf(){return d7()}endOf(){return d7()}}var bA={_date:FK};function kA(Q,J,X,q){let{controller:N,data:K,_sorted:H}=Q,F=N._cachedMeta.iScale,M=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(F&&J===F.axis&&J!=="r"&&H&&K.length){let w=F._reversePixels?Qz:v8;if(!q){let R=w(K,J,X);if(M){let{vScale:_}=N._cachedMeta,{_parsed:P}=Q,I=P.slice(0,R.lo+1).reverse().findIndex((V)=>!J1(V[_.axis]));R.lo-=Math.max(0,I);let A=P.slice(R.hi).findIndex((V)=>!J1(V[_.axis]));R.hi+=Math.max(0,A)}return R}else if(N._sharedOptions){let R=K[0],_=typeof R.getRange==="function"&&R.getRange(J);if(_){let P=w(K,J,X-_),I=w(K,J,X+_);return{lo:P.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function vQ(Q,J,X,q,N){let K=Q.getSortedVisibleDatasetMetas(),H=X[J];for(let F=0,M=K.length;F<M;++F){let{index:w,data:R}=K[F],{lo:_,hi:P}=kA(K[F],J,H,N);for(let I=_;I<=P;++I){let A=R[I];if(!A.skip)q(A,w,I)}}}function fA(Q){let J=Q.indexOf("x")!==-1,X=Q.indexOf("y")!==-1;return function(q,N){let K=J?Math.abs(q.x-N.x):0,H=X?Math.abs(q.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function oU(Q,J,X,q,N){let K=[];if(!N&&!Q.isPointInArea(J))return K;return vQ(Q,X,J,function(F,M,w){if(!N&&!p4(F,Q.chartArea,0))return;if(F.inRange(J.x,J.y,q))K.push({element:F,datasetIndex:M,index:w})},!0),K}function yA(Q,J,X,q){let N=[];function K(H,F,M){let{startAngle:w,endAngle:R}=H.getProps(["startAngle","endAngle"],q),{angle:_}=$z(H,{x:J.x,y:J.y});if(IU(_,w,R))N.push({element:H,datasetIndex:F,index:M})}return vQ(Q,X,J,K),N}function gA(Q,J,X,q,N,K){let H=[],F=fA(X),M=Number.POSITIVE_INFINITY;function w(R,_,P){let I=R.inRange(J.x,J.y,N);if(q&&!I)return;let A=R.getCenterPoint(N);if(!(!!K||Q.isPointInArea(A))&&!I)return;let O=F(J,A);if(O<M)H=[{element:R,datasetIndex:_,index:P}],M=O;else if(O===M)H.push({element:R,datasetIndex:_,index:P})}return vQ(Q,X,J,w),H}function aU(Q,J,X,q,N,K){if(!K&&!Q.isPointInArea(J))return[];return X==="r"&&!q?yA(Q,J,X,N):gA(Q,J,X,q,N,K)}function yz(Q,J,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",F=!1;if(vQ(Q,X,J,(M,w,R)=>{if(M[H]&&M[H](J[X],N))K.push({element:M,datasetIndex:w,index:R}),F=F||M.inRange(J.x,J.y,N)}),q&&!F)return[];return K}var hA={evaluateInteractionItems:vQ,modes:{index(Q,J,X,q){let N=h8(J,Q),K=X.axis||"x",H=X.includeInvisible||!1,F=X.intersect?oU(Q,N,K,q,H):aU(Q,N,K,!1,q,H),M=[];if(!F.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let R=F[0].index,_=w.data[R];if(_&&!_.skip)M.push({element:_,datasetIndex:w.index,index:R})}),M},dataset(Q,J,X,q){let N=h8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1,F=X.intersect?oU(Q,N,K,q,H):aU(Q,N,K,!1,q,H);if(F.length>0){let M=F[0].datasetIndex,w=Q.getDatasetMeta(M).data;F=[];for(let R=0;R<w.length;++R)F.push({element:w[R],datasetIndex:M,index:R})}return F},point(Q,J,X,q){let N=h8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return oU(Q,N,K,q,H)},nearest(Q,J,X,q){let N=h8(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return aU(Q,N,K,X.intersect,q,H)},x(Q,J,X,q){let N=h8(J,Q);return yz(Q,N,"x",X.intersect,q)},y(Q,J,X,q){let N=h8(J,Q);return yz(Q,N,"y",X.intersect,q)}}},A_=["left","top","right","bottom"];function TQ(Q,J){return Q.filter((X)=>X.pos===J)}function gz(Q,J){return Q.filter((X)=>A_.indexOf(X.pos)===-1&&X.box.axis===J)}function CQ(Q,J){return Q.sort((X,q)=>{let N=J?q:X,K=J?X:q;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function uA(Q){let J=[],X,q,N,K,H,F;for(X=0,q=(Q||[]).length;X<q;++X)N=Q[X],{position:K,options:{stack:H,stackWeight:F=1}}=N,J.push({index:X,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:F});return J}function xA(Q){let J={};for(let X of Q){let{stack:q,pos:N,stackWeight:K}=X;if(!q||!A_.includes(N))continue;let H=J[q]||(J[q]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return J}function mA(Q,J){let X=xA(Q),{vBoxMaxWidth:q,hBoxMaxHeight:N}=J,K,H,F;for(K=0,H=Q.length;K<H;++K){F=Q[K];let{fullSize:M}=F.box,w=X[F.stack],R=w&&F.stackWeight/w.weight;if(F.horizontal)F.width=R?R*q:M&&J.availableWidth,F.height=N;else F.width=q,F.height=R?R*N:M&&J.availableHeight}return X}function dA(Q){let J=uA(Q),X=CQ(J.filter((w)=>w.box.fullSize),!0),q=CQ(TQ(J,"left"),!0),N=CQ(TQ(J,"right")),K=CQ(TQ(J,"top"),!0),H=CQ(TQ(J,"bottom")),F=gz(J,"x"),M=gz(J,"y");return{fullSize:X,leftAndTop:q.concat(K),rightAndBottom:N.concat(M).concat(H).concat(F),chartArea:TQ(J,"chartArea"),vertical:q.concat(N).concat(M),horizontal:K.concat(H).concat(F)}}function hz(Q,J,X,q){return Math.max(Q[X],J[X])+Math.max(Q[q],J[q])}function E_(Q,J){Q.top=Math.max(Q.top,J.top),Q.left=Math.max(Q.left,J.left),Q.bottom=Math.max(Q.bottom,J.bottom),Q.right=Math.max(Q.right,J.right)}function pA(Q,J,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!$1(N)){if(X.size)Q[N]-=X.size;let _=q[X.stack]||{size:0,count:1};_.size=Math.max(_.size,X.horizontal?K.height:K.width),X.size=_.size/_.count,Q[N]+=X.size}if(K.getPadding)E_(H,K.getPadding());let F=Math.max(0,J.outerWidth-hz(H,Q,"left","right")),M=Math.max(0,J.outerHeight-hz(H,Q,"top","bottom")),w=F!==Q.w,R=M!==Q.h;return Q.w=F,Q.h=M,X.horizontal?{same:w,other:R}:{same:R,other:w}}function cA(Q){let J=Q.maxPadding;function X(q){let N=Math.max(J[q]-Q[q],0);return Q[q]+=N,N}Q.y+=X("top"),Q.x+=X("left"),X("right"),X("bottom")}function lA(Q,J){let X=J.maxPadding;function q(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(J[H],X[H])}),K}return Q?q(["left","right"]):q(["top","bottom"])}function VQ(Q,J,X,q){let N=[],K,H,F,M,w,R;for(K=0,H=Q.length,w=0;K<H;++K){F=Q[K],M=F.box,M.update(F.width||J.w,F.height||J.h,lA(F.horizontal,J));let{same:_,other:P}=pA(J,X,F,q);if(w|=_&&N.length,R=R||P,!M.fullSize)N.push(F)}return w&&VQ(N,J,X,q)||R}function s3(Q,J,X,q,N){Q.top=X,Q.left=J,Q.right=J+q,Q.bottom=X+N,Q.width=q,Q.height=N}function uz(Q,J,X,q){let N=X.padding,{x:K,y:H}=J;for(let F of Q){let M=F.box,w=q[F.stack]||{count:1,placed:0,weight:1},R=F.stackWeight/w.weight||1;if(F.horizontal){let _=J.w*R,P=w.size||M.height;if(w$(w.start))H=w.start;if(M.fullSize)s3(M,N.left,H,X.outerWidth-N.right-N.left,P);else s3(M,J.left+w.placed,H,_,P);w.start=H,w.placed+=_,H=M.bottom}else{let _=J.h*R,P=w.size||M.width;if(w$(w.start))K=w.start;if(M.fullSize)s3(M,K,N.top,P,X.outerHeight-N.bottom-N.top);else s3(M,K,J.top+w.placed,P,_);w.start=K,w.placed+=_,K=M.right}}J.x=K,J.y=H}var n6={addBox(Q,J){if(!Q.boxes)Q.boxes=[];J.fullSize=J.fullSize||!1,J.position=J.position||"top",J.weight=J.weight||0,J._layers=J._layers||function(){return[{z:0,draw(X){J.draw(X)}}]},Q.boxes.push(J)},removeBox(Q,J){let X=Q.boxes?Q.boxes.indexOf(J):-1;if(X!==-1)Q.boxes.splice(X,1)},configure(Q,J,X){J.fullSize=X.fullSize,J.position=X.position,J.weight=X.weight},update(Q,J,X,q){if(!Q)return;let N=I5(Q.options.layout.padding),K=Math.max(J-N.width,0),H=Math.max(X-N.height,0),F=dA(Q.boxes),M=F.vertical,w=F.horizontal;W1(Q.boxes,(V)=>{if(typeof V.beforeLayout==="function")V.beforeLayout()});let R=M.reduce((V,O)=>O.box.options&&O.box.options.display===!1?V:V+1,0)||1,_=Object.freeze({outerWidth:J,outerHeight:X,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/R,hBoxMaxHeight:H/2}),P=Object.assign({},N);E_(P,I5(q));let I=Object.assign({maxPadding:P,w:K,h:H,x:N.left,y:N.top},N),A=mA(M.concat(w),_);if(VQ(F.fullSize,I,_,A),VQ(M,I,_,A),VQ(w,I,_,A))VQ(M,I,_,A);cA(I),uz(F.leftAndTop,I,_,A),I.x+=I.w,I.y+=I.h,uz(F.rightAndBottom,I,_,A),Q.chartArea={left:I.left,top:I.top,right:I.left+I.w,bottom:I.top+I.h,height:I.h,width:I.w},W1(F.chartArea,(V)=>{let O=V.box;Object.assign(O,Q.chartArea),O.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class MK{acquireContext(Q,J){}releaseContext(Q){return!1}addEventListener(Q,J,X){}removeEventListener(Q,J,X){}getDevicePixelRatio(){return 1}getMaximumSize(Q,J,X,q){return J=Math.max(0,J||Q.width),X=X||Q.height,{width:J,height:Math.max(0,q?Math.floor(J/q):X)}}isAttached(Q){return!0}updateConfig(Q){}}class S_ extends MK{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var e3="$chartjs",rA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xz=(Q)=>Q===null||Q==="";function nA(Q,J){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[e3]={initial:{height:q,width:N,style:{display:X.display,height:X.height,width:X.width}}},X.display=X.display||"block",X.boxSizing=X.boxSizing||"border-box",xz(N)){let K=uU(Q,"width");if(K!==void 0)Q.width=K}if(xz(q))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=uU(Q,"height");if(K!==void 0)Q.height=K}return Q}var j_=Tz?{passive:!0}:!1;function sA(Q,J,X){if(Q)Q.addEventListener(J,X,j_)}function oA(Q,J,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,X,j_)}function aA(Q,J){let X=rA[Q.type]||Q.type,{x:q,y:N}=h8(Q,J);return{type:X,chart:J,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function ZX(Q,J){for(let X of Q)if(X===J||X.contains(J))return!0}function iA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||ZX(F.addedNodes,q),H=H&&!ZX(F.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function tA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let F of K)H=H||ZX(F.removedNodes,q),H=H&&!ZX(F.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var SQ=new Map,mz=0;function D_(){let Q=window.devicePixelRatio;if(Q===mz)return;mz=Q,SQ.forEach((J,X)=>{if(X.currentDevicePixelRatio!==Q)J()})}function eA(Q,J){if(!SQ.size)window.addEventListener("resize",D_);SQ.set(Q,J)}function $E(Q){if(SQ.delete(Q),!SQ.size)window.removeEventListener("resize",D_)}function ZE(Q,J,X){let q=Q.canvas,N=q&&r3(q);if(!N)return;let K=EU((F,M)=>{let w=N.clientWidth;if(X(F,M),w<N.clientWidth)X()},window),H=new ResizeObserver((F)=>{let M=F[0],w=M.contentRect.width,R=M.contentRect.height;if(w===0&&R===0)return;K(w,R)});return H.observe(N),eA(Q,K),H}function iU(Q,J,X){if(X)X.disconnect();if(J==="resize")$E(Q)}function QE(Q,J,X){let q=Q.canvas,N=EU((K)=>{if(Q.ctx!==null)X(aA(K,Q))},Q);return sA(q,J,N),N}class v_ extends MK{acquireContext(Q,J){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return nA(Q,J),X;return null}releaseContext(Q){let J=Q.canvas;if(!J[e3])return!1;let X=J[e3].initial;["height","width"].forEach((N)=>{let K=X[N];if(J1(K))J.removeAttribute(N);else J.setAttribute(N,K)});let q=X.style||{};return Object.keys(q).forEach((N)=>{J.style[N]=q[N]}),J.width=J.width,delete J[e3],!0}addEventListener(Q,J,X){this.removeEventListener(Q,J);let q=Q.$proxies||(Q.$proxies={}),K={attach:iA,detach:tA,resize:ZE}[J]||QE;q[J]=K(Q,J,X)}removeEventListener(Q,J){let X=Q.$proxies||(Q.$proxies={}),q=X[J];if(!q)return;({attach:iU,detach:iU,resize:iU}[J]||oA)(Q,J,q),X[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,X,q){return Pz(Q,J,X,q)}isAttached(Q){let J=Q&&r3(Q);return!!(J&&J.isConnected)}}function JE(Q){if(!l3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return S_;return v_}class v2{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}hasValue(){return z$(this.x)&&z$(this.y)}getProps(Q,J){let X=this.$animations;if(!J||!X)return this;let q={};return Q.forEach((N)=>{q[N]=X[N]&&X[N].active()?X[N]._to:this[N]}),q}}function GE(Q,J){let X=Q.options.ticks,q=XE(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?YE(J):[],H=K.length,F=K[0],M=K[H-1],w=[];if(H>N)return NE(J,w,K,H/N),w;let R=qE(K,J,N);if(H>0){let _,P,I=H>1?Math.round((M-F)/(H-1)):null;o3(J,w,R,J1(I)?0:F-I,F);for(_=0,P=H-1;_<P;_++)o3(J,w,R,K[_],K[_+1]);return o3(J,w,R,M,J1(I)?J.length:M+I),w}return o3(J,w,R),w}function XE(Q){let J=Q.options.offset,X=Q._tickSize(),q=Q._length/X+(J?0:1),N=Q._maxLength/X;return Math.floor(Math.min(q,N))}function qE(Q,J,X){let q=UE(Q),N=J.length/X;if(!q)return Math.max(N,1);let K=tR(q);for(let H=0,F=K.length-1;H<F;H++){let M=K[H];if(M>N)return M}return Math.max(N,1)}function YE(Q){let J=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)J.push(X);return J}function NE(Q,J,X,q){let N=0,K=X[0],H;q=Math.ceil(q);for(H=0;H<Q.length;H++)if(H===K)J.push(Q[H]),N++,K=X[N*q]}function o3(Q,J,X,q,N){let K=n0(q,0),H=Math.min(n0(N,Q.length),Q.length),F=0,M,w,R;if(X=Math.ceil(X),N)M=N-q,X=M/Math.floor(M/X);R=K;while(R<0)F++,R=Math.round(K+F*X);for(w=Math.max(K,0);w<H;w++)if(w===R)J.push(Q[w]),F++,R=Math.round(K+F*X)}function UE(Q){let J=Q.length,X,q;if(J<2)return!1;for(q=Q[0],X=1;X<J;++X)if(Q[X]-Q[X-1]!==q)return!1;return q}var KE=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,dz=(Q,J,X)=>J==="top"||J==="left"?Q[J]+X:Q[J]-X,pz=(Q,J)=>Math.min(J||Q,Q);function cz(Q,J){let X=[],q=Q.length/J,N=Q.length,K=0;for(;K<N;K+=q)X.push(Q[Math.floor(K)]);return X}function BE(Q,J,X){let q=Q.ticks.length,N=Math.min(J,q-1),K=Q._startPixel,H=Q._endPixel,F=0.000001,M=Q.getPixelForTick(N),w;if(X){if(q===1)w=Math.max(M-K,H-M);else if(J===0)w=(Q.getPixelForTick(1)-M)/2;else w=(M-Q.getPixelForTick(N-1))/2;if(M+=N<J?w:-w,M<K-0.000001||M>H+0.000001)return}return M}function HE(Q,J){W1(Q,(X)=>{let q=X.gc,N=q.length/2,K;if(N>J){for(K=0;K<N;++K)delete X.data[q[K]];q.splice(0,N)}})}function IQ(Q){return Q.drawTicks?Q.tickLength:0}function lz(Q,J){if(!Q.display)return 0;let X=X5(Q.font,J),q=I5(Q.padding);return(j1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function FE(Q,J){return S2(Q,{scale:J,type:"scale"})}function ME(Q,J,X){return S2(Q,{tick:X,index:J,type:"tick"})}function WE(Q,J,X){let q=x3(Q);if(X&&J!=="right"||!X&&J==="right")q=KE(q);return q}function wE(Q,J,X,q){let{top:N,left:K,bottom:H,right:F,chart:M}=Q,{chartArea:w,scales:R}=M,_=0,P,I,A,V=H-N,O=F-K;if(Q.isHorizontal()){if(I=C5(q,K,F),$1(X)){let D=Object.keys(X)[0],h=X[D];A=R[D].getPixelForValue(h)+V-J}else if(X==="center")A=(w.bottom+w.top)/2+V-J;else A=dz(Q,X,J);P=F-K}else{if($1(X)){let D=Object.keys(X)[0],h=X[D];I=R[D].getPixelForValue(h)-O+J}else if(X==="center")I=(w.left+w.right)/2-O+J;else I=dz(Q,X,J);A=C5(q,H,N),_=X==="left"?-Z6:Z6}return{titleX:I,titleY:A,maxWidth:P,rotation:_}}class c7 extends v2{constructor(Q){super();this.id=Q.id,this.type=Q.type,this.options=void 0,this.ctx=Q.ctx,this.chart=Q.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(Q){this.options=Q.setContext(this.getContext()),this.axis=Q.axis,this._userMin=this.parse(Q.min),this._userMax=this.parse(Q.max),this._suggestedMin=this.parse(Q.suggestedMin),this._suggestedMax=this.parse(Q.suggestedMax)}parse(Q,J){return Q}getUserBounds(){let{_userMin:Q,_userMax:J,_suggestedMin:X,_suggestedMax:q}=this;return Q=G6(Q,Number.POSITIVE_INFINITY),J=G6(J,Number.NEGATIVE_INFINITY),X=G6(X,Number.POSITIVE_INFINITY),q=G6(q,Number.NEGATIVE_INFINITY),{min:G6(Q,X),max:G6(J,q),minDefined:x1(Q),maxDefined:x1(J)}}getMinMax(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=this.getUserBounds(),K;if(q&&N)return{min:J,max:X};let H=this.getMatchingVisibleMetas();for(let F=0,M=H.length;F<M;++F){if(K=H[F].controller.getMinMax(this,Q),!q)J=Math.min(J,K.min);if(!N)X=Math.max(X,K.max)}return J=N&&J>X?X:J,X=q&&J>X?J:X,{min:G6(J,G6(X,J)),max:G6(X,G6(J,X))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let Q=this.chart.data;return this.options.labels||(this.isHorizontal()?Q.xLabels:Q.yLabels)||Q.labels||[]}getLabelItems(Q=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(Q))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){V1(this.options.beforeUpdate,[this])}update(Q,J,X){let{beginAtZero:q,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=J,this._margins=X=Object.assign({left:0,right:0,top:0,bottom:0},X),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+X.left+X.right:this.height+X.top+X.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Wz(this,N,q),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let F=H<this.ticks.length;if(this._convertTicksToLabels(F?cz(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=GE(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(F)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Q=this.options.reverse,J,X;if(this.isHorizontal())J=this.left,X=this.right;else J=this.top,X=this.bottom,Q=!Q;this._startPixel=J,this._endPixel=X,this._reversePixels=Q,this._length=X-J,this._alignToPixels=this.options.alignToPixels}afterUpdate(){V1(this.options.afterUpdate,[this])}beforeSetDimensions(){V1(this.options.beforeSetDimensions,[this])}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=0,this.right=this.width;else this.height=this.maxHeight,this.top=0,this.bottom=this.height;this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){V1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),V1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){V1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let J=this.options.ticks,X,q,N;for(X=0,q=Q.length;X<q;X++)N=Q[X],N.label=V1(J.callback,[N.value,X,Q],this)}afterTickToLabelConversion(){V1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){V1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,X=pz(this.ticks.length,Q.ticks.maxTicksLimit),q=J.minRotation||0,N=J.maxRotation,K=q,H,F,M;if(!this._isVisible()||!J.display||q>=N||X<=1||!this.isHorizontal()){this.labelRotation=q;return}let w=this._getLabelSizes(),R=w.widest.width,_=w.highest.height,P=J6(this.chart.width-R,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:P/(X-1),R+6>H)H=P/(X-(Q.offset?0.5:1)),F=this.maxHeight-IQ(Q.grid)-J.padding-lz(Q.title,this.chart.options.font),M=Math.sqrt(R*R+_*_),K=h3(Math.min(Math.asin(J6((w.highest.height+6)/H,-1,1)),Math.asin(J6(F/M,-1,1))-Math.asin(J6(_/M,-1,1)))),K=Math.max(q,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){V1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){V1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:J,options:{ticks:X,title:q,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let F=lz(q,J.options.font);if(H)Q.width=this.maxWidth,Q.height=IQ(N)+F;else Q.height=this.maxHeight,Q.width=IQ(N)+F;if(X.display&&this.ticks.length){let{first:M,last:w,widest:R,highest:_}=this._getLabelSizes(),P=X.padding*2,I=A2(this.labelRotation),A=Math.cos(I),V=Math.sin(I);if(H){let O=X.mirror?0:V*R.width+A*_.height;Q.height=Math.min(this.maxHeight,Q.height+O+P)}else{let O=X.mirror?0:A*R.width+V*_.height;Q.width=Math.min(this.maxWidth,Q.width+O+P)}this._calculatePadding(M,w,V,A)}}if(this._handleMargins(),H)this.width=this._length=J.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=J.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,J,X,q){let{ticks:{align:N,padding:K},position:H}=this.options,F=this.labelRotation!==0,M=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,R=this.right-this.getPixelForTick(this.ticks.length-1),_=0,P=0;if(F)if(M)_=q*Q.width,P=X*J.height;else _=X*Q.height,P=q*J.width;else if(N==="start")P=J.width;else if(N==="end")_=Q.width;else if(N!=="inner")_=Q.width/2,P=J.width/2;this.paddingLeft=Math.max((_-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((P-R+K)*this.width/(this.width-R),0)}else{let w=J.height/2,R=Q.height/2;if(N==="start")w=0,R=Q.height;else if(N==="end")w=J.height,R=0;this.paddingTop=w+K,this.paddingBottom=R+K}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){V1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:J}=this.options;return J==="top"||J==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let J,X;for(J=0,X=Q.length;J<X;J++)if(J1(Q[J].label))Q.splice(J,1),X--,J--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let J=this.options.ticks.sampleSize,X=this.ticks;if(J<X.length)X=cz(X,J);this._labelSizes=Q=this._computeLabelSizes(X,X.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,J,X){let{ctx:q,_longestTextCache:N}=this,K=[],H=[],F=Math.floor(J/pz(J,X)),M=0,w=0,R,_,P,I,A,V,O,D,h,p,s;for(R=0;R<J;R+=F){if(I=Q[R].label,A=this._resolveTickFontOptions(R),q.font=V=A.string,O=N[V]=N[V]||{data:{},gc:[]},D=A.lineHeight,h=p=0,!J1(I)&&!j1(I))h=WQ(q,O.data,O.gc,h,I),p=D;else if(j1(I)){for(_=0,P=I.length;_<P;++_)if(s=I[_],!J1(s)&&!j1(s))h=WQ(q,O.data,O.gc,h,s),p+=D}K.push(h),H.push(p),M=Math.max(h,M),w=Math.max(p,w)}HE(N,J);let a=K.indexOf(M),J0=H.indexOf(w),t=(i)=>({width:K[i]||0,height:H[i]||0});return{first:t(0),last:t(J-1),widest:t(a),highest:t(J0),widths:K,heights:H}}getLabelForValue(Q){return Q}getPixelForValue(Q,J){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let J=this._startPixel+Q*this._length;return Zz(this._alignToPixels?f8(this.chart,J,0):J)}getDecimalForPixel(Q){let J=(Q-this._startPixel)/this._length;return this._reversePixels?1-J:J}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:J}=this;return Q<0&&J<0?J:Q>0&&J>0?Q:0}getContext(Q){let J=this.ticks||[];if(Q>=0&&Q<J.length){let X=J[Q];return X.$context||(X.$context=ME(this.getContext(),Q,X))}return this.$context||(this.$context=FE(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=A2(this.labelRotation),X=Math.abs(Math.cos(J)),q=Math.abs(Math.sin(J)),N=this._getLabelSizes(),K=Q.autoSkipPadding||0,H=N?N.widest.width+K:0,F=N?N.highest.height+K:0;return this.isHorizontal()?F*X>H*q?H/X:F/q:F*q<H*X?F/X:H/q}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let J=this.axis,X=this.chart,q=this.options,{grid:N,position:K,border:H}=q,F=N.offset,M=this.isHorizontal(),R=this.ticks.length+(F?1:0),_=IQ(N),P=[],I=H.setContext(this.getContext()),A=I.display?I.width:0,V=A/2,O=function(l){return f8(X,l,A)},D,h,p,s,a,J0,t,i,Y0,d,H0,P0;if(K==="top")D=O(this.bottom),J0=this.bottom-_,i=D-V,d=O(Q.top)+V,P0=Q.bottom;else if(K==="bottom")D=O(this.top),d=Q.top,P0=O(Q.bottom)-V,J0=D+V,i=this.top+_;else if(K==="left")D=O(this.right),a=this.right-_,t=D-V,Y0=O(Q.left)+V,H0=Q.right;else if(K==="right")D=O(this.left),Y0=Q.left,H0=O(Q.right)-V,a=D+V,t=this.left+_;else if(J==="x"){if(K==="center")D=O((Q.top+Q.bottom)/2+0.5);else if($1(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}d=Q.top,P0=Q.bottom,J0=D+V,i=J0+_}else if(J==="y"){if(K==="center")D=O((Q.left+Q.right)/2);else if($1(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}a=D-V,t=a-_,Y0=Q.left,H0=Q.right}let I0=n0(q.ticks.maxTicksLimit,R),b0=Math.max(1,Math.ceil(R/I0));for(h=0;h<R;h+=b0){let l=this.getContext(h),q0=N.setContext(l),F0=H.setContext(l),a0=q0.lineWidth,d0=q0.color,v=F0.dash||[],o=F0.dashOffset,M0=q0.tickWidth,W0=q0.tickColor,p0=q0.tickBorderDash||[],p1=q0.tickBorderDashOffset;if(p=BE(this,h,F),p===void 0)continue;if(s=f8(X,p,a0),M)a=t=Y0=H0=s;else J0=i=d=P0=s;P.push({tx1:a,ty1:J0,tx2:t,ty2:i,x1:Y0,y1:d,x2:H0,y2:P0,width:a0,color:d0,borderDash:v,borderDashOffset:o,tickWidth:M0,tickColor:W0,tickBorderDash:p0,tickBorderDashOffset:p1})}return this._ticksLength=R,this._borderValue=D,P}_computeLabelItems(Q){let J=this.axis,X=this.options,{position:q,ticks:N}=X,K=this.isHorizontal(),H=this.ticks,{align:F,crossAlign:M,padding:w,mirror:R}=N,_=IQ(X.grid),P=_+w,I=R?-w:P,A=-A2(this.labelRotation),V=[],O,D,h,p,s,a,J0,t,i,Y0,d,H0,P0="middle";if(q==="top")a=this.bottom-I,J0=this._getXAxisLabelAlignment();else if(q==="bottom")a=this.top+I,J0=this._getXAxisLabelAlignment();else if(q==="left"){let b0=this._getYAxisLabelAlignment(_);J0=b0.textAlign,s=b0.x}else if(q==="right"){let b0=this._getYAxisLabelAlignment(_);J0=b0.textAlign,s=b0.x}else if(J==="x"){if(q==="center")a=(Q.top+Q.bottom)/2+P;else if($1(q)){let b0=Object.keys(q)[0],l=q[b0];a=this.chart.scales[b0].getPixelForValue(l)+P}J0=this._getXAxisLabelAlignment()}else if(J==="y"){if(q==="center")s=(Q.left+Q.right)/2-P;else if($1(q)){let b0=Object.keys(q)[0],l=q[b0];s=this.chart.scales[b0].getPixelForValue(l)}J0=this._getYAxisLabelAlignment(_).textAlign}if(J==="y"){if(F==="start")P0="top";else if(F==="end")P0="bottom"}let I0=this._getLabelSizes();for(O=0,D=H.length;O<D;++O){h=H[O],p=h.label;let b0=N.setContext(this.getContext(O));t=this.getPixelForTick(O)+N.labelOffset,i=this._resolveTickFontOptions(O),Y0=i.lineHeight,d=j1(p)?p.length:1;let l=d/2,q0=b0.color,F0=b0.textStrokeColor,a0=b0.textStrokeWidth,d0=J0;if(K){if(s=t,J0==="inner")if(O===D-1)d0=!this.options.reverse?"right":"left";else if(O===0)d0=!this.options.reverse?"left":"right";else d0="center";if(q==="top")if(M==="near"||A!==0)H0=-d*Y0+Y0/2;else if(M==="center")H0=-I0.highest.height/2-l*Y0+Y0;else H0=-I0.highest.height+Y0/2;else if(M==="near"||A!==0)H0=Y0/2;else if(M==="center")H0=I0.highest.height/2-l*Y0;else H0=I0.highest.height-d*Y0;if(R)H0*=-1;if(A!==0&&!b0.showLabelBackdrop)s+=Y0/2*Math.sin(A)}else a=t,H0=(1-d)*Y0/2;let v;if(b0.showLabelBackdrop){let o=I5(b0.backdropPadding),M0=I0.heights[O],W0=I0.widths[O],p0=H0-o.top,p1=0-o.left;switch(P0){case"middle":p0-=M0/2;break;case"bottom":p0-=M0;break}switch(J0){case"center":p1-=W0/2;break;case"right":p1-=W0;break;case"inner":if(O===D-1)p1-=W0;else if(O>0)p1-=W0/2;break}v={left:p1,top:p0,width:W0+o.width,height:M0+o.height,color:b0.backdropColor}}V.push({label:p,font:i,textOffset:H0,options:{rotation:A,color:q0,strokeColor:F0,strokeWidth:a0,textAlign:d0,textBaseline:P0,translation:[s,a],backdrop:v}})}return V}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-A2(this.labelRotation))return Q==="top"?"left":"right";let q="center";if(J.align==="start")q="left";else if(J.align==="end")q="right";else if(J.align==="inner")q="inner";return q}_getYAxisLabelAlignment(Q){let{position:J,ticks:{crossAlign:X,mirror:q,padding:N}}=this.options,K=this._getLabelSizes(),H=Q+N,F=K.widest.width,M,w;if(J==="left")if(q)if(w=this.right+N,X==="near")M="left";else if(X==="center")M="center",w+=F/2;else M="right",w+=F;else if(w=this.right-H,X==="near")M="right";else if(X==="center")M="center",w-=F/2;else M="left",w=this.left;else if(J==="right")if(q)if(w=this.left+N,X==="near")M="right";else if(X==="center")M="center",w-=F/2;else M="left",w-=F;else if(w=this.left+H,X==="near")M="left";else if(X==="center")M="center",w+=F/2;else M="right",w=this.right;else M="right";return{textAlign:M,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;let Q=this.chart,J=this.options.position;if(J==="left"||J==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(J==="top"||J==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:J},left:X,top:q,width:N,height:K}=this;if(J)Q.save(),Q.fillStyle=J,Q.fillRect(X,q,N,K),Q.restore()}getLineWidthForValue(Q){let J=this.options.grid;if(!this._isVisible()||!J.display)return 0;let q=this.ticks.findIndex((N)=>N.value===Q);if(q>=0)return J.setContext(this.getContext(q)).lineWidth;return 0}drawGrid(Q){let J=this.options.grid,X=this.ctx,q=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),N,K,H=(F,M,w)=>{if(!w.width||!w.color)return;X.save(),X.lineWidth=w.width,X.strokeStyle=w.color,X.setLineDash(w.borderDash||[]),X.lineDashOffset=w.borderDashOffset,X.beginPath(),X.moveTo(F.x,F.y),X.lineTo(M.x,M.y),X.stroke(),X.restore()};if(J.display)for(N=0,K=q.length;N<K;++N){let F=q[N];if(J.drawOnChartArea)H({x:F.x1,y:F.y1},{x:F.x2,y:F.y2},F);if(J.drawTicks)H({x:F.tx1,y:F.ty1},{x:F.tx2,y:F.ty2},{color:F.tickColor,width:F.tickWidth,borderDash:F.tickBorderDash,borderDashOffset:F.tickBorderDashOffset})}}drawBorder(){let{chart:Q,ctx:J,options:{border:X,grid:q}}=this,N=X.setContext(this.getContext()),K=X.display?N.width:0;if(!K)return;let H=q.setContext(this.getContext(0)).lineWidth,F=this._borderValue,M,w,R,_;if(this.isHorizontal())M=f8(Q,this.left,K)-K/2,w=f8(Q,this.right,H)+H/2,R=_=F;else R=f8(Q,this.top,K)-K/2,_=f8(Q,this.bottom,H)+H/2,M=w=F;J.save(),J.lineWidth=N.width,J.strokeStyle=N.color,J.beginPath(),J.moveTo(M,R),J.lineTo(w,_),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let X=this.ctx,q=this._computeLabelArea();if(q)zQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:F,label:M,textOffset:w}=K;y8(X,M,0,w,F,H)}if(q)_Q(X)}drawTitle(){let{ctx:Q,options:{position:J,title:X,reverse:q}}=this;if(!X.display)return;let N=X5(X.font),K=I5(X.padding),H=X.align,F=N.lineHeight/2;if(J==="bottom"||J==="center"||$1(J)){if(F+=K.bottom,j1(X.text))F+=N.lineHeight*(X.text.length-1)}else F+=K.top;let{titleX:M,titleY:w,maxWidth:R,rotation:_}=wE(this,F,J,H);y8(Q,X.text,0,0,N,{color:X.color,maxWidth:R,rotation:_,textAlign:WE(H,J,q),textBaseline:"middle",translation:[M,w]})}draw(Q){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(Q),this.drawBorder(),this.drawTitle(),this.drawLabels(Q)}_layers(){let Q=this.options,J=Q.ticks&&Q.ticks.z||0,X=n0(Q.grid&&Q.grid.z,-1),q=n0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==c7.prototype.draw)return[{z:J,draw:(N)=>{this.draw(N)}}];return[{z:X,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:q,draw:()=>{this.drawBorder()}},{z:J,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(Q){let J=this.chart.getSortedVisibleDatasetMetas(),X=this.axis+"AxisID",q=[],N,K;for(N=0,K=J.length;N<K;++N){let H=J[N];if(H[X]===this.id&&(!Q||H.type===Q))q.push(H)}return q}_resolveTickFontOptions(Q){let J=this.options.ticks.setContext(this.getContext(Q));return X5(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class AQ{constructor(Q,J,X){this.type=Q,this.scope=J,this.override=X,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let J=Object.getPrototypeOf(Q),X;if(_E(J))X=this.register(J);let q=this.items,N=Q.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+Q);if(N in q)return K;if(q[N]=Q,RE(Q,K,X),this.override)m1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let J=this.items,X=Q.id,q=this.scope;if(X in J)delete J[X];if(q&&X in m1[q]){if(delete m1[q][X],this.override)delete k8[X]}}}function RE(Q,J,X){let q=F$(Object.create(null),[X?m1.get(X):{},m1.get(J),Q.defaults]);if(m1.set(J,q),Q.defaultRoutes)zE(J,Q.defaultRoutes);if(Q.descriptors)m1.describe(J,Q.descriptors)}function zE(Q,J){Object.keys(J).forEach((X)=>{let q=X.split("."),N=q.pop(),K=[Q].concat(q).join("."),H=J[X].split("."),F=H.pop(),M=H.join(".");m1.route(K,N,M,F)})}function _E(Q){return"id"in Q&&"defaults"in Q}class b_{constructor(){this.controllers=new AQ(QX,"datasets",!0),this.elements=new AQ(v2,"elements"),this.plugins=new AQ(Object,"plugins"),this.scales=new AQ(c7,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...Q){this._each("register",Q)}remove(...Q){this._each("unregister",Q)}addControllers(...Q){this._each("register",Q,this.controllers)}addElements(...Q){this._each("register",Q,this.elements)}addPlugins(...Q){this._each("register",Q,this.plugins)}addScales(...Q){this._each("register",Q,this.scales)}getController(Q){return this._get(Q,this.controllers,"controller")}getElement(Q){return this._get(Q,this.elements,"element")}getPlugin(Q){return this._get(Q,this.plugins,"plugin")}getScale(Q){return this._get(Q,this.scales,"scale")}removeControllers(...Q){this._each("unregister",Q,this.controllers)}removeElements(...Q){this._each("unregister",Q,this.elements)}removePlugins(...Q){this._each("unregister",Q,this.plugins)}removeScales(...Q){this._each("unregister",Q,this.scales)}_each(Q,J,X){[...J].forEach((q)=>{let N=X||this._getRegistryForType(q);if(X||N.isForType(q)||N===this.plugins&&q.id)this._exec(Q,N,q);else W1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,X){let q=g3(Q);V1(X["before"+q],[],X),J[Q](X),V1(X["after"+q],[],X)}_getRegistryForType(Q){for(let J=0;J<this._typedRegistries.length;J++){let X=this._typedRegistries[J];if(X.isForType(Q))return X}return this.plugins}_get(Q,J,X){let q=J.get(Q);if(q===void 0)throw Error('"'+Q+'" is not a registered '+X+".");return q}}var r4=new b_;class k_{constructor(){this._init=void 0}notify(Q,J,X,q){if(J==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let N=q?this._descriptors(Q).filter(q):this._descriptors(Q),K=this._notify(N,Q,J,X);if(J==="afterDestroy")this._notify(N,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,J,X,q){q=q||{};for(let N of Q){let K=N.plugin,H=K[X],F=[J,q,N.options];if(V1(H,F,K)===!1&&q.cancelable)return!1}return!0}invalidate(){if(!J1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let J=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),J}_createDescriptors(Q,J){let X=Q&&Q.config,q=n0(X.options&&X.options.plugins,{}),N=LE(X);return q===!1&&!J?[]:TE(Q,N,q,J)}_notifyStateChanges(Q){let J=this._oldCache||[],X=this._cache,q=(N,K)=>N.filter((H)=>!K.some((F)=>H.plugin.id===F.plugin.id));this._notify(q(J,X),Q,"stop"),this._notify(q(X,J),Q,"start")}}function LE(Q){let J={},X=[],q=Object.keys(r4.plugins.items);for(let K=0;K<q.length;K++)X.push(r4.getPlugin(q[K]));let N=Q.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(X.indexOf(H)===-1)X.push(H),J[H.id]=!0}return{plugins:X,localIds:J}}function PE(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function TE(Q,{plugins:J,localIds:X},q,N){let K=[],H=Q.getContext();for(let F of J){let M=F.id,w=PE(q[M],N);if(w===null)continue;K.push({plugin:F,options:CE(Q.config,{plugin:F,local:X[M]},w,H)})}return K}function CE(Q,{plugin:J,local:X},q,N){let K=Q.pluginScopeKeys(J),H=Q.getOptionScopes(q,K);if(X&&J.defaults)H.push(J.defaults);return Q.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function QK(Q,J){let X=m1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||X.indexAxis||"x"}function IE(Q,J){let X=Q;if(Q==="_index_")X=J;else if(Q==="_value_")X=J==="x"?"y":"x";return X}function OE(Q,J){return Q===J?"_index_":"_value_"}function rz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function VE(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function JK(Q,...J){if(rz(Q))return Q;for(let X of J){let q=X.axis||VE(X.position)||Q.length>1&&rz(Q[0].toLowerCase());if(q)return q}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function nz(Q,J,X){if(X[J+"AxisID"]===Q)return{axis:J}}function AE(Q,J){if(J.data&&J.data.datasets){let X=J.data.datasets.filter((q)=>q.xAxisID===Q||q.yAxisID===Q);if(X.length)return nz(Q,"x",X[0])||nz(Q,"y",X[0])}return{}}function EE(Q,J){let X=k8[Q.type]||{scales:{}},q=J.scales||{},N=QK(Q.type,J),K=Object.create(null);return Object.keys(q).forEach((H)=>{let F=q[H];if(!$1(F))return console.error(`Invalid scale configuration for scale: ${H}`);if(F._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let M=JK(H,F,AE(H,Q),m1.scales[F.type]),w=OE(M,N),R=X.scales||{};K[H]=W$(Object.create(null),[{axis:M},F,R[M],R[w]])}),Q.data.datasets.forEach((H)=>{let F=H.type||Q.type,M=H.indexAxis||QK(F,J),R=(k8[F]||{}).scales||{};Object.keys(R).forEach((_)=>{let P=IE(_,M),I=H[P+"AxisID"]||P;K[I]=K[I]||Object.create(null),W$(K[I],[{axis:P},q[I],R[_]])})}),Object.keys(K).forEach((H)=>{let F=K[H];W$(F,[m1.scales[F.type],m1.scale])}),K}function f_(Q){let J=Q.options||(Q.options={});J.plugins=n0(J.plugins,{}),J.scales=EE(Q,J)}function y_(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function SE(Q){return Q=Q||{},Q.data=y_(Q.data),f_(Q),Q}var sz=new Map,g_=new Set;function a3(Q,J){let X=sz.get(Q);if(!X)X=J(),sz.set(Q,X),g_.add(X);return X}var OQ=(Q,J,X)=>{let q=x7(J,X);if(q!==void 0)Q.add(q)};class h_{constructor(Q){this._config=SE(Q),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(Q){this._config.type=Q}get data(){return this._config.data}set data(Q){this._config.data=y_(Q)}get options(){return this._config.options}set options(Q){this._config.options=Q}get plugins(){return this._config.plugins}update(){let Q=this._config;this.clearCache(),f_(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return a3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return a3(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return a3(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,X=this.type;return a3(`${X}-plugin-${J}`,()=>[[`plugins.${J}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,J){let X=this._scopeCache,q=X.get(Q);if(!q||J)q=new Map,X.set(Q,q);return q}getOptionScopes(Q,J,X){let{options:q,type:N}=this,K=this._cachedScopes(Q,X),H=K.get(J);if(H)return H;let F=new Set;J.forEach((w)=>{if(Q)F.add(Q),w.forEach((R)=>OQ(F,Q,R));w.forEach((R)=>OQ(F,q,R)),w.forEach((R)=>OQ(F,k8[N]||{},R)),w.forEach((R)=>OQ(F,m1,R)),w.forEach((R)=>OQ(F,d3,R))});let M=Array.from(F);if(M.length===0)M.push(Object.create(null));if(g_.has(J))K.set(J,M);return M}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,k8[J]||{},m1.datasets[J]||{},{type:J},m1,d3]}resolveNamedOptions(Q,J,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=oz(this._resolverCache,Q,q),F=K;if(DE(K,J)){N.$shared=!1,X=O2(X)?X():X;let M=this.createResolver(Q,X,H);F=u7(K,X,M)}for(let M of J)N[M]=F[M];return N}createResolver(Q,J,X=[""],q){let{resolver:N}=oz(this._resolverCache,Q,X);return $1(J)?u7(N,J,void 0,q):N}}function oz(Q,J,X){let q=Q.get(J);if(!q)q=new Map,Q.set(J,q);let N=X.join(),K=q.get(N);if(!K)K={resolver:c3(J,X),subPrefixes:X.filter((F)=>!F.toLowerCase().includes("hover"))},q.set(N,K);return K}var jE=(Q)=>$1(Q)&&Object.getOwnPropertyNames(Q).some((J)=>O2(Q[J]));function DE(Q,J){let{isScriptable:X,isIndexable:q}=fU(Q);for(let N of J){let K=X(N),H=q(N),F=(H||K)&&Q[N];if(K&&(O2(F)||jE(F))||H&&j1(F))return!0}return!1}var vE="4.5.1",bE=["top","bottom","left","right","chartArea"];function az(Q,J){return Q==="top"||Q==="bottom"||bE.indexOf(Q)===-1&&J==="x"}function iz(Q,J){return function(X,q){return X[Q]===q[Q]?X[J]-q[J]:X[Q]-q[Q]}}function tz(Q){let J=Q.chart,X=J.options.animation;J.notifyPlugins("afterRender"),V1(X&&X.onComplete,[Q],J)}function kE(Q){let J=Q.chart,X=J.options.animation;V1(X&&X.onProgress,[Q],J)}function u_(Q){if(l3()&&typeof Q==="string")Q=document.getElementById(Q);else if(Q&&Q.length)Q=Q[0];if(Q&&Q.canvas)Q=Q.canvas;return Q}var $X={},ez=(Q)=>{let J=u_(Q);return Object.values($X).filter((X)=>X.canvas===J).pop()};function fE(Q,J,X){let q=Object.keys(Q);for(let N of q){let K=+N;if(K>=J){let H=Q[N];if(delete Q[N],X>0||K>J)Q[K+X]=H}}}function yE(Q,J,X,q){if(!X||Q.type==="mouseout")return null;if(q)return J;return Q}class l7{static defaults=m1;static instances=$X;static overrides=k8;static registry=r4;static version=vE;static getChart=ez;static register(...Q){r4.add(...Q),$_()}static unregister(...Q){r4.remove(...Q),$_()}constructor(Q,J){let X=this.config=new h_(J),q=u_(Q),N=ez(q);if(N)throw Error("Canvas is already in use. Chart with ID '"+N.id+"' must be destroyed before the canvas with ID '"+N.canvas.id+"' can be reused.");let K=X.createResolver(X.chartOptionScopes(),this.getContext());this.platform=new(X.platform||JE(q)),this.platform.updateConfig(X);let H=this.platform.acquireContext(q,K.aspectRatio),F=H&&H.canvas,M=F&&F.height,w=F&&F.width;if(this.id=sR(),this.ctx=H,this.canvas=F,this.width=w,this.height=M,this._options=K,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new k_,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=qz((R)=>this.update(R),K.resizeDelay||0),this._dataChanges=[],$X[this.id]=this,!H||!F){console.error("Failed to create chart: can't acquire context from the given item");return}if(j2.listen(this,"complete",tz),j2.listen(this,"progress",kE),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:X,height:q,_aspectRatio:N}=this;if(!J1(Q))return Q;if(J&&N)return N;return q?X/q:null}get data(){return this.config.data}set data(Q){this.config.data=Q}get options(){return this._options}set options(Q){this.config.options=Q}get registry(){return r4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else hU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return DU(this.canvas,this.ctx),this}stop(){return j2.stop(this),this}resize(Q,J){if(!j2.running(this))this._resize(Q,J);else this._resizeBeforeDraw={width:Q,height:J}}_resize(Q,J){let X=this.options,q=this.canvas,N=X.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(q,Q,J,N),H=X.devicePixelRatio||this.platform.getDevicePixelRatio(),F=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!hU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),V1(X.onResize,[this,K],this),this.attached){if(this._doResize(F))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};W1(J,(X,q)=>{X.id=q})}buildOrUpdateScales(){let Q=this.options,J=Q.scales,X=this.scales,q=Object.keys(X).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(J)N=N.concat(Object.keys(J).map((K)=>{let H=J[K],F=JK(K,H),M=F==="r",w=F==="x";return{options:H,dposition:M?"chartArea":w?"bottom":"left",dtype:M?"radialLinear":w?"category":"linear"}}));W1(N,(K)=>{let H=K.options,F=H.id,M=JK(F,H),w=n0(H.type,K.dtype);if(H.position===void 0||az(H.position,M)!==az(K.dposition))H.position=K.dposition;q[F]=!0;let R=null;if(F in X&&X[F].type===w)R=X[F];else R=new(r4.getScale(w))({id:F,type:w,ctx:this.ctx,chart:this}),X[R.id]=R;R.init(H,Q)}),W1(q,(K,H)=>{if(!K)delete X[H]}),W1(X,(K)=>{n6.configure(this,K,K.options),n6.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,J=this.data.datasets.length,X=Q.length;if(Q.sort((q,N)=>q.index-N.index),X>J){for(let q=J;q<X;++q)this._destroyDatasetMeta(q);Q.splice(J,X-J)}this._sortedMetasets=Q.slice(0).sort(iz("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:J}}=this;if(Q.length>J.length)delete this._stacks;Q.forEach((X,q)=>{if(J.filter((N)=>N===X._dataset).length===0)this._destroyDatasetMeta(q)})}buildOrUpdateControllers(){let Q=[],J=this.data.datasets,X,q;this._removeUnreferencedMetasets();for(X=0,q=J.length;X<q;X++){let N=J[X],K=this.getDatasetMeta(X),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(X),K=this.getDatasetMeta(X);if(K.type=H,K.indexAxis=N.indexAxis||QK(H,this.options),K.order=N.order||0,K.index=X,K.label=""+N.label,K.visible=this.isDatasetVisible(X),K.controller)K.controller.updateIndex(X),K.controller.linkScales();else{let F=r4.getController(H),{datasetElementType:M,dataElementType:w}=m1.datasets[H];Object.assign(F,{dataElementType:r4.getElement(w),datasetElementType:M&&r4.getElement(M)}),K.controller=new F(this,X),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){W1(this.data.datasets,(Q,J)=>{this.getDatasetMeta(J).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let J=this.config;J.update();let X=this._options=J.createResolver(J.chartOptionScopes(),this.getContext()),q=this._animationsDisabled=!X.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Q,cancelable:!0})===!1)return;let N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let M=0,w=this.data.datasets.length;M<w;M++){let{controller:R}=this.getDatasetMeta(M),_=!q&&N.indexOf(R)===-1;R.buildOrUpdateElements(_),K=Math.max(+R.getMaxOverflow(),K)}if(K=this._minPadding=X.layout.autoPadding?K:0,this._updateLayout(K),!q)W1(N,(M)=>{M.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(iz("z","_idx"));let{_active:H,_lastEvent:F}=this;if(F)this._eventHandler(F,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){W1(this.scales,(Q)=>{n6.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,J=new Set(Object.keys(this._listeners)),X=new Set(Q.events);if(!LU(J,X)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,J=this._getUniformDataChanges()||[];for(let{method:X,start:q,count:N}of J){let K=X==="_removeElements"?-N:N;fE(Q,q,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let J=this.data.datasets.length,X=(N)=>new Set(Q.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),q=X(0);for(let N=1;N<J;N++)if(!LU(q,X(N)))return;return Array.from(q).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(Q){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;n6.update(this,this.width,this.height,Q);let J=this.chartArea,X=J.width<=0||J.height<=0;this._layers=[],W1(this.boxes,(q)=>{if(X&&q.position==="chartArea")return;if(q.configure)q.configure();this._layers.push(...q._layers())},this),this._layers.forEach((q,N)=>{q._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let J=0,X=this.data.datasets.length;J<X;++J)this.getDatasetMeta(J).controller.configure();for(let J=0,X=this.data.datasets.length;J<X;++J)this._updateDataset(J,O2(Q)?Q({datasetIndex:J}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,J){let X=this.getDatasetMeta(Q),q={meta:X,index:Q,mode:J,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",q)===!1)return;X.controller._update(J),q.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",q)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(j2.has(this)){if(this.attached&&!j2.running(this))j2.start(this)}else this.draw(),tz({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:X,height:q}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(X,q)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let J=this._layers;for(Q=0;Q<J.length&&J[Q].z<=0;++Q)J[Q].draw(this.chartArea);this._drawDatasets();for(;Q<J.length;++Q)J[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let J=this._sortedMetasets,X=[],q,N;for(q=0,N=J.length;q<N;++q){let K=J[q];if(!Q||K.visible)X.push(K)}return X}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let Q=this.getSortedVisibleDatasetMetas();for(let J=Q.length-1;J>=0;--J)this._drawDataset(Q[J]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let J=this.ctx,X={meta:Q,index:Q.index,cancelable:!0},q=cU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",X)===!1)return;if(q)zQ(J,q);if(Q.controller.draw(),q)_Q(J);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return p4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,X,q){let N=hA.modes[J];if(typeof N==="function")return N(this,Q,X,q);return[]}getDatasetMeta(Q){let J=this.data.datasets[Q],X=this._metasets,q=X.filter((N)=>N&&N._dataset===J).pop();if(!q)q={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:J&&J.order||0,index:Q,_dataset:J,_parsed:[],_sorted:!1},X.push(q);return q}getContext(){return this.$context||(this.$context=S2(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let J=this.data.datasets[Q];if(!J)return!1;let X=this.getDatasetMeta(Q);return typeof X.hidden==="boolean"?!X.hidden:!J.hidden}setDatasetVisibility(Q,J){let X=this.getDatasetMeta(Q);X.hidden=!J}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,J,X){let q=X?"show":"hide",N=this.getDatasetMeta(Q),K=N.controller._resolveAnimations(void 0,q);if(w$(J))N.data[J].hidden=!X,this.update();else this.setDatasetVisibility(Q,X),K.update(N,{visible:X}),this.update((H)=>H.datasetIndex===Q?q:void 0)}hide(Q,J){this._updateVisibility(Q,J,!1)}show(Q,J){this._updateVisibility(Q,J,!0)}_destroyDatasetMeta(Q){let J=this._metasets[Q];if(J&&J.controller)J.controller._destroy();delete this._metasets[Q]}_stop(){let Q,J;this.stop(),j2.remove(this);for(Q=0,J=this.data.datasets.length;Q<J;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:J}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),DU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete $X[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...Q){return this.canvas.toDataURL(...Q)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let Q=this._listeners,J=this.platform,X=(N,K)=>{J.addEventListener(this,N,K),Q[N]=K},q=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};W1(this.options.events,(N)=>X(N,q))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,X=(F,M)=>{J.addEventListener(this,F,M),Q[F]=M},q=(F,M)=>{if(Q[F])J.removeEventListener(this,F,M),delete Q[F]},N=(F,M)=>{if(this.canvas)this.resize(F,M)},K,H=()=>{q("attach",H),this.attached=!0,this.resize(),X("resize",N),X("detach",K)};if(K=()=>{this.attached=!1,q("resize",N),this._stop(),this._resize(0,0),X("attach",H)},J.isAttached(this.canvas))H();else K()}unbindEvents(){W1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},W1(this._responsiveListeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,J,X){let q=X?"set":"remove",N,K,H,F;if(J==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+q+"DatasetHoverStyle"]();for(H=0,F=Q.length;H<F;++H){K=Q[H];let M=K&&this.getDatasetMeta(K.datasetIndex).controller;if(M)M[q+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let J=this._active||[],X=Q.map(({datasetIndex:N,index:K})=>{let H=this.getDatasetMeta(N);if(!H)throw Error("No dataset found at index "+N);return{datasetIndex:N,element:H.data[K],index:K}});if(!wQ(X,J))this._active=X,this._lastEvent=null,this._updateHoverStyles(X,J)}notifyPlugins(Q,J,X){return this._plugins.notify(this,Q,J,X)}isPluginEnabled(Q){return this._plugins._cache.filter((J)=>J.plugin.id===Q).length===1}_updateHoverStyles(Q,J,X){let q=this.options.hover,N=(F,M)=>F.filter((w)=>!M.some((R)=>w.datasetIndex===R.datasetIndex&&w.index===R.index)),K=N(J,Q),H=X?Q:N(Q,J);if(K.length)this.updateHoverStyle(K,q.mode,!1);if(H.length&&q.mode)this.updateHoverStyle(H,q.mode,!0)}_eventHandler(Q,J){let X={event:Q,replay:J,cancelable:!0,inChartArea:this.isPointInArea(Q)},q=(K)=>(K.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",X,q)===!1)return;let N=this._handleEvent(Q,J,X.inChartArea);if(X.cancelable=!1,this.notifyPlugins("afterEvent",X,q),N||X.changed)this.render();return this}_handleEvent(Q,J,X){let{_active:q=[],options:N}=this,K=J,H=this._getActiveElements(Q,q,X,K),F=iR(Q),M=yE(Q,this._lastEvent,X,F);if(X){if(this._lastEvent=null,V1(N.onHover,[Q,H,this],this),F)V1(N.onClick,[Q,H,this],this)}let w=!wQ(H,q);if(w||J)this._active=H,this._updateHoverStyles(H,q,J);return this._lastEvent=M,w}_getActiveElements(Q,J,X,q){if(Q.type==="mouseout")return[];if(!X)return J;let N=this.options.hover;return this.getElementsAtEventForMode(Q,N.mode,N,q)}}function $_(){return W1(l7.instances,(Q)=>Q._plugins.invalidate())}function x_(Q,J,X=J){Q.lineCap=n0(X.borderCapStyle,J.borderCapStyle),Q.setLineDash(n0(X.borderDash,J.borderDash)),Q.lineDashOffset=n0(X.borderDashOffset,J.borderDashOffset),Q.lineJoin=n0(X.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=n0(X.borderWidth,J.borderWidth),Q.strokeStyle=n0(X.borderColor,J.borderColor)}function gE(Q,J,X){Q.lineTo(X.x,X.y)}function hE(Q){if(Q.stepped)return Fz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Mz;return gE}function m_(Q,J,X={}){let q=Q.length,{start:N=0,end:K=q-1}=X,{start:H,end:F}=J,M=Math.max(N,H),w=Math.min(K,F),R=N<H&&K<H||N>F&&K>F;return{count:q,start:M,loop:J.loop,ilen:w<M&&!R?q+w-M:w-M}}function uE(Q,J,X,q){let{points:N,options:K}=J,{count:H,start:F,loop:M,ilen:w}=m_(N,X,q),R=hE(K),{move:_=!0,reverse:P}=q||{},I,A,V;for(I=0;I<=w;++I){if(A=N[(F+(P?w-I:I))%H],A.skip)continue;else if(_)Q.moveTo(A.x,A.y),_=!1;else R(Q,V,A,P,K.stepped);V=A}if(M)A=N[(F+(P?w:0))%H],R(Q,V,A,P,K.stepped);return!!M}function xE(Q,J,X,q){let N=J.points,{count:K,start:H,ilen:F}=m_(N,X,q),{move:M=!0,reverse:w}=q||{},R=0,_=0,P,I,A,V,O,D,h=(s)=>(H+(w?F-s:s))%K,p=()=>{if(V!==O)Q.lineTo(R,O),Q.lineTo(R,V),Q.lineTo(R,D)};if(M)I=N[h(0)],Q.moveTo(I.x,I.y);for(P=0;P<=F;++P){if(I=N[h(P)],I.skip)continue;let{x:s,y:a}=I,J0=s|0;if(J0===A){if(a<V)V=a;else if(a>O)O=a;R=(_*R+s)/++_}else p(),Q.lineTo(s,a),A=J0,_=0,V=O=a;D=a}p()}function GK(Q){let J=Q.options,X=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!X?xE:uE}function mE(Q){if(Q.stepped)return Cz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return Iz;return D8}function dE(Q,J,X,q){let N=J._path;if(!N){if(N=J._path=new Path2D,J.path(N,X,q))N.closePath()}x_(Q,J.options),Q.stroke(N)}function pE(Q,J,X,q){let{segments:N,options:K}=J,H=GK(J);for(let F of N){if(x_(Q,K,F.style),Q.beginPath(),H(Q,J,F,{start:X,end:X+q-1}))Q.closePath();Q.stroke()}}var cE=typeof Path2D==="function";function lE(Q,J,X,q){if(cE&&!J.options.segment)dE(Q,J,X,q);else pE(Q,J,X,q)}class L$ extends v2{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(Q)=>Q!=="borderDash"&&Q!=="fill"};constructor(Q){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,Q)Object.assign(this,Q)}updateControlPoints(Q,J){let X=this.options;if((X.tension||X.cubicInterpolationMode==="monotone")&&!X.stepped&&!this._pointsUpdated){let q=X.spanGaps?this._loop:this._fullLoop;Lz(this._points,X,Q,q,J),this._pointsUpdated=!0}}set points(Q){this._points=Q,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Vz(this,this.options.segment))}first(){let Q=this.segments,J=this.points;return Q.length&&J[Q[0].start]}last(){let Q=this.segments,J=this.points,X=Q.length;return X&&J[Q[X-1].end]}interpolate(Q,J){let X=this.options,q=Q[J],N=this.points,K=pU(this,{property:J,start:q,end:q});if(!K.length)return;let H=[],F=mE(X),M,w;for(M=0,w=K.length;M<w;++M){let{start:R,end:_}=K[M],P=N[R],I=N[_];if(P===I){H.push(P);continue}let A=Math.abs((q-P[J])/(I[J]-P[J])),V=F(P,I,A,X.stepped);V[J]=Q[J],H.push(V)}return H.length===1?H[0]:H}pathSegment(Q,J,X){return GK(this)(Q,this,J,X)}path(Q,J,X){let q=this.segments,N=GK(this),K=this._loop;J=J||0,X=X||this.points.length-J;for(let H of q)K&=N(Q,this,H,{start:J,end:J+X-1});return!!K}draw(Q,J,X,q){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)Q.save(),lE(Q,this,X,q),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function Z_(Q,J,X,q){let N=Q.options,{[X]:K}=Q.getProps([X],q);return Math.abs(J-K)<N.radius+N.hitRadius}class WK extends v2{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,Q)Object.assign(this,Q)}inRange(Q,J,X){let q=this.options,{x:N,y:K}=this.getProps(["x","y"],X);return Math.pow(Q-N,2)+Math.pow(J-K,2)<Math.pow(q.hitRadius+q.radius,2)}inXRange(Q,J){return Z_(this,Q,"x",J)}inYRange(Q,J){return Z_(this,Q,"y",J)}getCenterPoint(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}size(Q){Q=Q||this.options||{};let J=Q.radius||0;J=Math.max(J,J&&Q.hoverRadius||0);let X=J&&Q.borderWidth||0;return(J+X)*2}draw(Q,J){let X=this.options;if(this.skip||X.radius<0.1||!p4(this,J,this.size(X)/2))return;Q.strokeStyle=X.borderColor,Q.lineWidth=X.borderWidth,Q.fillStyle=X.backgroundColor,p3(Q,X,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function d_(Q,J){let{x:X,y:q,base:N,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),F,M,w,R,_;if(Q.horizontal)_=H/2,F=Math.min(X,N),M=Math.max(X,N),w=q-_,R=q+_;else _=K/2,F=X-_,M=X+_,w=Math.min(q,N),R=Math.max(q,N);return{left:F,top:w,right:M,bottom:R}}function u8(Q,J,X,q){return Q?0:J6(J,X,q)}function rE(Q,J,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=kU(q);return{t:u8(N.top,K.top,0,X),r:u8(N.right,K.right,0,J),b:u8(N.bottom,K.bottom,0,X),l:u8(N.left,K.left,0,J)}}function nE(Q,J,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=g8(N),H=Math.min(J,X),F=Q.borderSkipped,M=q||$1(N);return{topLeft:u8(!M||F.top||F.left,K.topLeft,0,H),topRight:u8(!M||F.top||F.right,K.topRight,0,H),bottomLeft:u8(!M||F.bottom||F.left,K.bottomLeft,0,H),bottomRight:u8(!M||F.bottom||F.right,K.bottomRight,0,H)}}function sE(Q){let J=d_(Q),X=J.right-J.left,q=J.bottom-J.top,N=rE(Q,X/2,q/2),K=nE(Q,X/2,q/2);return{outer:{x:J.left,y:J.top,w:X,h:q,radius:K},inner:{x:J.left+N.l,y:J.top+N.t,w:X-N.l-N.r,h:q-N.t-N.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(N.t,N.l)),topRight:Math.max(0,K.topRight-Math.max(N.t,N.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(N.b,N.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(N.b,N.r))}}}}function tU(Q,J,X,q){let N=J===null,K=X===null,F=Q&&!(N&&K)&&d_(Q,q);return F&&(N||E2(J,F.left,F.right))&&(K||E2(X,F.top,F.bottom))}function oE(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function aE(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function eU(Q,J,X={}){let q=Q.x!==X.x?-J:0,N=Q.y!==X.y?-J:0,K=(Q.x+Q.w!==X.x+X.w?J:0)-q,H=(Q.y+Q.h!==X.y+X.h?J:0)-N;return{x:Q.x+q,y:Q.y+N,w:Q.w+K,h:Q.h+H,radius:Q.radius}}class wK extends v2{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,Q)Object.assign(this,Q)}draw(Q){let{inflateAmount:J,options:{borderColor:X,backgroundColor:q}}=this,{inner:N,outer:K}=sE(this),H=oE(K.radius)?_$:aE;if(Q.save(),K.w!==N.w||K.h!==N.h)Q.beginPath(),H(Q,eU(K,J,N)),Q.clip(),H(Q,eU(N,-J,K)),Q.fillStyle=X,Q.fill("evenodd");Q.beginPath(),H(Q,eU(N,J)),Q.fillStyle=q,Q.fill(),Q.restore()}inRange(Q,J,X){return tU(this,Q,J,X)}inXRange(Q,J){return tU(this,Q,null,J)}inYRange(Q,J){return tU(this,null,Q,J)}getCenterPoint(Q){let{x:J,y:X,base:q,horizontal:N}=this.getProps(["x","y","base","horizontal"],Q);return{x:N?(J+q)/2:J,y:N?X:(X+q)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function iE(Q,J,X){let{segments:q,points:N}=Q,K=J.points,H=[];for(let F of q){let{start:M,end:w}=F;w=JX(M,w,N);let R=XK(X,N[M],N[w],F.loop);if(!J.segments){H.push({source:F,target:R,start:N[M],end:N[w]});continue}let _=pU(J,R);for(let P of _){let I=XK(X,K[P.start],K[P.end],P.loop),A=dU(F,N,I);for(let V of A)H.push({source:V,target:P,start:{[X]:Q_(R,I,"start",Math.max)},end:{[X]:Q_(R,I,"end",Math.min)}})}}return H}function XK(Q,J,X,q){if(q)return;let N=J[Q],K=X[Q];if(Q==="angle")N=$6(N),K=$6(K);return{property:Q,start:N,end:K}}function tE(Q,J){let{x:X=null,y:q=null}=Q||{},N=J.points,K=[];return J.segments.forEach(({start:H,end:F})=>{F=JX(H,F,N);let M=N[H],w=N[F];if(q!==null)K.push({x:M.x,y:q}),K.push({x:w.x,y:q});else if(X!==null)K.push({x:X,y:M.y}),K.push({x:X,y:w.y})}),K}function JX(Q,J,X){for(;J>Q;J--){let q=X[J];if(!isNaN(q.x)&&!isNaN(q.y))break}return J}function Q_(Q,J,X,q){if(Q&&J)return q(Q[X],J[X]);return Q?Q[X]:J?J[X]:0}function p_(Q,J){let X=[],q=!1;if(j1(Q))q=!0,X=Q;else X=tE(Q,J);return X.length?new L$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function J_(Q){return Q&&Q.fill!==!1}function eE(Q,J,X){let N=Q[J].fill,K=[J],H;if(!X)return N;while(N!==!1&&K.indexOf(N)===-1){if(!x1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function $S(Q,J,X){let q=GS(Q);if($1(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(x1(N)&&Math.floor(N)===N)return ZS(q[0],J,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function ZS(Q,J,X,q){if(Q==="-"||Q==="+")X=J+X;if(X===J||X<0||X>=q)return!1;return X}function QS(Q,J){let X=null;if(Q==="start")X=J.bottom;else if(Q==="end")X=J.top;else if($1(Q))X=J.getPixelForValue(Q.value);else if(J.getBasePixel)X=J.getBasePixel();return X}function JS(Q,J,X){let q;if(Q==="start")q=X;else if(Q==="end")q=J.options.reverse?J.min:J.max;else if($1(Q))q=Q.value;else q=J.getBaseValue();return q}function GS(Q){let J=Q.options,X=J.fill,q=n0(X&&X.target,X);if(q===void 0)q=!!J.backgroundColor;if(q===!1||q===null)return!1;if(q===!0)return"origin";return q}function XS(Q){let{scale:J,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,F=qS(J,X);F.push(p_({x:null,y:J.bottom},q));for(let M=0;M<K.length;M++){let w=K[M];for(let R=w.start;R<=w.end;R++)YS(N,H[R],F)}return new L$({points:N,options:{}})}function qS(Q,J){let X=[],q=Q.getMatchingVisibleMetas("line");for(let N=0;N<q.length;N++){let K=q[N];if(K.index===J)break;if(!K.hidden)X.unshift(K.dataset)}return X}function YS(Q,J,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:F,point:M}=NS(K,J,"x");if(!M||H&&F)continue;if(H)q.unshift(M);else if(Q.push(M),!F)break}Q.push(...q)}function NS(Q,J,X){let q=Q.interpolate(J,X);if(!q)return{};let N=q[X],K=Q.segments,H=Q.points,F=!1,M=!1;for(let w=0;w<K.length;w++){let R=K[w],_=H[R.start][X],P=H[R.end][X];if(E2(N,_,P)){F=N===_,M=N===P;break}}return{first:F,last:M,point:q}}class RK{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,J,X){let{x:q,y:N,radius:K}=this;return J=J||{start:0,end:Q6},Q.arc(q,N,K,J.end,J.start,!0),!X.bounds}interpolate(Q){let{x:J,y:X,radius:q}=this,N=Q.angle;return{x:J+Math.cos(N)*q,y:X+Math.sin(N)*q,angle:N}}}function US(Q){let{chart:J,fill:X,line:q}=Q;if(x1(X))return KS(J,X);if(X==="stack")return XS(Q);if(X==="shape")return!0;let N=BS(Q);if(N instanceof RK)return N;return p_(N,q)}function KS(Q,J){let X=Q.getDatasetMeta(J);return X&&Q.isDatasetVisible(J)?X.dataset:null}function BS(Q){if((Q.scale||{}).getPointPositionForValue)return FS(Q);return HS(Q)}function HS(Q){let{scale:J={},fill:X}=Q,q=QS(X,J);if(x1(q)){let N=J.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function FS(Q){let{scale:J,fill:X}=Q,q=J.options,N=J.getLabels().length,K=q.reverse?J.max:J.min,H=JS(X,J,K),F=[];if(q.grid.circular){let M=J.getPointPositionForValue(0,K);return new RK({x:M.x,y:M.y,radius:J.getDistanceFromCenterForValue(H)})}for(let M=0;M<N;++M)F.push(J.getPointPositionForValue(M,H));return F}function $K(Q,J,X){let q=US(J),{chart:N,index:K,line:H,scale:F,axis:M}=J,w=H.options,R=w.fill,_=w.backgroundColor,{above:P=_,below:I=_}=R||{},A=N.getDatasetMeta(K),V=cU(N,A);if(q&&H.points.length)zQ(Q,X),MS(Q,{line:H,target:q,above:P,below:I,area:X,scale:F,axis:M,clip:V}),_Q(Q)}function MS(Q,J){let{line:X,target:q,above:N,below:K,area:H,scale:F,clip:M}=J,w=X._loop?"angle":J.axis;Q.save();let R=K;if(K!==N){if(w==="x")G_(Q,q,H.top),ZK(Q,{line:X,target:q,color:N,scale:F,property:w,clip:M}),Q.restore(),Q.save(),G_(Q,q,H.bottom);else if(w==="y")X_(Q,q,H.left),ZK(Q,{line:X,target:q,color:K,scale:F,property:w,clip:M}),Q.restore(),Q.save(),X_(Q,q,H.right),R=N}ZK(Q,{line:X,target:q,color:R,scale:F,property:w,clip:M}),Q.restore()}function G_(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let F of q){let{start:M,end:w}=F,R=N[M],_=N[JX(M,w,N)];if(K)Q.moveTo(R.x,R.y),K=!1;else Q.lineTo(R.x,X),Q.lineTo(R.x,R.y);if(H=!!J.pathSegment(Q,F,{move:H}),H)Q.closePath();else Q.lineTo(_.x,X)}Q.lineTo(J.first().x,X),Q.closePath(),Q.clip()}function X_(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let F of q){let{start:M,end:w}=F,R=N[M],_=N[JX(M,w,N)];if(K)Q.moveTo(R.x,R.y),K=!1;else Q.lineTo(X,R.y),Q.lineTo(R.x,R.y);if(H=!!J.pathSegment(Q,F,{move:H}),H)Q.closePath();else Q.lineTo(X,_.y)}Q.lineTo(X,J.first().y),Q.closePath(),Q.clip()}function ZK(Q,J){let{line:X,target:q,property:N,color:K,scale:H,clip:F}=J,M=iE(X,q,N);for(let{source:w,target:R,start:_,end:P}of M){let{style:{backgroundColor:I=K}={}}=w,A=q!==!0;Q.save(),Q.fillStyle=I,WS(Q,H,F,A&&XK(N,_,P)),Q.beginPath();let V=!!X.pathSegment(Q,w),O;if(A){if(V)Q.closePath();else q_(Q,q,P,N);let D=!!q.pathSegment(Q,R,{move:V,reverse:!0});if(O=V&&D,!O)q_(Q,q,_,N)}Q.closePath(),Q.fill(O?"evenodd":"nonzero"),Q.restore()}}function WS(Q,J,X,q){let N=J.chart.chartArea,{property:K,start:H,end:F}=q||{};if(K==="x"||K==="y"){let M,w,R,_;if(K==="x")M=H,w=N.top,R=F,_=N.bottom;else M=N.left,w=H,R=N.right,_=F;if(Q.beginPath(),X)M=Math.max(M,X.left),R=Math.min(R,X.right),w=Math.max(w,X.top),_=Math.min(_,X.bottom);Q.rect(M,w,R-M,_-w),Q.clip()}}function q_(Q,J,X,q){let N=J.interpolate(X,q);if(N)Q.lineTo(N.x,N.y)}var c_={id:"filler",afterDatasetsUpdate(Q,J,X){let q=(Q.data.datasets||[]).length,N=[],K,H,F,M;for(H=0;H<q;++H){if(K=Q.getDatasetMeta(H),F=K.dataset,M=null,F&&F.options&&F instanceof L$)M={visible:Q.isDatasetVisible(H),index:H,fill:$S(F,H,q),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:F};K.$filler=M,N.push(M)}for(H=0;H<q;++H){if(M=N[H],!M||M.fill===!1)continue;M.fill=eE(N,H,X.propagate)}},beforeDraw(Q,J,X){let q=X.drawTime==="beforeDraw",N=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let H=N.length-1;H>=0;--H){let F=N[H].$filler;if(!F)continue;if(F.line.updateControlPoints(K,F.axis),q&&F.fill)$K(Q.ctx,F,K)}},beforeDatasetsDraw(Q,J,X){if(X.drawTime!=="beforeDatasetsDraw")return;let q=Q.getSortedVisibleDatasetMetas();for(let N=q.length-1;N>=0;--N){let K=q[N].$filler;if(J_(K))$K(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,X){let q=J.meta.$filler;if(!J_(q)||X.drawTime!=="beforeDatasetDraw")return;$K(Q.ctx,q,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Y_=(Q,J)=>{let{boxHeight:X=J,boxWidth:q=J}=Q;if(Q.usePointStyle)X=Math.min(X,J),q=Q.pointStyleWidth||Math.min(q,J);return{boxWidth:q,boxHeight:X,itemHeight:Math.max(J,X)}},wS=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class qK extends v2{constructor(Q){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J,X){this.maxWidth=Q,this.maxHeight=J,this._margins=X,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width;else this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height}buildLabels(){let Q=this.options.labels||{},J=V1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)J=J.filter((X)=>Q.filter(X,this.chart.data));if(Q.sort)J=J.sort((X,q)=>Q.sort(X,q,this.chart.data));if(this.options.reverse)J.reverse();this.legendItems=J}fit(){let{options:Q,ctx:J}=this;if(!Q.display){this.width=this.height=0;return}let X=Q.labels,q=X5(X.font),N=q.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:F}=Y_(X,N),M,w;if(J.font=q.string,this.isHorizontal())M=this.maxWidth,w=this._fitRows(K,N,H,F)+10;else w=this.maxHeight,M=this._fitCols(K,q,H,F)+10;this.width=Math.min(M,Q.maxWidth||this.maxWidth),this.height=Math.min(w,Q.maxHeight||this.maxHeight)}_fitRows(Q,J,X,q){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],M=this.lineWidths=[0],w=q+H,R=Q;N.textAlign="left",N.textBaseline="middle";let _=-1,P=-w;return this.legendItems.forEach((I,A)=>{let V=X+J/2+N.measureText(I.text).width;if(A===0||M[M.length-1]+V+2*H>K)R+=w,M[M.length-(A>0?0:1)]=0,P+=w,_++;F[A]={left:0,top:P,row:_,width:V,height:q},M[M.length-1]+=V+H}),R}_fitCols(Q,J,X,q){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,F=this.legendHitBoxes=[],M=this.columnSizes=[],w=K-Q,R=H,_=0,P=0,I=0,A=0;return this.legendItems.forEach((V,O)=>{let{itemWidth:D,itemHeight:h}=RS(X,J,N,V,q);if(O>0&&P+h+2*H>w)R+=_+H,M.push({width:_,height:P}),I+=_+H,A++,_=P=0;F[O]={left:I,top:P,col:A,width:D,height:h},_=Math.max(_,D),P+=h+H}),R+=_,M.push({width:_,height:P}),R}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:X,labels:{padding:q},rtl:N}}=this,K=m7(N,this.left,this.width);if(this.isHorizontal()){let H=0,F=C5(X,this.left+q,this.right-this.lineWidths[H]);for(let M of J){if(H!==M.row)H=M.row,F=C5(X,this.left+q,this.right-this.lineWidths[H]);M.top+=this.top+Q+q,M.left=K.leftForLtr(K.x(F),M.width),F+=M.width+q}}else{let H=0,F=C5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);for(let M of J){if(M.col!==H)H=M.col,F=C5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);M.top=F,M.left+=this.left+q,M.left=K.leftForLtr(K.x(M.left),M.width),F+=M.height+q}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;zQ(Q,this),this._draw(),_Q(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=m1.color,F=m7(Q.rtl,this.left,this.width),M=X5(K.font),{padding:w}=K,R=M.size,_=R/2,P;this.drawTitle(),q.textAlign=F.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=M.string;let{boxWidth:I,boxHeight:A,itemHeight:V}=Y_(K,R),O=function(a,J0,t){if(isNaN(I)||I<=0||isNaN(A)||A<0)return;q.save();let i=n0(t.lineWidth,1);if(q.fillStyle=n0(t.fillStyle,H),q.lineCap=n0(t.lineCap,"butt"),q.lineDashOffset=n0(t.lineDashOffset,0),q.lineJoin=n0(t.lineJoin,"miter"),q.lineWidth=i,q.strokeStyle=n0(t.strokeStyle,H),q.setLineDash(n0(t.lineDash,[])),K.usePointStyle){let Y0={radius:A*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},d=F.xPlus(a,I/2),H0=J0+_;vU(q,Y0,d,H0,K.pointStyleWidth&&I)}else{let Y0=J0+Math.max((R-A)/2,0),d=F.leftForLtr(a,I),H0=g8(t.borderRadius);if(q.beginPath(),Object.values(H0).some((P0)=>P0!==0))_$(q,{x:d,y:Y0,w:I,h:A,radius:H0});else q.rect(d,Y0,I,A);if(q.fill(),i!==0)q.stroke()}q.restore()},D=function(a,J0,t){y8(q,t.text,a,J0+V/2,M,{strikethrough:t.hidden,textAlign:F.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)P={x:C5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else P={x:this.left+w,y:C5(N,this.top+p+w,this.bottom-J[0].height),line:0};xU(this.ctx,Q.textDirection);let s=V+w;this.legendItems.forEach((a,J0)=>{q.strokeStyle=a.fontColor,q.fillStyle=a.fontColor;let t=q.measureText(a.text).width,i=F.textAlign(a.textAlign||(a.textAlign=K.textAlign)),Y0=I+_+t,d=P.x,H0=P.y;if(F.setWidth(this.width),h){if(J0>0&&d+Y0+w>this.right)H0=P.y+=s,P.line++,d=P.x=C5(N,this.left+w,this.right-X[P.line])}else if(J0>0&&H0+s>this.bottom)d=P.x=d+J[P.line].width+w,P.line++,H0=P.y=C5(N,this.top+p+w,this.bottom-J[P.line].height);let P0=F.x(d);if(O(P0,H0,a),d=Yz(i,d+I+_,h?d+Y0:this.right,Q.rtl),D(F.x(d),H0,a),h)P.x+=Y0+w;else if(typeof a.text!=="string"){let I0=M.lineHeight;P.y+=l_(a,I0)+w}else P.y+=s}),mU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,X=X5(J.font),q=I5(J.padding);if(!J.display)return;let N=m7(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,F=X.size/2,M=q.top+F,w,R=this.left,_=this.width;if(this.isHorizontal())_=Math.max(...this.lineWidths),w=this.top+M,R=C5(Q.align,R,this.right-_);else{let I=this.columnSizes.reduce((A,V)=>Math.max(A,V.height),0);w=M+C5(Q.align,this.top,this.bottom-I-Q.labels.padding-this._computeTitleHeight())}let P=C5(H,R,R+_);K.textAlign=N.textAlign(x3(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=X.string,y8(K,J.text,P,w,X)}_computeTitleHeight(){let Q=this.options.title,J=X5(Q.font),X=I5(Q.padding);return Q.display?J.lineHeight+X.height:0}_getLegendItemAt(Q,J){let X,q,N;if(E2(Q,this.left,this.right)&&E2(J,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],E2(Q,q.left,q.left+q.width)&&E2(J,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let J=this.options;if(!LS(Q.type,J))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=wS(q,X);if(q&&!N)V1(J.onLeave,[Q,q,this],this);if(this._hoveredItem=X,X&&!N)V1(J.onHover,[Q,X,this],this)}else if(X)V1(J.onClick,[Q,X,this],this)}}function RS(Q,J,X,q,N){let K=zS(q,Q,J,X),H=_S(N,q,J.lineHeight);return{itemWidth:K,itemHeight:H}}function zS(Q,J,X,q){let N=Q.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return J+X.size/2+q.measureText(N).width}function _S(Q,J,X){let q=Q;if(typeof J.text!=="string")q=l_(J,X);return q}function l_(Q,J){let X=Q.text?Q.text.length:0;return J*X}function LS(Q,J){if((Q==="mousemove"||Q==="mouseout")&&(J.onHover||J.onLeave))return!0;if(J.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var r_={id:"legend",_element:qK,start(Q,J,X){let q=Q.legend=new qK({ctx:Q.ctx,options:X,chart:Q});n6.configure(Q,q,X),n6.addBox(Q,q)},stop(Q){n6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,X){let q=Q.legend;n6.configure(Q,q,X),q.options=X},afterUpdate(Q){let J=Q.legend;J.buildLabels(),J.adjustHitBoxes()},afterEvent(Q,J){if(!J.replay)Q.legend.handleEvent(J.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,J,X){let q=J.datasetIndex,N=X.chart;if(N.isDatasetVisible(q))N.hide(q),J.hidden=!0;else N.show(q),J.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let J=Q.data.datasets,{labels:{usePointStyle:X,pointStyle:q,textAlign:N,color:K,useBorderRadius:H,borderRadius:F}}=Q.legend.options;return Q._getSortedDatasetMetas().map((M)=>{let w=M.controller.getStyle(X?0:void 0),R=I5(w.borderWidth);return{text:J[M.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!M.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(R.width+R.height)/4,strokeStyle:w.borderColor,pointStyle:q||w.pointStyle,rotation:w.rotation,textAlign:N||w.textAlign,borderRadius:H&&(F||w.borderRadius),datasetIndex:M.index}},this)}},title:{color:(Q)=>Q.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(Q)=>!Q.startsWith("on"),labels:{_scriptable:(Q)=>!["generateLabels","filter","sort"].includes(Q)}}};class zK extends v2{constructor(Q){super();this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J){let X=this.options;if(this.left=0,this.top=0,!X.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=Q,this.height=this.bottom=J;let q=j1(X.text)?X.text.length:1;this._padding=I5(X.padding);let N=q*X5(X.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let Q=this.options.position;return Q==="top"||Q==="bottom"}_drawArgs(Q){let{top:J,left:X,bottom:q,right:N,options:K}=this,H=K.align,F=0,M,w,R;if(this.isHorizontal())w=C5(H,X,N),R=J+Q,M=N-X;else{if(K.position==="left")w=X+Q,R=C5(H,q,J),F=s1*-0.5;else w=N-Q,R=C5(H,J,q),F=s1*0.5;M=q-J}return{titleX:w,titleY:R,maxWidth:M,rotation:F}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let X=X5(J.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:F,rotation:M}=this._drawArgs(N);y8(Q,J.text,0,0,X,{color:J.color,maxWidth:F,rotation:M,textAlign:x3(J.align),textBaseline:"middle",translation:[K,H]})}}function PS(Q,J){let X=new zK({ctx:Q.ctx,options:J,chart:Q});n6.configure(Q,X,J),n6.addBox(Q,X),Q.titleBlock=X}var n_={id:"title",_element:zK,start(Q,J,X){PS(Q,X)},stop(Q){let J=Q.titleBlock;n6.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,X){let q=Q.titleBlock;n6.configure(Q,q,X),q.options=X},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2000},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};var EQ={average(Q){if(!Q.length)return!1;let J,X,q=new Set,N=0,K=0;for(J=0,X=Q.length;J<X;++J){let F=Q[J].element;if(F&&F.hasValue()){let M=F.tooltipPosition();q.add(M.x),N+=M.y,++K}}if(K===0||q.size===0)return!1;return{x:[...q].reduce((F,M)=>F+M)/q.size,y:N/K}},nearest(Q,J){if(!Q.length)return!1;let{x:X,y:q}=J,N=Number.POSITIVE_INFINITY,K,H,F;for(K=0,H=Q.length;K<H;++K){let M=Q[K].element;if(M&&M.hasValue()){let w=M.getCenterPoint(),R=f3(J,w);if(R<N)N=R,F=M}}if(F){let M=F.tooltipPosition();X=M.x,q=M.y}return{x:X,y:q}}};function l4(Q,J){if(J)if(j1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function D2(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
|
|
256
256
|
`)>-1)return Q.split(`
|
|
257
|
-
`);return Q}function TS(Q,J){let{element:X,datasetIndex:q,index:N}=J,K=Q.getDatasetMeta(q).controller,{label:H,value:F}=K.getLabelAndValue(N);return{chart:Q,label:H,parsed:K.getParsed(N),raw:Q.data.datasets[q].data[N],formattedValue:F,dataset:K.getDataset(),dataIndex:N,datasetIndex:q,element:X}}function N_(Q,J){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:F}=J,M=X5(J.bodyFont),w=X5(J.titleFont),R=X5(J.footerFont),_=K.length,P=N.length,I=q.length,A=I5(J.padding),V=A.height,O=0,D=q.reduce((s,a)=>s+a.before.length+a.lines.length+a.after.length,0);if(D+=Q.beforeBody.length+Q.afterBody.length,_)V+=_*w.lineHeight+(_-1)*J.titleSpacing+J.titleMarginBottom;if(D){let s=J.displayColors?Math.max(F,M.lineHeight):M.lineHeight;V+=I*s+(D-I)*M.lineHeight+(D-1)*J.bodySpacing}if(P)V+=J.footerMarginTop+P*R.lineHeight+(P-1)*J.footerSpacing;let h=0,p=function(s){O=Math.max(O,X.measureText(s).width+h)};return X.save(),X.font=w.string,W1(Q.title,p),X.font=M.string,W1(Q.beforeBody.concat(Q.afterBody),p),h=J.displayColors?H+2+J.boxPadding:0,W1(q,(s)=>{W1(s.before,p),W1(s.lines,p),W1(s.after,p)}),h=0,X.font=R.string,W1(Q.footer,p),X.restore(),O+=A.width,{width:O,height:V}}function CS(Q,J){let{y:X,height:q}=J;if(X<q/2)return"top";else if(X>Q.height-q/2)return"bottom";return"center"}function IS(Q,J,X,q){let{x:N,width:K}=q,H=X.caretSize+X.caretPadding;if(Q==="left"&&N+K+H>J.width)return!0;if(Q==="right"&&N-K-H<0)return!0}function OS(Q,J,X,q){let{x:N,width:K}=X,{width:H,chartArea:{left:F,right:M}}=Q,w="center";if(q==="center")w=N<=(F+M)/2?"left":"right";else if(N<=K/2)w="left";else if(N>=H-K/2)w="right";if(IS(w,Q,J,X))w="center";return w}function U_(Q,J,X){let q=X.yAlign||J.yAlign||CS(Q,X);return{xAlign:X.xAlign||J.xAlign||OS(Q,J,X,q),yAlign:q}}function VS(Q,J){let{x:X,width:q}=Q;if(J==="right")X-=q;else if(J==="center")X-=q/2;return X}function AS(Q,J,X){let{y:q,height:N}=Q;if(J==="top")q+=X;else if(J==="bottom")q-=N+X;else q-=N/2;return q}function K_(Q,J,X,q){let{caretSize:N,caretPadding:K,cornerRadius:H}=Q,{xAlign:F,yAlign:M}=X,w=N+K,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:I}=g8(H),A=VS(J,F),V=AS(J,M,w);if(M==="center"){if(F==="left")A+=w;else if(F==="right")A-=w}else if(F==="left")A-=Math.max(R,P)+N;else if(F==="right")A+=Math.max(_,I)+N;return{x:J6(A,0,q.width-J.width),y:J6(V,0,q.height-J.height)}}function i3(Q,J,X){let q=I5(X.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-q.right:Q.x+q.left}function B_(Q){return l4([],D2(Q))}function ES(Q,J,X){return S2(Q,{tooltip:J,tooltipItems:X,type:"tooltip"})}function H_(Q,J){let X=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return X?Q.override(X):Q}var s_={beforeTitle:c4,title(Q){if(Q.length>0){let J=Q[0],X=J.chart.data.labels,q=X?X.length:0;if(this&&this.options&&this.options.mode==="dataset")return J.dataset.label||"";else if(J.label)return J.label;else if(q>0&&J.dataIndex<q)return X[J.dataIndex]}return""},afterTitle:c4,beforeBody:c4,beforeLabel:c4,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let J=Q.dataset.label||"";if(J)J+=": ";let X=Q.formattedValue;if(!J1(X))J+=X;return J},labelColor(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderWidth:X.borderWidth,borderDash:X.borderDash,borderDashOffset:X.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:X.pointStyle,rotation:X.rotation}},afterLabel:c4,afterBody:c4,beforeFooter:c4,footer:c4,afterFooter:c4};function X6(Q,J,X,q){let N=Q[J].call(X,q);if(typeof N>"u")return s_[J].call(X,q);return N}class YK extends v2{static positioners=EQ;constructor(Q){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=Q.chart,this.options=Q.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(Q){this.options=Q,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let Q=this._cachedAnimations;if(Q)return Q;let J=this.chart,X=this.options.setContext(this.getContext()),q=X.enabled&&J.options.animation&&X.animations,N=new KK(this.chart,q);if(q._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=ES(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:X}=J,q=X6(X,"beforeTitle",this,Q),N=X6(X,"title",this,Q),K=X6(X,"afterTitle",this,Q),H=[];return H=l4(H,D2(q)),H=l4(H,D2(N)),H=l4(H,D2(K)),H}getBeforeBody(Q,J){return B_(X6(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:X}=J,q=[];return W1(Q,(N)=>{let K={before:[],lines:[],after:[]},H=H_(X,N);l4(K.before,D2(X6(H,"beforeLabel",this,N))),l4(K.lines,X6(H,"label",this,N)),l4(K.after,D2(X6(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,J){return B_(X6(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:X}=J,q=X6(X,"beforeFooter",this,Q),N=X6(X,"footer",this,Q),K=X6(X,"afterFooter",this,Q),H=[];return H=l4(H,D2(q)),H=l4(H,D2(N)),H=l4(H,D2(K)),H}_createItems(Q){let J=this._active,X=this.chart.data,q=[],N=[],K=[],H=[],F,M;for(F=0,M=J.length;F<M;++F)H.push(TS(this.chart,J[F]));if(Q.filter)H=H.filter((w,R,_)=>Q.filter(w,R,_,X));if(Q.itemSort)H=H.sort((w,R)=>Q.itemSort(w,R,X));return W1(H,(w)=>{let R=H_(Q.callbacks,w);q.push(X6(R,"labelColor",this,w)),N.push(X6(R,"labelPointStyle",this,w)),K.push(X6(R,"labelTextColor",this,w))}),this.labelColors=q,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(Q,J){let X=this.options.setContext(this.getContext()),q=this._active,N,K=[];if(!q.length){if(this.opacity!==0)N={opacity:0}}else{let H=EQ[X.position].call(this,q,this._eventPosition);K=this._createItems(X),this.title=this.getTitle(K,X),this.beforeBody=this.getBeforeBody(K,X),this.body=this.getBody(K,X),this.afterBody=this.getAfterBody(K,X),this.footer=this.getFooter(K,X);let F=this._size=N_(this,X),M=Object.assign({},H,F),w=U_(this.chart,X,M),R=K_(X,M,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,N={opacity:1,x:R.x,y:R.y,width:F.width,height:F.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(Q&&X.external)X.external.call(this,{chart:this.chart,tooltip:this,replay:J})}drawCaret(Q,J,X,q){let N=this.getCaretPosition(Q,X,q);J.lineTo(N.x1,N.y1),J.lineTo(N.x2,N.y2),J.lineTo(N.x3,N.y3)}getCaretPosition(Q,J,X){let{xAlign:q,yAlign:N}=this,{caretSize:K,cornerRadius:H}=X,{topLeft:F,topRight:M,bottomLeft:w,bottomRight:R}=g8(H),{x:_,y:P}=Q,{width:I,height:A}=J,V,O,D,h,p,s;if(N==="center"){if(p=P+A/2,q==="left")V=_,O=V-K,h=p+K,s=p-K;else V=_+I,O=V+K,h=p-K,s=p+K;D=V}else{if(q==="left")O=_+Math.max(F,w)+K;else if(q==="right")O=_+I-Math.max(M,R)-K;else O=this.caretX;if(N==="top")h=P,p=h-K,V=O-K,D=O+K;else h=P+A,p=h+K,V=O+K,D=O-K;s=h}return{x1:V,x2:O,x3:D,y1:h,y2:p,y3:s}}drawTitle(Q,J,X){let q=this.title,N=q.length,K,H,F;if(N){let M=m9(X.rtl,this.x,this.width);Q.x=i3(this,X.titleAlign,X),J.textAlign=M.textAlign(X.titleAlign),J.textBaseline="middle",K=X5(X.titleFont),H=X.titleSpacing,J.fillStyle=X.titleColor,J.font=K.string;for(F=0;F<N;++F)if(J.fillText(q[F],M.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,F+1===N)Q.y+=X.titleMarginBottom-H}}_drawColorBox(Q,J,X,q,N){let K=this.labelColors[X],H=this.labelPointStyles[X],{boxHeight:F,boxWidth:M}=N,w=X5(N.bodyFont),R=i3(this,"left",N),_=q.x(R),P=F<w.lineHeight?(w.lineHeight-F)/2:0,I=J.y+P;if(N.usePointStyle){let A={radius:Math.min(M,F)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},V=q.leftForLtr(_,M)+M/2,O=I+F/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,p3(Q,A,V,O),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,p3(Q,A,V,O)}else{Q.lineWidth=$1(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,Q.strokeStyle=K.borderColor,Q.setLineDash(K.borderDash||[]),Q.lineDashOffset=K.borderDashOffset||0;let A=q.leftForLtr(_,M),V=q.leftForLtr(q.xPlus(_,1),M-2),O=g8(K.borderRadius);if(Object.values(O).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,_$(Q,{x:A,y:I,w:M,h:F,radius:O}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),_$(Q,{x:V,y:I+1,w:M-2,h:F-2,radius:O}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(A,I,M,F),Q.strokeRect(A,I,M,F),Q.fillStyle=K.backgroundColor,Q.fillRect(V,I+1,M-2,F-2)}Q.fillStyle=this.labelTextColors[X]}drawBody(Q,J,X){let{body:q}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:F,boxWidth:M,boxPadding:w}=X,R=X5(X.bodyFont),_=R.lineHeight,P=0,I=m9(X.rtl,this.x,this.width),A=function(t){J.fillText(t,I.x(Q.x+P),Q.y+_/2),Q.y+=_+N},V=I.textAlign(K),O,D,h,p,s,a,J0;J.textAlign=K,J.textBaseline="middle",J.font=R.string,Q.x=i3(this,V,X),J.fillStyle=X.bodyColor,W1(this.beforeBody,A),P=H&&V!=="right"?K==="center"?M/2+w:M+2+w:0;for(p=0,a=q.length;p<a;++p){if(O=q[p],D=this.labelTextColors[p],J.fillStyle=D,W1(O.before,A),h=O.lines,H&&h.length)this._drawColorBox(J,Q,p,I,X),_=Math.max(R.lineHeight,F);for(s=0,J0=h.length;s<J0;++s)A(h[s]),_=R.lineHeight;W1(O.after,A)}P=0,_=R.lineHeight,W1(this.afterBody,A),Q.y-=N}drawFooter(Q,J,X){let q=this.footer,N=q.length,K,H;if(N){let F=m9(X.rtl,this.x,this.width);Q.x=i3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,J.textAlign=F.textAlign(X.footerAlign),J.textBaseline="middle",K=X5(X.footerFont),J.fillStyle=X.footerColor,J.font=K.string;for(H=0;H<N;++H)J.fillText(q[H],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+X.footerSpacing}}drawBackground(Q,J,X,q){let{xAlign:N,yAlign:K}=this,{x:H,y:F}=Q,{width:M,height:w}=X,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:I}=g8(q.cornerRadius);if(J.fillStyle=q.backgroundColor,J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.beginPath(),J.moveTo(H+R,F),K==="top")this.drawCaret(Q,J,X,q);if(J.lineTo(H+M-_,F),J.quadraticCurveTo(H+M,F,H+M,F+_),K==="center"&&N==="right")this.drawCaret(Q,J,X,q);if(J.lineTo(H+M,F+w-I),J.quadraticCurveTo(H+M,F+w,H+M-I,F+w),K==="bottom")this.drawCaret(Q,J,X,q);if(J.lineTo(H+P,F+w),J.quadraticCurveTo(H,F+w,H,F+w-P),K==="center"&&N==="left")this.drawCaret(Q,J,X,q);if(J.lineTo(H,F+R),J.quadraticCurveTo(H,F,H+R,F),J.closePath(),J.fill(),q.borderWidth>0)J.stroke()}_updateAnimationTarget(Q){let J=this.chart,X=this.$animations,q=X&&X.x,N=X&&X.y;if(q||N){let K=EQ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=N_(this,Q),F=Object.assign({},K,this._size),M=U_(J,Q,F),w=K_(Q,F,M,J);if(q._to!==w.x||N._to!==w.y)this.xAlign=M.xAlign,this.yAlign=M.yAlign,this.width=H.width,this.height=H.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,w)}}_willRender(){return!!this.opacity}draw(Q){let J=this.options.setContext(this.getContext()),X=this.opacity;if(!X)return;this._updateAnimationTarget(J);let q={width:this.width,height:this.height},N={x:this.x,y:this.y};X=Math.abs(X)<0.001?0:X;let K=I5(J.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(J.enabled&&H)Q.save(),Q.globalAlpha=X,this.drawBackground(N,Q,q,J),xU(Q,J.textDirection),N.y+=K.top,this.drawTitle(N,Q,J),this.drawBody(N,Q,J),this.drawFooter(N,Q,J),mU(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let X=this._active,q=Q.map(({datasetIndex:H,index:F})=>{let M=this.chart.getDatasetMeta(H);if(!M)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:M.data[F],index:F}}),N=!wQ(X,q),K=this._positionChanged(q,J);if(N||K)this._active=q,this._eventPosition=J,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,J,X=!0){if(J&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let q=this.options,N=this._active||[],K=this._getActiveElements(Q,N,J,X),H=this._positionChanged(K,Q),F=J||!wQ(K,N)||H;if(F){if(this._active=K,q.enabled||q.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return F}_getActiveElements(Q,J,X,q){let N=this.options;if(Q.type==="mouseout")return[];if(!q)return J.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(Q,N.mode,N,X);if(N.reverse)K.reverse();return K}_positionChanged(Q,J){let{caretX:X,caretY:q,options:N}=this,K=EQ[N.position].call(this,Q,J);return K!==!1&&(X!==K.x||q!==K.y)}}var o_={id:"tooltip",_element:YK,positioners:EQ,afterInit(Q,J,X){if(X)Q.tooltip=new YK({chart:Q,options:X})},beforeUpdate(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},reset(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},afterDraw(Q){let J=Q.tooltip;if(J&&J._willRender()){let X={tooltip:J};if(Q.notifyPlugins("beforeTooltipDraw",{...X,cancelable:!0})===!1)return;J.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",X)}},afterEvent(Q,J){if(Q.tooltip){let X=J.replay;if(Q.tooltip.handleEvent(J.event,X,J.inChartArea))J.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(Q,J)=>J.bodyFont.size,boxWidth:(Q,J)=>J.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:s_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(Q)=>Q!=="filter"&&Q!=="itemSort"&&Q!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var SS=(Q,J,X,q)=>{if(typeof J==="string")X=Q.push(J)-1,q.unshift({index:X,label:J});else if(isNaN(J))X=null;return X};function jS(Q,J,X,q){let N=Q.indexOf(J);if(N===-1)return SS(Q,J,X,q);let K=Q.lastIndexOf(J);return N!==K?X:N}var DS=(Q,J)=>Q===null?null:J6(Math.round(Q),0,J);function F_(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class _K extends c9{static id="category";static defaults={ticks:{callback:F_}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let J=this._addedLabels;if(J.length){let X=this.getLabels();for(let{index:q,label:N}of J)if(X[q]===N)X.splice(q,1);this._addedLabels=[]}super.init(Q)}parse(Q,J){if(J1(Q))return null;let X=this.getLabels();return J=isFinite(J)&&X[J]===Q?J:jS(X,Q,n0(J,Q),this._addedLabels),DS(J,X.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),{min:X,max:q}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)X=0;if(!J)q=this.getLabels().length-1}this.min=X,this.max=q}buildTicks(){let Q=this.min,J=this.max,X=this.options.offset,q=[],N=this.getLabels();N=Q===0&&J===N.length-1?N:N.slice(Q,J+1),this._valueRange=Math.max(N.length-(X?0:1),1),this._startValue=this.min-(X?0.5:0);for(let K=Q;K<=J;K++)q.push({value:K});return q}getLabelForValue(Q){return F_.call(this,Q)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(Q){if(typeof Q!=="number")Q=this.parse(Q);return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function vS(Q,J){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:F,precision:M,count:w,maxTicks:R,maxDigits:_,includeBounds:P}=Q,I=K||1,A=R-1,{min:V,max:O}=J,D=!J1(H),h=!J1(F),p=!J1(w),s=(O-V)/(_+1),a=PU((O-V)/A/I)*I,J0,t,i,Y0;if(a<0.00000000000001&&!D&&!h)return[{value:V},{value:O}];if(Y0=Math.ceil(O/a)-Math.floor(V/a),Y0>A)a=PU(Y0*a/A/I)*I;if(!J1(M))J0=Math.pow(10,M),a=Math.ceil(a*J0)/J0;if(N==="ticks")t=Math.floor(V/a)*a,i=Math.ceil(O/a)*a;else t=V,i=O;if(D&&h&&K&&eR((F-H)/K,a/1000))Y0=Math.round(Math.min((F-H)/a,R)),a=(F-H)/Y0,t=H,i=F;else if(p)t=D?H:t,i=h?F:i,Y0=w-1,a=(i-t)/Y0;else if(Y0=(i-t)/a,R$(Y0,Math.round(Y0),a/1000))Y0=Math.round(Y0);else Y0=Math.ceil(Y0);let d=Math.max(CU(a),CU(t));J0=Math.pow(10,J1(M)?d:M),t=Math.round(t*J0)/J0,i=Math.round(i*J0)/J0;let H0=0;if(D){if(P&&t!==H){if(X.push({value:H}),t<H)H0++;if(R$(Math.round((t+H0*a)*J0)/J0,H,M_(H,s,Q)))H0++}else if(t<H)H0++}for(;H0<Y0;++H0){let P0=Math.round((t+H0*a)*J0)/J0;if(h&&P0>F)break;X.push({value:P0})}if(h&&P&&i!==F)if(X.length&&R$(X[X.length-1].value,F,M_(F,s,Q)))X[X.length-1].value=F;else X.push({value:F});else if(!h||i===F)X.push({value:i});return X}function M_(Q,J,{horizontal:X,minRotation:q}){let N=A2(q),K=(X?Math.sin(N):Math.cos(N))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class jQ extends c9{constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(Q,J){if(J1(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:J,maxDefined:X}=this.getUserBounds(),{min:q,max:N}=this,K=(F)=>q=J?q:F,H=(F)=>N=X?N:F;if(Q){let F=H4(q),M=H4(N);if(F<0&&M<0)H(0);else if(F>0&&M>0)K(0)}if(q===N){let F=N===0?1:Math.abs(N*0.05);if(H(N+F),!Q)K(q-F)}this.min=q,this.max=N}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:J,stepSize:X}=Q,q;if(X){if(q=Math.ceil(this.max/X)-Math.floor(this.min/X)+1,q>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${X} would result generating up to ${q} ticks. Limiting to 1000.`),q=1000}else q=this.computeTickLimit(),J=J||11;if(J)q=Math.min(J,q);return q}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,J=Q.ticks,X=this.getTickLimit();X=Math.max(2,X);let q={maxTicks:X,bounds:Q.bounds,min:Q.min,max:Q.max,precision:J.precision,step:J.stepSize,count:J.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:J.minRotation||0,includeBounds:J.includeBounds!==!1},N=this._range||this,K=vS(q,N);if(Q.bounds==="ticks")TU(K,this,"value");if(Q.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let Q=this.ticks,J=this.min,X=this.max;if(super.configure(),this.options.offset&&Q.length){let q=(X-J)/Math.max(Q.length-1,1)/2;J-=q,X+=q}this._startValue=J,this._endValue=X,this._valueRange=X-J}getLabelForValue(Q){return m3(Q,this.chart.options.locale,this.options.ticks.format)}}class LK extends jQ{static id="linear";static defaults={ticks:{callback:RQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=x1(Q)?Q:0,this.max=x1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,X=A2(this.options.ticks.minRotation),q=(Q?Math.sin(X):Math.cos(X))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(J/Math.min(40,N.lineHeight/q))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var DQ=(Q)=>Math.floor(V2(Q)),p9=(Q,J)=>Math.pow(10,DQ(Q)+J);function W_(Q){return Q/Math.pow(10,DQ(Q))===1}function w_(Q,J,X){let q=Math.pow(10,X),N=Math.floor(Q/q);return Math.ceil(J/q)-N}function bS(Q,J){let X=J-Q,q=DQ(X);while(w_(Q,J,q)>10)q++;while(w_(Q,J,q)<10)q--;return Math.min(q,DQ(Q))}function kS(Q,{min:J,max:X}){J=G6(Q.min,J);let q=[],N=DQ(J),K=bS(J,X),H=K<0?Math.pow(10,Math.abs(K)):1,F=Math.pow(10,K),M=N>K?Math.pow(10,N):0,w=Math.round((J-M)*H)/H,R=Math.floor((J-M)/F/10)*F*10,_=Math.floor((w-R)/Math.pow(10,K)),P=G6(Q.min,Math.round((M+R+_*Math.pow(10,K))*H)/H);while(P<X){if(q.push({value:P,major:W_(P),significand:_}),_>=10)_=_<15?15:20;else _++;if(_>=20)K++,_=2,H=K>=0?1:H;P=Math.round((M+R+_*Math.pow(10,K))*H)/H}let I=G6(Q.max,P);return q.push({value:I,major:W_(I),significand:_}),q}class fS extends c9{static id="logarithmic";static defaults={ticks:{callback:RQ.formatters.logarithmic,major:{enabled:!0}}};constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(Q,J){let X=jQ.prototype.parse.apply(this,[Q,J]);if(X===0){this._zero=!0;return}return x1(X)&&X>0?X:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=x1(Q)?Math.max(0,Q):null,this.max=x1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!x1(this._userMin))this.min=Q===p9(this.min,0)?p9(this.min,-1):p9(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),X=this.min,q=this.max,N=(H)=>X=Q?X:H,K=(H)=>q=J?q:H;if(X===q)if(X<=0)N(1),K(10);else N(p9(X,-1)),K(p9(q,1));if(X<=0)N(p9(q,-1));if(q<=0)K(p9(X,1));this.min=X,this.max=q}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},X=kS(J,this);if(Q.bounds==="ticks")TU(X,this,"value");if(Q.reverse)X.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return X}getLabelForValue(Q){return Q===void 0?"0":m3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=V2(Q),this._valueRange=V2(this.max)-V2(Q)}getPixelForValue(Q){if(Q===void 0||Q===0)Q=this.min;if(Q===null||isNaN(Q))return NaN;return this.getPixelForDecimal(Q===this.min?0:(V2(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function NK(Q){let J=Q.ticks;if(J.display&&Q.display){let X=I5(J.backdropPadding);return n0(J.font&&J.font.size,m1.font.size)+X.height}return 0}function yS(Q,J,X){return X=j1(X)?X:[X],{w:Hz(Q,J.string,X),h:X.length*J.lineHeight}}function R_(Q,J,X,q,N){if(Q===q||Q===N)return{start:J-X/2,end:J+X/2};else if(Q<q||Q>N)return{start:J-X,end:J};return{start:J,end:J+X}}function gS(Q){let J={l:Q.left+Q._padding.left,r:Q.right-Q._padding.right,t:Q.top+Q._padding.top,b:Q.bottom-Q._padding.bottom},X=Object.assign({},J),q=[],N=[],K=Q._pointLabels.length,H=Q.options.pointLabels,F=H.centerPointLabels?s1/K:0;for(let M=0;M<K;M++){let w=H.setContext(Q.getPointLabelContext(M));N[M]=w.padding;let R=Q.getPointPosition(M,Q.drawingArea+N[M],F),_=X5(w.font),P=yS(Q.ctx,_,Q._pointLabels[M]);q[M]=P;let I=$6(Q.getIndexAngle(M)+F),A=Math.round(h3(I)),V=R_(A,R.x,P.w,0,180),O=R_(A,R.y,P.h,90,270);hS(X,J,I,V,O)}Q.setCenterPoint(J.l-X.l,X.r-J.r,J.t-X.t,X.b-J.b),Q._pointLabelItems=mS(Q,q,N)}function hS(Q,J,X,q,N){let K=Math.abs(Math.sin(X)),H=Math.abs(Math.cos(X)),F=0,M=0;if(q.start<J.l)F=(J.l-q.start)/K,Q.l=Math.min(Q.l,J.l-F);else if(q.end>J.r)F=(q.end-J.r)/K,Q.r=Math.max(Q.r,J.r+F);if(N.start<J.t)M=(J.t-N.start)/H,Q.t=Math.min(Q.t,J.t-M);else if(N.end>J.b)M=(N.end-J.b)/H,Q.b=Math.max(Q.b,J.b+M)}function uS(Q,J,X){let q=Q.drawingArea,{extra:N,additionalAngle:K,padding:H,size:F}=X,M=Q.getPointPosition(J,q+N+H,K),w=Math.round(h3($6(M.angle+Z6))),R=cS(M.y,F.h,w),_=dS(w),P=pS(M.x,F.w,_);return{visible:!0,x:M.x,y:R,textAlign:_,left:P,top:R,right:P+F.w,bottom:R+F.h}}function xS(Q,J){if(!J)return!0;let{left:X,top:q,right:N,bottom:K}=Q;return!(p4({x:X,y:q},J)||p4({x:X,y:K},J)||p4({x:N,y:q},J)||p4({x:N,y:K},J))}function mS(Q,J,X){let q=[],N=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:F}=K.pointLabels,M={extra:NK(K)/2,additionalAngle:H?s1/N:0},w;for(let R=0;R<N;R++){M.padding=X[R],M.size=J[R];let _=uS(Q,R,M);if(q.push(_),F==="auto"){if(_.visible=xS(_,w),_.visible)w=_}}return q}function dS(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function pS(Q,J,X){if(X==="right")Q-=J;else if(X==="center")Q-=J/2;return Q}function cS(Q,J,X){if(X===90||X===270)Q-=J/2;else if(X>270||X<90)Q-=J;return Q}function lS(Q,J,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:F}=J;if(!J1(F)){let M=g8(J.borderRadius),w=I5(J.backdropPadding);Q.fillStyle=F;let R=q-w.left,_=N-w.top,P=K-q+w.width,I=H-N+w.height;if(Object.values(M).some((A)=>A!==0))Q.beginPath(),_$(Q,{x:R,y:_,w:P,h:I,radius:M}),Q.fill();else Q.fillRect(R,_,P,I)}}function rS(Q,J){let{ctx:X,options:{pointLabels:q}}=Q;for(let N=J-1;N>=0;N--){let K=Q._pointLabelItems[N];if(!K.visible)continue;let H=q.setContext(Q.getPointLabelContext(N));lS(X,H,K);let F=X5(H.font),{x:M,y:w,textAlign:R}=K;y8(X,Q._pointLabels[N],M,w+F.lineHeight/2,F,{color:H.color,textAlign:R,textBaseline:"middle"})}}function a_(Q,J,X,q){let{ctx:N}=Q;if(X)N.arc(Q.xCenter,Q.yCenter,J,0,Q6);else{let K=Q.getPointPosition(0,J);N.moveTo(K.x,K.y);for(let H=1;H<q;H++)K=Q.getPointPosition(H,J),N.lineTo(K.x,K.y)}}function nS(Q,J,X,q,N){let K=Q.ctx,H=J.circular,{color:F,lineWidth:M}=J;if(!H&&!q||!F||!M||X<0)return;K.save(),K.strokeStyle=F,K.lineWidth=M,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),a_(Q,X,H,q),K.closePath(),K.stroke(),K.restore()}function sS(Q,J,X){return S2(Q,{label:X,index:J,type:"pointLabel"})}class oS extends jQ{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:RQ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(Q){return Q},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(Q){super(Q);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let Q=this._padding=I5(NK(this.options)/2),J=this.width=this.maxWidth-Q.width,X=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+J/2+Q.left),this.yCenter=Math.floor(this.top+X/2+Q.top),this.drawingArea=Math.floor(Math.min(J,X)/2)}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!1);this.min=x1(Q)&&!isNaN(Q)?Q:0,this.max=x1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/NK(this.options))}generateTickLabels(Q){jQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,X)=>{let q=V1(this.options.pointLabels.callback,[J,X],this);return q||q===0?q:""}).filter((J,X)=>this.chart.getDataVisibility(X))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)gS(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,J,X,q){this.xCenter+=Math.floor((Q-J)/2),this.yCenter+=Math.floor((X-q)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,J,X,q))}getIndexAngle(Q){let J=Q6/(this._pointLabels.length||1),X=this.options.startAngle||0;return $6(Q*J+A2(X))}getDistanceFromCenterForValue(Q){if(J1(Q))return NaN;let J=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*J;return(Q-this.min)*J}getValueForDistanceFromCenter(Q){if(J1(Q))return NaN;let J=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-J:this.min+J}getPointLabelContext(Q){let J=this._pointLabels||[];if(Q>=0&&Q<J.length){let X=J[Q];return sS(this.getContext(),Q,X)}}getPointPosition(Q,J,X=0){let q=this.getIndexAngle(Q)-Z6+X;return{x:Math.cos(q)*J+this.xCenter,y:Math.sin(q)*J+this.yCenter,angle:q}}getPointPositionForValue(Q,J){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(J))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:J,top:X,right:q,bottom:N}=this._pointLabelItems[Q];return{left:J,top:X,right:q,bottom:N}}drawBackground(){let{backgroundColor:Q,grid:{circular:J}}=this.options;if(Q){let X=this.ctx;X.save(),X.beginPath(),a_(this,this.getDistanceFromCenterForValue(this._endValue),J,this._pointLabels.length),X.closePath(),X.fillStyle=Q,X.fill(),X.restore()}}drawGrid(){let Q=this.ctx,J=this.options,{angleLines:X,grid:q,border:N}=J,K=this._pointLabels.length,H,F,M;if(J.pointLabels.display)rS(this,K);if(q.display)this.ticks.forEach((w,R)=>{if(R!==0||R===0&&this.min<0){F=this.getDistanceFromCenterForValue(w.value);let _=this.getContext(R),P=q.setContext(_),I=N.setContext(_);nS(this,P,F,K,I)}});if(X.display){Q.save();for(H=K-1;H>=0;H--){let w=X.setContext(this.getPointLabelContext(H)),{color:R,lineWidth:_}=w;if(!_||!R)continue;Q.lineWidth=_,Q.strokeStyle=R,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,F=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),M=this.getPointPosition(H,F),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(M.x,M.y),Q.stroke()}Q.restore()}}drawBorder(){}drawLabels(){let Q=this.ctx,J=this.options,X=J.ticks;if(!X.display)return;let q=this.getIndexAngle(0),N,K;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(q),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((H,F)=>{if(F===0&&this.min>=0&&!J.reverse)return;let M=X.setContext(this.getContext(F)),w=X5(M.font);if(N=this.getDistanceFromCenterForValue(this.ticks[F].value),M.showLabelBackdrop){Q.font=w.string,K=Q.measureText(H.label).width,Q.fillStyle=M.backdropColor;let R=I5(M.backdropPadding);Q.fillRect(-K/2-R.left,-N-w.size/2-R.top,K+R.width,w.size+R.height)}y8(Q,H.label,0,-N,w,{color:M.color,strokeColor:M.textStrokeColor,strokeWidth:M.textStrokeWidth})}),Q.restore()}drawTitle(){}}var GX={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},q6=Object.keys(GX);function z_(Q,J){return Q-J}function __(Q,J){if(J1(J))return null;let X=Q._adapter,{parser:q,round:N,isoWeekday:K}=Q._parseOpts,H=J;if(typeof q==="function")H=q(H);if(!x1(H))H=typeof q==="string"?X.parse(H,q):X.parse(H);if(H===null)return null;if(N)H=N==="week"&&(z$(K)||K===!0)?X.startOf(H,"isoWeek",K):X.startOf(H,N);return+H}function L_(Q,J,X,q){let N=q6.length;for(let K=q6.indexOf(Q);K<N-1;++K){let H=GX[q6[K]],F=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((X-J)/(F*H.size))<=q)return q6[K]}return q6[N-1]}function aS(Q,J,X,q,N){for(let K=q6.length-1;K>=q6.indexOf(X);K--){let H=q6[K];if(GX[H].common&&Q._adapter.diff(N,q,H)>=J-1)return H}return q6[X?q6.indexOf(X):0]}function iS(Q){for(let J=q6.indexOf(Q)+1,X=q6.length;J<X;++J)if(GX[q6[J]].common)return q6[J]}function P_(Q,J,X){if(!X)Q[J]=!0;else if(X.length){let{lo:q,hi:N}=u3(X,J),K=X[q]>=J?X[q]:X[N];Q[K]=!0}}function tS(Q,J,X,q){let N=Q._adapter,K=+N.startOf(J[0].value,q),H=J[J.length-1].value,F,M;for(F=K;F<=H;F=+N.add(F,1,q))if(M=X[F],M>=0)J[M].major=!0;return J}function T_(Q,J,X){let q=[],N={},K=J.length,H,F;for(H=0;H<K;++H)F=J[H],N[F]=H,q.push({value:F,major:!1});return K===0||!X?q:tS(Q,q,N,X)}class UK extends c9{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(Q){super(Q);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(Q,J={}){let X=Q.time||(Q.time={}),q=this._adapter=new bA._date(Q.adapters.date);q.init(J),W$(X.displayFormats,q.formats()),this._parseOpts={parser:X.parser,round:X.round,isoWeekday:X.isoWeekday},super.init(Q),this._normalized=J.normalized}parse(Q,J){if(Q===void 0)return null;return __(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,J=this._adapter,X=Q.time.unit||"day",{min:q,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function F(M){if(!K&&!isNaN(M.min))q=Math.min(q,M.min);if(!H&&!isNaN(M.max))N=Math.max(N,M.max)}if(!K||!H){if(F(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")F(this.getMinMax(!1))}q=x1(q)&&!isNaN(q)?q:+J.startOf(Date.now(),X),N=x1(N)&&!isNaN(N)?N:+J.endOf(Date.now(),X)+1,this.min=Math.min(q,N-1),this.max=Math.max(q+1,N)}_getLabelBounds(){let Q=this.getLabelTimestamps(),J=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY;if(Q.length)J=Q[0],X=Q[Q.length-1];return{min:J,max:X}}buildTicks(){let Q=this.options,J=Q.time,X=Q.ticks,q=X.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&q.length)this.min=this._userMin||q[0],this.max=this._userMax||q[q.length-1];let N=this.min,K=this.max,H=Jz(q,N,K);if(this._unit=J.unit||(X.autoSkip?L_(J.minUnit,this.min,this.max,this._getLabelCapacity(N)):aS(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:iS(this._unit),this.initOffsets(q),Q.reverse)H.reverse();return T_(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let J=0,X=0,q,N;if(this.options.offset&&Q.length){if(q=this.getDecimalForValue(Q[0]),Q.length===1)J=1-q;else J=(this.getDecimalForValue(Q[1])-q)/2;if(N=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)X=N;else X=(N-this.getDecimalForValue(Q[Q.length-2]))/2}let K=Q.length<3?0.5:0.25;J=J6(J,0,K),X=J6(X,0,K),this._offsets={start:J,end:X,factor:1/(J+1+X)}}_generate(){let Q=this._adapter,J=this.min,X=this.max,q=this.options,N=q.time,K=N.unit||L_(N.minUnit,J,X,this._getLabelCapacity(J)),H=n0(q.ticks.stepSize,1),F=K==="week"?N.isoWeekday:!1,M=z$(F)||F===!0,w={},R=J,_,P;if(M)R=+Q.startOf(R,"isoWeek",F);if(R=+Q.startOf(R,M?"day":K),Q.diff(X,J,K)>1e5*H)throw Error(J+" and "+X+" are too far apart with stepSize of "+H+" "+K);let I=q.ticks.source==="data"&&this.getDataTimestamps();for(_=R,P=0;_<X;_=+Q.add(_,H,K),P++)P_(w,_,I);if(_===X||q.bounds==="ticks"||P===1)P_(w,_,I);return Object.keys(w).sort(z_).map((A)=>+A)}getLabelForValue(Q){let J=this._adapter,X=this.options.time;if(X.tooltipFormat)return J.format(Q,X.tooltipFormat);return J.format(Q,X.displayFormats.datetime)}format(Q,J){let q=this.options.time.displayFormats,N=this._unit,K=J||q[N];return this._adapter.format(Q,K)}_tickFormatFunction(Q,J,X,q){let N=this.options,K=N.ticks.callback;if(K)return V1(K,[Q,J,X],this);let H=N.time.displayFormats,F=this._unit,M=this._majorUnit,w=F&&H[F],R=M&&H[M],_=X[J],P=M&&R&&_&&_.major;return this._adapter.format(Q,q||(P?R:w))}generateTickLabels(Q){let J,X,q;for(J=0,X=Q.length;J<X;++J)q=Q[J],q.label=this._tickFormatFunction(q.value,J,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let J=this._offsets,X=this.getDecimalForValue(Q);return this.getPixelForDecimal((J.start+X)*J.factor)}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return this.min+X*(this.max-this.min)}_getLabelSize(Q){let J=this.options.ticks,X=this.ctx.measureText(Q).width,q=A2(this.isHorizontal()?J.maxRotation:J.minRotation),N=Math.cos(q),K=Math.sin(q),H=this._resolveTickFontOptions(0).size;return{w:X*N+H*K,h:X*K+H*N}}_getLabelCapacity(Q){let J=this.options.time,X=J.displayFormats,q=X[J.unit]||X.millisecond,N=this._tickFormatFunction(Q,0,T_(this,[Q],this._majorUnit),q),K=this._getLabelSize(N),H=Math.floor(this.isHorizontal()?this.width/K.w:this.height/K.h)-1;return H>0?H:1}getDataTimestamps(){let Q=this._cache.data||[],J,X;if(Q.length)return Q;let q=this.getMatchingVisibleMetas();if(this._normalized&&q.length)return this._cache.data=q[0].controller.getAllParsedValues(this);for(J=0,X=q.length;J<X;++J)Q=Q.concat(q[J].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],J,X;if(Q.length)return Q;let q=this.getLabels();for(J=0,X=q.length;J<X;++J)Q.push(__(this,q[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return VU(Q.sort(z_))}}function t3(Q,J,X){let q=0,N=Q.length-1,K,H,F,M;if(X){if(J>=Q[q].pos&&J<=Q[N].pos)({lo:q,hi:N}=v8(Q,"pos",J));({pos:K,time:F}=Q[q]),{pos:H,time:M}=Q[N]}else{if(J>=Q[q].time&&J<=Q[N].time)({lo:q,hi:N}=v8(Q,"time",J));({time:K,pos:F}=Q[q]),{time:H,pos:M}=Q[N]}let w=H-K;return w?F+(M-F)*(J-K)/w:F}class eS extends UK{static id="timeseries";static defaults=UK.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),J=this._table=this.buildLookupTable(Q);this._minPos=t3(J,this.min),this._tableRange=t3(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:X}=this,q=[],N=[],K,H,F,M,w;for(K=0,H=Q.length;K<H;++K)if(M=Q[K],M>=J&&M<=X)q.push(M);if(q.length<2)return[{time:J,pos:0},{time:X,pos:1}];for(K=0,H=q.length;K<H;++K)if(w=q[K+1],F=q[K-1],M=q[K],Math.round((w+F)/2)!==M)N.push({time:M,pos:K/(H-1)});return N}_generate(){let Q=this.min,J=this.max,X=super.getDataTimestamps();if(!X.includes(Q)||!X.length)X.splice(0,0,Q);if(!X.includes(J)||X.length===1)X.push(J);return X.sort((q,N)=>q-N)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let J=this.getDataTimestamps(),X=this.getLabelTimestamps();if(J.length&&X.length)Q=this.normalize(J.concat(X));else Q=J.length?J:X;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(t3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return t3(this._table,X*this._tableRange+this._minPos,!0)}}l9.register(_K,LK,wK,L$,WK,n_,o_,r_,c_);var JT=n(JL(),1);var g2=n(T1(),1);var NX=n(T1(),1);var qX=(...Q)=>Q.filter((J,X,q)=>{return Boolean(J)&&J.trim()!==""&&q.indexOf(J)===X}).join(" ").trim();var GL=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var XL=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,X,q)=>q?q.toUpperCase():X.toLowerCase());var CK=(Q)=>{let J=XL(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var bQ=n(T1(),1);var YX={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var qL=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var T$=n(T1(),1),qj=T$.createContext({});var YL=()=>T$.useContext(qj);var NL=bQ.forwardRef(({color:Q,size:J,strokeWidth:X,absoluteStrokeWidth:q,className:N="",children:K,iconNode:H,...F},M)=>{let{size:w=24,strokeWidth:R=2,absoluteStrokeWidth:_=!1,color:P="currentColor",className:I=""}=YL()??{},A=q??_?Number(X??R)*24/Number(J??w):X??R;return bQ.createElement("svg",{ref:M,...YX,width:J??w??YX.width,height:J??w??YX.height,stroke:Q??P,strokeWidth:A,className:qX("lucide",I,N),...!K&&!qL(F)&&{"aria-hidden":"true"},...F},[...H.map(([V,O])=>bQ.createElement(V,O)),...Array.isArray(K)?K:[K]])});var C0=(Q,J)=>{let X=NX.forwardRef(({className:q,...N},K)=>NX.createElement(NL,{ref:K,iconNode:J,className:qX(`lucide-${GL(CK(Q))}`,`lucide-${Q}`,q),...N}));return X.displayName=CK(Q),X};var Yj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],x8=C0("circle-alert",Yj);var Nj=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],kQ=C0("activity",Nj);var Uj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fQ=C0("check",Uj);var Kj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],yQ=C0("chevron-down",Kj);var Bj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],gQ=C0("chevron-up",Bj);var Hj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],hQ=C0("clock",Hj);var Fj=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],n9=C0("coins",Fj);var Mj=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],uQ=C0("copy",Mj);var Wj=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],xQ=C0("cpu",Wj);var wj=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],mQ=C0("folder",wj);var Rj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],dQ=C0("gauge",Rj);var zj=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],pQ=C0("hash",zj);var _j=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],cQ=C0("inbox",_j);var Lj=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],lQ=C0("layout-dashboard",Lj);var Pj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],rQ=C0("menu",Pj);var Tj=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],nQ=C0("monitor",Tj);var Cj=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],sQ=C0("moon",Cj);var Ij=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],oQ=C0("plug",Ij);var Oj=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],aQ=C0("refresh-cw",Oj);var Vj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],iQ=C0("smile",Vj);var Aj=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],tQ=C0("star",Aj);var Ej=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],eQ=C0("sun",Ej);var Sj=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],$J=C0("trending-up",Sj);var jj=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],ZJ=C0("wrench",jj);var Dj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],s9=C0("x",Dj);var vj=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],QJ=C0("zap",vj);var DL=n(T1(),1);var JJ=[{id:"overview",label:"Overview",icon:lQ},{id:"requests",label:"Requests",icon:kQ},{id:"errors",label:"Errors",icon:x8},{id:"models",label:"Models",icon:xQ},{id:"providers",label:"Providers",icon:oQ},{id:"tools",label:"Tools",icon:ZJ},{id:"costs",label:"Costs",icon:n9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:iQ},{id:"projects",label:"Projects",icon:mQ},{id:"gain",label:"Gain",icon:$J}];var s6=n(U0(),1);function IK({activeSection:Q,onSectionChange:J,className:X=""}){return s6.jsxDEV("aside",{className:`stats-nav-rail ${X}`,children:[s6.jsxDEV("div",{className:"stats-nav-rail-header",children:s6.jsxDEV("div",{className:"stats-logo-container",children:[s6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),s6.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:JJ.map((q)=>{let N=q.id===Q,K=q.icon;return s6.jsxDEV("button",{type:"button",onClick:()=>J(q.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[s6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),s6.jsxDEV("span",{className:"stats-nav-rail-item-label",children:q.label},void 0,!1,void 0,this)]},q.id,!0,void 0,this)})},void 0,!1,void 0,this),s6.jsxDEV("div",{className:"stats-nav-rail-footer",children:s6.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var OK=n(U0(),1),kj=[{value:"1h",label:"1h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"all",label:"All"}];function UL({value:Q,onChange:J,className:X=""}){return OK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:kj.map((q)=>{let N=q.value===Q;return OK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>J(q.value),children:q.label},q.value,!1,void 0,this)})},void 0,!1,void 0,this)}var VK=n(T1(),1);class KL extends Error{status;endpoint;constructor(Q,J,X){super(X);this.name="ApiError",this.status=Q,this.endpoint=J}}async function o6(Q,J){let X=await fetch(Q,J);if(!X.ok)throw new KL(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function BL(Q="24h",J){return o6(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:J})}async function HL(Q="24h",J){return o6(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:J})}async function FL(Q="24h",J){return o6(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:J})}async function UX(Q=50,J){return o6(`/api/stats/recent?limit=${Q}`,{signal:J})}async function ML(Q="24h",J=50,X){return o6(`/api/stats/errors?range=${encodeURIComponent(Q)}&limit=${J}`,{signal:X})}async function WL(Q,J){return o6(`/api/request/${Q}`,{signal:J})}async function wL(Q){return o6("/api/sync",{signal:Q})}async function RL(Q="24h",J){return o6(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:J})}async function zL(Q="24h",J){return o6(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:J})}async function _L(Q="24h",J,X){let q=new URLSearchParams({range:Q});if(J)q.set("project",J);return o6(`/api/stats/gain?${q}`,{signal:X})}async function LL(Q="24h",J){return o6(`/api/stats/tools?range=${encodeURIComponent(Q)}`,{signal:J})}async function PL(Q="24h",J){return o6(`/api/stats/providers?range=${encodeURIComponent(Q)}`,{signal:J})}var GJ=n(U0(),1);function TL({onSyncStart:Q,onSyncComplete:J,className:X=""}){let[q,N]=VK.useState(!1),[K,H]=VK.useState(null),F=async()=>{if(q)return;if(N(!0),H(null),Q)Q();try{let M=await wL(),w={processed:typeof M?.processed==="number"?M.processed:0,files:typeof M?.files==="number"?M.files:0,totalMessages:typeof M?.totalMessages==="number"?M.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),J)J({success:!0,data:w})}catch(M){let w=M instanceof Error?M.message:String(M);if(H({type:"error",message:`Sync failed: ${w}`}),J)J({success:!1,error:w})}finally{N(!1)}};return GJ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&GJ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),GJ.jsxDEV("button",{type:"button",onClick:F,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[GJ.jsxDEV(aQ,{size:14,className:`stats-sync-icon ${q?"stats-spin":""}`},void 0,!1,void 0,this),q?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var KX=n(T1(),1),CL="omp-stats-theme",IL="(prefers-color-scheme: dark)";function fj(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(CL);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function OL(){if(typeof window>"u")return"dark";return window.matchMedia(IL).matches?"dark":"light"}var a9=fj(),XJ=a9==="system"?OL():a9,AK=new Set;function VL(){for(let Q of AK)Q()}function EK(){if(XJ=a9==="system"?OL():a9,typeof document<"u")document.documentElement.dataset.theme=XJ,document.documentElement.style.colorScheme=XJ}if(typeof window<"u")EK(),window.matchMedia(IL).addEventListener("change",()=>{if(a9==="system")EK(),VL()});function yj(Q){if(a9=Q,typeof localStorage<"u")localStorage.setItem(CL,Q);EK(),VL()}function SK(Q){return AK.add(Q),()=>AK.delete(Q)}function R5(){return KX.useSyncExternalStore(SK,()=>XJ,()=>"dark")}function AL(){let Q=KX.useSyncExternalStore(SK,()=>a9,()=>"system"),J=KX.useSyncExternalStore(SK,()=>XJ,()=>"dark");return{preference:Q,resolved:J,setPreference:yj}}var jK=n(U0(),1),gj={system:"light",light:"dark",dark:"system"},hj={system:nQ,light:eQ,dark:sQ},EL={system:"System theme",light:"Light theme",dark:"Dark theme"};function SL(){let{preference:Q,setPreference:J}=AL(),X=hj[Q];return jK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>J(gj[Q]),"aria-label":`${EL[Q]} (click to switch)`,title:`${EL[Q]} — click to switch`,children:jK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var a6=n(U0(),1);function jL({activeSection:Q,range:J,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:F=""}){let w=JJ.find((_)=>_.id===Q)?.label||"Observability",R=(_)=>{if(!_)return"Not updated";return`Updated ${new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return a6.jsxDEV("header",{className:`stats-top-bar ${F}`,children:[a6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&a6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:a6.jsxDEV(rQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),a6.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a6.jsxDEV("div",{className:"stats-top-bar-right",children:[a6.jsxDEV("div",{className:"stats-top-bar-meta",children:a6.jsxDEV("span",{className:"stats-last-updated",title:q?new Date(q).toLocaleString():void 0,children:R(q)},void 0,!1,void 0,this)},void 0,!1,void 0,this),a6.jsxDEV(UL,{value:J,onChange:X},void 0,!1,void 0,this),a6.jsxDEV(SL,{},void 0,!1,void 0,this),a6.jsxDEV(TL,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var b5=n(U0(),1);function vL({activeSection:Q,onSectionChange:J,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:F}){let[M,w]=DL.useState(!1),R=(_)=>{J(_),w(!1)};return b5.jsxDEV("div",{className:"stats-app-container",children:[b5.jsxDEV(IK,{activeSection:Q,onSectionChange:R,className:"stats-desktop-nav"},void 0,!1,void 0,this),M&&b5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:b5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(_)=>_.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[b5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[b5.jsxDEV("div",{className:"stats-logo-container",children:[b5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),b5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b5.jsxDEV("button",{type:"button",onClick:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:b5.jsxDEV(s9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b5.jsxDEV(IK,{activeSection:Q,onSectionChange:R,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),b5.jsxDEV("div",{className:"stats-main-pane",children:[b5.jsxDEV(jL,{activeSection:Q,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),b5.jsxDEV("main",{className:"stats-content-area",children:b5.jsxDEV("div",{className:"stats-content-inner",children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var b2=n(T1(),1),uj=["overview","requests","errors","models","providers","tools","costs","behavior","projects","gain"],bL=["1h","24h","7d","30d","90d","all"];function DK(Q){let J=Q.replace(/^#\/?/,""),[X,q]=J.split("?"),N=uj.includes(X)?X:"overview",K="24h";if(q){let F=new URLSearchParams(q).get("range");if(bL.includes(F))K=F}return{section:N,range:K}}function kL(){let[Q,J]=b2.useState(()=>DK(window.location.hash));b2.useEffect(()=>{let K=()=>{J(DK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=b2.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=b2.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=b2.useCallback((K)=>{let H=bL.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return b2.useEffect(()=>{let K=window.location.hash,H=DK(K),F=`#/${H.section}?range=${H.range}`;if(K!==F)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:q,range:Q.range,setRange:N}}var xj=Math.pow(10,8)*24*60*60*1000,go1=-xj,BX=604800000,fL=86400000;var qJ=43200,vK=1440;var bK=Symbol.for("constructDateFrom");function k5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&bK in Q)return Q[bK](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function X1(Q,J){return k5(J||Q,Q)}var mj={};function n4(){return mj}function k2(Q,J){let X=n4(),q=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,N=X1(Q,J?.in),K=N.getDay(),H=(K<q?7:0)+K-q;return N.setDate(N.getDate()-H),N.setHours(0,0,0,0),N}function i9(Q,J){return k2(Q,{...J,weekStartsOn:1})}function HX(Q,J){let X=X1(Q,J?.in),q=X.getFullYear(),N=k5(X,0);N.setFullYear(q+1,0,4),N.setHours(0,0,0,0);let K=i9(N),H=k5(X,0);H.setFullYear(q,0,4),H.setHours(0,0,0,0);let F=i9(H);if(X.getTime()>=K.getTime())return q+1;else if(X.getTime()>=F.getTime())return q;else return q-1}function C$(Q){let J=X1(Q),X=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return X.setUTCFullYear(J.getFullYear()),+Q-+X}function m8(Q,...J){let X=k5.bind(null,Q||J.find((q)=>typeof q==="object"));return J.map(X)}function kK(Q,J){let X=X1(Q,J?.in);return X.setHours(0,0,0,0),X}function yL(Q,J,X){let[q,N]=m8(X?.in,Q,J),K=kK(q),H=kK(N),F=+K-C$(K),M=+H-C$(H);return Math.round((F-M)/fL)}function gL(Q,J){let X=HX(Q,J),q=k5(J?.in||Q,0);return q.setFullYear(X,0,4),q.setHours(0,0,0,0),i9(q)}function I$(Q,J){let X=+X1(Q)-+X1(J);if(X<0)return-1;else if(X>0)return 1;return X}function hL(Q){return k5(Q,Date.now())}function uL(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function xL(Q){return!(!uL(Q)&&typeof Q!=="number"||isNaN(+X1(Q)))}function mL(Q,J,X){let[q,N]=m8(X?.in,Q,J),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function dL(Q){return(J)=>{let q=(Q?Math[Q]:Math.trunc)(J);return q===0?0:q}}function pL(Q,J){return+X1(Q)-+X1(J)}function cL(Q,J){let X=X1(Q,J?.in);return X.setHours(23,59,59,999),X}function lL(Q,J){let X=X1(Q,J?.in),q=X.getMonth();return X.setFullYear(X.getFullYear(),q+1,0),X.setHours(23,59,59,999),X}function rL(Q,J){let X=X1(Q,J?.in);return+cL(X,J)===+lL(X,J)}function nL(Q,J,X){let[q,N,K]=m8(X?.in,Q,Q,J),H=I$(N,K),F=Math.abs(mL(N,K));if(F<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*F);let M=I$(N,K)===-H;if(rL(q)&&F===1&&I$(q,K)===1)M=!1;let w=H*(F-+M);return w===0?0:w}function sL(Q,J,X){let q=pL(Q,J)/1000;return dL(X?.roundingMethod)(q)}function oL(Q,J){let X=X1(Q,J?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var dj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},aL=(Q,J,X)=>{let q,N=dj[Q];if(typeof N==="string")q=N;else if(J===1)q=N.one;else q=N.other.replace("{{count}}",J.toString());if(X?.addSuffix)if(X.comparison&&X.comparison>0)return"in "+q;else return q+" ago";return q};function FX(Q){return(J={})=>{let X=J.width?String(J.width):Q.defaultWidth;return Q.formats[X]||Q.formats[Q.defaultWidth]}}var pj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iL={date:FX({formats:pj,defaultWidth:"full"}),time:FX({formats:cj,defaultWidth:"full"}),dateTime:FX({formats:lj,defaultWidth:"full"})};var rj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tL=(Q,J,X,q)=>rj[Q];function O$(Q){return(J,X)=>{let q=X?.context?String(X.context):"standalone",N;if(q==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,F=X?.width?String(X.width):H;N=Q.formattingValues[F]||Q.formattingValues[H]}else{let H=Q.defaultWidth,F=X?.width?String(X.width):Q.defaultWidth;N=Q.values[F]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return N[K]}}var nj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},aj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ij={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ej=(Q,J)=>{let X=Number(Q),q=X%100;if(q>20||q<10)switch(q%10){case 1:return X+"st";case 2:return X+"nd";case 3:return X+"rd"}return X+"th"},eL={ordinalNumber:ej,era:O$({values:nj,defaultWidth:"wide"}),quarter:O$({values:sj,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:O$({values:oj,defaultWidth:"wide"}),day:O$({values:aj,defaultWidth:"wide"}),dayPeriod:O$({values:ij,defaultWidth:"wide",formattingValues:tj,defaultFormattingWidth:"wide"})};function V$(Q){return(J,X={})=>{let q=X.width,N=q&&Q.matchPatterns[q]||Q.matchPatterns[Q.defaultMatchWidth],K=J.match(N);if(!K)return null;let H=K[0],F=q&&Q.parsePatterns[q]||Q.parsePatterns[Q.defaultParseWidth],M=Array.isArray(F)?ZD(F,(_)=>_.test(H)):$D(F,(_)=>_.test(H)),w;w=Q.valueCallback?Q.valueCallback(M):M,w=X.valueCallback?X.valueCallback(w):w;let R=J.slice(H.length);return{value:w,rest:R}}}function $D(Q,J){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&J(Q[X]))return X;return}function ZD(Q,J){for(let X=0;X<Q.length;X++)if(J(Q[X]))return X;return}function $P(Q){return(J,X={})=>{let q=J.match(Q.matchPattern);if(!q)return null;let N=q[0],K=J.match(Q.parsePattern);if(!K)return null;let H=Q.valueCallback?Q.valueCallback(K[0]):K[0];H=X.valueCallback?X.valueCallback(H):H;let F=J.slice(N.length);return{value:H,rest:F}}}var QD=/^(\d+)(th|st|nd|rd)?/i,JD=/\d+/i,GD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},XD={any:[/^b/i,/^(a|c)/i]},qD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YD={any:[/1/i,/2/i,/3/i,/4/i]},ND={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},UD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},BD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},HD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ZP={ordinalNumber:$P({matchPattern:QD,parsePattern:JD,valueCallback:(Q)=>parseInt(Q,10)}),era:V$({matchPatterns:GD,defaultMatchWidth:"wide",parsePatterns:XD,defaultParseWidth:"any"}),quarter:V$({matchPatterns:qD,defaultMatchWidth:"wide",parsePatterns:YD,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:V$({matchPatterns:ND,defaultMatchWidth:"wide",parsePatterns:UD,defaultParseWidth:"any"}),day:V$({matchPatterns:KD,defaultMatchWidth:"wide",parsePatterns:BD,defaultParseWidth:"any"}),dayPeriod:V$({matchPatterns:HD,defaultMatchWidth:"any",parsePatterns:FD,defaultParseWidth:"any"})};var YJ={code:"en-US",formatDistance:aL,formatLong:iL,formatRelative:tL,localize:eL,match:ZP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function QP(Q,J){let X=X1(Q,J?.in);return yL(X,oL(X))+1}function JP(Q,J){let X=X1(Q,J?.in),q=+i9(X)-+gL(X);return Math.round(q/BX)+1}function MX(Q,J){let X=X1(Q,J?.in),q=X.getFullYear(),N=n4(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=k5(J?.in||Q,0);H.setFullYear(q+1,0,K),H.setHours(0,0,0,0);let F=k2(H,J),M=k5(J?.in||Q,0);M.setFullYear(q,0,K),M.setHours(0,0,0,0);let w=k2(M,J);if(+X>=+F)return q+1;else if(+X>=+w)return q;else return q-1}function GP(Q,J){let X=n4(),q=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,N=MX(Q,J),K=k5(J?.in||Q,0);return K.setFullYear(N,0,q),K.setHours(0,0,0,0),k2(K,J)}function XP(Q,J){let X=X1(Q,J?.in),q=+k2(X,J)-+GP(X,J);return Math.round(q/BX)+1}function B1(Q,J){let X=Q<0?"-":"",q=Math.abs(Q).toString().padStart(J,"0");return X+q}var f2={y(Q,J){let X=Q.getFullYear(),q=X>0?X:1-X;return B1(J==="yy"?q%100:q,J.length)},M(Q,J){let X=Q.getMonth();return J==="M"?String(X+1):B1(X+1,2)},d(Q,J){return B1(Q.getDate(),J.length)},a(Q,J){let X=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.toUpperCase();case"aaa":return X;case"aaaaa":return X[0];case"aaaa":default:return X==="am"?"a.m.":"p.m."}},h(Q,J){return B1(Q.getHours()%12||12,J.length)},H(Q,J){return B1(Q.getHours(),J.length)},m(Q,J){return B1(Q.getMinutes(),J.length)},s(Q,J){return B1(Q.getSeconds(),J.length)},S(Q,J){let X=J.length,q=Q.getMilliseconds(),N=Math.trunc(q*Math.pow(10,X-3));return B1(N,J.length)}};var A$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},fK={G:function(Q,J,X){let q=Q.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return X.era(q,{width:"abbreviated"});case"GGGGG":return X.era(q,{width:"narrow"});case"GGGG":default:return X.era(q,{width:"wide"})}},y:function(Q,J,X){if(J==="yo"){let q=Q.getFullYear(),N=q>0?q:1-q;return X.ordinalNumber(N,{unit:"year"})}return f2.y(Q,J)},Y:function(Q,J,X,q){let N=MX(Q,q),K=N>0?N:1-N;if(J==="YY"){let H=K%100;return B1(H,2)}if(J==="Yo")return X.ordinalNumber(K,{unit:"year"});return B1(K,J.length)},R:function(Q,J){let X=HX(Q);return B1(X,J.length)},u:function(Q,J){let X=Q.getFullYear();return B1(X,J.length)},Q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"Q":return String(q);case"QQ":return B1(q,2);case"Qo":return X.ordinalNumber(q,{unit:"quarter"});case"QQQ":return X.quarter(q,{width:"abbreviated",context:"formatting"});case"QQQQQ":return X.quarter(q,{width:"narrow",context:"formatting"});case"QQQQ":default:return X.quarter(q,{width:"wide",context:"formatting"})}},q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"q":return String(q);case"qq":return B1(q,2);case"qo":return X.ordinalNumber(q,{unit:"quarter"});case"qqq":return X.quarter(q,{width:"abbreviated",context:"standalone"});case"qqqqq":return X.quarter(q,{width:"narrow",context:"standalone"});case"qqqq":default:return X.quarter(q,{width:"wide",context:"standalone"})}},M:function(Q,J,X){let q=Q.getMonth();switch(J){case"M":case"MM":return f2.M(Q,J);case"Mo":return X.ordinalNumber(q+1,{unit:"month"});case"MMM":return X.month(q,{width:"abbreviated",context:"formatting"});case"MMMMM":return X.month(q,{width:"narrow",context:"formatting"});case"MMMM":default:return X.month(q,{width:"wide",context:"formatting"})}},L:function(Q,J,X){let q=Q.getMonth();switch(J){case"L":return String(q+1);case"LL":return B1(q+1,2);case"Lo":return X.ordinalNumber(q+1,{unit:"month"});case"LLL":return X.month(q,{width:"abbreviated",context:"standalone"});case"LLLLL":return X.month(q,{width:"narrow",context:"standalone"});case"LLLL":default:return X.month(q,{width:"wide",context:"standalone"})}},w:function(Q,J,X,q){let N=XP(Q,q);if(J==="wo")return X.ordinalNumber(N,{unit:"week"});return B1(N,J.length)},I:function(Q,J,X){let q=JP(Q);if(J==="Io")return X.ordinalNumber(q,{unit:"week"});return B1(q,J.length)},d:function(Q,J,X){if(J==="do")return X.ordinalNumber(Q.getDate(),{unit:"date"});return f2.d(Q,J)},D:function(Q,J,X){let q=QP(Q);if(J==="Do")return X.ordinalNumber(q,{unit:"dayOfYear"});return B1(q,J.length)},E:function(Q,J,X){let q=Q.getDay();switch(J){case"E":case"EE":case"EEE":return X.day(q,{width:"abbreviated",context:"formatting"});case"EEEEE":return X.day(q,{width:"narrow",context:"formatting"});case"EEEEEE":return X.day(q,{width:"short",context:"formatting"});case"EEEE":default:return X.day(q,{width:"wide",context:"formatting"})}},e:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"e":return String(K);case"ee":return B1(K,2);case"eo":return X.ordinalNumber(K,{unit:"day"});case"eee":return X.day(N,{width:"abbreviated",context:"formatting"});case"eeeee":return X.day(N,{width:"narrow",context:"formatting"});case"eeeeee":return X.day(N,{width:"short",context:"formatting"});case"eeee":default:return X.day(N,{width:"wide",context:"formatting"})}},c:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"c":return String(K);case"cc":return B1(K,J.length);case"co":return X.ordinalNumber(K,{unit:"day"});case"ccc":return X.day(N,{width:"abbreviated",context:"standalone"});case"ccccc":return X.day(N,{width:"narrow",context:"standalone"});case"cccccc":return X.day(N,{width:"short",context:"standalone"});case"cccc":default:return X.day(N,{width:"wide",context:"standalone"})}},i:function(Q,J,X){let q=Q.getDay(),N=q===0?7:q;switch(J){case"i":return String(N);case"ii":return B1(N,J.length);case"io":return X.ordinalNumber(N,{unit:"day"});case"iii":return X.day(q,{width:"abbreviated",context:"formatting"});case"iiiii":return X.day(q,{width:"narrow",context:"formatting"});case"iiiiii":return X.day(q,{width:"short",context:"formatting"});case"iiii":default:return X.day(q,{width:"wide",context:"formatting"})}},a:function(Q,J,X){let N=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"aaa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"aaaa":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},b:function(Q,J,X){let q=Q.getHours(),N;if(q===12)N=A$.noon;else if(q===0)N=A$.midnight;else N=q/12>=1?"pm":"am";switch(J){case"b":case"bb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"bbb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"bbbb":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},B:function(Q,J,X){let q=Q.getHours(),N;if(q>=17)N=A$.evening;else if(q>=12)N=A$.afternoon;else if(q>=4)N=A$.morning;else N=A$.night;switch(J){case"B":case"BB":case"BBB":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"BBBBB":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"BBBB":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},h:function(Q,J,X){if(J==="ho"){let q=Q.getHours()%12;if(q===0)q=12;return X.ordinalNumber(q,{unit:"hour"})}return f2.h(Q,J)},H:function(Q,J,X){if(J==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return f2.H(Q,J)},K:function(Q,J,X){let q=Q.getHours()%12;if(J==="Ko")return X.ordinalNumber(q,{unit:"hour"});return B1(q,J.length)},k:function(Q,J,X){let q=Q.getHours();if(q===0)q=24;if(J==="ko")return X.ordinalNumber(q,{unit:"hour"});return B1(q,J.length)},m:function(Q,J,X){if(J==="mo")return X.ordinalNumber(Q.getMinutes(),{unit:"minute"});return f2.m(Q,J)},s:function(Q,J,X){if(J==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return f2.s(Q,J)},S:function(Q,J){return f2.S(Q,J)},X:function(Q,J,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(J){case"X":return YP(q);case"XXXX":case"XX":return t9(q);case"XXXXX":case"XXX":default:return t9(q,":")}},x:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"x":return YP(q);case"xxxx":case"xx":return t9(q);case"xxxxx":case"xxx":default:return t9(q,":")}},O:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+qP(q,":");case"OOOO":default:return"GMT"+t9(q,":")}},z:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+qP(q,":");case"zzzz":default:return"GMT"+t9(q,":")}},t:function(Q,J,X){let q=Math.trunc(+Q/1000);return B1(q,J.length)},T:function(Q,J,X){return B1(+Q,J.length)}};function qP(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=Math.trunc(q/60),K=q%60;if(K===0)return X+String(N);return X+String(N)+J+B1(K,2)}function YP(Q,J){if(Q%60===0)return(Q>0?"-":"+")+B1(Math.abs(Q)/60,2);return t9(Q,J)}function t9(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=B1(Math.trunc(q/60),2),K=B1(q%60,2);return X+N+J+K}var NP=(Q,J)=>{switch(Q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},UP=(Q,J)=>{switch(Q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},MD=(Q,J)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return NP(Q,J);let K;switch(q){case"P":K=J.dateTime({width:"short"});break;case"PP":K=J.dateTime({width:"medium"});break;case"PPP":K=J.dateTime({width:"long"});break;case"PPPP":default:K=J.dateTime({width:"full"});break}return K.replace("{{date}}",NP(q,J)).replace("{{time}}",UP(N,J))},KP={p:UP,P:MD};var WD=/^D+$/,wD=/^Y+$/,RD=["D","DD","YY","YYYY"];function BP(Q){return WD.test(Q)}function HP(Q){return wD.test(Q)}function FP(Q,J,X){let q=zD(Q,J,X);if(console.warn(q),RD.includes(Q))throw RangeError(q)}function zD(Q,J,X){let q=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${J}\`) for formatting ${q} to the input \`${X}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var _D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PD=/^'([^]*?)'?$/,TD=/''/g,CD=/[a-zA-Z]/;function F4(Q,J,X){let q=n4(),N=X?.locale??q.locale??YJ,K=X?.firstWeekContainsDate??X?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,H=X?.weekStartsOn??X?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,F=X1(Q,X?.in);if(!xL(F))throw RangeError("Invalid time value");let M=J.match(LD).map((R)=>{let _=R[0];if(_==="p"||_==="P"){let P=KP[_];return P(R,N.formatLong)}return R}).join("").match(_D).map((R)=>{if(R==="''")return{isToken:!1,value:"'"};let _=R[0];if(_==="'")return{isToken:!1,value:ID(R)};if(fK[_])return{isToken:!0,value:R};if(_.match(CD))throw RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:R}});if(N.localize.preprocessor)M=N.localize.preprocessor(F,M);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:N};return M.map((R)=>{if(!R.isToken)return R.value;let _=R.value;if(!X?.useAdditionalWeekYearTokens&&HP(_)||!X?.useAdditionalDayOfYearTokens&&BP(_))FP(_,J,String(Q));let P=fK[_[0]];return P(F,_,N.localize,w)}).join("")}function ID(Q){let J=Q.match(PD);if(!J)return Q;return J[1].replace(TD,"'")}function MP(Q,J,X){let q=n4(),N=X?.locale??q.locale??YJ,K=2520,H=I$(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let F=Object.assign({},X,{addSuffix:X?.addSuffix,comparison:H}),[M,w]=m8(X?.in,...H>0?[J,Q]:[Q,J]),R=sL(w,M),_=(C$(w)-C$(M))/1000,P=Math.round((R-_)/60),I;if(P<2)if(X?.includeSeconds)if(R<5)return N.formatDistance("lessThanXSeconds",5,F);else if(R<10)return N.formatDistance("lessThanXSeconds",10,F);else if(R<20)return N.formatDistance("lessThanXSeconds",20,F);else if(R<40)return N.formatDistance("halfAMinute",0,F);else if(R<60)return N.formatDistance("lessThanXMinutes",1,F);else return N.formatDistance("xMinutes",1,F);else if(P===0)return N.formatDistance("lessThanXMinutes",1,F);else return N.formatDistance("xMinutes",P,F);else if(P<45)return N.formatDistance("xMinutes",P,F);else if(P<90)return N.formatDistance("aboutXHours",1,F);else if(P<vK){let A=Math.round(P/60);return N.formatDistance("aboutXHours",A,F)}else if(P<2520)return N.formatDistance("xDays",1,F);else if(P<qJ){let A=Math.round(P/vK);return N.formatDistance("xDays",A,F)}else if(P<qJ*2)return I=Math.round(P/qJ),N.formatDistance("aboutXMonths",I,F);if(I=nL(w,M),I<12){let A=Math.round(P/qJ);return N.formatDistance("xMonths",A,F)}else{let A=I%12,V=Math.trunc(I/12);if(A<3)return N.formatDistance("aboutXYears",V,F);else if(A<9)return N.formatDistance("overXYears",V,F);else return N.formatDistance("almostXYears",V+1,F)}}function WP(Q,J){return MP(Q,hL(Q),J)}var U5=n(T1(),1);var yK=n(wP(),1),S6=n(T1(),1);var zP="label";function RP(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function VD(Q,J){let X=Q.options;if(X&&J)Object.assign(X,J)}function _P(Q,J){Q.labels=J}function LP(Q,J,X=zP){let q=[];Q.datasets=J.map((N)=>{let K=Q.datasets.find((H)=>H[X]===N[X]);if(!K||!N.data||q.includes(K))return{...N};return q.push(K),Object.assign(K,N),K})}function AD(Q,J=zP){let X={labels:[],datasets:[]};return _P(X,Q.labels),LP(X,Q.datasets,J),X}function ED(Q,J){let{height:X=150,width:q=300,redraw:N=!1,datasetIdKey:K,type:H,data:F,options:M,plugins:w=[],fallbackContent:R,updateMode:_,...P}=Q,I=S6.useRef(null),A=S6.useRef(null),V=()=>{if(!I.current)return;A.current=new l9(I.current,{type:H,data:AD(F,K),options:M&&{...M},plugins:w}),RP(J,A.current)},O=()=>{if(RP(J,null),A.current)A.current.destroy(),A.current=null};return S6.useEffect(()=>{if(!N&&A.current&&M)VD(A.current,M)},[N,M]),S6.useEffect(()=>{if(!N&&A.current)_P(A.current.config.data,F.labels)},[N,F.labels]),S6.useEffect(()=>{if(!N&&A.current&&F.datasets)LP(A.current.config.data,F.datasets,K)},[N,F.datasets]),S6.useEffect(()=>{if(!A.current)return;if(N)O(),setTimeout(V);else A.current.update(_)},[N,M,F.labels,F.datasets,_]),S6.useEffect(()=>{if(!A.current)return;O(),setTimeout(V)},[H]),S6.useEffect(()=>{return V(),()=>O()},[]),yK.jsx("canvas",{ref:I,role:"img",height:X,width:q,...P,children:R})}var SD=S6.forwardRef(ED);function PP(Q,J){return l9.register(J),S6.forwardRef((X,q)=>yK.jsx(SD,{...X,ref:q,type:Q}))}var f5=PP("line",HK),d8=PP("bar",BK);var H1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],o1={dark:{legendLabel:"#a89fb3",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93"},light:{legendLabel:"#5a5462",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275"}};function s4(Q){let{chartTheme:J,showLegend:X,defaultLabel:q,formatValue:N,footer:K}=Q;return{legend:{display:X,position:"top",align:"start",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let F=H.dataset.label??q,M=H.parsed.y??0;return`${F}: ${N(M)}`},...K?{footer:K}:{}}}}}function o4(Q){let{chartTheme:J,formatY:X}=Q,q={grid:{color:J.grid,drawBorder:!1},ticks:{color:J.tick,font:{size:11}}},N={...q,ticks:{...q.ticks,callback:(K)=>X(Number(K))},min:0};return{sharedScaleBase:q,yScale:N}}function E$(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function $7(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function p8(Q,J){return Q.datasets.map((X,q)=>({label:X.label,data:X.data,...J(q)}))}function WX(Q,J,X){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:q,accumulate:N,bucketToValue:K}=X,H=new Map;for(let M of Q){let w=H.get(M.timestamp)??q();N(w,M),H.set(M.timestamp,w)}let F=[...H.entries()].sort((M,w)=>M[0]-w[0]);return{labels:F.map(([M])=>F4(new Date(M),"MMM d")),datasets:[{label:J,data:F.map(([,M])=>K(M))}]}}function S$(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:X=5,rankWeight:q,initBucket:N,accumulate:K,bucketToValue:H}=J,F=new Map;for(let D of Q){let h=`${D.model}::${D.provider}`,p=F.get(h);if(p)p.weight+=q(D);else F.set(h,{model:D.model,provider:D.provider,weight:q(D)})}let w=[...F.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,X),R=new Set(w.map(([D])=>D)),_=new Map;for(let[,{model:D}]of w)_.set(D,(_.get(D)??0)+1);let P=new Map;for(let[D,{model:h,provider:p}]of w)P.set(D,(_.get(h)??0)>1?`${h} (${p})`:h);let I=[...new Set(Q.map((D)=>D.timestamp))].sort((D,h)=>D-h),A=w.map(([D])=>P.get(D)??D);if(Q.some((D)=>!R.has(`${D.model}::${D.provider}`)))A.push("Other");let O=new Map;for(let D of I)O.set(D,{});for(let D of Q){let h=`${D.model}::${D.provider}`,p=R.has(h)?P.get(h)??D.model:"Other",s=O.get(D.timestamp);if(!s)continue;let a=s[p]??N();K(a,D),s[p]=a}return{labels:I.map((D)=>F4(new Date(D),"MMM d")),datasets:A.map((D)=>({label:D,data:I.map((h)=>{let p=O.get(h)?.[D];return p?H(p):0})}))}}var y1=n(U0(),1);function y2(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function wX({timestamps:Q,values:J,color:X}){let q={labels:Q.map((K)=>F4(new Date(K),"MMM d")),datasets:[{data:J,...y2(X)}]};return y1.jsxDEV(f5,{data:q,options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1},y:{display:!1,min:0}}}},void 0,!1,void 0,this)}function RX(Q){return{legend:{display:!0,position:"top",labels:{color:Q.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:Q.tooltipBackground,titleColor:Q.tooltipTitle,bodyColor:Q.tooltipBody,borderColor:Q.tooltipBorder,borderWidth:1,cornerRadius:8}}}function TP(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}},min:0}}}function CP(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:Q.tick,font:{size:11}}}}}function zX({title:Q,subtitle:J,children:X}){return y1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[y1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[y1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?y1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),y1.jsxDEV("div",{className:"overflow-x-auto",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function jD(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function _X({columns:Q,gridTemplate:J}){return y1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:J},children:[Q.map((X)=>y1.jsxDEV("div",{className:jD(X.align),children:X.label},X.label,!1,void 0,this)),y1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function LX({children:Q}){return y1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function PX({model:Q,provider:J}){return y1.jsxDEV("div",{children:[y1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),y1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function TX({gridTemplate:Q,cells:J,trendCell:X,isExpanded:q,onToggle:N,expandedContent:K}){return y1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[y1.jsxDEV("button",{type:"button",onClick:N,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:y1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,y1.jsxDEV("div",{className:"h-10",children:X},void 0,!1,void 0,this),y1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:q?y1.jsxDEV(gQ,{size:16},void 0,!1,void 0,this):y1.jsxDEV(yQ,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q?y1.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function CX(){return y1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function IX({message:Q="No data available"}){return y1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Q},void 0,!1,void 0,this)}function S0(Q){return Q.toLocaleString()}function N1(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function R1(Q,J){if(Q===0)return"$0";let X=J!==void 0?J:Q>0&&Q<0.01?4:2;return`$${Q.toLocaleString(void 0,{minimumFractionDigits:X,maximumFractionDigits:X})}`}function d1(Q,J=1){return`${(Q*100).toFixed(J)}%`}function y5(Q,J){if(Q===null)return"-";let X=Q/1000,q=J!==void 0?J:X<1?2:1;return`${X.toFixed(q)}s`}function OX(Q){if(Q===null)return"-";return Q.toFixed(1)}function Y6(Q){return WP(new Date(Q),{addSuffix:!0})}function gK(Q){if(Q>=1e9)return`${(Q/1e9).toFixed(1)} GB`;if(Q>=1e6)return`${(Q/1e6).toFixed(1)} MB`;if(Q>=1000)return`${(Q/1000).toFixed(1)} KB`;return`${Q} B`}var O5=n(T1(),1),c8=new Map,DD=64;function a1(Q,J,X){let q=JSON.stringify(Q),[N,K]=O5.useState(()=>c8.get(q)?.data??null),[H,F]=O5.useState(null),[M,w]=O5.useState(()=>!c8.has(q)),[R,_]=O5.useState(!1),[P,I]=O5.useState(()=>c8.get(q)?.updatedAt??null),A=O5.useRef(J);A.current=J;let V=O5.useRef(q);V.current=q;let O=X?.enabled??!0,D=X?.pollMs,h=O5.useRef(null),p=O5.useRef(!1);p.current=N!==null;let s=O5.useCallback(async(J0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,J0)_(!0);else w(!0),K(null);F(null);try{let i=await A.current(t.signal);if(t.signal.aborted)return;if(c8.set(V.current,{data:i,updatedAt:Date.now()}),c8.size>DD){let Y0=c8.keys().next().value;if(Y0!==void 0)c8.delete(Y0)}K(i),I(Date.now()),F(null)}catch(i){if(t.signal.aborted)return;F(i instanceof Error?i:Error(String(i)))}finally{if(!t.signal.aborted){if(w(!1),_(!1),h.current===t)h.current=null}}},[]);O5.useEffect(()=>{if(!O){w(!1),_(!1);return}let J0=c8.get(q);if(J0)K(J0.data),I(J0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[q,O,s]),O5.useEffect(()=>{if(!O||!D)return;let J0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval(J0)}},[O,D,s]);let a=O5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:M,refreshing:R,refetch:a,updatedAt:P}}var IP=3600000,VX=24*IP,vD=300000,OP={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:vD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:IP,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:VX,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:VX,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:VX,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:VX,bucketCount:0,tickFormat:"MMM d"}};function Z7(Q){return OP[Q]}function NJ(Q,J){return F4(new Date(Q),OP[J].tickFormat)}var bD=["main","subagent","advisor"];function AX(Q){return Q.totalInputTokens+Q.totalOutputTokens+Q.totalCacheReadTokens+Q.totalCacheWriteTokens}function VP(Q){let J=new Map;for(let H of Q)J.set(H.agentType,H);let X=bD.map((H)=>J.get(H)).filter((H)=>H!==void 0),q=X.reduce((H,F)=>H+AX(F),0),N=X.reduce((H,F)=>H+F.totalCost,0),K=X.map((H)=>{let F=AX(H);return{agentType:H.agentType,tokens:F,requests:H.totalRequests,cost:H.totalCost,share:q>0?F/q:0}});return{totalTokens:q,totalCost:N,segments:K}}function AP(Q){let J=Q.reduce((F,M)=>F+M.cost,0),X=new Set(Q.map((F)=>F.timestamp)).size,q=X>0?J/X:0,N=new Map;for(let F of Q)N.set(F.model,(N.get(F.model)??0)+F.cost);let K="",H=0;for(let[F,M]of N)if(M>H)K=F,H=M;return{totalCost:J,avgDailyCost:q,topModelName:K,topModelCost:H}}function EP(Q,J){if(Q.length===0)return new Map;let X=Z7(J),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let M=Q.reduce((_,P)=>Math.max(_,P.timestamp),0),R=(M>0?M:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(_,P)=>R+P*q)})():Array.from(new Set(Q.map((M)=>M.timestamp))).sort((M,w)=>M-w),H=new Map(K.map((M,w)=>[M,w])),F=new Map;for(let M of Q){let w=`${M.model}::${M.provider}`,R=F.get(w);if(!R)R={label:`${M.model} (${M.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},F.set(w,R);let _=H.get(M.timestamp);if(_===void 0)continue;R.data[_]={timestamp:M.timestamp,avgTtftSeconds:M.avgTtft!==null?M.avgTtft/1000:null,avgTokensPerSecond:M.avgTokensPerSecond,requests:M.requests}}return F}function SP(Q,J){let X=Q.totalNegation+Q.totalRepetition+Q.totalBlame,q=new Map;for(let K of J){let H=`${K.model}::${K.provider}`,F=q.get(H),M=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(F)F.score+=M;else q.set(H,{model:K.model,provider:K.provider,score:M})}let N=null;for(let K of q.values())if(!N||K.score>N.score)N=K;return{totalMessages:Q.totalMessages,totalYelling:Q.totalYelling,totalProfanity:Q.totalProfanity,totalAnguish:Q.totalAnguish,totalFrustration:X,highestFrictionModel:N}}function jP(Q){let J=[...Q].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),X=J.reduce((N,K)=>Math.max(N,K.totalCost),0),q=J.reduce((N,K)=>Math.max(N,K.totalRequests),0);return J.map((N)=>({...N,costPercentage:X>0?N.totalCost/X*100:0,requestsPercentage:q>0?N.totalRequests/q*100:0}))}function DP(Q){let J=Q.reduce((X,q)=>Math.max(X,q.calls),0);return Q.map((X)=>({...X,errorRate:X.calls>0?X.errors/X.calls:0,callsPercentage:J>0?X.calls/J*100:0}))}var EX=n(U0(),1);function j$({message:Q="No data available",icon:J=cQ,className:X=""}){return EX.jsxDEV("div",{className:`stats-empty-state ${X}`,children:[EX.jsxDEV(J,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),EX.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var D$=n(U0(),1);function vP({error:Q,onRetry:J,className:X=""}){return D$.jsxDEV("div",{className:`stats-error-state ${X}`,children:D$.jsxDEV("div",{className:"stats-error-state-content",children:[D$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&D$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),J&&D$.jsxDEV("button",{type:"button",onClick:J,className:"stats-button stats-button-secondary stats-error-state-btn",children:"Retry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var bP=n(U0(),1);function N6({variant:Q="text",width:J,height:X,className:q=""}){let N={width:J!==void 0?typeof J==="number"?`${J}px`:J:void 0,height:X!==void 0?typeof X==="number"?`${X}px`:X:void 0};return bP.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var j6=n(U0(),1);function g1({loading:Q,error:J,data:X,empty:q=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:F}){if(J&&X===null)return j6.jsxDEV(vP,{error:J,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return j6.jsxDEV(j6.Fragment,{children:K},void 0,!1,void 0,this);return j6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[j6.jsxDEV(N6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),j6.jsxDEV(N6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),j6.jsxDEV(N6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),j6.jsxDEV(N6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(q||X===null))return j6.jsxDEV(j$,{message:N},void 0,!1,void 0,this);return j6.jsxDEV(j6.Fragment,{children:F},void 0,!1,void 0,this)}var U6=n(U0(),1);function K6({columns:Q,data:J,keyExtractor:X,onRowClick:q,renderMobileCard:N,emptyText:K="No data available"}){let H=(F,M)=>{if(q&&(F.key==="Enter"||F.key===" "))F.preventDefault(),q(M)};if(J.length===0)return U6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return U6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&U6.jsxDEV("div",{className:"stats-table-mobile-only",children:U6.jsxDEV("div",{className:"stats-table-mobile-list",children:J.map((F)=>{let M=String(X(F));return U6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(F,q?()=>q(F):void 0)},M,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),U6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:U6.jsxDEV("table",{className:"stats-table",children:[U6.jsxDEV("thead",{children:U6.jsxDEV("tr",{children:Q.map((F)=>{let M=["stats-table-th",F.numeric?"stats-text-right":"stats-text-left",F.className||""].filter(Boolean).join(" ");return U6.jsxDEV("th",{className:M,children:F.header},F.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),U6.jsxDEV("tbody",{children:J.map((F)=>{let M=String(X(F)),w=typeof q==="function",R=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return U6.jsxDEV("tr",{className:R,onClick:w?()=>q(F):void 0,onKeyDown:w?(_)=>H(_,F):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:Q.map((_)=>{let P=["stats-table-td",_.numeric?"stats-text-right":"stats-text-left",_.className||""].filter(Boolean).join(" ");return U6.jsxDEV("td",{className:P,children:_.render?_.render(F):F[_.key]},_.key,!1,void 0,this)})},M,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Q7=n(T1(),1),i6=n(U0(),1);function hK({data:Q,title:J,initialCollapsed:X=!1}){let[q,N]=Q7.useState(X),[K,H]=Q7.useState(!1),F=Q7.useRef(0),M=JSON.stringify(Q,null,2);return Q7.useEffect(()=>()=>window.clearTimeout(F.current),[]),i6.jsxDEV("div",{className:"stats-json-block",children:[i6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!q),onKeyDown:(_)=>{if(_.key==="Enter"||_.key===" ")_.preventDefault(),N(!q)},tabIndex:0,role:"button","aria-expanded":!q,children:[i6.jsxDEV("span",{className:"stats-json-block-title",children:J||"JSON"},void 0,!1,void 0,this),i6.jsxDEV("div",{className:"stats-json-actions",children:[i6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(_)=>{_.stopPropagation();try{await navigator.clipboard.writeText(M),H(!0),window.clearTimeout(F.current),F.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?i6.jsxDEV(fQ,{size:13},void 0,!1,void 0,this):i6.jsxDEV(uQ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),i6.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":q,children:q?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!q&&i6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:i6.jsxDEV("pre",{className:"stats-json-block-content",children:i6.jsxDEV("code",{children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var s0=n(U0(),1);function kP({stats:Q}){let J=AX(Q);return s0.jsxDEV("div",{className:"stats-metric-cluster",children:[s0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:R1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:S0(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:d1(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:d1(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[s0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:S0(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:OX(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:y5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:y5(Q.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var l8=n(U0(),1);function q1({title:Q,subtitle:J,actions:X,children:q,className:N="",...K}){return l8.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(Q||J||X)&&l8.jsxDEV("div",{className:"stats-panel-header",children:[l8.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&l8.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),J&&l8.jsxDEV("p",{className:"stats-panel-subtitle",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&l8.jsxDEV("div",{className:"stats-panel-actions",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l8.jsxDEV("div",{className:"stats-panel-body",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var a4=n(T1(),1);var fP=n(U0(),1);function V5({variant:Q,children:J,className:X=""}){return fP.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:J},void 0,!1,void 0,this)}var w0=n(U0(),1);function yP({id:Q,onClose:J}){let[X,q]=a4.useState(null),[N,K]=a4.useState(!1),[H,F]=a4.useState(null),M=a4.useRef(null),w=a4.useRef(null);if(a4.useEffect(()=>{if(Q===null){q(null);return}M.current=document.activeElement,K(!0),F(null),q(null);let _=new AbortController;return WL(Q,_.signal).then((P)=>{if(_.signal.aborted)return;q(P),setTimeout(()=>w.current?.focus(),50)}).catch((P)=>{if(_.signal.aborted)return;F(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!_.signal.aborted)K(!1)}),()=>_.abort()},[Q]),a4.useEffect(()=>{if(Q===null)return;let _=(P)=>{if(P.key==="Escape")J()};return window.addEventListener("keydown",_),()=>{if(window.removeEventListener("keydown",_),M.current)M.current.focus()}},[Q,J]),Q===null)return null;return w0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(_)=>{if(_.target===_.currentTarget)J()},role:"presentation",children:w0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[w0.jsxDEV("div",{className:"stats-drawer-header",children:[w0.jsxDEV("div",{className:"stats-drawer-header-left",children:[w0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),X&&w0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",Q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("button",{ref:w,type:"button",onClick:J,className:"stats-drawer-close-btn","aria-label":"Close request details",children:w0.jsxDEV(s9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&w0.jsxDEV("div",{className:"stats-drawer-loading",children:[w0.jsxDEV(N6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(N6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(N6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(N6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&w0.jsxDEV("div",{className:"stats-drawer-error",children:[w0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),w0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&w0.jsxDEV("div",{className:"stats-drawer-content",children:[w0.jsxDEV("div",{className:"stats-drawer-status-card",children:[w0.jsxDEV("div",{className:"stats-drawer-status-row",children:[w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"stats-drawer-model",children:X.model},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-provider",children:X.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV(V5,{variant:X.errorMessage?"danger":"success",children:X.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.errorMessage&&w0.jsxDEV("div",{className:"stats-drawer-error-block",children:[w0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-error-text",children:X.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(n9,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:R1(X.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(tQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(X.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(pQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(X.usage.totalTokens)},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[S0(X.usage.input)," in · ",S0(X.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(hQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:y5(X.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(QJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:y5(X.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.duration&&X.usage.output>0&&w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(dQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(X.usage.output*1000/X.duration).toFixed(1)},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[w0.jsxDEV(hK,{data:X.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),w0.jsxDEV(hK,{data:X,title:"Raw Request Metadata",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var uK=n(U0(),1);function J7({options:Q,value:J,onChange:X,className:q=""}){return uK.jsxDEV("div",{className:`stats-segmented-control ${q}`,role:"radiogroup",children:Q.map((N)=>{let K=N.value===J;return uK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>X(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var R0=n(U0(),1);function dP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["behavior",J,X],(H)=>RL(J,H),{pollMs:30000,enabled:Q});return R0.jsxDEV("div",{className:"stats-route-container space-y-6",children:R0.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&R0.jsxDEV(R0.Fragment,{children:[R0.jsxDEV(kD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(fD,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(yD,{models:q.byModel,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function SX(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function kD({overall:Q,behaviorSeries:J}){let X=U5.useMemo(()=>SP(Q,J),[Q,J]),q=Q.totalMessages,N=[{label:"User Messages",value:S0(Q.totalMessages),sub:q>0?"in range":void 0},{label:"Yelling (CAPS)",value:S0(Q.totalYelling),sub:SX(Q.totalYelling,q)},{label:"Profanity Hits",value:S0(Q.totalProfanity),sub:SX(Q.totalProfanity,q)},{label:"Anguish Signals",value:S0(Q.totalAnguish),sub:SX(Q.totalAnguish,q)},{label:"Friction Signals",value:S0(X.totalFrustration),sub:SX(X.totalFrustration,q)},{label:"Highest Friction Model",value:X.highestFrictionModel?.model??"—",sub:X.highestFrictionModel?`${S0(X.highestFrictionModel.score)} hits`:void 0}];return R0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:N.map((K)=>R0.jsxDEV(q1,{className:"stats-behavior-summary-card py-3 px-4",children:[R0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:K.label},void 0,!1,void 0,this),R0.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:K.value,children:K.value},void 0,!1,void 0,this),K.sub&&R0.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:K.sub},void 0,!1,void 0,this)]},K.label,!0,void 0,this))},void 0,!1,void 0,this)}var xK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, ugh, dude, ':(')"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong, makes no sense)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, why did you, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function gP(Q){if(!Number.isFinite(Q))return"-";if(Q===0)return"0%";if(Math.abs(Q)<1)return`${Q.toFixed(1)}%`;return`${Q.toFixed(0)}%`}function hP(Q,J){if(J==="frustration")return Q.negation+Q.repetition+Q.blame;if(J==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[J]}function uP(Q,J){if(J<=0)return 0;return Q/J*100}function fD({behaviorSeries:Q}){let[J,X]=U5.useState(!1),[q,N]=U5.useState("total"),K=R5(),H=o1[K],F=U5.useMemo(()=>{if(J)return S$(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=hP(p,q),h.messages+=p.messages},bucketToValue:(h)=>uP(h.hits,h.messages)});let D=xK.find((h)=>h.value===q)?.title??"Hits";return WX(Q,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=hP(p,q),h.messages+=p.messages},bucketToValue:(h)=>uP(h.hits,h.messages)})},[Q,J,q]),M=U5.useMemo(()=>{return s4({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:gP})},[H,J]),{sharedScaleBase:w,yScale:R}=U5.useMemo(()=>{return o4({chartTheme:H,formatY:gP})},[H]),_=U5.useMemo(()=>{return xK.find((D)=>D.value===q)?.title??""},[q]),P=U5.useMemo(()=>{if(!J)return null;return{labels:F.labels,datasets:p8(F,(D)=>E$(H1[D%H1.length]))}},[F,J]),I=U5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:M,scales:{x:w,y:R}}},[M,w,R]),A=U5.useMemo(()=>{if(J)return null;return{labels:F.labels,datasets:p8(F,(D)=>$7(H1[D%H1.length]))}},[F,J]),V=U5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:M,scales:{x:{...w,stacked:!0},y:{...R,stacked:!0}},layout:{padding:{top:8}}}},[M,w,R]),O=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return R0.jsxDEV(q1,{title:"User Friction Signals",subtitle:`${_} as % of user messages per day`,actions:R0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[R0.jsxDEV(J7,{options:xK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:q,onChange:N},void 0,!1,void 0,this),R0.jsxDEV(J7,{options:O,value:J,onChange:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:R0.jsxDEV("div",{className:"h-[300px]",children:F.labels.length===0?R0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No friction signal data available"},void 0,!1,void 0,this):J&&P?R0.jsxDEV(f5,{data:P,options:I},void 0,!1,void 0,this):A?R0.jsxDEV(d8,{data:A,options:V},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var xP="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function mP(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function v$(Q,J){if(J===0)return"-";let X=Q/J*100;if(X===0)return"0%";if(X<1)return`${X.toFixed(1)}%`;return`${X.toFixed(0)}%`}function yD({models:Q,behaviorSeries:J}){let[X,q]=U5.useState(null),N=R5(),K=o1[N],H=U5.useMemo(()=>hD(J),[J]),F=U5.useMemo(()=>{return[...Q].sort((M,w)=>{if(w.totalMessages!==M.totalMessages)return w.totalMessages-M.totalMessages;return mP(w)-mP(M)})},[Q]);return R0.jsxDEV(zX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[R0.jsxDEV(_X,{gridTemplate:xP,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),R0.jsxDEV(LX,{children:[F.map((M,w)=>{let R=`${M.model}::${M.provider}`,_=H.get(R)?.data??[],P=H1[w%H1.length],I=X===R,A=M.totalNegation+M.totalRepetition+M.totalBlame,V=M.totalYelling+M.totalProfanity+M.totalAnguish+A;return R0.jsxDEV(TX,{gridTemplate:xP,isExpanded:I,onToggle:()=>q(I?null:R),cells:[R0.jsxDEV(PX,{model:M.model,provider:M.provider},"name",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:S0(M.totalMessages)},"messages",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(M.totalYelling,M.totalMessages)},"caps",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(M.totalProfanity,M.totalMessages)},"profanity",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(M.totalAnguish,M.totalMessages)},"anguish",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(A,M.totalMessages)},"frustration",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(V,M.totalMessages)},"hits",!1,void 0,this)],trendCell:_.length===0?R0.jsxDEV(CX,{},void 0,!1,void 0,this):R0.jsxDEV(wX,{timestamps:_.map((O)=>O.timestamp),values:_.map((O)=>O.total),color:P},void 0,!1,void 0,this),expandedContent:R0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[R0.jsxDEV("div",{className:"space-y-4 text-sm",children:[R0.jsxDEV(G7,{label:"Yelling (CAPS)",total:M.totalYelling,messages:M.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Profanity",total:M.totalProfanity,messages:M.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Anguish (!!!, nooo, dude, ..)",total:M.totalAnguish,messages:M.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Negation (no/nope/wrong)",total:M.totalNegation,messages:M.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Repetition (i meant, still doesnt)",total:M.totalRepetition,messages:M.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Blame (you didnt, stop X-ing)",total:M.totalBlame,messages:M.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(G7,{label:"Avg chars / msg",total:M.totalChars,messages:M.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"h-[200px]",children:_.length===0?R0.jsxDEV(IX,{},void 0,!1,void 0,this):R0.jsxDEV(gD,{data:_,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R,!1,void 0,this)}),F.length===0?R0.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function G7({label:Q,total:J,messages:X,valueClass:q,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=U5.useMemo(()=>{if(X===0)return"-";return N==="rate"?v$(J,X):(J/X).toFixed(0)},[J,X,N]);return R0.jsxDEV("div",{children:[R0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},void 0,!1,void 0,this),R0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),R0.jsxDEV("span",{className:`font-mono text-xs ${q}`,children:S0(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:K},void 0,!1,void 0,this),R0.jsxDEV("span",{className:"font-mono text-xs stats-text-primary",children:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var jX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function gD({data:Q,chartTheme:J}){let X=U5.useMemo(()=>{return{labels:Q.map((N)=>F4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...y2(jX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...y2(jX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...y2(jX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...y2(jX.frustration)}]}},[Q]),q=U5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:RX(J),scales:TP(J)}},[J]);return R0.jsxDEV(f5,{data:X,options:q},void 0,!1,void 0,this)}function hD(Q){if(Q.length===0)return new Map;let J=[...new Set(Q.map((N)=>N.timestamp))].sort((N,K)=>N-K),X=new Map;for(let N of Q){let K=`${N.model}::${N.provider}`,H=X.get(K);if(!H)H=new Map,X.set(K,H);let F=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};F.yelling+=N.yelling,F.profanity+=N.profanity,F.anguish+=N.anguish,F.frustration+=N.negation+N.repetition+N.blame,F.total=F.yelling+F.profanity+F.anguish+F.frustration,H.set(N.timestamp,F)}let q=new Map;for(let[N,K]of X){let H=J.map((F)=>K.get(F)??{timestamp:F,yelling:0,profanity:0,anguish:0,frustration:0,total:0});q.set(N,{data:H})}return q}var t6=n(T1(),1);var K5=n(U0(),1);function pP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["costs",J,X],(H)=>FL(J,H),{pollMs:30000,enabled:Q});return K5.jsxDEV("div",{className:"stats-route-container space-y-6",children:K5.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&K5.jsxDEV(K5.Fragment,{children:[K5.jsxDEV(uD,{costSeries:q.costSeries},void 0,!1,void 0,this),K5.jsxDEV(dD,{costSeries:q.costSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function uD({costSeries:Q}){let J=t6.useMemo(()=>AP(Q),[Q]),X=[{label:"Total Cost",value:R1(J.totalCost)},{label:"Average / Day",value:R1(J.avgDailyCost)},{label:"Top Model",value:J.topModelName||"—",sub:J.topModelName?R1(J.topModelCost):void 0}];return K5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((q)=>K5.jsxDEV(q1,{className:"stats-cost-overview-card py-4 px-5",children:[K5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:q.label},void 0,!1,void 0,this),K5.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:q.value,children:q.value},void 0,!1,void 0,this),q.sub&&K5.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",q.sub]},void 0,!0,void 0,this)]},q.label,!0,void 0,this))},void 0,!1,void 0,this)}var xD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function mD(Q){return{id:"costBarLabels",afterDatasetsDraw(J){let{ctx:X}=J;if(!J.data.datasets[0])return;let N=J.getDatasetMeta(0);X.save(),X.font="11px system-ui, sans-serif",X.fillStyle=Q,X.textAlign="center",X.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let F=`$${Math.round(H)}`,{x:M,y:w}=K.getProps(["x","y"],!0);X.fillText(F,M,w-3)}X.restore()}}}function dD({costSeries:Q}){let[J,X]=t6.useState(!1),q=R5(),N=o1[q],K=t6.useMemo(()=>{if(J)return S$(Q,{rankWeight:(V)=>V.cost,initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total});return WX(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total})},[Q,J]),H=t6.useMemo(()=>{return s4({chartTheme:N,showLegend:J,defaultLabel:"Cost",formatValue:(V)=>`$${V.toFixed(2)}`,footer:(V)=>{if(!J||V.length<2)return;return`Total: $${V.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[N,J]),{sharedScaleBase:F,yScale:M}=t6.useMemo(()=>{return o4({chartTheme:N,formatY:(V)=>`$${Math.round(V)}`})},[N]),w=t6.useMemo(()=>{return mD(xD[q])},[q]),R=t6.useMemo(()=>{if(!J)return null;return{labels:K.labels,datasets:p8(K,(V)=>E$(H1[V%H1.length]))}},[K,J]),_=t6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:F,y:M}}},[H,F,M]),P=t6.useMemo(()=>{if(J)return null;return{labels:K.labels,datasets:p8(K,(V)=>$7(H1[V%H1.length]))}},[K,J]),I=t6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...F,stacked:!0},y:{...M,stacked:!0}},layout:{padding:{top:24}}}},[H,F,M]);return K5.jsxDEV(q1,{title:"Daily Cost",subtitle:"API spending over time",actions:K5.jsxDEV(J7,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:J,onChange:X},void 0,!1,void 0,this),children:K5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?K5.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No cost data available"},void 0,!1,void 0,this):J&&R?K5.jsxDEV(f5,{data:R,options:_},void 0,!1,void 0,this):P?K5.jsxDEV(d8,{data:P,options:I,plugins:[w]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var cP=n(T1(),1);var D1=n(U0(),1);function lP({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=a1(["recent-errors-dense",J,X],(w)=>ML(J,50,w),{pollMs:30000,enabled:Q}),F=cP.useMemo(()=>[{key:"model",header:"Model",render:(w)=>D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:w.model},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:w.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(w)=>Y6(w.timestamp)},{key:"errorMessage",header:"Error Message",render:(w)=>D1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:w.errorMessage||"",children:w.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(w)=>S0(w.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(w)=>R1(w.usage.cost.total,4)}],[]);return D1.jsxDEV("div",{className:"stats-route-container",children:D1.jsxDEV(q1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:D1.jsxDEV(g1,{loading:H,error:K,data:N,emptyText:"No recent failures in the local stats database",children:D1.jsxDEV(K6,{columns:F,data:N||[],keyExtractor:(w)=>w.id||`${w.sessionFile}-${w.entryId}`,onRowClick:(w)=>w.id&&q(w.id),renderMobileCard:(w,R)=>D1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:R,children:[D1.jsxDEV("div",{className:"stats-mobile-card-header",children:[D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.model},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:w.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV(V5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:Y6(w.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:R1(w.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(w.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.errorMessage&&D1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:w.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent failures in the local stats database"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var DX=n(T1(),1);var O0=n(U0(),1);function rP({active:Q,range:J,refreshTrigger:X}){let[q,N]=DX.useState(null),{data:K,error:H,loading:F}=a1(["gain",J,X,q],(M)=>_L(J,q,M),{pollMs:30000,enabled:Q});return O0.jsxDEV("div",{className:"stats-route-container space-y-6",children:O0.jsxDEV(g1,{loading:F,error:H,data:K,children:K&&O0.jsxDEV(O0.Fragment,{children:[O0.jsxDEV(pD,{projects:K.projects,selected:q,onChange:N},void 0,!1,void 0,this),O0.jsxDEV(cD,{overall:K.overall},void 0,!1,void 0,this),O0.jsxDEV(rD,{bySource:K.bySource},void 0,!1,void 0,this),O0.jsxDEV(sD,{timeSeries:K.timeSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function pD({projects:Q,selected:J,onChange:X}){if(Q.length===0)return null;return O0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[O0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),O0.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(q)=>X(q.target.value||null),style:{maxWidth:"480px",flex:1},children:[O0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),Q.map((q)=>O0.jsxDEV("option",{value:q,children:q},q,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cD({overall:Q}){return O0.jsxDEV(q1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:O0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:gK(Q.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:Q.reductionPercent!==null?d1(Q.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:S0(Q.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function lD({title:Q,totals:J}){return O0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[O0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:Q},void 0,!1,void 0,this),O0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:N1(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:gK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:S0(J.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:J.reductionPercent!==null?d1(J.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rD({bySource:Q}){return O0.jsxDEV(q1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:O0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:O0.jsxDEV(lD,{title:"Snapcompact",totals:Q.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var nD={snapcompact:"rgb(34, 197, 94)"};function sD({timeSeries:Q}){let J=R5(),X=o1[J],{data:q,options:N}=DX.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),F={labels:Q.map((_)=>K.format(new Date(`${_.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:Q.map((_)=>_.snapcompact),...E$(nD.snapcompact)}]},{sharedScaleBase:M,yScale:w}=o4({chartTheme:X,formatY:(_)=>N1(_)}),R={responsive:!0,maintainAspectRatio:!1,plugins:s4({chartTheme:X,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:N1}),scales:{x:{...M,stacked:!0},y:{...w,stacked:!0}}};return{data:F,options:R}},[Q,X]);return O0.jsxDEV(q1,{title:"Savings Over Time",subtitle:"Daily token savings",children:O0.jsxDEV("div",{style:{height:240},children:Q.length===0?O0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):O0.jsxDEV(f5,{data:q,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var i4=n(T1(),1);var j0=n(U0(),1);function sP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["models",J,X],(H)=>HL(J,H),{pollMs:30000,enabled:Q});return j0.jsxDEV("div",{className:"stats-route-container space-y-6",children:j0.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&j0.jsxDEV(j0.Fragment,{children:[j0.jsxDEV(oD,{modelSeries:q.modelSeries,timeRange:J},void 0,!1,void 0,this),j0.jsxDEV(iD,{models:q.byModel,performanceSeries:q.modelPerformanceSeries,timeRange:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function oD({modelSeries:Q,timeRange:J}){let X=R5(),q=o1[X],N=Z7(J),K=i4.useMemo(()=>aD(Q),[Q]),H=i4.useMemo(()=>{return{labels:K.data.map((M)=>NJ(M.timestamp,J)),datasets:K.series.map((M,w)=>({label:M,data:K.data.map((R)=>R[M]??0),borderColor:H1[w%H1.length],backgroundColor:`${H1[w%H1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,J]),F=i4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(M)=>{let w=M.dataset.label??"",R=M.parsed.y;return`${w}: ${(R??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},callback:(M)=>`${M}%`},min:0,max:100}}}},[q]);return j0.jsxDEV(q1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:j0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?j0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):j0.jsxDEV(f5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function aD(Q,J=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let _ of Q){let P=`${_.model}::${_.provider}`,I=X.get(P);if(I)I.total+=_.requests;else X.set(P,{model:_.model,provider:_.provider,total:_.requests})}let N=[...X.entries()].map(([_,P])=>({key:_,...P})).sort((_,P)=>P.total-_.total).slice(0,J),K=new Set(N.map((_)=>_.key)),H=new Map;for(let _ of N)H.set(_.model,(H.get(_.model)??0)+1);let F=new Map;for(let _ of N){let P=(H.get(_.model)??0)>1;F.set(_.key,P?`${_.model} (${_.provider})`:_.model)}let M=new Map;for(let _ of Q){let P=`${_.model}::${_.provider}`,I=M.get(_.timestamp)??{timestamp:_.timestamp,total:0};I.total+=_.requests;let A=K.has(P)?F.get(P)??_.model:"Other";I[A]=(I[A]??0)+_.requests,M.set(_.timestamp,I)}let w=N.map((_)=>F.get(_.key)??_.model);if([...M.values()].some((_)=>(_.Other??0)>0))w.push("Other");return{data:[...M.values()].sort((_,P)=>(_.timestamp??0)-(P.timestamp??0)).map((_)=>{let P=_.total??0;for(let I of w)_[I]=P>0?(_[I]??0)/P*100:0;return _}),series:w}}var nP="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function iD({models:Q,performanceSeries:J,timeRange:X}){let[q,N]=i4.useState(null),K=Z7(X),H=i4.useMemo(()=>EP(J,X),[J,X]),F=R5(),M=o1[F],w=i4.useMemo(()=>{return[...Q].sort((R,_)=>_.totalInputTokens+_.totalOutputTokens-(R.totalInputTokens+R.totalOutputTokens))},[Q]);return j0.jsxDEV(zX,{title:"Model Statistics",children:[j0.jsxDEV(_X,{gridTemplate:nP,columns:[{label:"Model"},{label:"Requests",align:"right"},{label:"Cost",align:"right"},{label:"Tokens",align:"right"},{label:"Tokens/s",align:"right"},{label:"TTFT",align:"right"},{label:K.trendLabel,align:"center"}]},void 0,!1,void 0,this),j0.jsxDEV(LX,{children:w.map((R,_)=>{let P=`${R.model}::${R.provider}`,A=H.get(P)?.data??[],V=H1[_%H1.length],O=q===P,D=R.errorRate*100;return j0.jsxDEV(TX,{gridTemplate:nP,isExpanded:O,onToggle:()=>N(O?null:P),cells:[j0.jsxDEV(PX,{model:R.model,provider:R.provider},"name",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.totalRequests.toLocaleString()},"requests",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",R.totalCost.toFixed(2)]},"cost",!0,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(R.totalInputTokens+R.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:A.length===0?j0.jsxDEV(CX,{},void 0,!1,void 0,this):j0.jsxDEV(wX,{timestamps:A.map((h)=>h.timestamp),values:A.map((h)=>h.avgTokensPerSecond??0),color:V},void 0,!1,void 0,this),expandedContent:j0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[j0.jsxDEV("div",{className:"space-y-4 text-sm",children:[j0.jsxDEV("div",{children:[j0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),j0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:D>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[D.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(R.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{children:[j0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),j0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:"font-mono",children:R.avgDuration?`${(R.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:"font-mono",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{className:"h-[200px]",children:A.length===0?j0.jsxDEV(IX,{},void 0,!1,void 0,this):j0.jsxDEV(tD,{data:A,color:V,chartTheme:M,timeRange:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},P,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tD({data:Q,color:J,chartTheme:X,timeRange:q}){let N=i4.useMemo(()=>{return{labels:Q.map((H)=>NJ(H.timestamp,q)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...y2("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...y2(J),yAxisID:"y1"}]}},[Q,J,q]),K=i4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:RX(X),scales:CP(X)}},[X]);return j0.jsxDEV(f5,{data:N,options:K},void 0,!1,void 0,this)}var UJ=n(T1(),1);var oP=n(T1(),1);var B6=n(U0(),1),vX={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function aP({stats:Q}){let J=oP.useMemo(()=>VP(Q),[Q]);if(J.totalTokens===0)return B6.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No token usage in this range"},void 0,!1,void 0,this);return B6.jsxDEV("div",{className:"space-y-4",children:[B6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:J.segments.map((X)=>X.share>0&&B6.jsxDEV("div",{className:"h-full",style:{width:`${X.share*100}%`,background:vX[X.agentType].color},title:`${vX[X.agentType].label}: ${d1(X.share)}`},X.agentType,!1,void 0,this))},void 0,!1,void 0,this),B6.jsxDEV("div",{className:"space-y-2",children:J.segments.map((X)=>B6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[B6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[B6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:vX[X.agentType].color}},void 0,!1,void 0,this),B6.jsxDEV("span",{className:"stats-text-primary truncate",children:vX[X.agentType].label},void 0,!1,void 0,this),B6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[S0(X.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[B6.jsxDEV("span",{className:"stats-text-secondary",children:[N1(X.tokens)," tok"]},void 0,!0,void 0,this),B6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:d1(X.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},X.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K0=n(U0(),1);function iP({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=a1(["overview",J,X],(D)=>BL(J,D),{pollMs:30000,enabled:Q}),{data:F,error:M,loading:w}=a1(["recent-requests",X],(D)=>UX(50,D),{pollMs:30000,enabled:Q}),R=R5(),_=o1[R],P=UJ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let D=N.timeSeries.map((p)=>F4(new Date(p.timestamp),J==="1h"||J==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:D,datasets:[{label:"Requests",data:N.timeSeries.map((p)=>p.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0},{label:"Errors",data:N.timeSeries.map((p)=>p.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0}]}},[N?.timeSeries,J]),I=UJ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:_.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:_.tooltipBackground,titleColor:_.tooltipTitle,bodyColor:_.tooltipBody,borderColor:_.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}}},y:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}},min:0}}}},[_]),A=UJ.useMemo(()=>[{key:"model",header:"Model",render:(D)=>K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(D)=>Y6(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>S0(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>R1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>y5(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>K0.jsxDEV(V5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),V=(D,h)=>K0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[K0.jsxDEV("div",{className:"stats-mobile-card-header",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(V5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:Y6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:R1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:y5(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&K0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O=UJ.useMemo(()=>{if(!F)return[];return F.slice(0,10)},[F]);return K0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[K0.jsxDEV(g1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(kP,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV(q1,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:K0.jsxDEV(g1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(aP,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[K0.jsxDEV("div",{className:"lg:col-span-2",children:K0.jsxDEV(q1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:K0.jsxDEV(g1,{loading:H,error:K,data:N,children:K0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?K0.jsxDEV(f5,{data:P,options:I},void 0,!1,void 0,this):K0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{children:K0.jsxDEV(q1,{title:"Operational Feed",subtitle:"Real-time request log",children:K0.jsxDEV(g1,{loading:w,error:M,data:F,fallback:K0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>K0.jsxDEV("div",{className:"flex items-center gap-3",children:[K0.jsxDEV(N6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1",children:[K0.jsxDEV(N6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),K0.jsxDEV(N6,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this))},void 0,!1,void 0,this),children:K0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[O.map((D)=>{let h=!!D.errorMessage;return K0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>D.id&&q(D.id),children:[K0.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${h?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1 min-w-0",children:[K0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:Y6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[K0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),K0.jsxDEV("div",{children:[D.duration?y5(D.duration):""," ",D.usage?.cost?.total?`· ${R1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&K0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.id||`${D.sessionFile}-${D.entryId}`,!0,void 0,this)}),O.length===0&&K0.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(q1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:K0.jsxDEV("a",{href:`#/requests?range=${J}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:K0.jsxDEV(g1,{loading:w,error:M,data:F,children:K0.jsxDEV(K6,{columns:A,data:O,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&q(D.id),renderMobileCard:V,emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var mK=n(T1(),1);var Y1=n(U0(),1);function tP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["projects",J,X],(w)=>zL(J,w),{pollMs:30000,enabled:Q}),H=mK.useMemo(()=>{if(!q)return[];return jP(q)},[q]),F=mK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>Y1.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:w.folder||"(root)",children:w.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(w)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:S0(w.totalRequests)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${w.requestsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalCost",header:"Cost",numeric:!0,render:(w)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:R1(w.totalCost)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${w.costPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalTokens",header:"Tokens",numeric:!0,render:(w)=>Y1.jsxDEV("div",{className:"font-mono",children:S0(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>Y1.jsxDEV("span",{className:"stats-text-success font-medium",children:d1(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>Y1.jsxDEV(V5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:d1(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>y5(w.avgDuration)}],[]);return Y1.jsxDEV("div",{className:"stats-route-container",children:Y1.jsxDEV(q1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Y1.jsxDEV(g1,{loading:K,error:N,data:q,emptyText:"No project folders recorded for this range.",children:Y1.jsxDEV(K6,{columns:F,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>Y1.jsxDEV("div",{className:"stats-mobile-card",children:[Y1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Y1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),Y1.jsxDEV(V5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[d1(w.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(w.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:R1(w.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(w.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:y5(w.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No project folders recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var g5=n(T1(),1);var m0=n(U0(),1);function eP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["providers",J,X],(H)=>PL(J,H),{pollMs:30000,enabled:Q});return m0.jsxDEV("div",{className:"stats-route-container space-y-6",children:m0.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(eD,{providers:q.providers},void 0,!1,void 0,this),m0.jsxDEV($v,{stats:q},void 0,!1,void 0,this),m0.jsxDEV(Zv,{hourly:q.hourly,providers:q.providers},void 0,!1,void 0,this),m0.jsxDEV(Qv,{insights:q.windowInsights},void 0,!1,void 0,this),m0.jsxDEV(Jv,{usageSeries:q.usageSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function eD({providers:Q}){let J=g5.useMemo(()=>Q.reduce((q,N)=>q+N.totalTokens,0),[Q]);return m0.jsxDEV(q1,{title:"Provider Totals",subtitle:"Token, request, and cost totals per provider over the active range",children:m0.jsxDEV(K6,{columns:[{key:"provider",header:"Provider",render:(q)=>m0.jsxDEV("span",{className:"font-medium",children:q.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(q)=>S0(q.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(q)=>d1(q.totalRequests>0?q.failedRequests/q.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(q)=>S0(q.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:`Input ${N1(q.totalInputTokens)} · Output ${N1(q.totalOutputTokens)} · Cache read ${N1(q.totalCacheReadTokens)} · Cache write ${N1(q.totalCacheWriteTokens)}`,children:N1(q.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(q)=>d1(J>0?q.totalTokens/J:0)},{key:"cost",header:"Cost",numeric:!0,render:(q)=>R1(q.totalCost)},{key:"tps",header:"Tok/s",numeric:!0,render:(q)=>OX(q.avgTokensPerSecond)}],data:Q,keyExtractor:(q)=>q.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function $v({stats:Q}){let[J,X]=g5.useState("tokens"),q=R5(),N=o1[q],K=g5.useMemo(()=>{let w=Q.series.map((R)=>({...R,model:R.provider}));return S$(w,{topN:6,rankWeight:(R)=>J==="tokens"?R.totalTokens:R.cost,initBucket:()=>({total:0}),accumulate:(R,_)=>{R.total+=J==="tokens"?_.totalTokens:_.cost},bucketToValue:(R)=>R.total})},[Q.series,J]),H=J==="tokens"?N1:(w)=>R1(w),F=g5.useMemo(()=>{let{sharedScaleBase:w,yScale:R}=o4({chartTheme:N,formatY:H});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:s4({chartTheme:N,showLegend:!0,defaultLabel:J==="tokens"?"Tokens":"Cost",formatValue:H,footer:(_)=>{if(_.length<2)return;let P=_.reduce((I,A)=>I+(A.parsed.y??0),0);return`Total: ${H(P)}`}}),scales:{x:{...w,stacked:!0},y:{...R,stacked:!0}}}},[N,J,H]),M=g5.useMemo(()=>({labels:K.labels,datasets:p8(K,(w)=>$7(H1[w%H1.length]))}),[K]);return m0.jsxDEV(q1,{title:"Burn by Provider",subtitle:"Stacked token/cost burn per provider over time",actions:m0.jsxDEV(J7,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],value:J,onChange:X},void 0,!1,void 0,this),children:m0.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?m0.jsxDEV(j$,{message:"No provider activity in this range"},void 0,!1,void 0,this):m0.jsxDEV(d8,{data:M,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var dK="__all__";function Zv({hourly:Q,providers:J}){let[X,q]=g5.useState(dK),N=R5(),K=o1[N],{tokensByHour:H,peakHour:F}=g5.useMemo(()=>{let _=Array(24).fill(0);for(let I of Q){if(X!==dK&&I.provider!==X)continue;_[I.hour]+=I.totalTokens}let P=0;for(let I=1;I<24;I++)if(_[I]>_[P])P=I;return{tokensByHour:_,peakHour:P}},[Q,X]),M=H.some((_)=>_>0),w=g5.useMemo(()=>({labels:Array.from({length:24},(_,P)=>`${String(P).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:H,...$7(H1[2]),backgroundColor:H.map((_,P)=>P===F?H1[0]:H1[2])}]}),[H,F]),R=g5.useMemo(()=>{let{sharedScaleBase:_,yScale:P}=o4({chartTheme:K,formatY:N1});return{responsive:!0,maintainAspectRatio:!1,plugins:s4({chartTheme:K,showLegend:!1,defaultLabel:"Tokens",formatValue:N1}),scales:{x:_,y:P}}},[K]);return m0.jsxDEV(q1,{title:"Peak Burn Hours",subtitle:M?`Token burn by local hour of day — peak at ${String(F).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:m0.jsxDEV("select",{className:"stats-select",value:X,onChange:(_)=>q(_.target.value),"aria-label":"Provider",children:[m0.jsxDEV("option",{value:dK,children:"All providers"},void 0,!1,void 0,this),J.map((_)=>m0.jsxDEV("option",{value:_.provider,children:_.provider},_.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:m0.jsxDEV("div",{className:"h-[260px]",children:M?m0.jsxDEV(d8,{data:w,options:R},void 0,!1,void 0,this):m0.jsxDEV(j$,{message:"No activity in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Qv({insights:Q}){return m0.jsxDEV(q1,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:m0.jsxDEV(K6,{columns:[{key:"provider",header:"Provider",render:(X)=>m0.jsxDEV("span",{className:"font-medium",children:X.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(X)=>X.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(X)=>S0(X.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:X.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:X.estTokensPerWindow!==null?N1(X.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:d1(X.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:X.idealAccounts>X.accounts?"stats-text-warning font-semibold":void 0,children:[S0(X.idealAccounts),X.idealAccounts>X.accounts?` (have ${X.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(X)=>m0.jsxDEV("span",{className:X.exhaustedEvents>0?"stats-text-warning":void 0,children:S0(X.exhaustedEvents)},void 0,!1,void 0,this)}],data:Q,keyExtractor:(X)=>`${X.provider}::${X.windowKey}`,emptyText:"No usage snapshots recorded yet — they accumulate whenever usage is fetched (TUI footer, /usage, omp usage)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var pK={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function Jv({usageSeries:Q}){let J=g5.useMemo(()=>[...new Set(Q.map((R)=>R.provider))],[Q]),[X,q]=g5.useState(null),N=X!==null&&J.includes(X)?X:J[0]??null,K=R5(),H=o1[K],F=g5.useMemo(()=>{return Q.filter((R)=>R.provider===N).map((R)=>{let _=[...R.points].reverse().find((P)=>P.usedFraction!==null);return _?{label:`${R.windowLabel} · ${R.accountLabel}`,fraction:_.usedFraction??0,exhausted:_.exhausted,recordedAt:_.timestamp}:null}).filter((R)=>R!==null).sort((R,_)=>_.fraction-R.fraction)},[Q,N]),M=g5.useMemo(()=>({labels:F.map((R)=>R.label),datasets:[{label:"Used",data:F.map((R)=>R.fraction*100),backgroundColor:F.map((R)=>R.exhausted?pK.exhausted:R.fraction>=0.8?pK.warning:pK.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[F]),w=g5.useMemo(()=>{let{sharedScaleBase:R,yScale:_}=o4({chartTheme:H,formatY:(A)=>`${Math.round(A)}%`}),P=Math.max(100,...F.map((A)=>A.fraction*100)),I=s4({chartTheme:H,showLegend:!1,defaultLabel:"Used",formatValue:(A)=>`${A.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...I,tooltip:{...I.tooltip,callbacks:{label:(A)=>{let V=F[A.dataIndex],O=`${(A.parsed.x??0).toFixed(1)}% used`;return V?`${O} · recorded ${Y6(V.recordedAt)}`:O}}}},scales:{x:{..._,max:P},y:{...R,grid:{display:!1}}}}},[H,F]);return m0.jsxDEV(q1,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:J.length>1?m0.jsxDEV("select",{className:"stats-select",value:N??"",onChange:(R)=>q(R.target.value),"aria-label":"Provider",children:J.map((R)=>m0.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:m0.jsxDEV("div",{style:{height:Math.max(160,F.length*34+60)},children:F.length===0?m0.jsxDEV(j$,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):m0.jsxDEV(d8,{data:M,options:w},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var $T=n(T1(),1);var z1=n(U0(),1);function ZT({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=a1(["recent-requests-dense",J],(M)=>UX(50,M),{pollMs:30000,enabled:Q}),H=$T.useMemo(()=>[{key:"model",header:"Model",render:(M)=>z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:M.model},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(M)=>Y6(M.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(M)=>S0(M.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(M)=>R1(M.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(M)=>y5(M.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(M)=>z1.jsxDEV(V5,{variant:M.errorMessage?"danger":"success",children:M.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return z1.jsxDEV("div",{className:"stats-route-container",children:z1.jsxDEV(q1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:z1.jsxDEV(g1,{loading:K,error:N,data:q,children:z1.jsxDEV(K6,{columns:H,data:q||[],keyExtractor:(M)=>M.id||`${M.sessionFile}-${M.entryId}`,onRowClick:(M)=>M.id&&X(M.id),renderMobileCard:(M,w)=>z1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,children:[z1.jsxDEV("div",{className:"stats-mobile-card-header",children:[z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.model},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV(V5,{variant:M.errorMessage?"danger":"success",children:M.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:Y6(M.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:R1(M.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(M.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:y5(M.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M.errorMessage&&z1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:M.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var e6=n(T1(),1);var e=n(U0(),1);function QT({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["tools",J,X],(H)=>LL(J,H),{pollMs:30000,enabled:Q});return e.jsxDEV("div",{className:"stats-route-container space-y-6",children:e.jsxDEV(g1,{loading:K,error:N,data:q,emptyText:"No tool calls recorded for this range.",children:q&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(Gv,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(Yv,{series:q.series,timeRange:J},void 0,!1,void 0,this),e.jsxDEV(Nv,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(Uv,{byToolModel:q.byToolModel},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Gv({byTool:Q}){let J=e6.useMemo(()=>{let X=0,q=0,N=0,K=0,H=0,F=0,M=0;for(let w of Q)X+=w.calls,q+=w.errors,N+=w.totalTokensShare,K+=w.outputTokensShare,H+=w.costShare,F+=w.resultChars,M+=w.argsChars;return{calls:X,errors:q,tokens:N,output:K,cost:H,resultChars:F,argsChars:M,tools:Q.length}},[Q]);return e.jsxDEV(q1,{title:"Tool Usage",subtitle:"Tokens/cost are the invoking turns' real provider usage, split across each turn's tool calls",children:e.jsxDEV("div",{className:"stats-metric-cluster",children:[e.jsxDEV("div",{className:"stats-metric-primary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(J.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(J.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:d1(J.calls>0?J.errors/J.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:R1(J.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:N1(Math.round(J.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:N1(Math.round(J.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[N1(J.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[N1(J.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Xv=6;function qv(Q){let J=new Map;for(let w of Q)J.set(w.tool,(J.get(w.tool)??0)+w.calls);let X=[...J.entries()].sort((w,R)=>R[1]-w[1]),q=X.slice(0,Xv).map(([w])=>w),N=new Set(q),H=X.length>q.length?[...q,"Other"]:q,F=[...new Set(Q.map((w)=>w.timestamp))].sort((w,R)=>w-R),M=new Map;for(let w of F)M.set(w,{});for(let w of Q){let R=N.has(w.tool)?w.tool:"Other",_=M.get(w.timestamp);if(_)_[R]=(_[R]??0)+w.calls}return{buckets:F,tools:H,data:M}}function Yv({series:Q,timeRange:J}){let X=R5(),q=o1[X],N=Z7(J),K=e6.useMemo(()=>qv(Q),[Q]),H=e6.useMemo(()=>({labels:K.buckets.map((M)=>NJ(M,J)),datasets:K.tools.map((M,w)=>({label:M,data:K.buckets.map((R)=>K.data.get(R)?.[M]??0),borderColor:H1[w%H1.length],backgroundColor:`${H1[w%H1.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[K,J]),F=e6.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(M)=>`${M.dataset.label??""}: ${S0(M.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},precision:0},min:0}}}),[q]);return e.jsxDEV(q1,{title:"Calls Over Time",subtitle:`Tool calls over ${N.windowLabel}, stacked by tool`,children:e.jsxDEV("div",{className:"h-[280px]",children:K.buckets.length===0?e.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):e.jsxDEV(f5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function cK(Q){return Q>0.1?"danger":Q>0?"warning":"success"}function Nv({byTool:Q}){let J=e6.useMemo(()=>DP(Q),[Q]),X=e6.useMemo(()=>[{key:"tool",header:"Tool",render:(N)=>e.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:N.tool,children:N.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(N)=>e.jsxDEV("div",{className:"stats-text-right",children:[e.jsxDEV("div",{className:"font-mono",children:S0(N.calls)},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:e.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${N.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(N)=>e.jsxDEV(V5,{variant:cK(N.errorRate),children:d1(N.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:N1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",children:R1(N.costShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:N1(N.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"stats-text-secondary",children:Y6(N.lastUsed)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Tool",subtitle:"Usage per tool, most called first",children:e.jsxDEV(K6,{columns:X,data:J,keyExtractor:(N)=>N.tool,renderMobileCard:(N)=>e.jsxDEV("div",{className:"stats-mobile-card",children:[e.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[e.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:N.tool},void 0,!1,void 0,this),e.jsxDEV(V5,{variant:cK(N.errorRate),children:[d1(N.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-grid",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(N.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:N1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:R1(N.costShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:N1(N.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Uv({byToolModel:Q}){let[J,X]=e6.useState(null),q=e6.useMemo(()=>[...new Set(Q.map((H)=>H.tool))].sort(),[Q]),N=e6.useMemo(()=>{return(J?Q.filter((F)=>F.tool===J):Q).map((F)=>({...F,errorRate:F.calls>0?F.errors/F.calls:0}))},[Q,J]),K=e6.useMemo(()=>[{key:"tool",header:"Tool",render:(H)=>e.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:H.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(H)=>e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-text-primary",children:H.model||"(unknown)"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-text-secondary text-xs",children:H.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:S0(H.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(H)=>e.jsxDEV(V5,{variant:cK(H.errorRate),children:d1(H.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:N1(Math.round(H.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:R1(H.costShare)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Model",subtitle:"Which models call which tools",children:[e.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[e.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),e.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(H)=>X(H.target.value||null),style:{maxWidth:"320px",flex:1},children:[e.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),q.map((H)=>e.jsxDEV("option",{value:H,children:H},H,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV(K6,{columns:K,data:N,keyExtractor:(H)=>`${H.tool}::${H.model}::${H.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var A5=n(U0(),1);function lK(){let{section:Q,setSection:J,range:X,setRange:q}=kL(),[N,K]=g2.useState(0),[H,F]=g2.useState(null),[M,w]=g2.useState(()=>Date.now()),R=g2.useCallback((V)=>{if(V.success)K((O)=>O+1),w(Date.now())},[]),_=g2.useCallback(()=>F(null),[]),P=Q,I=g2.useRef(new Set);I.current.add(P);let A=(V)=>{let O=V===P;switch(V){case"overview":return A5.jsxDEV(iP,{active:O,range:X,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"requests":return A5.jsxDEV(ZT,{active:O,range:X,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"errors":return A5.jsxDEV(lP,{active:O,range:X,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"models":return A5.jsxDEV(sP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"providers":return A5.jsxDEV(eP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"tools":return A5.jsxDEV(QT,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return A5.jsxDEV(pP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return A5.jsxDEV(dP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return A5.jsxDEV(tP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return A5.jsxDEV(rP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return A5.jsxDEV(A5.Fragment,{children:[A5.jsxDEV(vL,{activeSection:P,onSectionChange:J,range:X,onRangeChange:q,updatedAt:M,onSyncComplete:R,children:[...I.current].map((V)=>A5.jsxDEV("div",{hidden:V!==P,children:A(V)},V,!1,void 0,this))},void 0,!1,void 0,this),A5.jsxDEV(yP,{id:H,onClose:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var GT=n(U0(),1),Kv=JT.createRoot(document.getElementById("root"));Kv.render(GT.jsxDEV(lK,{},void 0,!1,void 0,this));
|
|
257
|
+
`);return Q}function TS(Q,J){let{element:X,datasetIndex:q,index:N}=J,K=Q.getDatasetMeta(q).controller,{label:H,value:F}=K.getLabelAndValue(N);return{chart:Q,label:H,parsed:K.getParsed(N),raw:Q.data.datasets[q].data[N],formattedValue:F,dataset:K.getDataset(),dataIndex:N,datasetIndex:q,element:X}}function N_(Q,J){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:F}=J,M=X5(J.bodyFont),w=X5(J.titleFont),R=X5(J.footerFont),_=K.length,P=N.length,I=q.length,A=I5(J.padding),V=A.height,O=0,D=q.reduce((s,a)=>s+a.before.length+a.lines.length+a.after.length,0);if(D+=Q.beforeBody.length+Q.afterBody.length,_)V+=_*w.lineHeight+(_-1)*J.titleSpacing+J.titleMarginBottom;if(D){let s=J.displayColors?Math.max(F,M.lineHeight):M.lineHeight;V+=I*s+(D-I)*M.lineHeight+(D-1)*J.bodySpacing}if(P)V+=J.footerMarginTop+P*R.lineHeight+(P-1)*J.footerSpacing;let h=0,p=function(s){O=Math.max(O,X.measureText(s).width+h)};return X.save(),X.font=w.string,W1(Q.title,p),X.font=M.string,W1(Q.beforeBody.concat(Q.afterBody),p),h=J.displayColors?H+2+J.boxPadding:0,W1(q,(s)=>{W1(s.before,p),W1(s.lines,p),W1(s.after,p)}),h=0,X.font=R.string,W1(Q.footer,p),X.restore(),O+=A.width,{width:O,height:V}}function CS(Q,J){let{y:X,height:q}=J;if(X<q/2)return"top";else if(X>Q.height-q/2)return"bottom";return"center"}function IS(Q,J,X,q){let{x:N,width:K}=q,H=X.caretSize+X.caretPadding;if(Q==="left"&&N+K+H>J.width)return!0;if(Q==="right"&&N-K-H<0)return!0}function OS(Q,J,X,q){let{x:N,width:K}=X,{width:H,chartArea:{left:F,right:M}}=Q,w="center";if(q==="center")w=N<=(F+M)/2?"left":"right";else if(N<=K/2)w="left";else if(N>=H-K/2)w="right";if(IS(w,Q,J,X))w="center";return w}function U_(Q,J,X){let q=X.yAlign||J.yAlign||CS(Q,X);return{xAlign:X.xAlign||J.xAlign||OS(Q,J,X,q),yAlign:q}}function VS(Q,J){let{x:X,width:q}=Q;if(J==="right")X-=q;else if(J==="center")X-=q/2;return X}function AS(Q,J,X){let{y:q,height:N}=Q;if(J==="top")q+=X;else if(J==="bottom")q-=N+X;else q-=N/2;return q}function K_(Q,J,X,q){let{caretSize:N,caretPadding:K,cornerRadius:H}=Q,{xAlign:F,yAlign:M}=X,w=N+K,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:I}=g8(H),A=VS(J,F),V=AS(J,M,w);if(M==="center"){if(F==="left")A+=w;else if(F==="right")A-=w}else if(F==="left")A-=Math.max(R,P)+N;else if(F==="right")A+=Math.max(_,I)+N;return{x:J6(A,0,q.width-J.width),y:J6(V,0,q.height-J.height)}}function i3(Q,J,X){let q=I5(X.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-q.right:Q.x+q.left}function B_(Q){return l4([],D2(Q))}function ES(Q,J,X){return S2(Q,{tooltip:J,tooltipItems:X,type:"tooltip"})}function H_(Q,J){let X=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return X?Q.override(X):Q}var s_={beforeTitle:c4,title(Q){if(Q.length>0){let J=Q[0],X=J.chart.data.labels,q=X?X.length:0;if(this&&this.options&&this.options.mode==="dataset")return J.dataset.label||"";else if(J.label)return J.label;else if(q>0&&J.dataIndex<q)return X[J.dataIndex]}return""},afterTitle:c4,beforeBody:c4,beforeLabel:c4,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let J=Q.dataset.label||"";if(J)J+=": ";let X=Q.formattedValue;if(!J1(X))J+=X;return J},labelColor(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderWidth:X.borderWidth,borderDash:X.borderDash,borderDashOffset:X.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:X.pointStyle,rotation:X.rotation}},afterLabel:c4,afterBody:c4,beforeFooter:c4,footer:c4,afterFooter:c4};function X6(Q,J,X,q){let N=Q[J].call(X,q);if(typeof N>"u")return s_[J].call(X,q);return N}class YK extends v2{static positioners=EQ;constructor(Q){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=Q.chart,this.options=Q.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(Q){this.options=Q,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let Q=this._cachedAnimations;if(Q)return Q;let J=this.chart,X=this.options.setContext(this.getContext()),q=X.enabled&&J.options.animation&&X.animations,N=new KK(this.chart,q);if(q._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=ES(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:X}=J,q=X6(X,"beforeTitle",this,Q),N=X6(X,"title",this,Q),K=X6(X,"afterTitle",this,Q),H=[];return H=l4(H,D2(q)),H=l4(H,D2(N)),H=l4(H,D2(K)),H}getBeforeBody(Q,J){return B_(X6(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:X}=J,q=[];return W1(Q,(N)=>{let K={before:[],lines:[],after:[]},H=H_(X,N);l4(K.before,D2(X6(H,"beforeLabel",this,N))),l4(K.lines,X6(H,"label",this,N)),l4(K.after,D2(X6(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,J){return B_(X6(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:X}=J,q=X6(X,"beforeFooter",this,Q),N=X6(X,"footer",this,Q),K=X6(X,"afterFooter",this,Q),H=[];return H=l4(H,D2(q)),H=l4(H,D2(N)),H=l4(H,D2(K)),H}_createItems(Q){let J=this._active,X=this.chart.data,q=[],N=[],K=[],H=[],F,M;for(F=0,M=J.length;F<M;++F)H.push(TS(this.chart,J[F]));if(Q.filter)H=H.filter((w,R,_)=>Q.filter(w,R,_,X));if(Q.itemSort)H=H.sort((w,R)=>Q.itemSort(w,R,X));return W1(H,(w)=>{let R=H_(Q.callbacks,w);q.push(X6(R,"labelColor",this,w)),N.push(X6(R,"labelPointStyle",this,w)),K.push(X6(R,"labelTextColor",this,w))}),this.labelColors=q,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(Q,J){let X=this.options.setContext(this.getContext()),q=this._active,N,K=[];if(!q.length){if(this.opacity!==0)N={opacity:0}}else{let H=EQ[X.position].call(this,q,this._eventPosition);K=this._createItems(X),this.title=this.getTitle(K,X),this.beforeBody=this.getBeforeBody(K,X),this.body=this.getBody(K,X),this.afterBody=this.getAfterBody(K,X),this.footer=this.getFooter(K,X);let F=this._size=N_(this,X),M=Object.assign({},H,F),w=U_(this.chart,X,M),R=K_(X,M,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,N={opacity:1,x:R.x,y:R.y,width:F.width,height:F.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(Q&&X.external)X.external.call(this,{chart:this.chart,tooltip:this,replay:J})}drawCaret(Q,J,X,q){let N=this.getCaretPosition(Q,X,q);J.lineTo(N.x1,N.y1),J.lineTo(N.x2,N.y2),J.lineTo(N.x3,N.y3)}getCaretPosition(Q,J,X){let{xAlign:q,yAlign:N}=this,{caretSize:K,cornerRadius:H}=X,{topLeft:F,topRight:M,bottomLeft:w,bottomRight:R}=g8(H),{x:_,y:P}=Q,{width:I,height:A}=J,V,O,D,h,p,s;if(N==="center"){if(p=P+A/2,q==="left")V=_,O=V-K,h=p+K,s=p-K;else V=_+I,O=V+K,h=p-K,s=p+K;D=V}else{if(q==="left")O=_+Math.max(F,w)+K;else if(q==="right")O=_+I-Math.max(M,R)-K;else O=this.caretX;if(N==="top")h=P,p=h-K,V=O-K,D=O+K;else h=P+A,p=h+K,V=O+K,D=O-K;s=h}return{x1:V,x2:O,x3:D,y1:h,y2:p,y3:s}}drawTitle(Q,J,X){let q=this.title,N=q.length,K,H,F;if(N){let M=m7(X.rtl,this.x,this.width);Q.x=i3(this,X.titleAlign,X),J.textAlign=M.textAlign(X.titleAlign),J.textBaseline="middle",K=X5(X.titleFont),H=X.titleSpacing,J.fillStyle=X.titleColor,J.font=K.string;for(F=0;F<N;++F)if(J.fillText(q[F],M.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,F+1===N)Q.y+=X.titleMarginBottom-H}}_drawColorBox(Q,J,X,q,N){let K=this.labelColors[X],H=this.labelPointStyles[X],{boxHeight:F,boxWidth:M}=N,w=X5(N.bodyFont),R=i3(this,"left",N),_=q.x(R),P=F<w.lineHeight?(w.lineHeight-F)/2:0,I=J.y+P;if(N.usePointStyle){let A={radius:Math.min(M,F)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},V=q.leftForLtr(_,M)+M/2,O=I+F/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,p3(Q,A,V,O),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,p3(Q,A,V,O)}else{Q.lineWidth=$1(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,Q.strokeStyle=K.borderColor,Q.setLineDash(K.borderDash||[]),Q.lineDashOffset=K.borderDashOffset||0;let A=q.leftForLtr(_,M),V=q.leftForLtr(q.xPlus(_,1),M-2),O=g8(K.borderRadius);if(Object.values(O).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,_$(Q,{x:A,y:I,w:M,h:F,radius:O}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),_$(Q,{x:V,y:I+1,w:M-2,h:F-2,radius:O}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(A,I,M,F),Q.strokeRect(A,I,M,F),Q.fillStyle=K.backgroundColor,Q.fillRect(V,I+1,M-2,F-2)}Q.fillStyle=this.labelTextColors[X]}drawBody(Q,J,X){let{body:q}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:F,boxWidth:M,boxPadding:w}=X,R=X5(X.bodyFont),_=R.lineHeight,P=0,I=m7(X.rtl,this.x,this.width),A=function(t){J.fillText(t,I.x(Q.x+P),Q.y+_/2),Q.y+=_+N},V=I.textAlign(K),O,D,h,p,s,a,J0;J.textAlign=K,J.textBaseline="middle",J.font=R.string,Q.x=i3(this,V,X),J.fillStyle=X.bodyColor,W1(this.beforeBody,A),P=H&&V!=="right"?K==="center"?M/2+w:M+2+w:0;for(p=0,a=q.length;p<a;++p){if(O=q[p],D=this.labelTextColors[p],J.fillStyle=D,W1(O.before,A),h=O.lines,H&&h.length)this._drawColorBox(J,Q,p,I,X),_=Math.max(R.lineHeight,F);for(s=0,J0=h.length;s<J0;++s)A(h[s]),_=R.lineHeight;W1(O.after,A)}P=0,_=R.lineHeight,W1(this.afterBody,A),Q.y-=N}drawFooter(Q,J,X){let q=this.footer,N=q.length,K,H;if(N){let F=m7(X.rtl,this.x,this.width);Q.x=i3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,J.textAlign=F.textAlign(X.footerAlign),J.textBaseline="middle",K=X5(X.footerFont),J.fillStyle=X.footerColor,J.font=K.string;for(H=0;H<N;++H)J.fillText(q[H],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+X.footerSpacing}}drawBackground(Q,J,X,q){let{xAlign:N,yAlign:K}=this,{x:H,y:F}=Q,{width:M,height:w}=X,{topLeft:R,topRight:_,bottomLeft:P,bottomRight:I}=g8(q.cornerRadius);if(J.fillStyle=q.backgroundColor,J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.beginPath(),J.moveTo(H+R,F),K==="top")this.drawCaret(Q,J,X,q);if(J.lineTo(H+M-_,F),J.quadraticCurveTo(H+M,F,H+M,F+_),K==="center"&&N==="right")this.drawCaret(Q,J,X,q);if(J.lineTo(H+M,F+w-I),J.quadraticCurveTo(H+M,F+w,H+M-I,F+w),K==="bottom")this.drawCaret(Q,J,X,q);if(J.lineTo(H+P,F+w),J.quadraticCurveTo(H,F+w,H,F+w-P),K==="center"&&N==="left")this.drawCaret(Q,J,X,q);if(J.lineTo(H,F+R),J.quadraticCurveTo(H,F,H+R,F),J.closePath(),J.fill(),q.borderWidth>0)J.stroke()}_updateAnimationTarget(Q){let J=this.chart,X=this.$animations,q=X&&X.x,N=X&&X.y;if(q||N){let K=EQ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=N_(this,Q),F=Object.assign({},K,this._size),M=U_(J,Q,F),w=K_(Q,F,M,J);if(q._to!==w.x||N._to!==w.y)this.xAlign=M.xAlign,this.yAlign=M.yAlign,this.width=H.width,this.height=H.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,w)}}_willRender(){return!!this.opacity}draw(Q){let J=this.options.setContext(this.getContext()),X=this.opacity;if(!X)return;this._updateAnimationTarget(J);let q={width:this.width,height:this.height},N={x:this.x,y:this.y};X=Math.abs(X)<0.001?0:X;let K=I5(J.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(J.enabled&&H)Q.save(),Q.globalAlpha=X,this.drawBackground(N,Q,q,J),xU(Q,J.textDirection),N.y+=K.top,this.drawTitle(N,Q,J),this.drawBody(N,Q,J),this.drawFooter(N,Q,J),mU(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let X=this._active,q=Q.map(({datasetIndex:H,index:F})=>{let M=this.chart.getDatasetMeta(H);if(!M)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:M.data[F],index:F}}),N=!wQ(X,q),K=this._positionChanged(q,J);if(N||K)this._active=q,this._eventPosition=J,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,J,X=!0){if(J&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let q=this.options,N=this._active||[],K=this._getActiveElements(Q,N,J,X),H=this._positionChanged(K,Q),F=J||!wQ(K,N)||H;if(F){if(this._active=K,q.enabled||q.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return F}_getActiveElements(Q,J,X,q){let N=this.options;if(Q.type==="mouseout")return[];if(!q)return J.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(Q,N.mode,N,X);if(N.reverse)K.reverse();return K}_positionChanged(Q,J){let{caretX:X,caretY:q,options:N}=this,K=EQ[N.position].call(this,Q,J);return K!==!1&&(X!==K.x||q!==K.y)}}var o_={id:"tooltip",_element:YK,positioners:EQ,afterInit(Q,J,X){if(X)Q.tooltip=new YK({chart:Q,options:X})},beforeUpdate(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},reset(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},afterDraw(Q){let J=Q.tooltip;if(J&&J._willRender()){let X={tooltip:J};if(Q.notifyPlugins("beforeTooltipDraw",{...X,cancelable:!0})===!1)return;J.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",X)}},afterEvent(Q,J){if(Q.tooltip){let X=J.replay;if(Q.tooltip.handleEvent(J.event,X,J.inChartArea))J.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(Q,J)=>J.bodyFont.size,boxWidth:(Q,J)=>J.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:s_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(Q)=>Q!=="filter"&&Q!=="itemSort"&&Q!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var SS=(Q,J,X,q)=>{if(typeof J==="string")X=Q.push(J)-1,q.unshift({index:X,label:J});else if(isNaN(J))X=null;return X};function jS(Q,J,X,q){let N=Q.indexOf(J);if(N===-1)return SS(Q,J,X,q);let K=Q.lastIndexOf(J);return N!==K?X:N}var DS=(Q,J)=>Q===null?null:J6(Math.round(Q),0,J);function F_(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class _K extends c7{static id="category";static defaults={ticks:{callback:F_}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let J=this._addedLabels;if(J.length){let X=this.getLabels();for(let{index:q,label:N}of J)if(X[q]===N)X.splice(q,1);this._addedLabels=[]}super.init(Q)}parse(Q,J){if(J1(Q))return null;let X=this.getLabels();return J=isFinite(J)&&X[J]===Q?J:jS(X,Q,n0(J,Q),this._addedLabels),DS(J,X.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),{min:X,max:q}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)X=0;if(!J)q=this.getLabels().length-1}this.min=X,this.max=q}buildTicks(){let Q=this.min,J=this.max,X=this.options.offset,q=[],N=this.getLabels();N=Q===0&&J===N.length-1?N:N.slice(Q,J+1),this._valueRange=Math.max(N.length-(X?0:1),1),this._startValue=this.min-(X?0.5:0);for(let K=Q;K<=J;K++)q.push({value:K});return q}getLabelForValue(Q){return F_.call(this,Q)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(Q){if(typeof Q!=="number")Q=this.parse(Q);return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function vS(Q,J){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:F,precision:M,count:w,maxTicks:R,maxDigits:_,includeBounds:P}=Q,I=K||1,A=R-1,{min:V,max:O}=J,D=!J1(H),h=!J1(F),p=!J1(w),s=(O-V)/(_+1),a=PU((O-V)/A/I)*I,J0,t,i,Y0;if(a<0.00000000000001&&!D&&!h)return[{value:V},{value:O}];if(Y0=Math.ceil(O/a)-Math.floor(V/a),Y0>A)a=PU(Y0*a/A/I)*I;if(!J1(M))J0=Math.pow(10,M),a=Math.ceil(a*J0)/J0;if(N==="ticks")t=Math.floor(V/a)*a,i=Math.ceil(O/a)*a;else t=V,i=O;if(D&&h&&K&&eR((F-H)/K,a/1000))Y0=Math.round(Math.min((F-H)/a,R)),a=(F-H)/Y0,t=H,i=F;else if(p)t=D?H:t,i=h?F:i,Y0=w-1,a=(i-t)/Y0;else if(Y0=(i-t)/a,R$(Y0,Math.round(Y0),a/1000))Y0=Math.round(Y0);else Y0=Math.ceil(Y0);let d=Math.max(CU(a),CU(t));J0=Math.pow(10,J1(M)?d:M),t=Math.round(t*J0)/J0,i=Math.round(i*J0)/J0;let H0=0;if(D){if(P&&t!==H){if(X.push({value:H}),t<H)H0++;if(R$(Math.round((t+H0*a)*J0)/J0,H,M_(H,s,Q)))H0++}else if(t<H)H0++}for(;H0<Y0;++H0){let P0=Math.round((t+H0*a)*J0)/J0;if(h&&P0>F)break;X.push({value:P0})}if(h&&P&&i!==F)if(X.length&&R$(X[X.length-1].value,F,M_(F,s,Q)))X[X.length-1].value=F;else X.push({value:F});else if(!h||i===F)X.push({value:i});return X}function M_(Q,J,{horizontal:X,minRotation:q}){let N=A2(q),K=(X?Math.sin(N):Math.cos(N))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class jQ extends c7{constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(Q,J){if(J1(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:J,maxDefined:X}=this.getUserBounds(),{min:q,max:N}=this,K=(F)=>q=J?q:F,H=(F)=>N=X?N:F;if(Q){let F=H4(q),M=H4(N);if(F<0&&M<0)H(0);else if(F>0&&M>0)K(0)}if(q===N){let F=N===0?1:Math.abs(N*0.05);if(H(N+F),!Q)K(q-F)}this.min=q,this.max=N}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:J,stepSize:X}=Q,q;if(X){if(q=Math.ceil(this.max/X)-Math.floor(this.min/X)+1,q>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${X} would result generating up to ${q} ticks. Limiting to 1000.`),q=1000}else q=this.computeTickLimit(),J=J||11;if(J)q=Math.min(J,q);return q}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,J=Q.ticks,X=this.getTickLimit();X=Math.max(2,X);let q={maxTicks:X,bounds:Q.bounds,min:Q.min,max:Q.max,precision:J.precision,step:J.stepSize,count:J.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:J.minRotation||0,includeBounds:J.includeBounds!==!1},N=this._range||this,K=vS(q,N);if(Q.bounds==="ticks")TU(K,this,"value");if(Q.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let Q=this.ticks,J=this.min,X=this.max;if(super.configure(),this.options.offset&&Q.length){let q=(X-J)/Math.max(Q.length-1,1)/2;J-=q,X+=q}this._startValue=J,this._endValue=X,this._valueRange=X-J}getLabelForValue(Q){return m3(Q,this.chart.options.locale,this.options.ticks.format)}}class LK extends jQ{static id="linear";static defaults={ticks:{callback:RQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=x1(Q)?Q:0,this.max=x1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,X=A2(this.options.ticks.minRotation),q=(Q?Math.sin(X):Math.cos(X))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(J/Math.min(40,N.lineHeight/q))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var DQ=(Q)=>Math.floor(V2(Q)),p7=(Q,J)=>Math.pow(10,DQ(Q)+J);function W_(Q){return Q/Math.pow(10,DQ(Q))===1}function w_(Q,J,X){let q=Math.pow(10,X),N=Math.floor(Q/q);return Math.ceil(J/q)-N}function bS(Q,J){let X=J-Q,q=DQ(X);while(w_(Q,J,q)>10)q++;while(w_(Q,J,q)<10)q--;return Math.min(q,DQ(Q))}function kS(Q,{min:J,max:X}){J=G6(Q.min,J);let q=[],N=DQ(J),K=bS(J,X),H=K<0?Math.pow(10,Math.abs(K)):1,F=Math.pow(10,K),M=N>K?Math.pow(10,N):0,w=Math.round((J-M)*H)/H,R=Math.floor((J-M)/F/10)*F*10,_=Math.floor((w-R)/Math.pow(10,K)),P=G6(Q.min,Math.round((M+R+_*Math.pow(10,K))*H)/H);while(P<X){if(q.push({value:P,major:W_(P),significand:_}),_>=10)_=_<15?15:20;else _++;if(_>=20)K++,_=2,H=K>=0?1:H;P=Math.round((M+R+_*Math.pow(10,K))*H)/H}let I=G6(Q.max,P);return q.push({value:I,major:W_(I),significand:_}),q}class fS extends c7{static id="logarithmic";static defaults={ticks:{callback:RQ.formatters.logarithmic,major:{enabled:!0}}};constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(Q,J){let X=jQ.prototype.parse.apply(this,[Q,J]);if(X===0){this._zero=!0;return}return x1(X)&&X>0?X:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=x1(Q)?Math.max(0,Q):null,this.max=x1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!x1(this._userMin))this.min=Q===p7(this.min,0)?p7(this.min,-1):p7(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),X=this.min,q=this.max,N=(H)=>X=Q?X:H,K=(H)=>q=J?q:H;if(X===q)if(X<=0)N(1),K(10);else N(p7(X,-1)),K(p7(q,1));if(X<=0)N(p7(q,-1));if(q<=0)K(p7(X,1));this.min=X,this.max=q}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},X=kS(J,this);if(Q.bounds==="ticks")TU(X,this,"value");if(Q.reverse)X.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return X}getLabelForValue(Q){return Q===void 0?"0":m3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=V2(Q),this._valueRange=V2(this.max)-V2(Q)}getPixelForValue(Q){if(Q===void 0||Q===0)Q=this.min;if(Q===null||isNaN(Q))return NaN;return this.getPixelForDecimal(Q===this.min?0:(V2(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function NK(Q){let J=Q.ticks;if(J.display&&Q.display){let X=I5(J.backdropPadding);return n0(J.font&&J.font.size,m1.font.size)+X.height}return 0}function yS(Q,J,X){return X=j1(X)?X:[X],{w:Hz(Q,J.string,X),h:X.length*J.lineHeight}}function R_(Q,J,X,q,N){if(Q===q||Q===N)return{start:J-X/2,end:J+X/2};else if(Q<q||Q>N)return{start:J-X,end:J};return{start:J,end:J+X}}function gS(Q){let J={l:Q.left+Q._padding.left,r:Q.right-Q._padding.right,t:Q.top+Q._padding.top,b:Q.bottom-Q._padding.bottom},X=Object.assign({},J),q=[],N=[],K=Q._pointLabels.length,H=Q.options.pointLabels,F=H.centerPointLabels?s1/K:0;for(let M=0;M<K;M++){let w=H.setContext(Q.getPointLabelContext(M));N[M]=w.padding;let R=Q.getPointPosition(M,Q.drawingArea+N[M],F),_=X5(w.font),P=yS(Q.ctx,_,Q._pointLabels[M]);q[M]=P;let I=$6(Q.getIndexAngle(M)+F),A=Math.round(h3(I)),V=R_(A,R.x,P.w,0,180),O=R_(A,R.y,P.h,90,270);hS(X,J,I,V,O)}Q.setCenterPoint(J.l-X.l,X.r-J.r,J.t-X.t,X.b-J.b),Q._pointLabelItems=mS(Q,q,N)}function hS(Q,J,X,q,N){let K=Math.abs(Math.sin(X)),H=Math.abs(Math.cos(X)),F=0,M=0;if(q.start<J.l)F=(J.l-q.start)/K,Q.l=Math.min(Q.l,J.l-F);else if(q.end>J.r)F=(q.end-J.r)/K,Q.r=Math.max(Q.r,J.r+F);if(N.start<J.t)M=(J.t-N.start)/H,Q.t=Math.min(Q.t,J.t-M);else if(N.end>J.b)M=(N.end-J.b)/H,Q.b=Math.max(Q.b,J.b+M)}function uS(Q,J,X){let q=Q.drawingArea,{extra:N,additionalAngle:K,padding:H,size:F}=X,M=Q.getPointPosition(J,q+N+H,K),w=Math.round(h3($6(M.angle+Z6))),R=cS(M.y,F.h,w),_=dS(w),P=pS(M.x,F.w,_);return{visible:!0,x:M.x,y:R,textAlign:_,left:P,top:R,right:P+F.w,bottom:R+F.h}}function xS(Q,J){if(!J)return!0;let{left:X,top:q,right:N,bottom:K}=Q;return!(p4({x:X,y:q},J)||p4({x:X,y:K},J)||p4({x:N,y:q},J)||p4({x:N,y:K},J))}function mS(Q,J,X){let q=[],N=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:F}=K.pointLabels,M={extra:NK(K)/2,additionalAngle:H?s1/N:0},w;for(let R=0;R<N;R++){M.padding=X[R],M.size=J[R];let _=uS(Q,R,M);if(q.push(_),F==="auto"){if(_.visible=xS(_,w),_.visible)w=_}}return q}function dS(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function pS(Q,J,X){if(X==="right")Q-=J;else if(X==="center")Q-=J/2;return Q}function cS(Q,J,X){if(X===90||X===270)Q-=J/2;else if(X>270||X<90)Q-=J;return Q}function lS(Q,J,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:F}=J;if(!J1(F)){let M=g8(J.borderRadius),w=I5(J.backdropPadding);Q.fillStyle=F;let R=q-w.left,_=N-w.top,P=K-q+w.width,I=H-N+w.height;if(Object.values(M).some((A)=>A!==0))Q.beginPath(),_$(Q,{x:R,y:_,w:P,h:I,radius:M}),Q.fill();else Q.fillRect(R,_,P,I)}}function rS(Q,J){let{ctx:X,options:{pointLabels:q}}=Q;for(let N=J-1;N>=0;N--){let K=Q._pointLabelItems[N];if(!K.visible)continue;let H=q.setContext(Q.getPointLabelContext(N));lS(X,H,K);let F=X5(H.font),{x:M,y:w,textAlign:R}=K;y8(X,Q._pointLabels[N],M,w+F.lineHeight/2,F,{color:H.color,textAlign:R,textBaseline:"middle"})}}function a_(Q,J,X,q){let{ctx:N}=Q;if(X)N.arc(Q.xCenter,Q.yCenter,J,0,Q6);else{let K=Q.getPointPosition(0,J);N.moveTo(K.x,K.y);for(let H=1;H<q;H++)K=Q.getPointPosition(H,J),N.lineTo(K.x,K.y)}}function nS(Q,J,X,q,N){let K=Q.ctx,H=J.circular,{color:F,lineWidth:M}=J;if(!H&&!q||!F||!M||X<0)return;K.save(),K.strokeStyle=F,K.lineWidth=M,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),a_(Q,X,H,q),K.closePath(),K.stroke(),K.restore()}function sS(Q,J,X){return S2(Q,{label:X,index:J,type:"pointLabel"})}class oS extends jQ{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:RQ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(Q){return Q},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(Q){super(Q);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let Q=this._padding=I5(NK(this.options)/2),J=this.width=this.maxWidth-Q.width,X=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+J/2+Q.left),this.yCenter=Math.floor(this.top+X/2+Q.top),this.drawingArea=Math.floor(Math.min(J,X)/2)}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!1);this.min=x1(Q)&&!isNaN(Q)?Q:0,this.max=x1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/NK(this.options))}generateTickLabels(Q){jQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,X)=>{let q=V1(this.options.pointLabels.callback,[J,X],this);return q||q===0?q:""}).filter((J,X)=>this.chart.getDataVisibility(X))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)gS(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,J,X,q){this.xCenter+=Math.floor((Q-J)/2),this.yCenter+=Math.floor((X-q)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,J,X,q))}getIndexAngle(Q){let J=Q6/(this._pointLabels.length||1),X=this.options.startAngle||0;return $6(Q*J+A2(X))}getDistanceFromCenterForValue(Q){if(J1(Q))return NaN;let J=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*J;return(Q-this.min)*J}getValueForDistanceFromCenter(Q){if(J1(Q))return NaN;let J=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-J:this.min+J}getPointLabelContext(Q){let J=this._pointLabels||[];if(Q>=0&&Q<J.length){let X=J[Q];return sS(this.getContext(),Q,X)}}getPointPosition(Q,J,X=0){let q=this.getIndexAngle(Q)-Z6+X;return{x:Math.cos(q)*J+this.xCenter,y:Math.sin(q)*J+this.yCenter,angle:q}}getPointPositionForValue(Q,J){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(J))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:J,top:X,right:q,bottom:N}=this._pointLabelItems[Q];return{left:J,top:X,right:q,bottom:N}}drawBackground(){let{backgroundColor:Q,grid:{circular:J}}=this.options;if(Q){let X=this.ctx;X.save(),X.beginPath(),a_(this,this.getDistanceFromCenterForValue(this._endValue),J,this._pointLabels.length),X.closePath(),X.fillStyle=Q,X.fill(),X.restore()}}drawGrid(){let Q=this.ctx,J=this.options,{angleLines:X,grid:q,border:N}=J,K=this._pointLabels.length,H,F,M;if(J.pointLabels.display)rS(this,K);if(q.display)this.ticks.forEach((w,R)=>{if(R!==0||R===0&&this.min<0){F=this.getDistanceFromCenterForValue(w.value);let _=this.getContext(R),P=q.setContext(_),I=N.setContext(_);nS(this,P,F,K,I)}});if(X.display){Q.save();for(H=K-1;H>=0;H--){let w=X.setContext(this.getPointLabelContext(H)),{color:R,lineWidth:_}=w;if(!_||!R)continue;Q.lineWidth=_,Q.strokeStyle=R,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,F=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),M=this.getPointPosition(H,F),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(M.x,M.y),Q.stroke()}Q.restore()}}drawBorder(){}drawLabels(){let Q=this.ctx,J=this.options,X=J.ticks;if(!X.display)return;let q=this.getIndexAngle(0),N,K;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(q),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((H,F)=>{if(F===0&&this.min>=0&&!J.reverse)return;let M=X.setContext(this.getContext(F)),w=X5(M.font);if(N=this.getDistanceFromCenterForValue(this.ticks[F].value),M.showLabelBackdrop){Q.font=w.string,K=Q.measureText(H.label).width,Q.fillStyle=M.backdropColor;let R=I5(M.backdropPadding);Q.fillRect(-K/2-R.left,-N-w.size/2-R.top,K+R.width,w.size+R.height)}y8(Q,H.label,0,-N,w,{color:M.color,strokeColor:M.textStrokeColor,strokeWidth:M.textStrokeWidth})}),Q.restore()}drawTitle(){}}var GX={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},q6=Object.keys(GX);function z_(Q,J){return Q-J}function __(Q,J){if(J1(J))return null;let X=Q._adapter,{parser:q,round:N,isoWeekday:K}=Q._parseOpts,H=J;if(typeof q==="function")H=q(H);if(!x1(H))H=typeof q==="string"?X.parse(H,q):X.parse(H);if(H===null)return null;if(N)H=N==="week"&&(z$(K)||K===!0)?X.startOf(H,"isoWeek",K):X.startOf(H,N);return+H}function L_(Q,J,X,q){let N=q6.length;for(let K=q6.indexOf(Q);K<N-1;++K){let H=GX[q6[K]],F=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((X-J)/(F*H.size))<=q)return q6[K]}return q6[N-1]}function aS(Q,J,X,q,N){for(let K=q6.length-1;K>=q6.indexOf(X);K--){let H=q6[K];if(GX[H].common&&Q._adapter.diff(N,q,H)>=J-1)return H}return q6[X?q6.indexOf(X):0]}function iS(Q){for(let J=q6.indexOf(Q)+1,X=q6.length;J<X;++J)if(GX[q6[J]].common)return q6[J]}function P_(Q,J,X){if(!X)Q[J]=!0;else if(X.length){let{lo:q,hi:N}=u3(X,J),K=X[q]>=J?X[q]:X[N];Q[K]=!0}}function tS(Q,J,X,q){let N=Q._adapter,K=+N.startOf(J[0].value,q),H=J[J.length-1].value,F,M;for(F=K;F<=H;F=+N.add(F,1,q))if(M=X[F],M>=0)J[M].major=!0;return J}function T_(Q,J,X){let q=[],N={},K=J.length,H,F;for(H=0;H<K;++H)F=J[H],N[F]=H,q.push({value:F,major:!1});return K===0||!X?q:tS(Q,q,N,X)}class UK extends c7{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(Q){super(Q);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(Q,J={}){let X=Q.time||(Q.time={}),q=this._adapter=new bA._date(Q.adapters.date);q.init(J),W$(X.displayFormats,q.formats()),this._parseOpts={parser:X.parser,round:X.round,isoWeekday:X.isoWeekday},super.init(Q),this._normalized=J.normalized}parse(Q,J){if(Q===void 0)return null;return __(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,J=this._adapter,X=Q.time.unit||"day",{min:q,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function F(M){if(!K&&!isNaN(M.min))q=Math.min(q,M.min);if(!H&&!isNaN(M.max))N=Math.max(N,M.max)}if(!K||!H){if(F(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")F(this.getMinMax(!1))}q=x1(q)&&!isNaN(q)?q:+J.startOf(Date.now(),X),N=x1(N)&&!isNaN(N)?N:+J.endOf(Date.now(),X)+1,this.min=Math.min(q,N-1),this.max=Math.max(q+1,N)}_getLabelBounds(){let Q=this.getLabelTimestamps(),J=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY;if(Q.length)J=Q[0],X=Q[Q.length-1];return{min:J,max:X}}buildTicks(){let Q=this.options,J=Q.time,X=Q.ticks,q=X.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&q.length)this.min=this._userMin||q[0],this.max=this._userMax||q[q.length-1];let N=this.min,K=this.max,H=Jz(q,N,K);if(this._unit=J.unit||(X.autoSkip?L_(J.minUnit,this.min,this.max,this._getLabelCapacity(N)):aS(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:iS(this._unit),this.initOffsets(q),Q.reverse)H.reverse();return T_(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let J=0,X=0,q,N;if(this.options.offset&&Q.length){if(q=this.getDecimalForValue(Q[0]),Q.length===1)J=1-q;else J=(this.getDecimalForValue(Q[1])-q)/2;if(N=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)X=N;else X=(N-this.getDecimalForValue(Q[Q.length-2]))/2}let K=Q.length<3?0.5:0.25;J=J6(J,0,K),X=J6(X,0,K),this._offsets={start:J,end:X,factor:1/(J+1+X)}}_generate(){let Q=this._adapter,J=this.min,X=this.max,q=this.options,N=q.time,K=N.unit||L_(N.minUnit,J,X,this._getLabelCapacity(J)),H=n0(q.ticks.stepSize,1),F=K==="week"?N.isoWeekday:!1,M=z$(F)||F===!0,w={},R=J,_,P;if(M)R=+Q.startOf(R,"isoWeek",F);if(R=+Q.startOf(R,M?"day":K),Q.diff(X,J,K)>1e5*H)throw Error(J+" and "+X+" are too far apart with stepSize of "+H+" "+K);let I=q.ticks.source==="data"&&this.getDataTimestamps();for(_=R,P=0;_<X;_=+Q.add(_,H,K),P++)P_(w,_,I);if(_===X||q.bounds==="ticks"||P===1)P_(w,_,I);return Object.keys(w).sort(z_).map((A)=>+A)}getLabelForValue(Q){let J=this._adapter,X=this.options.time;if(X.tooltipFormat)return J.format(Q,X.tooltipFormat);return J.format(Q,X.displayFormats.datetime)}format(Q,J){let q=this.options.time.displayFormats,N=this._unit,K=J||q[N];return this._adapter.format(Q,K)}_tickFormatFunction(Q,J,X,q){let N=this.options,K=N.ticks.callback;if(K)return V1(K,[Q,J,X],this);let H=N.time.displayFormats,F=this._unit,M=this._majorUnit,w=F&&H[F],R=M&&H[M],_=X[J],P=M&&R&&_&&_.major;return this._adapter.format(Q,q||(P?R:w))}generateTickLabels(Q){let J,X,q;for(J=0,X=Q.length;J<X;++J)q=Q[J],q.label=this._tickFormatFunction(q.value,J,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let J=this._offsets,X=this.getDecimalForValue(Q);return this.getPixelForDecimal((J.start+X)*J.factor)}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return this.min+X*(this.max-this.min)}_getLabelSize(Q){let J=this.options.ticks,X=this.ctx.measureText(Q).width,q=A2(this.isHorizontal()?J.maxRotation:J.minRotation),N=Math.cos(q),K=Math.sin(q),H=this._resolveTickFontOptions(0).size;return{w:X*N+H*K,h:X*K+H*N}}_getLabelCapacity(Q){let J=this.options.time,X=J.displayFormats,q=X[J.unit]||X.millisecond,N=this._tickFormatFunction(Q,0,T_(this,[Q],this._majorUnit),q),K=this._getLabelSize(N),H=Math.floor(this.isHorizontal()?this.width/K.w:this.height/K.h)-1;return H>0?H:1}getDataTimestamps(){let Q=this._cache.data||[],J,X;if(Q.length)return Q;let q=this.getMatchingVisibleMetas();if(this._normalized&&q.length)return this._cache.data=q[0].controller.getAllParsedValues(this);for(J=0,X=q.length;J<X;++J)Q=Q.concat(q[J].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],J,X;if(Q.length)return Q;let q=this.getLabels();for(J=0,X=q.length;J<X;++J)Q.push(__(this,q[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return VU(Q.sort(z_))}}function t3(Q,J,X){let q=0,N=Q.length-1,K,H,F,M;if(X){if(J>=Q[q].pos&&J<=Q[N].pos)({lo:q,hi:N}=v8(Q,"pos",J));({pos:K,time:F}=Q[q]),{pos:H,time:M}=Q[N]}else{if(J>=Q[q].time&&J<=Q[N].time)({lo:q,hi:N}=v8(Q,"time",J));({time:K,pos:F}=Q[q]),{time:H,pos:M}=Q[N]}let w=H-K;return w?F+(M-F)*(J-K)/w:F}class eS extends UK{static id="timeseries";static defaults=UK.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),J=this._table=this.buildLookupTable(Q);this._minPos=t3(J,this.min),this._tableRange=t3(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:X}=this,q=[],N=[],K,H,F,M,w;for(K=0,H=Q.length;K<H;++K)if(M=Q[K],M>=J&&M<=X)q.push(M);if(q.length<2)return[{time:J,pos:0},{time:X,pos:1}];for(K=0,H=q.length;K<H;++K)if(w=q[K+1],F=q[K-1],M=q[K],Math.round((w+F)/2)!==M)N.push({time:M,pos:K/(H-1)});return N}_generate(){let Q=this.min,J=this.max,X=super.getDataTimestamps();if(!X.includes(Q)||!X.length)X.splice(0,0,Q);if(!X.includes(J)||X.length===1)X.push(J);return X.sort((q,N)=>q-N)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let J=this.getDataTimestamps(),X=this.getLabelTimestamps();if(J.length&&X.length)Q=this.normalize(J.concat(X));else Q=J.length?J:X;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(t3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return t3(this._table,X*this._tableRange+this._minPos,!0)}}l7.register(_K,LK,wK,L$,WK,n_,o_,r_,c_);var JT=n(JL(),1);var g2=n(T1(),1);var NX=n(T1(),1);var qX=(...Q)=>Q.filter((J,X,q)=>{return Boolean(J)&&J.trim()!==""&&q.indexOf(J)===X}).join(" ").trim();var GL=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var XL=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,X,q)=>q?q.toUpperCase():X.toLowerCase());var CK=(Q)=>{let J=XL(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var bQ=n(T1(),1);var YX={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var qL=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var T$=n(T1(),1),qj=T$.createContext({});var YL=()=>T$.useContext(qj);var NL=bQ.forwardRef(({color:Q,size:J,strokeWidth:X,absoluteStrokeWidth:q,className:N="",children:K,iconNode:H,...F},M)=>{let{size:w=24,strokeWidth:R=2,absoluteStrokeWidth:_=!1,color:P="currentColor",className:I=""}=YL()??{},A=q??_?Number(X??R)*24/Number(J??w):X??R;return bQ.createElement("svg",{ref:M,...YX,width:J??w??YX.width,height:J??w??YX.height,stroke:Q??P,strokeWidth:A,className:qX("lucide",I,N),...!K&&!qL(F)&&{"aria-hidden":"true"},...F},[...H.map(([V,O])=>bQ.createElement(V,O)),...Array.isArray(K)?K:[K]])});var C0=(Q,J)=>{let X=NX.forwardRef(({className:q,...N},K)=>NX.createElement(NL,{ref:K,iconNode:J,className:qX(`lucide-${GL(CK(Q))}`,`lucide-${Q}`,q),...N}));return X.displayName=CK(Q),X};var Yj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],x8=C0("circle-alert",Yj);var Nj=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],kQ=C0("activity",Nj);var Uj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fQ=C0("check",Uj);var Kj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],yQ=C0("chevron-down",Kj);var Bj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],gQ=C0("chevron-up",Bj);var Hj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],hQ=C0("clock",Hj);var Fj=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],n7=C0("coins",Fj);var Mj=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],uQ=C0("copy",Mj);var Wj=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],xQ=C0("cpu",Wj);var wj=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],mQ=C0("folder",wj);var Rj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],dQ=C0("gauge",Rj);var zj=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],pQ=C0("hash",zj);var _j=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],cQ=C0("inbox",_j);var Lj=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],lQ=C0("layout-dashboard",Lj);var Pj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],rQ=C0("menu",Pj);var Tj=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],nQ=C0("monitor",Tj);var Cj=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],sQ=C0("moon",Cj);var Ij=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],oQ=C0("plug",Ij);var Oj=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],aQ=C0("refresh-cw",Oj);var Vj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],iQ=C0("smile",Vj);var Aj=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],tQ=C0("star",Aj);var Ej=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],eQ=C0("sun",Ej);var Sj=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],$J=C0("trending-up",Sj);var jj=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],ZJ=C0("wrench",jj);var Dj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],s7=C0("x",Dj);var vj=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],QJ=C0("zap",vj);var DL=n(T1(),1);var JJ=[{id:"overview",label:"Overview",icon:lQ},{id:"requests",label:"Requests",icon:kQ},{id:"errors",label:"Errors",icon:x8},{id:"models",label:"Models",icon:xQ},{id:"providers",label:"Providers",icon:oQ},{id:"tools",label:"Tools",icon:ZJ},{id:"costs",label:"Costs",icon:n7},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:iQ},{id:"projects",label:"Projects",icon:mQ},{id:"gain",label:"Gain",icon:$J}];var s6=n(U0(),1);function IK({activeSection:Q,onSectionChange:J,className:X=""}){return s6.jsxDEV("aside",{className:`stats-nav-rail ${X}`,children:[s6.jsxDEV("div",{className:"stats-nav-rail-header",children:s6.jsxDEV("div",{className:"stats-logo-container",children:[s6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),s6.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),s6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:JJ.map((q)=>{let N=q.id===Q,K=q.icon;return s6.jsxDEV("button",{type:"button",onClick:()=>J(q.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[s6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),s6.jsxDEV("span",{className:"stats-nav-rail-item-label",children:q.label},void 0,!1,void 0,this)]},q.id,!0,void 0,this)})},void 0,!1,void 0,this),s6.jsxDEV("div",{className:"stats-nav-rail-footer",children:s6.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var OK=n(U0(),1),kj=[{value:"1h",label:"1h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"all",label:"All"}];function UL({value:Q,onChange:J,className:X=""}){return OK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:kj.map((q)=>{let N=q.value===Q;return OK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>J(q.value),children:q.label},q.value,!1,void 0,this)})},void 0,!1,void 0,this)}var VK=n(T1(),1);class KL extends Error{status;endpoint;constructor(Q,J,X){super(X);this.name="ApiError",this.status=Q,this.endpoint=J}}async function o6(Q,J){let X=await fetch(Q,J);if(!X.ok)throw new KL(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function BL(Q="24h",J){return o6(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:J})}async function HL(Q="24h",J){return o6(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:J})}async function FL(Q="24h",J){return o6(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:J})}async function UX(Q=50,J){return o6(`/api/stats/recent?limit=${Q}`,{signal:J})}async function ML(Q="24h",J=50,X){return o6(`/api/stats/errors?range=${encodeURIComponent(Q)}&limit=${J}`,{signal:X})}async function WL(Q,J){return o6(`/api/request/${Q}`,{signal:J})}async function wL(Q){return o6("/api/sync",{signal:Q})}async function RL(Q="24h",J){return o6(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:J})}async function zL(Q="24h",J){return o6(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:J})}async function _L(Q="24h",J,X){let q=new URLSearchParams({range:Q});if(J)q.set("project",J);return o6(`/api/stats/gain?${q}`,{signal:X})}async function LL(Q="24h",J){return o6(`/api/stats/tools?range=${encodeURIComponent(Q)}`,{signal:J})}async function PL(Q="24h",J){return o6(`/api/stats/providers?range=${encodeURIComponent(Q)}`,{signal:J})}var GJ=n(U0(),1);function TL({onSyncStart:Q,onSyncComplete:J,className:X=""}){let[q,N]=VK.useState(!1),[K,H]=VK.useState(null),F=async()=>{if(q)return;if(N(!0),H(null),Q)Q();try{let M=await wL(),w={processed:typeof M?.processed==="number"?M.processed:0,files:typeof M?.files==="number"?M.files:0,totalMessages:typeof M?.totalMessages==="number"?M.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),J)J({success:!0,data:w})}catch(M){let w=M instanceof Error?M.message:String(M);if(H({type:"error",message:`Sync failed: ${w}`}),J)J({success:!1,error:w})}finally{N(!1)}};return GJ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&GJ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),GJ.jsxDEV("button",{type:"button",onClick:F,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[GJ.jsxDEV(aQ,{size:14,className:`stats-sync-icon ${q?"stats-spin":""}`},void 0,!1,void 0,this),q?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var KX=n(T1(),1),CL="omp-stats-theme",IL="(prefers-color-scheme: dark)";function fj(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(CL);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function OL(){if(typeof window>"u")return"dark";return window.matchMedia(IL).matches?"dark":"light"}var a7=fj(),XJ=a7==="system"?OL():a7,AK=new Set;function VL(){for(let Q of AK)Q()}function EK(){if(XJ=a7==="system"?OL():a7,typeof document<"u")document.documentElement.dataset.theme=XJ,document.documentElement.style.colorScheme=XJ}if(typeof window<"u")EK(),window.matchMedia(IL).addEventListener("change",()=>{if(a7==="system")EK(),VL()});function yj(Q){if(a7=Q,typeof localStorage<"u")localStorage.setItem(CL,Q);EK(),VL()}function SK(Q){return AK.add(Q),()=>AK.delete(Q)}function R5(){return KX.useSyncExternalStore(SK,()=>XJ,()=>"dark")}function AL(){let Q=KX.useSyncExternalStore(SK,()=>a7,()=>"system"),J=KX.useSyncExternalStore(SK,()=>XJ,()=>"dark");return{preference:Q,resolved:J,setPreference:yj}}var jK=n(U0(),1),gj={system:"light",light:"dark",dark:"system"},hj={system:nQ,light:eQ,dark:sQ},EL={system:"System theme",light:"Light theme",dark:"Dark theme"};function SL(){let{preference:Q,setPreference:J}=AL(),X=hj[Q];return jK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>J(gj[Q]),"aria-label":`${EL[Q]} (click to switch)`,title:`${EL[Q]} — click to switch`,children:jK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var a6=n(U0(),1);function jL({activeSection:Q,range:J,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:F=""}){let w=JJ.find((_)=>_.id===Q)?.label||"Observability",R=(_)=>{if(!_)return"Not updated";return`Updated ${new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return a6.jsxDEV("header",{className:`stats-top-bar ${F}`,children:[a6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&a6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:a6.jsxDEV(rQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),a6.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a6.jsxDEV("div",{className:"stats-top-bar-right",children:[a6.jsxDEV("div",{className:"stats-top-bar-meta",children:a6.jsxDEV("span",{className:"stats-last-updated",title:q?new Date(q).toLocaleString():void 0,children:R(q)},void 0,!1,void 0,this)},void 0,!1,void 0,this),a6.jsxDEV(UL,{value:J,onChange:X},void 0,!1,void 0,this),a6.jsxDEV(SL,{},void 0,!1,void 0,this),a6.jsxDEV(TL,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var b5=n(U0(),1);function vL({activeSection:Q,onSectionChange:J,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:F}){let[M,w]=DL.useState(!1),R=(_)=>{J(_),w(!1)};return b5.jsxDEV("div",{className:"stats-app-container",children:[b5.jsxDEV(IK,{activeSection:Q,onSectionChange:R,className:"stats-desktop-nav"},void 0,!1,void 0,this),M&&b5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:b5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(_)=>_.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[b5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[b5.jsxDEV("div",{className:"stats-logo-container",children:[b5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),b5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b5.jsxDEV("button",{type:"button",onClick:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:b5.jsxDEV(s7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b5.jsxDEV(IK,{activeSection:Q,onSectionChange:R,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),b5.jsxDEV("div",{className:"stats-main-pane",children:[b5.jsxDEV(jL,{activeSection:Q,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),b5.jsxDEV("main",{className:"stats-content-area",children:b5.jsxDEV("div",{className:"stats-content-inner",children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var b2=n(T1(),1),uj=["overview","requests","errors","models","providers","tools","costs","behavior","projects","gain"],bL=["1h","24h","7d","30d","90d","all"];function DK(Q){let J=Q.replace(/^#\/?/,""),[X,q]=J.split("?"),N=uj.includes(X)?X:"overview",K="24h";if(q){let F=new URLSearchParams(q).get("range");if(bL.includes(F))K=F}return{section:N,range:K}}function kL(){let[Q,J]=b2.useState(()=>DK(window.location.hash));b2.useEffect(()=>{let K=()=>{J(DK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=b2.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=b2.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=b2.useCallback((K)=>{let H=bL.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return b2.useEffect(()=>{let K=window.location.hash,H=DK(K),F=`#/${H.section}?range=${H.range}`;if(K!==F)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:q,range:Q.range,setRange:N}}var xj=Math.pow(10,8)*24*60*60*1000,Ra1=-xj,BX=604800000,fL=86400000;var qJ=43200,vK=1440;var bK=Symbol.for("constructDateFrom");function k5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&bK in Q)return Q[bK](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function X1(Q,J){return k5(J||Q,Q)}var mj={};function n4(){return mj}function k2(Q,J){let X=n4(),q=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,N=X1(Q,J?.in),K=N.getDay(),H=(K<q?7:0)+K-q;return N.setDate(N.getDate()-H),N.setHours(0,0,0,0),N}function i7(Q,J){return k2(Q,{...J,weekStartsOn:1})}function HX(Q,J){let X=X1(Q,J?.in),q=X.getFullYear(),N=k5(X,0);N.setFullYear(q+1,0,4),N.setHours(0,0,0,0);let K=i7(N),H=k5(X,0);H.setFullYear(q,0,4),H.setHours(0,0,0,0);let F=i7(H);if(X.getTime()>=K.getTime())return q+1;else if(X.getTime()>=F.getTime())return q;else return q-1}function C$(Q){let J=X1(Q),X=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return X.setUTCFullYear(J.getFullYear()),+Q-+X}function m8(Q,...J){let X=k5.bind(null,Q||J.find((q)=>typeof q==="object"));return J.map(X)}function kK(Q,J){let X=X1(Q,J?.in);return X.setHours(0,0,0,0),X}function yL(Q,J,X){let[q,N]=m8(X?.in,Q,J),K=kK(q),H=kK(N),F=+K-C$(K),M=+H-C$(H);return Math.round((F-M)/fL)}function gL(Q,J){let X=HX(Q,J),q=k5(J?.in||Q,0);return q.setFullYear(X,0,4),q.setHours(0,0,0,0),i7(q)}function I$(Q,J){let X=+X1(Q)-+X1(J);if(X<0)return-1;else if(X>0)return 1;return X}function hL(Q){return k5(Q,Date.now())}function uL(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function xL(Q){return!(!uL(Q)&&typeof Q!=="number"||isNaN(+X1(Q)))}function mL(Q,J,X){let[q,N]=m8(X?.in,Q,J),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function dL(Q){return(J)=>{let q=(Q?Math[Q]:Math.trunc)(J);return q===0?0:q}}function pL(Q,J){return+X1(Q)-+X1(J)}function cL(Q,J){let X=X1(Q,J?.in);return X.setHours(23,59,59,999),X}function lL(Q,J){let X=X1(Q,J?.in),q=X.getMonth();return X.setFullYear(X.getFullYear(),q+1,0),X.setHours(23,59,59,999),X}function rL(Q,J){let X=X1(Q,J?.in);return+cL(X,J)===+lL(X,J)}function nL(Q,J,X){let[q,N,K]=m8(X?.in,Q,Q,J),H=I$(N,K),F=Math.abs(mL(N,K));if(F<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*F);let M=I$(N,K)===-H;if(rL(q)&&F===1&&I$(q,K)===1)M=!1;let w=H*(F-+M);return w===0?0:w}function sL(Q,J,X){let q=pL(Q,J)/1000;return dL(X?.roundingMethod)(q)}function oL(Q,J){let X=X1(Q,J?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var dj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},aL=(Q,J,X)=>{let q,N=dj[Q];if(typeof N==="string")q=N;else if(J===1)q=N.one;else q=N.other.replace("{{count}}",J.toString());if(X?.addSuffix)if(X.comparison&&X.comparison>0)return"in "+q;else return q+" ago";return q};function FX(Q){return(J={})=>{let X=J.width?String(J.width):Q.defaultWidth;return Q.formats[X]||Q.formats[Q.defaultWidth]}}var pj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iL={date:FX({formats:pj,defaultWidth:"full"}),time:FX({formats:cj,defaultWidth:"full"}),dateTime:FX({formats:lj,defaultWidth:"full"})};var rj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tL=(Q,J,X,q)=>rj[Q];function O$(Q){return(J,X)=>{let q=X?.context?String(X.context):"standalone",N;if(q==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,F=X?.width?String(X.width):H;N=Q.formattingValues[F]||Q.formattingValues[H]}else{let H=Q.defaultWidth,F=X?.width?String(X.width):Q.defaultWidth;N=Q.values[F]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return N[K]}}var nj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},aj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ij={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ej=(Q,J)=>{let X=Number(Q),q=X%100;if(q>20||q<10)switch(q%10){case 1:return X+"st";case 2:return X+"nd";case 3:return X+"rd"}return X+"th"},eL={ordinalNumber:ej,era:O$({values:nj,defaultWidth:"wide"}),quarter:O$({values:sj,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:O$({values:oj,defaultWidth:"wide"}),day:O$({values:aj,defaultWidth:"wide"}),dayPeriod:O$({values:ij,defaultWidth:"wide",formattingValues:tj,defaultFormattingWidth:"wide"})};function V$(Q){return(J,X={})=>{let q=X.width,N=q&&Q.matchPatterns[q]||Q.matchPatterns[Q.defaultMatchWidth],K=J.match(N);if(!K)return null;let H=K[0],F=q&&Q.parsePatterns[q]||Q.parsePatterns[Q.defaultParseWidth],M=Array.isArray(F)?ZD(F,(_)=>_.test(H)):$D(F,(_)=>_.test(H)),w;w=Q.valueCallback?Q.valueCallback(M):M,w=X.valueCallback?X.valueCallback(w):w;let R=J.slice(H.length);return{value:w,rest:R}}}function $D(Q,J){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&J(Q[X]))return X;return}function ZD(Q,J){for(let X=0;X<Q.length;X++)if(J(Q[X]))return X;return}function $P(Q){return(J,X={})=>{let q=J.match(Q.matchPattern);if(!q)return null;let N=q[0],K=J.match(Q.parsePattern);if(!K)return null;let H=Q.valueCallback?Q.valueCallback(K[0]):K[0];H=X.valueCallback?X.valueCallback(H):H;let F=J.slice(N.length);return{value:H,rest:F}}}var QD=/^(\d+)(th|st|nd|rd)?/i,JD=/\d+/i,GD={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},XD={any:[/^b/i,/^(a|c)/i]},qD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YD={any:[/1/i,/2/i,/3/i,/4/i]},ND={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},UD={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},BD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},HD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ZP={ordinalNumber:$P({matchPattern:QD,parsePattern:JD,valueCallback:(Q)=>parseInt(Q,10)}),era:V$({matchPatterns:GD,defaultMatchWidth:"wide",parsePatterns:XD,defaultParseWidth:"any"}),quarter:V$({matchPatterns:qD,defaultMatchWidth:"wide",parsePatterns:YD,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:V$({matchPatterns:ND,defaultMatchWidth:"wide",parsePatterns:UD,defaultParseWidth:"any"}),day:V$({matchPatterns:KD,defaultMatchWidth:"wide",parsePatterns:BD,defaultParseWidth:"any"}),dayPeriod:V$({matchPatterns:HD,defaultMatchWidth:"any",parsePatterns:FD,defaultParseWidth:"any"})};var YJ={code:"en-US",formatDistance:aL,formatLong:iL,formatRelative:tL,localize:eL,match:ZP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function QP(Q,J){let X=X1(Q,J?.in);return yL(X,oL(X))+1}function JP(Q,J){let X=X1(Q,J?.in),q=+i7(X)-+gL(X);return Math.round(q/BX)+1}function MX(Q,J){let X=X1(Q,J?.in),q=X.getFullYear(),N=n4(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=k5(J?.in||Q,0);H.setFullYear(q+1,0,K),H.setHours(0,0,0,0);let F=k2(H,J),M=k5(J?.in||Q,0);M.setFullYear(q,0,K),M.setHours(0,0,0,0);let w=k2(M,J);if(+X>=+F)return q+1;else if(+X>=+w)return q;else return q-1}function GP(Q,J){let X=n4(),q=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,N=MX(Q,J),K=k5(J?.in||Q,0);return K.setFullYear(N,0,q),K.setHours(0,0,0,0),k2(K,J)}function XP(Q,J){let X=X1(Q,J?.in),q=+k2(X,J)-+GP(X,J);return Math.round(q/BX)+1}function B1(Q,J){let X=Q<0?"-":"",q=Math.abs(Q).toString().padStart(J,"0");return X+q}var f2={y(Q,J){let X=Q.getFullYear(),q=X>0?X:1-X;return B1(J==="yy"?q%100:q,J.length)},M(Q,J){let X=Q.getMonth();return J==="M"?String(X+1):B1(X+1,2)},d(Q,J){return B1(Q.getDate(),J.length)},a(Q,J){let X=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.toUpperCase();case"aaa":return X;case"aaaaa":return X[0];case"aaaa":default:return X==="am"?"a.m.":"p.m."}},h(Q,J){return B1(Q.getHours()%12||12,J.length)},H(Q,J){return B1(Q.getHours(),J.length)},m(Q,J){return B1(Q.getMinutes(),J.length)},s(Q,J){return B1(Q.getSeconds(),J.length)},S(Q,J){let X=J.length,q=Q.getMilliseconds(),N=Math.trunc(q*Math.pow(10,X-3));return B1(N,J.length)}};var A$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},fK={G:function(Q,J,X){let q=Q.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return X.era(q,{width:"abbreviated"});case"GGGGG":return X.era(q,{width:"narrow"});case"GGGG":default:return X.era(q,{width:"wide"})}},y:function(Q,J,X){if(J==="yo"){let q=Q.getFullYear(),N=q>0?q:1-q;return X.ordinalNumber(N,{unit:"year"})}return f2.y(Q,J)},Y:function(Q,J,X,q){let N=MX(Q,q),K=N>0?N:1-N;if(J==="YY"){let H=K%100;return B1(H,2)}if(J==="Yo")return X.ordinalNumber(K,{unit:"year"});return B1(K,J.length)},R:function(Q,J){let X=HX(Q);return B1(X,J.length)},u:function(Q,J){let X=Q.getFullYear();return B1(X,J.length)},Q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"Q":return String(q);case"QQ":return B1(q,2);case"Qo":return X.ordinalNumber(q,{unit:"quarter"});case"QQQ":return X.quarter(q,{width:"abbreviated",context:"formatting"});case"QQQQQ":return X.quarter(q,{width:"narrow",context:"formatting"});case"QQQQ":default:return X.quarter(q,{width:"wide",context:"formatting"})}},q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"q":return String(q);case"qq":return B1(q,2);case"qo":return X.ordinalNumber(q,{unit:"quarter"});case"qqq":return X.quarter(q,{width:"abbreviated",context:"standalone"});case"qqqqq":return X.quarter(q,{width:"narrow",context:"standalone"});case"qqqq":default:return X.quarter(q,{width:"wide",context:"standalone"})}},M:function(Q,J,X){let q=Q.getMonth();switch(J){case"M":case"MM":return f2.M(Q,J);case"Mo":return X.ordinalNumber(q+1,{unit:"month"});case"MMM":return X.month(q,{width:"abbreviated",context:"formatting"});case"MMMMM":return X.month(q,{width:"narrow",context:"formatting"});case"MMMM":default:return X.month(q,{width:"wide",context:"formatting"})}},L:function(Q,J,X){let q=Q.getMonth();switch(J){case"L":return String(q+1);case"LL":return B1(q+1,2);case"Lo":return X.ordinalNumber(q+1,{unit:"month"});case"LLL":return X.month(q,{width:"abbreviated",context:"standalone"});case"LLLLL":return X.month(q,{width:"narrow",context:"standalone"});case"LLLL":default:return X.month(q,{width:"wide",context:"standalone"})}},w:function(Q,J,X,q){let N=XP(Q,q);if(J==="wo")return X.ordinalNumber(N,{unit:"week"});return B1(N,J.length)},I:function(Q,J,X){let q=JP(Q);if(J==="Io")return X.ordinalNumber(q,{unit:"week"});return B1(q,J.length)},d:function(Q,J,X){if(J==="do")return X.ordinalNumber(Q.getDate(),{unit:"date"});return f2.d(Q,J)},D:function(Q,J,X){let q=QP(Q);if(J==="Do")return X.ordinalNumber(q,{unit:"dayOfYear"});return B1(q,J.length)},E:function(Q,J,X){let q=Q.getDay();switch(J){case"E":case"EE":case"EEE":return X.day(q,{width:"abbreviated",context:"formatting"});case"EEEEE":return X.day(q,{width:"narrow",context:"formatting"});case"EEEEEE":return X.day(q,{width:"short",context:"formatting"});case"EEEE":default:return X.day(q,{width:"wide",context:"formatting"})}},e:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"e":return String(K);case"ee":return B1(K,2);case"eo":return X.ordinalNumber(K,{unit:"day"});case"eee":return X.day(N,{width:"abbreviated",context:"formatting"});case"eeeee":return X.day(N,{width:"narrow",context:"formatting"});case"eeeeee":return X.day(N,{width:"short",context:"formatting"});case"eeee":default:return X.day(N,{width:"wide",context:"formatting"})}},c:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"c":return String(K);case"cc":return B1(K,J.length);case"co":return X.ordinalNumber(K,{unit:"day"});case"ccc":return X.day(N,{width:"abbreviated",context:"standalone"});case"ccccc":return X.day(N,{width:"narrow",context:"standalone"});case"cccccc":return X.day(N,{width:"short",context:"standalone"});case"cccc":default:return X.day(N,{width:"wide",context:"standalone"})}},i:function(Q,J,X){let q=Q.getDay(),N=q===0?7:q;switch(J){case"i":return String(N);case"ii":return B1(N,J.length);case"io":return X.ordinalNumber(N,{unit:"day"});case"iii":return X.day(q,{width:"abbreviated",context:"formatting"});case"iiiii":return X.day(q,{width:"narrow",context:"formatting"});case"iiiiii":return X.day(q,{width:"short",context:"formatting"});case"iiii":default:return X.day(q,{width:"wide",context:"formatting"})}},a:function(Q,J,X){let N=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"aaa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"aaaa":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},b:function(Q,J,X){let q=Q.getHours(),N;if(q===12)N=A$.noon;else if(q===0)N=A$.midnight;else N=q/12>=1?"pm":"am";switch(J){case"b":case"bb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"bbb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"bbbb":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},B:function(Q,J,X){let q=Q.getHours(),N;if(q>=17)N=A$.evening;else if(q>=12)N=A$.afternoon;else if(q>=4)N=A$.morning;else N=A$.night;switch(J){case"B":case"BB":case"BBB":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"BBBBB":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"BBBB":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},h:function(Q,J,X){if(J==="ho"){let q=Q.getHours()%12;if(q===0)q=12;return X.ordinalNumber(q,{unit:"hour"})}return f2.h(Q,J)},H:function(Q,J,X){if(J==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return f2.H(Q,J)},K:function(Q,J,X){let q=Q.getHours()%12;if(J==="Ko")return X.ordinalNumber(q,{unit:"hour"});return B1(q,J.length)},k:function(Q,J,X){let q=Q.getHours();if(q===0)q=24;if(J==="ko")return X.ordinalNumber(q,{unit:"hour"});return B1(q,J.length)},m:function(Q,J,X){if(J==="mo")return X.ordinalNumber(Q.getMinutes(),{unit:"minute"});return f2.m(Q,J)},s:function(Q,J,X){if(J==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return f2.s(Q,J)},S:function(Q,J){return f2.S(Q,J)},X:function(Q,J,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(J){case"X":return YP(q);case"XXXX":case"XX":return t7(q);case"XXXXX":case"XXX":default:return t7(q,":")}},x:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"x":return YP(q);case"xxxx":case"xx":return t7(q);case"xxxxx":case"xxx":default:return t7(q,":")}},O:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+qP(q,":");case"OOOO":default:return"GMT"+t7(q,":")}},z:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+qP(q,":");case"zzzz":default:return"GMT"+t7(q,":")}},t:function(Q,J,X){let q=Math.trunc(+Q/1000);return B1(q,J.length)},T:function(Q,J,X){return B1(+Q,J.length)}};function qP(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=Math.trunc(q/60),K=q%60;if(K===0)return X+String(N);return X+String(N)+J+B1(K,2)}function YP(Q,J){if(Q%60===0)return(Q>0?"-":"+")+B1(Math.abs(Q)/60,2);return t7(Q,J)}function t7(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=B1(Math.trunc(q/60),2),K=B1(q%60,2);return X+N+J+K}var NP=(Q,J)=>{switch(Q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},UP=(Q,J)=>{switch(Q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},MD=(Q,J)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return NP(Q,J);let K;switch(q){case"P":K=J.dateTime({width:"short"});break;case"PP":K=J.dateTime({width:"medium"});break;case"PPP":K=J.dateTime({width:"long"});break;case"PPPP":default:K=J.dateTime({width:"full"});break}return K.replace("{{date}}",NP(q,J)).replace("{{time}}",UP(N,J))},KP={p:UP,P:MD};var WD=/^D+$/,wD=/^Y+$/,RD=["D","DD","YY","YYYY"];function BP(Q){return WD.test(Q)}function HP(Q){return wD.test(Q)}function FP(Q,J,X){let q=zD(Q,J,X);if(console.warn(q),RD.includes(Q))throw RangeError(q)}function zD(Q,J,X){let q=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${J}\`) for formatting ${q} to the input \`${X}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var _D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PD=/^'([^]*?)'?$/,TD=/''/g,CD=/[a-zA-Z]/;function F4(Q,J,X){let q=n4(),N=X?.locale??q.locale??YJ,K=X?.firstWeekContainsDate??X?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,H=X?.weekStartsOn??X?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,F=X1(Q,X?.in);if(!xL(F))throw RangeError("Invalid time value");let M=J.match(LD).map((R)=>{let _=R[0];if(_==="p"||_==="P"){let P=KP[_];return P(R,N.formatLong)}return R}).join("").match(_D).map((R)=>{if(R==="''")return{isToken:!1,value:"'"};let _=R[0];if(_==="'")return{isToken:!1,value:ID(R)};if(fK[_])return{isToken:!0,value:R};if(_.match(CD))throw RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:R}});if(N.localize.preprocessor)M=N.localize.preprocessor(F,M);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:N};return M.map((R)=>{if(!R.isToken)return R.value;let _=R.value;if(!X?.useAdditionalWeekYearTokens&&HP(_)||!X?.useAdditionalDayOfYearTokens&&BP(_))FP(_,J,String(Q));let P=fK[_[0]];return P(F,_,N.localize,w)}).join("")}function ID(Q){let J=Q.match(PD);if(!J)return Q;return J[1].replace(TD,"'")}function MP(Q,J,X){let q=n4(),N=X?.locale??q.locale??YJ,K=2520,H=I$(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let F=Object.assign({},X,{addSuffix:X?.addSuffix,comparison:H}),[M,w]=m8(X?.in,...H>0?[J,Q]:[Q,J]),R=sL(w,M),_=(C$(w)-C$(M))/1000,P=Math.round((R-_)/60),I;if(P<2)if(X?.includeSeconds)if(R<5)return N.formatDistance("lessThanXSeconds",5,F);else if(R<10)return N.formatDistance("lessThanXSeconds",10,F);else if(R<20)return N.formatDistance("lessThanXSeconds",20,F);else if(R<40)return N.formatDistance("halfAMinute",0,F);else if(R<60)return N.formatDistance("lessThanXMinutes",1,F);else return N.formatDistance("xMinutes",1,F);else if(P===0)return N.formatDistance("lessThanXMinutes",1,F);else return N.formatDistance("xMinutes",P,F);else if(P<45)return N.formatDistance("xMinutes",P,F);else if(P<90)return N.formatDistance("aboutXHours",1,F);else if(P<vK){let A=Math.round(P/60);return N.formatDistance("aboutXHours",A,F)}else if(P<2520)return N.formatDistance("xDays",1,F);else if(P<qJ){let A=Math.round(P/vK);return N.formatDistance("xDays",A,F)}else if(P<qJ*2)return I=Math.round(P/qJ),N.formatDistance("aboutXMonths",I,F);if(I=nL(w,M),I<12){let A=Math.round(P/qJ);return N.formatDistance("xMonths",A,F)}else{let A=I%12,V=Math.trunc(I/12);if(A<3)return N.formatDistance("aboutXYears",V,F);else if(A<9)return N.formatDistance("overXYears",V,F);else return N.formatDistance("almostXYears",V+1,F)}}function WP(Q,J){return MP(Q,hL(Q),J)}var U5=n(T1(),1);var yK=n(wP(),1),S6=n(T1(),1);var zP="label";function RP(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function VD(Q,J){let X=Q.options;if(X&&J)Object.assign(X,J)}function _P(Q,J){Q.labels=J}function LP(Q,J,X=zP){let q=[];Q.datasets=J.map((N)=>{let K=Q.datasets.find((H)=>H[X]===N[X]);if(!K||!N.data||q.includes(K))return{...N};return q.push(K),Object.assign(K,N),K})}function AD(Q,J=zP){let X={labels:[],datasets:[]};return _P(X,Q.labels),LP(X,Q.datasets,J),X}function ED(Q,J){let{height:X=150,width:q=300,redraw:N=!1,datasetIdKey:K,type:H,data:F,options:M,plugins:w=[],fallbackContent:R,updateMode:_,...P}=Q,I=S6.useRef(null),A=S6.useRef(null),V=()=>{if(!I.current)return;A.current=new l7(I.current,{type:H,data:AD(F,K),options:M&&{...M},plugins:w}),RP(J,A.current)},O=()=>{if(RP(J,null),A.current)A.current.destroy(),A.current=null};return S6.useEffect(()=>{if(!N&&A.current&&M)VD(A.current,M)},[N,M]),S6.useEffect(()=>{if(!N&&A.current)_P(A.current.config.data,F.labels)},[N,F.labels]),S6.useEffect(()=>{if(!N&&A.current&&F.datasets)LP(A.current.config.data,F.datasets,K)},[N,F.datasets]),S6.useEffect(()=>{if(!A.current)return;if(N)O(),setTimeout(V);else A.current.update(_)},[N,M,F.labels,F.datasets,_]),S6.useEffect(()=>{if(!A.current)return;O(),setTimeout(V)},[H]),S6.useEffect(()=>{return V(),()=>O()},[]),yK.jsx("canvas",{ref:I,role:"img",height:X,width:q,...P,children:R})}var SD=S6.forwardRef(ED);function PP(Q,J){return l7.register(J),S6.forwardRef((X,q)=>yK.jsx(SD,{...X,ref:q,type:Q}))}var f5=PP("line",HK),d8=PP("bar",BK);var H1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],o1={dark:{legendLabel:"#a89fb3",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93"},light:{legendLabel:"#5a5462",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275"}};function s4(Q){let{chartTheme:J,showLegend:X,defaultLabel:q,formatValue:N,footer:K}=Q;return{legend:{display:X,position:"top",align:"start",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let F=H.dataset.label??q,M=H.parsed.y??0;return`${F}: ${N(M)}`},...K?{footer:K}:{}}}}}function o4(Q){let{chartTheme:J,formatY:X}=Q,q={grid:{color:J.grid,drawBorder:!1},ticks:{color:J.tick,font:{size:11}}},N={...q,ticks:{...q.ticks,callback:(K)=>X(Number(K))},min:0};return{sharedScaleBase:q,yScale:N}}function E$(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function $9(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function p8(Q,J){return Q.datasets.map((X,q)=>({label:X.label,data:X.data,...J(q)}))}function WX(Q,J,X){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:q,accumulate:N,bucketToValue:K}=X,H=new Map;for(let M of Q){let w=H.get(M.timestamp)??q();N(w,M),H.set(M.timestamp,w)}let F=[...H.entries()].sort((M,w)=>M[0]-w[0]);return{labels:F.map(([M])=>F4(new Date(M),"MMM d")),datasets:[{label:J,data:F.map(([,M])=>K(M))}]}}function S$(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:X=5,rankWeight:q,initBucket:N,accumulate:K,bucketToValue:H}=J,F=new Map;for(let D of Q){let h=`${D.model}::${D.provider}`,p=F.get(h);if(p)p.weight+=q(D);else F.set(h,{model:D.model,provider:D.provider,weight:q(D)})}let w=[...F.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,X),R=new Set(w.map(([D])=>D)),_=new Map;for(let[,{model:D}]of w)_.set(D,(_.get(D)??0)+1);let P=new Map;for(let[D,{model:h,provider:p}]of w)P.set(D,(_.get(h)??0)>1?`${h} (${p})`:h);let I=[...new Set(Q.map((D)=>D.timestamp))].sort((D,h)=>D-h),A=w.map(([D])=>P.get(D)??D);if(Q.some((D)=>!R.has(`${D.model}::${D.provider}`)))A.push("Other");let O=new Map;for(let D of I)O.set(D,{});for(let D of Q){let h=`${D.model}::${D.provider}`,p=R.has(h)?P.get(h)??D.model:"Other",s=O.get(D.timestamp);if(!s)continue;let a=s[p]??N();K(a,D),s[p]=a}return{labels:I.map((D)=>F4(new Date(D),"MMM d")),datasets:A.map((D)=>({label:D,data:I.map((h)=>{let p=O.get(h)?.[D];return p?H(p):0})}))}}var y1=n(U0(),1);function y2(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function wX({timestamps:Q,values:J,color:X}){let q={labels:Q.map((K)=>F4(new Date(K),"MMM d")),datasets:[{data:J,...y2(X)}]};return y1.jsxDEV(f5,{data:q,options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1},y:{display:!1,min:0}}}},void 0,!1,void 0,this)}function RX(Q){return{legend:{display:!0,position:"top",labels:{color:Q.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:Q.tooltipBackground,titleColor:Q.tooltipTitle,bodyColor:Q.tooltipBody,borderColor:Q.tooltipBorder,borderWidth:1,cornerRadius:8}}}function TP(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}},min:0}}}function CP(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:Q.tick,font:{size:11}}}}}function zX({title:Q,subtitle:J,children:X}){return y1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[y1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[y1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?y1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),y1.jsxDEV("div",{className:"overflow-x-auto",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function jD(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function _X({columns:Q,gridTemplate:J}){return y1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:J},children:[Q.map((X)=>y1.jsxDEV("div",{className:jD(X.align),children:X.label},X.label,!1,void 0,this)),y1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function LX({children:Q}){return y1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function PX({model:Q,provider:J}){return y1.jsxDEV("div",{children:[y1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),y1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function TX({gridTemplate:Q,cells:J,trendCell:X,isExpanded:q,onToggle:N,expandedContent:K}){return y1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[y1.jsxDEV("button",{type:"button",onClick:N,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:y1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,y1.jsxDEV("div",{className:"h-10",children:X},void 0,!1,void 0,this),y1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:q?y1.jsxDEV(gQ,{size:16},void 0,!1,void 0,this):y1.jsxDEV(yQ,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q?y1.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function CX(){return y1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function IX({message:Q="No data available"}){return y1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Q},void 0,!1,void 0,this)}function S0(Q){return Q.toLocaleString()}function N1(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function R1(Q,J){if(Q===0)return"$0";let X=J!==void 0?J:Q>0&&Q<0.01?4:2;return`$${Q.toLocaleString(void 0,{minimumFractionDigits:X,maximumFractionDigits:X})}`}function d1(Q,J=1){return`${(Q*100).toFixed(J)}%`}function y5(Q,J){if(Q===null)return"-";let X=Q/1000,q=J!==void 0?J:X<1?2:1;return`${X.toFixed(q)}s`}function OX(Q){if(Q===null)return"-";return Q.toFixed(1)}function Y6(Q){return WP(new Date(Q),{addSuffix:!0})}function gK(Q){if(Q>=1e9)return`${(Q/1e9).toFixed(1)} GB`;if(Q>=1e6)return`${(Q/1e6).toFixed(1)} MB`;if(Q>=1000)return`${(Q/1000).toFixed(1)} KB`;return`${Q} B`}var O5=n(T1(),1),c8=new Map,DD=64;function a1(Q,J,X){let q=JSON.stringify(Q),[N,K]=O5.useState(()=>c8.get(q)?.data??null),[H,F]=O5.useState(null),[M,w]=O5.useState(()=>!c8.has(q)),[R,_]=O5.useState(!1),[P,I]=O5.useState(()=>c8.get(q)?.updatedAt??null),A=O5.useRef(J);A.current=J;let V=O5.useRef(q);V.current=q;let O=X?.enabled??!0,D=X?.pollMs,h=O5.useRef(null),p=O5.useRef(!1);p.current=N!==null;let s=O5.useCallback(async(J0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,J0)_(!0);else w(!0),K(null);F(null);try{let i=await A.current(t.signal);if(t.signal.aborted)return;if(c8.set(V.current,{data:i,updatedAt:Date.now()}),c8.size>DD){let Y0=c8.keys().next().value;if(Y0!==void 0)c8.delete(Y0)}K(i),I(Date.now()),F(null)}catch(i){if(t.signal.aborted)return;F(i instanceof Error?i:Error(String(i)))}finally{if(!t.signal.aborted){if(w(!1),_(!1),h.current===t)h.current=null}}},[]);O5.useEffect(()=>{if(!O){w(!1),_(!1);return}let J0=c8.get(q);if(J0)K(J0.data),I(J0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[q,O,s]),O5.useEffect(()=>{if(!O||!D)return;let J0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval(J0)}},[O,D,s]);let a=O5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:M,refreshing:R,refetch:a,updatedAt:P}}var IP=3600000,VX=24*IP,vD=300000,OP={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:vD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:IP,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:VX,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:VX,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:VX,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:VX,bucketCount:0,tickFormat:"MMM d"}};function Z9(Q){return OP[Q]}function NJ(Q,J){return F4(new Date(Q),OP[J].tickFormat)}var bD=["main","subagent","advisor"];function AX(Q){return Q.totalInputTokens+Q.totalOutputTokens+Q.totalCacheReadTokens+Q.totalCacheWriteTokens}function VP(Q){let J=new Map;for(let H of Q)J.set(H.agentType,H);let X=bD.map((H)=>J.get(H)).filter((H)=>H!==void 0),q=X.reduce((H,F)=>H+AX(F),0),N=X.reduce((H,F)=>H+F.totalCost,0),K=X.map((H)=>{let F=AX(H);return{agentType:H.agentType,tokens:F,requests:H.totalRequests,cost:H.totalCost,share:q>0?F/q:0}});return{totalTokens:q,totalCost:N,segments:K}}function AP(Q){let J=Q.reduce((F,M)=>F+M.cost,0),X=new Set(Q.map((F)=>F.timestamp)).size,q=X>0?J/X:0,N=new Map;for(let F of Q)N.set(F.model,(N.get(F.model)??0)+F.cost);let K="",H=0;for(let[F,M]of N)if(M>H)K=F,H=M;return{totalCost:J,avgDailyCost:q,topModelName:K,topModelCost:H}}function EP(Q,J){if(Q.length===0)return new Map;let X=Z9(J),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let M=Q.reduce((_,P)=>Math.max(_,P.timestamp),0),R=(M>0?M:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(_,P)=>R+P*q)})():Array.from(new Set(Q.map((M)=>M.timestamp))).sort((M,w)=>M-w),H=new Map(K.map((M,w)=>[M,w])),F=new Map;for(let M of Q){let w=`${M.model}::${M.provider}`,R=F.get(w);if(!R)R={label:`${M.model} (${M.provider})`,data:K.map((P)=>({timestamp:P,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},F.set(w,R);let _=H.get(M.timestamp);if(_===void 0)continue;R.data[_]={timestamp:M.timestamp,avgTtftSeconds:M.avgTtft!==null?M.avgTtft/1000:null,avgTokensPerSecond:M.avgTokensPerSecond,requests:M.requests}}return F}function SP(Q,J){let X=Q.totalNegation+Q.totalRepetition+Q.totalBlame,q=new Map;for(let K of J){let H=`${K.model}::${K.provider}`,F=q.get(H),M=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(F)F.score+=M;else q.set(H,{model:K.model,provider:K.provider,score:M})}let N=null;for(let K of q.values())if(!N||K.score>N.score)N=K;return{totalMessages:Q.totalMessages,totalYelling:Q.totalYelling,totalProfanity:Q.totalProfanity,totalAnguish:Q.totalAnguish,totalFrustration:X,highestFrictionModel:N}}function jP(Q){let J=[...Q].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),X=J.reduce((N,K)=>Math.max(N,K.totalCost),0),q=J.reduce((N,K)=>Math.max(N,K.totalRequests),0);return J.map((N)=>({...N,costPercentage:X>0?N.totalCost/X*100:0,requestsPercentage:q>0?N.totalRequests/q*100:0}))}function DP(Q){let J=Q.reduce((X,q)=>Math.max(X,q.calls),0);return Q.map((X)=>({...X,errorRate:X.calls>0?X.errors/X.calls:0,callsPercentage:J>0?X.calls/J*100:0}))}var EX=n(U0(),1);function j$({message:Q="No data available",icon:J=cQ,className:X=""}){return EX.jsxDEV("div",{className:`stats-empty-state ${X}`,children:[EX.jsxDEV(J,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),EX.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var D$=n(U0(),1);function vP({error:Q,onRetry:J,className:X=""}){return D$.jsxDEV("div",{className:`stats-error-state ${X}`,children:D$.jsxDEV("div",{className:"stats-error-state-content",children:[D$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&D$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),J&&D$.jsxDEV("button",{type:"button",onClick:J,className:"stats-button stats-button-secondary stats-error-state-btn",children:"Retry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var bP=n(U0(),1);function N6({variant:Q="text",width:J,height:X,className:q=""}){let N={width:J!==void 0?typeof J==="number"?`${J}px`:J:void 0,height:X!==void 0?typeof X==="number"?`${X}px`:X:void 0};return bP.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var j6=n(U0(),1);function g1({loading:Q,error:J,data:X,empty:q=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:F}){if(J&&X===null)return j6.jsxDEV(vP,{error:J,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return j6.jsxDEV(j6.Fragment,{children:K},void 0,!1,void 0,this);return j6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[j6.jsxDEV(N6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),j6.jsxDEV(N6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),j6.jsxDEV(N6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),j6.jsxDEV(N6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(q||X===null))return j6.jsxDEV(j$,{message:N},void 0,!1,void 0,this);return j6.jsxDEV(j6.Fragment,{children:F},void 0,!1,void 0,this)}var U6=n(U0(),1);function K6({columns:Q,data:J,keyExtractor:X,onRowClick:q,renderMobileCard:N,emptyText:K="No data available"}){let H=(F,M)=>{if(q&&(F.key==="Enter"||F.key===" "))F.preventDefault(),q(M)};if(J.length===0)return U6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return U6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&U6.jsxDEV("div",{className:"stats-table-mobile-only",children:U6.jsxDEV("div",{className:"stats-table-mobile-list",children:J.map((F)=>{let M=String(X(F));return U6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(F,q?()=>q(F):void 0)},M,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),U6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:U6.jsxDEV("table",{className:"stats-table",children:[U6.jsxDEV("thead",{children:U6.jsxDEV("tr",{children:Q.map((F)=>{let M=["stats-table-th",F.numeric?"stats-text-right":"stats-text-left",F.className||""].filter(Boolean).join(" ");return U6.jsxDEV("th",{className:M,children:F.header},F.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),U6.jsxDEV("tbody",{children:J.map((F)=>{let M=String(X(F)),w=typeof q==="function",R=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return U6.jsxDEV("tr",{className:R,onClick:w?()=>q(F):void 0,onKeyDown:w?(_)=>H(_,F):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:Q.map((_)=>{let P=["stats-table-td",_.numeric?"stats-text-right":"stats-text-left",_.className||""].filter(Boolean).join(" ");return U6.jsxDEV("td",{className:P,children:_.render?_.render(F):F[_.key]},_.key,!1,void 0,this)})},M,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Q9=n(T1(),1),i6=n(U0(),1);function hK({data:Q,title:J,initialCollapsed:X=!1}){let[q,N]=Q9.useState(X),[K,H]=Q9.useState(!1),F=Q9.useRef(0),M=JSON.stringify(Q,null,2);return Q9.useEffect(()=>()=>window.clearTimeout(F.current),[]),i6.jsxDEV("div",{className:"stats-json-block",children:[i6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!q),onKeyDown:(_)=>{if(_.key==="Enter"||_.key===" ")_.preventDefault(),N(!q)},tabIndex:0,role:"button","aria-expanded":!q,children:[i6.jsxDEV("span",{className:"stats-json-block-title",children:J||"JSON"},void 0,!1,void 0,this),i6.jsxDEV("div",{className:"stats-json-actions",children:[i6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(_)=>{_.stopPropagation();try{await navigator.clipboard.writeText(M),H(!0),window.clearTimeout(F.current),F.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?i6.jsxDEV(fQ,{size:13},void 0,!1,void 0,this):i6.jsxDEV(uQ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),i6.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":q,children:q?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!q&&i6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:i6.jsxDEV("pre",{className:"stats-json-block-content",children:i6.jsxDEV("code",{children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var s0=n(U0(),1);function kP({stats:Q}){let J=AX(Q);return s0.jsxDEV("div",{className:"stats-metric-cluster",children:[s0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:R1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:S0(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:d1(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card primary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:d1(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[s0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input not served from cache",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Uncached Input"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Conversation input read from the prompt cache",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Cache Read"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.totalCacheReadTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",title:"Uncached input + cache reads + cache writes + output",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Conversation Total"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:N1(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:S0(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:OX(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:y5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s0.jsxDEV("div",{className:"stats-metric-card secondary",children:[s0.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),s0.jsxDEV("div",{className:"stats-metric-value",children:y5(Q.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var l8=n(U0(),1);function q1({title:Q,subtitle:J,actions:X,children:q,className:N="",...K}){return l8.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(Q||J||X)&&l8.jsxDEV("div",{className:"stats-panel-header",children:[l8.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&l8.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),J&&l8.jsxDEV("p",{className:"stats-panel-subtitle",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&l8.jsxDEV("div",{className:"stats-panel-actions",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l8.jsxDEV("div",{className:"stats-panel-body",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var a4=n(T1(),1);var fP=n(U0(),1);function V5({variant:Q,children:J,className:X=""}){return fP.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:J},void 0,!1,void 0,this)}var w0=n(U0(),1);function yP({id:Q,onClose:J}){let[X,q]=a4.useState(null),[N,K]=a4.useState(!1),[H,F]=a4.useState(null),M=a4.useRef(null),w=a4.useRef(null);if(a4.useEffect(()=>{if(Q===null){q(null);return}M.current=document.activeElement,K(!0),F(null),q(null);let _=new AbortController;return WL(Q,_.signal).then((P)=>{if(_.signal.aborted)return;q(P),setTimeout(()=>w.current?.focus(),50)}).catch((P)=>{if(_.signal.aborted)return;F(P instanceof Error?P:Error(String(P)))}).finally(()=>{if(!_.signal.aborted)K(!1)}),()=>_.abort()},[Q]),a4.useEffect(()=>{if(Q===null)return;let _=(P)=>{if(P.key==="Escape")J()};return window.addEventListener("keydown",_),()=>{if(window.removeEventListener("keydown",_),M.current)M.current.focus()}},[Q,J]),Q===null)return null;return w0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(_)=>{if(_.target===_.currentTarget)J()},role:"presentation",children:w0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[w0.jsxDEV("div",{className:"stats-drawer-header",children:[w0.jsxDEV("div",{className:"stats-drawer-header-left",children:[w0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),X&&w0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",Q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("button",{ref:w,type:"button",onClick:J,className:"stats-drawer-close-btn","aria-label":"Close request details",children:w0.jsxDEV(s7,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&w0.jsxDEV("div",{className:"stats-drawer-loading",children:[w0.jsxDEV(N6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(N6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(N6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(N6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&w0.jsxDEV("div",{className:"stats-drawer-error",children:[w0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),w0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&w0.jsxDEV("div",{className:"stats-drawer-content",children:[w0.jsxDEV("div",{className:"stats-drawer-status-card",children:[w0.jsxDEV("div",{className:"stats-drawer-status-row",children:[w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"stats-drawer-model",children:X.model},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-provider",children:X.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV(V5,{variant:X.errorMessage?"danger":"success",children:X.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.errorMessage&&w0.jsxDEV("div",{className:"stats-drawer-error-block",children:[w0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-error-text",children:X.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(n7,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:R1(X.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(tQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(X.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(pQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:S0(X.usage.totalTokens)},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[S0(X.usage.input)," in · ",S0(X.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(hQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:y5(X.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(QJ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:y5(X.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.duration&&X.usage.output>0&&w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(dQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(X.usage.output*1000/X.duration).toFixed(1)},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[w0.jsxDEV(hK,{data:X.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),w0.jsxDEV(hK,{data:X,title:"Raw Request Metadata",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var uK=n(U0(),1);function J9({options:Q,value:J,onChange:X,className:q=""}){return uK.jsxDEV("div",{className:`stats-segmented-control ${q}`,role:"radiogroup",children:Q.map((N)=>{let K=N.value===J;return uK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>X(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var R0=n(U0(),1);function dP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["behavior",J,X],(H)=>RL(J,H),{pollMs:30000,enabled:Q});return R0.jsxDEV("div",{className:"stats-route-container space-y-6",children:R0.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&R0.jsxDEV(R0.Fragment,{children:[R0.jsxDEV(kD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(fD,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(yD,{models:q.byModel,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function SX(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function kD({overall:Q,behaviorSeries:J}){let X=U5.useMemo(()=>SP(Q,J),[Q,J]),q=Q.totalMessages,N=[{label:"User Messages",value:S0(Q.totalMessages),sub:q>0?"in range":void 0},{label:"Yelling (CAPS)",value:S0(Q.totalYelling),sub:SX(Q.totalYelling,q)},{label:"Profanity Hits",value:S0(Q.totalProfanity),sub:SX(Q.totalProfanity,q)},{label:"Anguish Signals",value:S0(Q.totalAnguish),sub:SX(Q.totalAnguish,q)},{label:"Friction Signals",value:S0(X.totalFrustration),sub:SX(X.totalFrustration,q)},{label:"Highest Friction Model",value:X.highestFrictionModel?.model??"—",sub:X.highestFrictionModel?`${S0(X.highestFrictionModel.score)} hits`:void 0}];return R0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:N.map((K)=>R0.jsxDEV(q1,{className:"stats-behavior-summary-card py-3 px-4",children:[R0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:K.label},void 0,!1,void 0,this),R0.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:K.value,children:K.value},void 0,!1,void 0,this),K.sub&&R0.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:K.sub},void 0,!1,void 0,this)]},K.label,!0,void 0,this))},void 0,!1,void 0,this)}var xK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, ugh, dude, ':(')"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong, makes no sense)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, why did you, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function gP(Q){if(!Number.isFinite(Q))return"-";if(Q===0)return"0%";if(Math.abs(Q)<1)return`${Q.toFixed(1)}%`;return`${Q.toFixed(0)}%`}function hP(Q,J){if(J==="frustration")return Q.negation+Q.repetition+Q.blame;if(J==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[J]}function uP(Q,J){if(J<=0)return 0;return Q/J*100}function fD({behaviorSeries:Q}){let[J,X]=U5.useState(!1),[q,N]=U5.useState("total"),K=R5(),H=o1[K],F=U5.useMemo(()=>{if(J)return S$(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=hP(p,q),h.messages+=p.messages},bucketToValue:(h)=>uP(h.hits,h.messages)});let D=xK.find((h)=>h.value===q)?.title??"Hits";return WX(Q,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=hP(p,q),h.messages+=p.messages},bucketToValue:(h)=>uP(h.hits,h.messages)})},[Q,J,q]),M=U5.useMemo(()=>{return s4({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:gP})},[H,J]),{sharedScaleBase:w,yScale:R}=U5.useMemo(()=>{return o4({chartTheme:H,formatY:gP})},[H]),_=U5.useMemo(()=>{return xK.find((D)=>D.value===q)?.title??""},[q]),P=U5.useMemo(()=>{if(!J)return null;return{labels:F.labels,datasets:p8(F,(D)=>E$(H1[D%H1.length]))}},[F,J]),I=U5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:M,scales:{x:w,y:R}}},[M,w,R]),A=U5.useMemo(()=>{if(J)return null;return{labels:F.labels,datasets:p8(F,(D)=>$9(H1[D%H1.length]))}},[F,J]),V=U5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:M,scales:{x:{...w,stacked:!0},y:{...R,stacked:!0}},layout:{padding:{top:8}}}},[M,w,R]),O=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return R0.jsxDEV(q1,{title:"User Friction Signals",subtitle:`${_} as % of user messages per day`,actions:R0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[R0.jsxDEV(J9,{options:xK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:q,onChange:N},void 0,!1,void 0,this),R0.jsxDEV(J9,{options:O,value:J,onChange:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:R0.jsxDEV("div",{className:"h-[300px]",children:F.labels.length===0?R0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No friction signal data available"},void 0,!1,void 0,this):J&&P?R0.jsxDEV(f5,{data:P,options:I},void 0,!1,void 0,this):A?R0.jsxDEV(d8,{data:A,options:V},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var xP="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function mP(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function v$(Q,J){if(J===0)return"-";let X=Q/J*100;if(X===0)return"0%";if(X<1)return`${X.toFixed(1)}%`;return`${X.toFixed(0)}%`}function yD({models:Q,behaviorSeries:J}){let[X,q]=U5.useState(null),N=R5(),K=o1[N],H=U5.useMemo(()=>hD(J),[J]),F=U5.useMemo(()=>{return[...Q].sort((M,w)=>{if(w.totalMessages!==M.totalMessages)return w.totalMessages-M.totalMessages;return mP(w)-mP(M)})},[Q]);return R0.jsxDEV(zX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[R0.jsxDEV(_X,{gridTemplate:xP,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),R0.jsxDEV(LX,{children:[F.map((M,w)=>{let R=`${M.model}::${M.provider}`,_=H.get(R)?.data??[],P=H1[w%H1.length],I=X===R,A=M.totalNegation+M.totalRepetition+M.totalBlame,V=M.totalYelling+M.totalProfanity+M.totalAnguish+A;return R0.jsxDEV(TX,{gridTemplate:xP,isExpanded:I,onToggle:()=>q(I?null:R),cells:[R0.jsxDEV(PX,{model:M.model,provider:M.provider},"name",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:S0(M.totalMessages)},"messages",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(M.totalYelling,M.totalMessages)},"caps",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(M.totalProfanity,M.totalMessages)},"profanity",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(M.totalAnguish,M.totalMessages)},"anguish",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(A,M.totalMessages)},"frustration",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:v$(V,M.totalMessages)},"hits",!1,void 0,this)],trendCell:_.length===0?R0.jsxDEV(CX,{},void 0,!1,void 0,this):R0.jsxDEV(wX,{timestamps:_.map((O)=>O.timestamp),values:_.map((O)=>O.total),color:P},void 0,!1,void 0,this),expandedContent:R0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[R0.jsxDEV("div",{className:"space-y-4 text-sm",children:[R0.jsxDEV(G9,{label:"Yelling (CAPS)",total:M.totalYelling,messages:M.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),R0.jsxDEV(G9,{label:"Profanity",total:M.totalProfanity,messages:M.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),R0.jsxDEV(G9,{label:"Anguish (!!!, nooo, dude, ..)",total:M.totalAnguish,messages:M.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),R0.jsxDEV(G9,{label:"Negation (no/nope/wrong)",total:M.totalNegation,messages:M.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(G9,{label:"Repetition (i meant, still doesnt)",total:M.totalRepetition,messages:M.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(G9,{label:"Blame (you didnt, stop X-ing)",total:M.totalBlame,messages:M.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(G9,{label:"Avg chars / msg",total:M.totalChars,messages:M.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"h-[200px]",children:_.length===0?R0.jsxDEV(IX,{},void 0,!1,void 0,this):R0.jsxDEV(gD,{data:_,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},R,!1,void 0,this)}),F.length===0?R0.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function G9({label:Q,total:J,messages:X,valueClass:q,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=U5.useMemo(()=>{if(X===0)return"-";return N==="rate"?v$(J,X):(J/X).toFixed(0)},[J,X,N]);return R0.jsxDEV("div",{children:[R0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},void 0,!1,void 0,this),R0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),R0.jsxDEV("span",{className:`font-mono text-xs ${q}`,children:S0(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:K},void 0,!1,void 0,this),R0.jsxDEV("span",{className:"font-mono text-xs stats-text-primary",children:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var jX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function gD({data:Q,chartTheme:J}){let X=U5.useMemo(()=>{return{labels:Q.map((N)=>F4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...y2(jX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...y2(jX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...y2(jX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...y2(jX.frustration)}]}},[Q]),q=U5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:RX(J),scales:TP(J)}},[J]);return R0.jsxDEV(f5,{data:X,options:q},void 0,!1,void 0,this)}function hD(Q){if(Q.length===0)return new Map;let J=[...new Set(Q.map((N)=>N.timestamp))].sort((N,K)=>N-K),X=new Map;for(let N of Q){let K=`${N.model}::${N.provider}`,H=X.get(K);if(!H)H=new Map,X.set(K,H);let F=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};F.yelling+=N.yelling,F.profanity+=N.profanity,F.anguish+=N.anguish,F.frustration+=N.negation+N.repetition+N.blame,F.total=F.yelling+F.profanity+F.anguish+F.frustration,H.set(N.timestamp,F)}let q=new Map;for(let[N,K]of X){let H=J.map((F)=>K.get(F)??{timestamp:F,yelling:0,profanity:0,anguish:0,frustration:0,total:0});q.set(N,{data:H})}return q}var t6=n(T1(),1);var K5=n(U0(),1);function pP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["costs",J,X],(H)=>FL(J,H),{pollMs:30000,enabled:Q});return K5.jsxDEV("div",{className:"stats-route-container space-y-6",children:K5.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&K5.jsxDEV(K5.Fragment,{children:[K5.jsxDEV(uD,{costSeries:q.costSeries},void 0,!1,void 0,this),K5.jsxDEV(dD,{costSeries:q.costSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function uD({costSeries:Q}){let J=t6.useMemo(()=>AP(Q),[Q]),X=[{label:"Total Cost",value:R1(J.totalCost)},{label:"Average / Day",value:R1(J.avgDailyCost)},{label:"Top Model",value:J.topModelName||"—",sub:J.topModelName?R1(J.topModelCost):void 0}];return K5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((q)=>K5.jsxDEV(q1,{className:"stats-cost-overview-card py-4 px-5",children:[K5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:q.label},void 0,!1,void 0,this),K5.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:q.value,children:q.value},void 0,!1,void 0,this),q.sub&&K5.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",q.sub]},void 0,!0,void 0,this)]},q.label,!0,void 0,this))},void 0,!1,void 0,this)}var xD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function mD(Q){return{id:"costBarLabels",afterDatasetsDraw(J){let{ctx:X}=J;if(!J.data.datasets[0])return;let N=J.getDatasetMeta(0);X.save(),X.font="11px system-ui, sans-serif",X.fillStyle=Q,X.textAlign="center",X.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let F=`$${Math.round(H)}`,{x:M,y:w}=K.getProps(["x","y"],!0);X.fillText(F,M,w-3)}X.restore()}}}function dD({costSeries:Q}){let[J,X]=t6.useState(!1),q=R5(),N=o1[q],K=t6.useMemo(()=>{if(J)return S$(Q,{rankWeight:(V)=>V.cost,initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total});return WX(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total})},[Q,J]),H=t6.useMemo(()=>{return s4({chartTheme:N,showLegend:J,defaultLabel:"Cost",formatValue:(V)=>`$${V.toFixed(2)}`,footer:(V)=>{if(!J||V.length<2)return;return`Total: $${V.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[N,J]),{sharedScaleBase:F,yScale:M}=t6.useMemo(()=>{return o4({chartTheme:N,formatY:(V)=>`$${Math.round(V)}`})},[N]),w=t6.useMemo(()=>{return mD(xD[q])},[q]),R=t6.useMemo(()=>{if(!J)return null;return{labels:K.labels,datasets:p8(K,(V)=>E$(H1[V%H1.length]))}},[K,J]),_=t6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:F,y:M}}},[H,F,M]),P=t6.useMemo(()=>{if(J)return null;return{labels:K.labels,datasets:p8(K,(V)=>$9(H1[V%H1.length]))}},[K,J]),I=t6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...F,stacked:!0},y:{...M,stacked:!0}},layout:{padding:{top:24}}}},[H,F,M]);return K5.jsxDEV(q1,{title:"Daily Cost",subtitle:"API spending over time",actions:K5.jsxDEV(J9,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:J,onChange:X},void 0,!1,void 0,this),children:K5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?K5.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No cost data available"},void 0,!1,void 0,this):J&&R?K5.jsxDEV(f5,{data:R,options:_},void 0,!1,void 0,this):P?K5.jsxDEV(d8,{data:P,options:I,plugins:[w]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var cP=n(T1(),1);var D1=n(U0(),1);function lP({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=a1(["recent-errors-dense",J,X],(w)=>ML(J,50,w),{pollMs:30000,enabled:Q}),F=cP.useMemo(()=>[{key:"model",header:"Model",render:(w)=>D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:w.model},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:w.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(w)=>Y6(w.timestamp)},{key:"errorMessage",header:"Error Message",render:(w)=>D1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:w.errorMessage||"",children:w.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(w)=>S0(w.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(w)=>R1(w.usage.cost.total,4)}],[]);return D1.jsxDEV("div",{className:"stats-route-container",children:D1.jsxDEV(q1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:D1.jsxDEV(g1,{loading:H,error:K,data:N,emptyText:"No recent failures in the local stats database",children:D1.jsxDEV(K6,{columns:F,data:N||[],keyExtractor:(w)=>w.id||`${w.sessionFile}-${w.entryId}`,onRowClick:(w)=>w.id&&q(w.id),renderMobileCard:(w,R)=>D1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:R,children:[D1.jsxDEV("div",{className:"stats-mobile-card-header",children:[D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.model},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:w.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV(V5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:Y6(w.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:R1(w.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D1.jsxDEV("div",{children:[D1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),D1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(w.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.errorMessage&&D1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:w.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent failures in the local stats database"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var DX=n(T1(),1);var O0=n(U0(),1);function rP({active:Q,range:J,refreshTrigger:X}){let[q,N]=DX.useState(null),{data:K,error:H,loading:F}=a1(["gain",J,X,q],(M)=>_L(J,q,M),{pollMs:30000,enabled:Q});return O0.jsxDEV("div",{className:"stats-route-container space-y-6",children:O0.jsxDEV(g1,{loading:F,error:H,data:K,children:K&&O0.jsxDEV(O0.Fragment,{children:[O0.jsxDEV(pD,{projects:K.projects,selected:q,onChange:N},void 0,!1,void 0,this),O0.jsxDEV(cD,{overall:K.overall},void 0,!1,void 0,this),O0.jsxDEV(rD,{bySource:K.bySource},void 0,!1,void 0,this),O0.jsxDEV(sD,{timeSeries:K.timeSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function pD({projects:Q,selected:J,onChange:X}){if(Q.length===0)return null;return O0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[O0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),O0.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(q)=>X(q.target.value||null),style:{maxWidth:"480px",flex:1},children:[O0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),Q.map((q)=>O0.jsxDEV("option",{value:q,children:q},q,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cD({overall:Q}){return O0.jsxDEV(q1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:O0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:N1(Q.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:gK(Q.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:Q.reductionPercent!==null?d1(Q.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"stats-metric-card primary",children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",children:S0(Q.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function lD({title:Q,totals:J}){return O0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[O0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:Q},void 0,!1,void 0,this),O0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:N1(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:gK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:S0(J.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:J.reductionPercent!==null?d1(J.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rD({bySource:Q}){return O0.jsxDEV(q1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:O0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:O0.jsxDEV(lD,{title:"Snapcompact",totals:Q.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var nD={snapcompact:"rgb(34, 197, 94)"};function sD({timeSeries:Q}){let J=R5(),X=o1[J],{data:q,options:N}=DX.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),F={labels:Q.map((_)=>K.format(new Date(`${_.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:Q.map((_)=>_.snapcompact),...E$(nD.snapcompact)}]},{sharedScaleBase:M,yScale:w}=o4({chartTheme:X,formatY:(_)=>N1(_)}),R={responsive:!0,maintainAspectRatio:!1,plugins:s4({chartTheme:X,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:N1}),scales:{x:{...M,stacked:!0},y:{...w,stacked:!0}}};return{data:F,options:R}},[Q,X]);return O0.jsxDEV(q1,{title:"Savings Over Time",subtitle:"Daily token savings",children:O0.jsxDEV("div",{style:{height:240},children:Q.length===0?O0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):O0.jsxDEV(f5,{data:q,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var i4=n(T1(),1);var j0=n(U0(),1);function sP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["models",J,X],(H)=>HL(J,H),{pollMs:30000,enabled:Q});return j0.jsxDEV("div",{className:"stats-route-container space-y-6",children:j0.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&j0.jsxDEV(j0.Fragment,{children:[j0.jsxDEV(oD,{modelSeries:q.modelSeries,timeRange:J},void 0,!1,void 0,this),j0.jsxDEV(iD,{models:q.byModel,performanceSeries:q.modelPerformanceSeries,timeRange:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function oD({modelSeries:Q,timeRange:J}){let X=R5(),q=o1[X],N=Z9(J),K=i4.useMemo(()=>aD(Q),[Q]),H=i4.useMemo(()=>{return{labels:K.data.map((M)=>NJ(M.timestamp,J)),datasets:K.series.map((M,w)=>({label:M,data:K.data.map((R)=>R[M]??0),borderColor:H1[w%H1.length],backgroundColor:`${H1[w%H1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,J]),F=i4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(M)=>{let w=M.dataset.label??"",R=M.parsed.y;return`${w}: ${(R??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},callback:(M)=>`${M}%`},min:0,max:100}}}},[q]);return j0.jsxDEV(q1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:j0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?j0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):j0.jsxDEV(f5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function aD(Q,J=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let _ of Q){let P=`${_.model}::${_.provider}`,I=X.get(P);if(I)I.total+=_.requests;else X.set(P,{model:_.model,provider:_.provider,total:_.requests})}let N=[...X.entries()].map(([_,P])=>({key:_,...P})).sort((_,P)=>P.total-_.total).slice(0,J),K=new Set(N.map((_)=>_.key)),H=new Map;for(let _ of N)H.set(_.model,(H.get(_.model)??0)+1);let F=new Map;for(let _ of N){let P=(H.get(_.model)??0)>1;F.set(_.key,P?`${_.model} (${_.provider})`:_.model)}let M=new Map;for(let _ of Q){let P=`${_.model}::${_.provider}`,I=M.get(_.timestamp)??{timestamp:_.timestamp,total:0};I.total+=_.requests;let A=K.has(P)?F.get(P)??_.model:"Other";I[A]=(I[A]??0)+_.requests,M.set(_.timestamp,I)}let w=N.map((_)=>F.get(_.key)??_.model);if([...M.values()].some((_)=>(_.Other??0)>0))w.push("Other");return{data:[...M.values()].sort((_,P)=>(_.timestamp??0)-(P.timestamp??0)).map((_)=>{let P=_.total??0;for(let I of w)_[I]=P>0?(_[I]??0)/P*100:0;return _}),series:w}}var nP="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function iD({models:Q,performanceSeries:J,timeRange:X}){let[q,N]=i4.useState(null),K=Z9(X),H=i4.useMemo(()=>EP(J,X),[J,X]),F=R5(),M=o1[F],w=i4.useMemo(()=>{return[...Q].sort((R,_)=>_.totalInputTokens+_.totalOutputTokens-(R.totalInputTokens+R.totalOutputTokens))},[Q]);return j0.jsxDEV(zX,{title:"Model Statistics",children:[j0.jsxDEV(_X,{gridTemplate:nP,columns:[{label:"Model"},{label:"Requests",align:"right"},{label:"Cost",align:"right"},{label:"Tokens",align:"right"},{label:"Tokens/s",align:"right"},{label:"TTFT",align:"right"},{label:K.trendLabel,align:"center"}]},void 0,!1,void 0,this),j0.jsxDEV(LX,{children:w.map((R,_)=>{let P=`${R.model}::${R.provider}`,A=H.get(P)?.data??[],V=H1[_%H1.length],O=q===P,D=R.errorRate*100;return j0.jsxDEV(TX,{gridTemplate:nP,isExpanded:O,onToggle:()=>N(O?null:P),cells:[j0.jsxDEV(PX,{model:R.model,provider:R.provider},"name",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.totalRequests.toLocaleString()},"requests",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",R.totalCost.toFixed(2)]},"cost",!0,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(R.totalInputTokens+R.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),j0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:A.length===0?j0.jsxDEV(CX,{},void 0,!1,void 0,this):j0.jsxDEV(wX,{timestamps:A.map((h)=>h.timestamp),values:A.map((h)=>h.avgTokensPerSecond??0),color:V},void 0,!1,void 0,this),expandedContent:j0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[j0.jsxDEV("div",{className:"space-y-4 text-sm",children:[j0.jsxDEV("div",{children:[j0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),j0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:D>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[D.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(R.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{children:[j0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),j0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:"font-mono",children:R.avgDuration?`${(R.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{className:"flex items-center justify-between",children:[j0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),j0.jsxDEV("span",{className:"font-mono",children:R.avgTtft?`${(R.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j0.jsxDEV("div",{className:"h-[200px]",children:A.length===0?j0.jsxDEV(IX,{},void 0,!1,void 0,this):j0.jsxDEV(tD,{data:A,color:V,chartTheme:M,timeRange:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},P,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function tD({data:Q,color:J,chartTheme:X,timeRange:q}){let N=i4.useMemo(()=>{return{labels:Q.map((H)=>NJ(H.timestamp,q)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...y2("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...y2(J),yAxisID:"y1"}]}},[Q,J,q]),K=i4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:RX(X),scales:CP(X)}},[X]);return j0.jsxDEV(f5,{data:N,options:K},void 0,!1,void 0,this)}var UJ=n(T1(),1);var oP=n(T1(),1);var B6=n(U0(),1),vX={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function aP({stats:Q}){let J=oP.useMemo(()=>VP(Q),[Q]);if(J.totalTokens===0)return B6.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No token usage in this range"},void 0,!1,void 0,this);return B6.jsxDEV("div",{className:"space-y-4",children:[B6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:J.segments.map((X)=>X.share>0&&B6.jsxDEV("div",{className:"h-full",style:{width:`${X.share*100}%`,background:vX[X.agentType].color},title:`${vX[X.agentType].label}: ${d1(X.share)}`},X.agentType,!1,void 0,this))},void 0,!1,void 0,this),B6.jsxDEV("div",{className:"space-y-2",children:J.segments.map((X)=>B6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[B6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[B6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:vX[X.agentType].color}},void 0,!1,void 0,this),B6.jsxDEV("span",{className:"stats-text-primary truncate",children:vX[X.agentType].label},void 0,!1,void 0,this),B6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[S0(X.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[B6.jsxDEV("span",{className:"stats-text-secondary",children:[N1(X.tokens)," tok"]},void 0,!0,void 0,this),B6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:d1(X.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},X.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K0=n(U0(),1);function iP({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=a1(["overview",J,X],(D)=>BL(J,D),{pollMs:30000,enabled:Q}),{data:F,error:M,loading:w}=a1(["recent-requests",X],(D)=>UX(50,D),{pollMs:30000,enabled:Q}),R=R5(),_=o1[R],P=UJ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let D=N.timeSeries.map((p)=>F4(new Date(p.timestamp),J==="1h"||J==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:D,datasets:[{label:"Requests",data:N.timeSeries.map((p)=>p.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0},{label:"Errors",data:N.timeSeries.map((p)=>p.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0}]}},[N?.timeSeries,J]),I=UJ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:_.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:_.tooltipBackground,titleColor:_.tooltipTitle,bodyColor:_.tooltipBody,borderColor:_.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}}},y:{grid:{color:_.grid,drawBorder:!1},ticks:{color:_.tick,font:{size:10}},min:0}}}},[_]),A=UJ.useMemo(()=>[{key:"model",header:"Model",render:(D)=>K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(D)=>Y6(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>S0(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>R1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>y5(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>K0.jsxDEV(V5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),V=(D,h)=>K0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[K0.jsxDEV("div",{className:"stats-mobile-card-header",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(V5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:Y6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:R1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:y5(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&K0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O=UJ.useMemo(()=>{if(!F)return[];return F.slice(0,10)},[F]);return K0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[K0.jsxDEV(g1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(kP,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV(q1,{title:"Conversation Tokens by Agent",subtitle:"Uncached input + cache reads + cache writes + output, grouped by agent type",children:K0.jsxDEV(g1,{loading:H,error:K,data:N,children:N&&K0.jsxDEV(aP,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[K0.jsxDEV("div",{className:"lg:col-span-2",children:K0.jsxDEV(q1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:K0.jsxDEV(g1,{loading:H,error:K,data:N,children:K0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?K0.jsxDEV(f5,{data:P,options:I},void 0,!1,void 0,this):K0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{children:K0.jsxDEV(q1,{title:"Operational Feed",subtitle:"Real-time request log",children:K0.jsxDEV(g1,{loading:w,error:M,data:F,fallback:K0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>K0.jsxDEV("div",{className:"flex items-center gap-3",children:[K0.jsxDEV(N6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1",children:[K0.jsxDEV(N6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),K0.jsxDEV(N6,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this))},void 0,!1,void 0,this),children:K0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[O.map((D)=>{let h=!!D.errorMessage;return K0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>D.id&&q(D.id),children:[K0.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${h?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1 min-w-0",children:[K0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:Y6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[K0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),K0.jsxDEV("div",{children:[D.duration?y5(D.duration):""," ",D.usage?.cost?.total?`· ${R1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&K0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.id||`${D.sessionFile}-${D.entryId}`,!0,void 0,this)}),O.length===0&&K0.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(q1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:K0.jsxDEV("a",{href:`#/requests?range=${J}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:K0.jsxDEV(g1,{loading:w,error:M,data:F,children:K0.jsxDEV(K6,{columns:A,data:O,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&q(D.id),renderMobileCard:V,emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var mK=n(T1(),1);var Y1=n(U0(),1);function tP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["projects",J,X],(w)=>zL(J,w),{pollMs:30000,enabled:Q}),H=mK.useMemo(()=>{if(!q)return[];return jP(q)},[q]),F=mK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>Y1.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:w.folder||"(root)",children:w.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(w)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:S0(w.totalRequests)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${w.requestsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalCost",header:"Cost",numeric:!0,render:(w)=>Y1.jsxDEV("div",{className:"stats-text-right",children:[Y1.jsxDEV("div",{className:"font-mono",children:R1(w.totalCost)},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Y1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${w.costPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalTokens",header:"Tokens",numeric:!0,render:(w)=>Y1.jsxDEV("div",{className:"font-mono",children:S0(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>Y1.jsxDEV("span",{className:"stats-text-success font-medium",children:d1(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>Y1.jsxDEV(V5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:d1(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>y5(w.avgDuration)}],[]);return Y1.jsxDEV("div",{className:"stats-route-container",children:Y1.jsxDEV(q1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Y1.jsxDEV(g1,{loading:K,error:N,data:q,emptyText:"No project folders recorded for this range.",children:Y1.jsxDEV(K6,{columns:F,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>Y1.jsxDEV("div",{className:"stats-mobile-card",children:[Y1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Y1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),Y1.jsxDEV(V5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[d1(w.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(w.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:R1(w.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:d1(w.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y1.jsxDEV("div",{children:[Y1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Y1.jsxDEV("div",{className:"stats-mobile-card-value",children:y5(w.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No project folders recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var g5=n(T1(),1);var m0=n(U0(),1);function eP({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["providers",J,X],(H)=>PL(J,H),{pollMs:30000,enabled:Q});return m0.jsxDEV("div",{className:"stats-route-container space-y-6",children:m0.jsxDEV(g1,{loading:K,error:N,data:q,children:q&&m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(eD,{providers:q.providers},void 0,!1,void 0,this),m0.jsxDEV($v,{stats:q},void 0,!1,void 0,this),m0.jsxDEV(Zv,{hourly:q.hourly,providers:q.providers},void 0,!1,void 0,this),m0.jsxDEV(Qv,{insights:q.windowInsights},void 0,!1,void 0,this),m0.jsxDEV(Jv,{usageSeries:q.usageSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function eD({providers:Q}){let J=g5.useMemo(()=>Q.reduce((q,N)=>q+N.totalTokens,0),[Q]);return m0.jsxDEV(q1,{title:"Provider Totals",subtitle:"Token, request, and cost totals per provider over the active range",children:m0.jsxDEV(K6,{columns:[{key:"provider",header:"Provider",render:(q)=>m0.jsxDEV("span",{className:"font-medium",children:q.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",numeric:!0,render:(q)=>S0(q.totalRequests)},{key:"errors",header:"Error Rate",numeric:!0,render:(q)=>d1(q.totalRequests>0?q.failedRequests/q.totalRequests:0)},{key:"models",header:"Models",numeric:!0,render:(q)=>S0(q.models)},{key:"tokens",header:"Tokens",numeric:!0,render:(q)=>m0.jsxDEV("span",{title:`Input ${N1(q.totalInputTokens)} · Output ${N1(q.totalOutputTokens)} · Cache read ${N1(q.totalCacheReadTokens)} · Cache write ${N1(q.totalCacheWriteTokens)}`,children:N1(q.totalTokens)},void 0,!1,void 0,this)},{key:"share",header:"Share",numeric:!0,render:(q)=>d1(J>0?q.totalTokens/J:0)},{key:"cost",header:"Cost",numeric:!0,render:(q)=>R1(q.totalCost)},{key:"tps",header:"Tok/s",numeric:!0,render:(q)=>OX(q.avgTokensPerSecond)}],data:Q,keyExtractor:(q)=>q.provider,emptyText:"No requests recorded in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function $v({stats:Q}){let[J,X]=g5.useState("tokens"),q=R5(),N=o1[q],K=g5.useMemo(()=>{let w=Q.series.map((R)=>({...R,model:R.provider}));return S$(w,{topN:6,rankWeight:(R)=>J==="tokens"?R.totalTokens:R.cost,initBucket:()=>({total:0}),accumulate:(R,_)=>{R.total+=J==="tokens"?_.totalTokens:_.cost},bucketToValue:(R)=>R.total})},[Q.series,J]),H=J==="tokens"?N1:(w)=>R1(w),F=g5.useMemo(()=>{let{sharedScaleBase:w,yScale:R}=o4({chartTheme:N,formatY:H});return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:s4({chartTheme:N,showLegend:!0,defaultLabel:J==="tokens"?"Tokens":"Cost",formatValue:H,footer:(_)=>{if(_.length<2)return;let P=_.reduce((I,A)=>I+(A.parsed.y??0),0);return`Total: ${H(P)}`}}),scales:{x:{...w,stacked:!0},y:{...R,stacked:!0}}}},[N,J,H]),M=g5.useMemo(()=>({labels:K.labels,datasets:p8(K,(w)=>$9(H1[w%H1.length]))}),[K]);return m0.jsxDEV(q1,{title:"Burn by Provider",subtitle:"Stacked token/cost burn per provider over time",actions:m0.jsxDEV(J9,{options:[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],value:J,onChange:X},void 0,!1,void 0,this),children:m0.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?m0.jsxDEV(j$,{message:"No provider activity in this range"},void 0,!1,void 0,this):m0.jsxDEV(d8,{data:M,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var dK="__all__";function Zv({hourly:Q,providers:J}){let[X,q]=g5.useState(dK),N=R5(),K=o1[N],{tokensByHour:H,peakHour:F}=g5.useMemo(()=>{let _=Array(24).fill(0);for(let I of Q){if(X!==dK&&I.provider!==X)continue;_[I.hour]+=I.totalTokens}let P=0;for(let I=1;I<24;I++)if(_[I]>_[P])P=I;return{tokensByHour:_,peakHour:P}},[Q,X]),M=H.some((_)=>_>0),w=g5.useMemo(()=>({labels:Array.from({length:24},(_,P)=>`${String(P).padStart(2,"0")}:00`),datasets:[{label:"Tokens",data:H,...$9(H1[2]),backgroundColor:H.map((_,P)=>P===F?H1[0]:H1[2])}]}),[H,F]),R=g5.useMemo(()=>{let{sharedScaleBase:_,yScale:P}=o4({chartTheme:K,formatY:N1});return{responsive:!0,maintainAspectRatio:!1,plugins:s4({chartTheme:K,showLegend:!1,defaultLabel:"Tokens",formatValue:N1}),scales:{x:_,y:P}}},[K]);return m0.jsxDEV(q1,{title:"Peak Burn Hours",subtitle:M?`Token burn by local hour of day — peak at ${String(F).padStart(2,"0")}:00`:"Token burn by local hour of day",actions:m0.jsxDEV("select",{className:"stats-select",value:X,onChange:(_)=>q(_.target.value),"aria-label":"Provider",children:[m0.jsxDEV("option",{value:dK,children:"All providers"},void 0,!1,void 0,this),J.map((_)=>m0.jsxDEV("option",{value:_.provider,children:_.provider},_.provider,!1,void 0,this))]},void 0,!0,void 0,this),children:m0.jsxDEV("div",{className:"h-[260px]",children:M?m0.jsxDEV(d8,{data:w,options:R},void 0,!1,void 0,this):m0.jsxDEV(j$,{message:"No activity in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Qv({insights:Q}){return m0.jsxDEV(q1,{title:"Subscription Windows",subtitle:"What each usage window buys you, and how many accounts peak demand needs",children:m0.jsxDEV(K6,{columns:[{key:"provider",header:"Provider",render:(X)=>m0.jsxDEV("span",{className:"font-medium",children:X.provider},void 0,!1,void 0,this)},{key:"window",header:"Window",render:(X)=>X.windowLabel},{key:"accounts",header:"Accounts",numeric:!0,render:(X)=>S0(X.accounts)},{key:"consumed",header:"Windows Burned",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",children:X.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Est. Tokens / Window",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",children:X.estTokensPerWindow!==null?N1(X.estTokensPerWindow):"—"},void 0,!1,void 0,this)},{key:"peak",header:"Peak Utilization",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Peak of summed used fraction across accounts at any sampled instant",children:d1(X.peakConcurrentFraction)},void 0,!1,void 0,this)},{key:"ideal",header:"Ideal Accounts",numeric:!0,render:(X)=>m0.jsxDEV("span",{title:"Accounts needed to keep peak demand under 90% of fleet capacity",className:X.idealAccounts>X.accounts?"stats-text-warning font-semibold":void 0,children:[S0(X.idealAccounts),X.idealAccounts>X.accounts?` (have ${X.accounts})`:""]},void 0,!0,void 0,this)},{key:"exhausted",header:"Exhaustions",numeric:!0,render:(X)=>m0.jsxDEV("span",{className:X.exhaustedEvents>0?"stats-text-warning":void 0,children:S0(X.exhaustedEvents)},void 0,!1,void 0,this)}],data:Q,keyExtractor:(X)=>`${X.provider}::${X.windowKey}`,emptyText:"No usage snapshots recorded yet — they accumulate whenever usage is fetched (TUI footer, /usage, omp usage)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var pK={ok:"#62d394",warning:"#f5c14b",exhausted:"#ff6b7d"};function Jv({usageSeries:Q}){let J=g5.useMemo(()=>[...new Set(Q.map((R)=>R.provider))],[Q]),[X,q]=g5.useState(null),N=X!==null&&J.includes(X)?X:J[0]??null,K=R5(),H=o1[K],F=g5.useMemo(()=>{return Q.filter((R)=>R.provider===N).map((R)=>{let _=[...R.points].reverse().find((P)=>P.usedFraction!==null);return _?{label:`${R.windowLabel} · ${R.accountLabel}`,fraction:_.usedFraction??0,exhausted:_.exhausted,recordedAt:_.timestamp}:null}).filter((R)=>R!==null).sort((R,_)=>_.fraction-R.fraction)},[Q,N]),M=g5.useMemo(()=>({labels:F.map((R)=>R.label),datasets:[{label:"Used",data:F.map((R)=>R.fraction*100),backgroundColor:F.map((R)=>R.exhausted?pK.exhausted:R.fraction>=0.8?pK.warning:pK.ok),borderWidth:0,borderRadius:4,barThickness:18}]}),[F]),w=g5.useMemo(()=>{let{sharedScaleBase:R,yScale:_}=o4({chartTheme:H,formatY:(A)=>`${Math.round(A)}%`}),P=Math.max(100,...F.map((A)=>A.fraction*100)),I=s4({chartTheme:H,showLegend:!1,defaultLabel:"Used",formatValue:(A)=>`${A.toFixed(1)}%`});return{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{...I,tooltip:{...I.tooltip,callbacks:{label:(A)=>{let V=F[A.dataIndex],O=`${(A.parsed.x??0).toFixed(1)}% used`;return V?`${O} · recorded ${Y6(V.recordedAt)}`:O}}}},scales:{x:{..._,max:P},y:{...R,grid:{display:!1}}}}},[H,F]);return m0.jsxDEV(q1,{title:"Window Utilization",subtitle:"Latest recorded limit utilization per account and window — red bars are exhausted, amber above 80%",actions:J.length>1?m0.jsxDEV("select",{className:"stats-select",value:N??"",onChange:(R)=>q(R.target.value),"aria-label":"Provider",children:J.map((R)=>m0.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))},void 0,!1,void 0,this):void 0,children:m0.jsxDEV("div",{style:{height:Math.max(160,F.length*34+60)},children:F.length===0?m0.jsxDEV(j$,{message:"No usage snapshots recorded yet — they accumulate whenever usage is fetched"},void 0,!1,void 0,this):m0.jsxDEV(d8,{data:M,options:w},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var $T=n(T1(),1);var z1=n(U0(),1);function ZT({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=a1(["recent-requests-dense",J],(M)=>UX(50,M),{pollMs:30000,enabled:Q}),H=$T.useMemo(()=>[{key:"model",header:"Model",render:(M)=>z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:M.model},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(M)=>Y6(M.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(M)=>S0(M.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(M)=>R1(M.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(M)=>y5(M.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(M)=>z1.jsxDEV(V5,{variant:M.errorMessage?"danger":"success",children:M.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return z1.jsxDEV("div",{className:"stats-route-container",children:z1.jsxDEV(q1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:z1.jsxDEV(g1,{loading:K,error:N,data:q,children:z1.jsxDEV(K6,{columns:H,data:q||[],keyExtractor:(M)=>M.id||`${M.sessionFile}-${M.entryId}`,onRowClick:(M)=>M.id&&X(M.id),renderMobileCard:(M,w)=>z1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,children:[z1.jsxDEV("div",{className:"stats-mobile-card-header",children:[z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:M.model},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:M.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV(V5,{variant:M.errorMessage?"danger":"success",children:M.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:Y6(M.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:R1(M.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:S0(M.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV("div",{children:[z1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),z1.jsxDEV("div",{className:"stats-mobile-card-value",children:y5(M.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M.errorMessage&&z1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:M.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var e6=n(T1(),1);var e=n(U0(),1);function QT({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=a1(["tools",J,X],(H)=>LL(J,H),{pollMs:30000,enabled:Q});return e.jsxDEV("div",{className:"stats-route-container space-y-6",children:e.jsxDEV(g1,{loading:K,error:N,data:q,emptyText:"No tool calls recorded for this range.",children:q&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(Gv,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(Yv,{series:q.series,timeRange:J},void 0,!1,void 0,this),e.jsxDEV(Nv,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(Uv,{byToolModel:q.byToolModel},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Gv({byTool:Q}){let J=e6.useMemo(()=>{let X=0,q=0,N=0,K=0,H=0,F=0,M=0;for(let w of Q)X+=w.calls,q+=w.errors,N+=w.totalTokensShare,K+=w.outputTokensShare,H+=w.costShare,F+=w.resultChars,M+=w.argsChars;return{calls:X,errors:q,tokens:N,output:K,cost:H,resultChars:F,argsChars:M,tools:Q.length}},[Q]);return e.jsxDEV(q1,{title:"Tool Usage",subtitle:"Tokens/cost are the invoking turns' real provider usage, split across each turn's tool calls",children:e.jsxDEV("div",{className:"stats-metric-cluster",children:[e.jsxDEV("div",{className:"stats-metric-primary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(J.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:S0(J.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:d1(J.calls>0?J.errors/J.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:R1(J.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:N1(Math.round(J.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:N1(Math.round(J.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[N1(J.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[N1(J.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Xv=6;function qv(Q){let J=new Map;for(let w of Q)J.set(w.tool,(J.get(w.tool)??0)+w.calls);let X=[...J.entries()].sort((w,R)=>R[1]-w[1]),q=X.slice(0,Xv).map(([w])=>w),N=new Set(q),H=X.length>q.length?[...q,"Other"]:q,F=[...new Set(Q.map((w)=>w.timestamp))].sort((w,R)=>w-R),M=new Map;for(let w of F)M.set(w,{});for(let w of Q){let R=N.has(w.tool)?w.tool:"Other",_=M.get(w.timestamp);if(_)_[R]=(_[R]??0)+w.calls}return{buckets:F,tools:H,data:M}}function Yv({series:Q,timeRange:J}){let X=R5(),q=o1[X],N=Z9(J),K=e6.useMemo(()=>qv(Q),[Q]),H=e6.useMemo(()=>({labels:K.buckets.map((M)=>NJ(M,J)),datasets:K.tools.map((M,w)=>({label:M,data:K.buckets.map((R)=>K.data.get(R)?.[M]??0),borderColor:H1[w%H1.length],backgroundColor:`${H1[w%H1.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[K,J]),F=e6.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(M)=>`${M.dataset.label??""}: ${S0(M.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},precision:0},min:0}}}),[q]);return e.jsxDEV(q1,{title:"Calls Over Time",subtitle:`Tool calls over ${N.windowLabel}, stacked by tool`,children:e.jsxDEV("div",{className:"h-[280px]",children:K.buckets.length===0?e.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):e.jsxDEV(f5,{data:H,options:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function cK(Q){return Q>0.1?"danger":Q>0?"warning":"success"}function Nv({byTool:Q}){let J=e6.useMemo(()=>DP(Q),[Q]),X=e6.useMemo(()=>[{key:"tool",header:"Tool",render:(N)=>e.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:N.tool,children:N.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(N)=>e.jsxDEV("div",{className:"stats-text-right",children:[e.jsxDEV("div",{className:"font-mono",children:S0(N.calls)},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:e.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${N.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(N)=>e.jsxDEV(V5,{variant:cK(N.errorRate),children:d1(N.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:N1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",children:R1(N.costShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:N1(N.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"stats-text-secondary",children:Y6(N.lastUsed)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Tool",subtitle:"Usage per tool, most called first",children:e.jsxDEV(K6,{columns:X,data:J,keyExtractor:(N)=>N.tool,renderMobileCard:(N)=>e.jsxDEV("div",{className:"stats-mobile-card",children:[e.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[e.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:N.tool},void 0,!1,void 0,this),e.jsxDEV(V5,{variant:cK(N.errorRate),children:[d1(N.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-grid",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:S0(N.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:N1(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:R1(N.costShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:N1(N.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Uv({byToolModel:Q}){let[J,X]=e6.useState(null),q=e6.useMemo(()=>[...new Set(Q.map((H)=>H.tool))].sort(),[Q]),N=e6.useMemo(()=>{return(J?Q.filter((F)=>F.tool===J):Q).map((F)=>({...F,errorRate:F.calls>0?F.errors/F.calls:0}))},[Q,J]),K=e6.useMemo(()=>[{key:"tool",header:"Tool",render:(H)=>e.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:H.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(H)=>e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-text-primary",children:H.model||"(unknown)"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-text-secondary text-xs",children:H.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:S0(H.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(H)=>e.jsxDEV(V5,{variant:cK(H.errorRate),children:d1(H.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:N1(Math.round(H.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:R1(H.costShare)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(q1,{title:"By Model",subtitle:"Which models call which tools",children:[e.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[e.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),e.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(H)=>X(H.target.value||null),style:{maxWidth:"320px",flex:1},children:[e.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),q.map((H)=>e.jsxDEV("option",{value:H,children:H},H,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV(K6,{columns:K,data:N,keyExtractor:(H)=>`${H.tool}::${H.model}::${H.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var A5=n(U0(),1);function lK(){let{section:Q,setSection:J,range:X,setRange:q}=kL(),[N,K]=g2.useState(0),[H,F]=g2.useState(null),[M,w]=g2.useState(()=>Date.now()),R=g2.useCallback((V)=>{if(V.success)K((O)=>O+1),w(Date.now())},[]),_=g2.useCallback(()=>F(null),[]),P=Q,I=g2.useRef(new Set);I.current.add(P);let A=(V)=>{let O=V===P;switch(V){case"overview":return A5.jsxDEV(iP,{active:O,range:X,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"requests":return A5.jsxDEV(ZT,{active:O,range:X,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"errors":return A5.jsxDEV(lP,{active:O,range:X,refreshTrigger:N,onRequestClick:F},void 0,!1,void 0,this);case"models":return A5.jsxDEV(sP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"providers":return A5.jsxDEV(eP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"tools":return A5.jsxDEV(QT,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return A5.jsxDEV(pP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return A5.jsxDEV(dP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return A5.jsxDEV(tP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return A5.jsxDEV(rP,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return A5.jsxDEV(A5.Fragment,{children:[A5.jsxDEV(vL,{activeSection:P,onSectionChange:J,range:X,onRangeChange:q,updatedAt:M,onSyncComplete:R,children:[...I.current].map((V)=>A5.jsxDEV("div",{hidden:V!==P,children:A(V)},V,!1,void 0,this))},void 0,!1,void 0,this),A5.jsxDEV(yP,{id:H,onClose:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var GT=n(U0(),1),Kv=JT.createRoot(document.getElementById("root"));Kv.render(GT.jsxDEV(lK,{},void 0,!1,void 0,this));
|